Intelligent Context-Aware Edge AI Telematics System for Autonomous Accident Verification

Published Jun 30, 2026
 48 hours to build
 Intermediate

AegisLink is an intelligent vehicle telematics system designed to reclaim the "Golden Hour" during accidents. It replaces rigid, error-prone threshold coding with an on-chip Edge AI neural network that accurately distinguishes real crashes from common potholes, driving off a bridge, or normal vibrations. If an accident is verified, it bypasses damaged phones and poor internet connections to autonomously broadcast an offline emergency SMS with live GPS coordinates.

display image

Components Used

MPU6050 Gyroscope and Accelerometer
MPU6050 (Gyroscope + Accelerometer + Temperature) is a combination of 3-axis Gyroscope, 3-axis Accelerometer and Temperature sensor with on-chip Digital Motion Processor (DMP). It is used in mobile devices, motion enabled games, 3D mice, Gesture (motion command) technology etc
1
Piezo Buzzers
Piezo Buzzers & Audio Indicators buzzer, 14 mm Round, 6.7 mm deep, 10 Vp-p, 80 dB, Through Hole, Piezo Audio Transducer
1
Pushbutton Switches
Pushbutton Switches DPDT H=12.5mm PUSH SWSOFT SOUND
1
ESP32 DevKitC 32E
ESP32 DevKitC 32E
1
Breadboard
Breadboard
1
5V 2A Power bank
Adafruit Accessories USB Li-Ion Power Bank with 2 x 5V Outputs @ 2.1A - 5000mAh
1
Connecting Wire Jumper Wires
Connecting Wire Breadboard wires
30
Arduino IDE software
this software was used for burning the GRBL firmware into ARDUINO UNO
1
Edge Impulse Studio
The platform in which we will be making our model
1
Flutter
Flutter is an open-source UI software development kit created by Google. It is used to develop cross platform applications for Android, iOS, Linux, macOS, Windows, Google Fuchsia, and the web from a single codebase.
1
Python receiver
Receiving data python code
1
Desktop/Laptop
We use a Windows Forms application to read data from the Discovery board and display the inference results. The connection is established via a USB interface, which allows the application to communicate with the Discovery board and retrieve the necessary data for processing and visualization.
1
Description

Phase 1: The Basic Hardware & App Foundation

  • The Starting Point: We began by wiring a standard ESP32 directly to the MPU6050 using basic I2C pins . The code simply read raw motion values and streamed them over a basic Bluetooth connection to our first Flutter app version, which only displayed numbers on a screen with no automatic messaging features.
  • Phase 2: Upgrading the Circuit & Local Fail-Safes

  • The Progression: Real-world driving tests showed that engine vibrations corrupted our threshold calculations. We upgraded the circuit by adding a tactile push-button and a piezo speaker (buzzer). We coded a 15-second local countdown window: if a high threshold was crossed, the speaker would blare an alarm, giving a conscious driver a chance to press the physical button to cancel a false alarm.
  • Phase 3: The Circuit Fix & Avoiding Core Bluetooth Pins

  • The Technical Challenge: During testing, we noticed the ESP32 would randomly crash or fail to boot when the button or speaker pins were connected. We realized we had accidentally used strapping pins or internal core pins that interfere with the ESP32’s internal Bluetooth/Boot configurations. We fixed this by shifting our hardware interrupts and GPIO connections to completely safe, non-interfering pins (like $GPIO 12, 13, or 14$).
  • Phase 4: Integrating the Edge AI Brain

  • The Intelligence Shift: Static thresholds kept failing on real Indian roads due to harsh potholes and speedbreakers during active driving. We collected real driving data and trained an offline TinyML neural network via Edge Impulse. The model was compressed and flashed directly onto the ESP32 to accurately isolate true vehicle crashes from common road noise using zero cloud internet.

  • Phase 5: The Final App Update (Autonomous Offline Messaging)

  • The Final Polish: We upgraded our Flutter mobile application to work as a silent background safety asset. The exact millisecond the onboard Edge AI verifies a real crash pattern, it bypasses the internet and sends a high-priority packet to the app. The updated Flutter app instantly queries the phone’s native GPS chip and autonomously broadcasts an offline cellular emergency SMS with a live Google Maps location link—saving the user before structural forces can destroy the phone.
Codes

Downloads

Screenshot 2026-06-30 181605 Download
Guide / Mentor
Comments
Ad