当前位置:网站首页>[System Design and Implementation] Flink-based distracted driving prediction and data analysis system
[System Design and Implementation] Flink-based distracted driving prediction and data analysis system
2022-08-02 15:29:00 【Hongyao】
目录
基于flinkForecast of distracted driving and data analysis system(GitHubWarehouse click here)
项目简介
通过flinkReal-time identification and random forest model driver whether the user is in a state of alert,And further data statistics and analysis,To save the results of the analysis inhbase,并通过WebsocketTo provide customers with real-time analysis results. (The system try to give a few years ago,Model the truth quite pull)
项目技术栈
后端技术栈:Flink,Flume,kafka,HBase,Mysql,Springboot
前后端通信协议:websocket(stomp),http(前端axios)
前端技术栈:Vue,Echart,ElementUI
机器学习:sklearn,pmml
项目组成
The project has created three module:
StayAlertWeb模块:系统的Web客户端,Used to display real-time statistics and query users of real-time statistics.
StayAlertAPI模块:该模块是一个Springboot程序,Used to provide for persistent data and real-time statisticsapi接口.Simulation characteristic data is through the moduleapi转发到flume和kafka中间件,And then to predict analysis program for processing.
StayAlertFlink模块:This module is responsible for according to the characteristics of simulation data to predict the user's alert,Then combined with the user's personal information to users' personal data analysis and data analysis of global.该模块 Send the results to the message middleware and persisting data tohbase.StayAlertAPI模块可以从KafkaThe message queue to obtain real-time data,Also can be directlyhbaseObtain the data persistence.
数据库:本次项目使用MysqlKeep the user's personal information,并使用HBaseThe statistical results of data persistence.
业务流程:
- Simulation program toSpringboot编写的apiCharacteristics of user application sends data.
- springbootCharacteristics of the data byFlume和KafkaForward the message middleware toFlink预测分析程序,Formation of the flow.
- 通过connectOperation incorporating prediction results and user information data.
- Flow load training in goodPMMLRandom forests model to predict.
- 程序从MysqlRegularly read user information data in,Through radio sends data to the trunk calculation flow in the form of
- Program will be persisted to the statistical resultsHbase中,然后发送到Flume和KafkaMessage middleware in waiting forSpringbootProgram gets pushed to users and.
- 根据用户id分组,Users' personal data
- Using the window operation and data aggregation function global statistics
- SpringbootTo the user the results
- From the message middleware to obtain real-time data
- 从Hbase和MysqlThe database access to persistent data
- Web客户端先向SpringbootTo the initial page request a persistent data show,然后创建Websocket连接,To obtain the statistical results of real time
界面
相关下载
原始数据集
Distractions classification model
Model after downloading on/StayAlertSystem/StayAlertFlink/src/main/resources
目录下.
名称 | 说明 | 准确率 | 模型大小 |
---|---|---|---|
StayAlertRFC.pmml | 使用88An estimator | 87.56% | 200MB |
LightStayAlertRFC.pmml | 使用20An estimator | 84.46% | 45MB |
百度云 提取码:qz4x
操作文档
数据集说明
本数据集来自KaggleA competition,Data set provided by the ford,The data shows that many groups“试验”的结果,Each representative experiment lasted about2Minutes of driving data,The data on the road or in a driving simulator per100Ms record at a time,The characteristics of the data fields including the driver's physiological indexes in the process of the driving,Some environmental indicators and vehicle,May for some reasons,These indicators of the actual name and unit of measure in this task does not disclose.
字段名称 | 字段解释 |
---|---|
TrialID | 大约2Minutes of continuous data of each cycle has a unique testID.例如,前1210Observation on behalf of every100msThe continuous observation,Therefore has the same testID |
ObsNum | This is a testIDIn increasing Numbers in sequence |
IsAlert | If the driver is alarm for1,否则为0 |
P1-P8 | Physiological data |
E1-E11 | On behalf of the environmental data |
V1-V11 | According to vehicle data |
边栏推荐
- Win7怎么干净启动?如何只加载基本服务启动Win7系统
- Please make sure you have the correct access rights and the repository exists. Problem solved
- 单端K总线收发器DP9637兼容L9637
- 使用npx -p @storybook/cli sb init安装失败,手把手搭建专属的storybook
- 模板系列-并查集
- IPV4和IPV6是什么?
- MATLAB制作简易小动画入门详解
- yolov5官方代码解读——前向传播
- Mysql连接错误解决
- How to update Win11 sound card driver?Win11 sound card driver update method
猜你喜欢
Do Windows 10 computers need antivirus software installed?
Win10安装了固态硬盘还是有明显卡顿怎么办?
Binder机制(中篇)
FP5139电池与适配器供电DC-DC隔离升降压电路反激电路电荷泵电路原理图
Win10系统设置application identity自动提示拒绝访问怎么办
【系统设计与实现】基于flink的分心驾驶预测与数据分析系统
Mysql连接错误解决
Win11系统找不到dll文件怎么修复
FP7195降压恒流PWM转模拟调光零压差大功率驱动方案原理图
How to solve Win11 without local users and groups
随机推荐
C语言函数参数传递模式入门详解
DP4344兼容CS4344-DA转换器
Win11电脑一段时间不操作就断网怎么解决
Win11声卡驱动如何更新?Win11声卡驱动更新方法
BLE蓝牙5.2-PHY6222系统级芯片(SoC)智能手表/手环
Win7 encounters an error and cannot boot into the desktop normally, how to solve it?
使用 腾讯云搭建一个个人博客
轻量化AlphaPose
Mysql connection error solution
How to set the win10 taskbar does not merge icons
Please make sure you have the correct access rights and the repository exists.问题解决
模板系列-二分
STM32LL库——USART中断接收不定长信息
Mysql之MVCC
动态规划理论篇
深入理解Golang之Map
推开机电的大门《电路》(三):说说不一样的电阻与电导
What is Win10 God Mode for?How to enable God Mode in Windows 10?
Yolov5 official code reading - prior to transmission
SQL的通用语法和使用说明(图文)