Rc-W024 / AccidDetec-Accel

🔥🔥 🛴 Contains Matlab codes used for implementation of acceleration signal processing algorithm on smartphones for accident detection. 🔥🔥

Home Page:https://ridesafeum.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accident Detection Based on Accelerometer

This is an accelerometer-based accident detection for electric scooters (E-Scooters) developed on the basis of anomaly event detection. I uploaded several simple detection algorithms for users to study. The basic algorithm is very important, which is of great help and reference for subsequent optimization and development. In AccidentDetection_CFAR.m, the acceleration signal is analyzed by the CFAR algorithm to detect and identify accident events. Based on this, other detection algorithms is developed that process and analyze the data and signals to detect anomaly events (crash or accident).

For the basic principles and framework of the CFAR algorithm, you can refer to my repository of CFAR-based SAR ship detection, or refer to the following MATLAB official web site: Constant False Alarm Rate (CFAR) Detection

本项目以异常事件检测技术为基础,开发了基于加速度计的电动滑板车事故检测算法,并上传了几个简单的检测算法供用户学习。基础算法是相当重要的,它对算法后续的优化、开发有很大的帮助和参考意义。在AccidentDetection_CFAR.m中,通过CFAR算法分析加速度信号以检测识别事故事件。在此基础上,开发的其他检测算法都是通过处理、分析数据和信号本身来检测异常(事故)事件。

CFAR算法的基本原理和框架可以参考本人SAR舰船检测项目中的相关章节,或参考MATLAB官网的说明

Among them, AccidentDetection_Realtime.m algorithm simulates real-time accident detection to realize traversal of all data. It will stop traversal when an abnormal situation is detected and judges whether it is an accident, then continues to traverse the remaining data after the detection. In this case, the funtion of circshift in MATLAB is used to simulate the process of acceleration data being monitored in real-time.

其中,AccidentDetection_Realtime.m算法模拟了实时事故检测流程,以实现遍历全部数据,在有异常情况部分暂监控并判断其是否为事故,并在检测判断后继续监控剩余数据直到结束。在此情况下,使用了MATLAB中的circshift函数来模拟加速度数据被实时监控的过程。

Data & files...

Three test data are uploaded to the data folder for studying. Two of the files where the filename contains "crash" have two accident events and additional "disturbances" (steps, violent shaking, etc.). The Normaldrive file is a part of normal drive data with U-turn behavior for comparison.

data文件夹中上传了三个测试数据供参考研究。其中,文件名包含“crash”的两个数据中,有两起事故事件和附加的“干扰”(台阶、颠簸等非事故振动),Normaldrive文件是一段带有调头(或类似急转弯)行为的正常行驶数据,用于对比研究。

Example of detection results...

Algorithm CFAR: cfar image

Algorithm 2: accel

Algorithm 3: accel_y image

About the project...

     

RideSafeUM is an initiative co-funded by EIT Urban Mobility that brings micromobility safety benefits to users, public authorities and operators through the use of innovative technology. This initiative proactively prevents riding incompliances, provides smooth reaction in case of accidents, and gathers data for wider learning, policy-making and management purposes. The project was born in response to the need of making micromobility safer, and to encourage increased ridership of what have become key modes for the future of our mobility systems.

The RideSafeUM solution is based on the integration of computer-vision software, with camera, GPS and an accelerometer. This technology has resulted in an app which can be either supported by users’ smartphones or through external equipment. Versatility being one of the core values of RideSafeUM, the app is available to both private riders and to be easily integrated with shared micromobolity operators’ apps. On the background, a city dashboard enables authorities to set the restrictions and warnings displayed in the users’ app, thereafter being able to identify and dynamically manage micromobility safety issues.

“The system works on a bi-lateral communication basis. Real-time digital information of regulations is displayed to the user (via the app or the operator’s front-end). At the same time, anonymised alerts are sent to the authorities if an accident occurs, using a black-box function to identify safety patterns.”

Related repository

Implementation of Signal Processing Algorithm on a smartphone: ISPA

About

🔥🔥 🛴 Contains Matlab codes used for implementation of acceleration signal processing algorithm on smartphones for accident detection. 🔥🔥

https://ridesafeum.com/

License:MIT License


Languages

Language:MATLAB 100.0%