Next Article in Journal
Machine Learning-Based Classification of Autism Spectrum Disorder across Age Groups
Previous Article in Journal
Analysis of the Fallback Values of Digital Control Systems in Nuclear Power Plants
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Internet of Things-Based Smart Helmet with Accident Identification and Logistics Monitoring for Delivery Riders †

by
Alyssa Dainelle T. Alcantara
,
Ramon Balancer H. Balbuena III
,
Venlester B. Catapang
*,
John Patrick M. Catchillar
,
Rick Edmond P. De Leon
,
Steven Niño A. Sanone
,
Charles G. Juarizo
,
Carlos C. Sison
and
Eufemia A. Garcia
Department of Electronics Engineering, Pamantasan ng Lungsod ng Maynila, Manila 1002, Philippines
*
Author to whom correspondence should be addressed.
Presented at the 10th International Electronic Conference on Sensors and Applications (ECSA-10), 15–30 November 2023; Available online: https://ecsa-10.sciforum.net/.
Eng. Proc. 2023, 58(1), 129; https://doi.org/10.3390/ecsa-10-16238
Published: 15 November 2023

Abstract

:
The study developed a smart helmet prototype that prioritizes delivery rider safety and facilitates logistical communication for small businesses. This was achieved with a smart helmet, utilizing IoT equipped with crash detection and logistics monitoring functions. Various sensors such as an accelerometer and alcohol sensors were calibrated to improve accuracy and minimize errors. A mobile application was introduced to coordinate delivery logistics and track the location of drivers. The system had 90% accuracy in distinguishing real accidents, and it also had drunk driver detection with an accuracy of 88%. An ATTM336H GPS module was used for geolocation tracking, and a mobile application built with Bubble.io and Firebase was integrated into the helmet to send alerts the shop owners of Roger’s Top Silog House who provided delivery drivers as participants for the study, who gave us positive feedback indicating that our smart helmet performed very well and exceeded expectations.

1. Introduction

The use of commercial transportation, such as motorcycles, for the purpose of collecting, transporting, and delivering documents, parcels, and packages from various sectors (i.e., mail, food, and carrier) has been increasing; this has become a main driver in augmenting the essentials in the delivery industry [1]. However, motorcycle accidents are associated mostly with injuries and fatalities. The cause of these involve behavioral conditions, such as substance abuse, helmet wearing, violations [2], and even road environmental conditions [1]. According to a 2018 WHO Philippines report, 53% of the 11,264 road accident deaths were attributed to two-wheeled and three-wheeled riders and passengers, with 90% of them not wearing helmets. As of December 2020, there were 7,328,116 registered motorcycles, including 1,949,589 new units [3]. In 2018 alone, an average of 86 daily cases of motorcycle-related road crashes were recorded based on the annual report released by the MMARAS (Metro Manila Accident Recording and Analysis System) [4]. In 2021, there were 14,870 persons injured in motorcycle-related crashes, giving an average of 41 individuals per day [5]. In 2022, accidents involving motorcycles alone consisted of 22.59% of the total road accidents in Metro Manila, 31,124 of which were motorcycle accidents, with 17,089 of those resulting in injuries and 313 resulting in fatalities [6]. Even if road accidents are inevitable, humans involved in life-or-death situations rely heavily on the speed of emergency response. The study designs a smart helmet prototype that values the safety of the delivery rider and provides logistical information between the delivery rider and management. Using IOT-based solutions, the objectives of the study consist of the following: (1) design an IOT smart helmet accident detection system that gathers data from the accelerometer; (2) design a breath analyzer using MQ3 testing for the rider’s drunkenness during the smart helmet’s operation; (3) create a mobile application which notifies management of the delivery history and GPS location status; and (4) assess smart helmet’s operation quality upon usage by the delivery rider. The study only focuses on using a smart helmet with an embedded IoT system and Wi-Fi communication protocol. It enables data transmission through a Firebase IoT cloud server for the backend and utilizes Bubble.io for the frontend. This system notifies management about delivery riders, including crash detection and logistics information.

2. Methodology

This section contains an overview of the system’s block diagram as a prototype of an IoT-based smart helmet, with all of the relevant sensors, system design, as well as the processes behind its operation together with its circuit connection and implementation.

2.1. System Design

The smart helmet incorporates various sensors such as an accelerometer, vibration, alcohol and pressure resistive sensors, and GPS for point-to-point logistics tracking. Figure 1 shows the flow of operation. The data collected by these sensors are transmitted to the ESP32C3 microcontroller, which then relays it to Firebase as the backend database. This information is reflected in the Bubble.io mobile application for end-users, including administration (admins) who can monitor delivery manpower and potential accidents, delivery riders who use the app to accept deliveries and locate destinations, and customers who can track their deliveries. Figure 2 displays the wiring of the smart helmet.

2.2. System Architecture

This includes a calibration of the two (2) main sensory component systems for the creation of the smart helmet, a crash and alcohol detection system and a GPS system. The primary data that is determined here is sent to Firebase before it reflects any of those data onto the application. Figure 3 displays the flow of information of the accelerometer, vibration, and alcohol sensor. All data is sent to the MCU to be stored in Firebase. This data is interpreted and is displayed unto the mobile application interface.
Figure 4 shows the communication of the GPS module to the MCU. Data are sent to Firebase to undergo external API map routing in order to be properly displayed on the mobile app, which is then reflected, as shown in Figure 5 below.

2.3. Testing Procedure

The steps taken for the implementation of the smart helmet are as follows: (1) The admin and delivery rider create an account and connect the smart helmet via pocket Wi-Fi. (2) The delivery rider wears the helmet to begin the calibration of the accelerometer, vibration and alcohol sensors for initialization. (3) After approximately 2 min of warm-up time for the GPS, the admin can start placing orders for the delivery rider to accept. (4) After the order is accepted for delivery, the alcohol sensor samples the delivery rider’s breath. If they are determined to be sober, they can proceed with delivery. If not, the sensors can notify all admins that the delivery rider is drunk. (5) The smart helmet continuously sends all sensor data for potential accidents/crashes and intoxication detection, as well as tracks the location of the delivery using GPS. (6) Once the delivery is confirmed to be successful through the mobile app, the sensors would still run in the background to check for accidents, intoxication, and the location of the delivery rider, ready to notify admin of their logistics.
1.
Accelerometer Threshold
An accident is determined via the smart helmet whenever the accelerometer responds with x, y, and z values that go over the threshold of 12G or roughly 117.6 m/s2 [7]. It then counterchecks with the vibration sensor’s output, determining whether the rider has been involved in an accident or not, as shown in Equation (1) as follows:
| a | = ax 2 + ay 2 + az 2  
where |a| is the magnitude of linear acceleration and a = acceleration.
2.
Confusion or Error Matrix
To examine the reliability of the accelerometer and vibration sensor in accident detection, the following are calculated: the accuracy, as shown in Equation (2), the precision, as true instances of true positives shown in Equation (3), the recall, as the true positive rate shown in Equation (4), and the F1 score, as the harmonic mean between precision and the recall, shown in Equation (5), in terms of the error matrix of the results recorded from ten trials.
Accuracy = (TP + TN)/(TP + TN + FP + FN)
Precision = TP/(TP + FP)
Recall = TP/(TP + FN)
F1 Score = 2TP/(2TP + FP + FN)
where TP = true positive results, FP = false positive results, TN = true negative results and FN = false negative results.
3.
Calibration of MQ3 Sensor
To calibrate the MQ3 sensor as a breath analyzer, we extract the analog values from the sensor with a range of 0 to 4095 (with a resolution of 12 for the ESP32C3). R2 is taken from the physical resistor on the sensor, Ro (resistance of the sensor in normal conditions) is taken from the MQ3 datasheet, and Rs (output resistance of the sensor to alcohol) is used to acquire the blood alcohol content (BAC), computed using Equation (6). This value should be less than 0.05% to qualify as “sober”.
BAC = ab(ratio)
where a is the BAC-intercept and b = slope.
4.
Root Mean Square Error
In order to assess the accuracy, the researchers compare the proposed system (smart helmet) over the conventional system (smartphone) and compute the difference between the resulting two values using Equation (7).
R M S E = i = 1 n C o n v e n t i o n a l i P r o p o s e d i 2 n
5.
Time Delay, Likert Scale, and Standard Deviation
The time delay from the entirety of the data communication of the proposed system– from the embedded IoT device up to the data that are reflected upon the mobile application–is calculated using Equation (8). The questions are subdivided into three categories: (1) reliability, (2) usability, and (3) functionality, wherein responses follow a scale of 1 to 5, with 1 = strongly disagree and 5 = strongly agree, to undergo a Likert scale evaluation. The standard deviation can be used to provide additional information about the variability or consistency of the data, as shown in Equation (9).
Mean time delay = sum of trials/number of trials
σ = Σ x i μ 2 n 1
where xi is the individual values from sample, µ = sample mean and n = sample size.

3. Results and Discussions

This section is divided to present the results for each objective of the testing and implementation of the prototype’s system to identify accidents and logistics monitoring.

3.1. Design of an IOT Smart Helmet Accident Detection System That Gathers Data from the Accelerometer

As detailed in Table 1, the crash detection was tested using an accelerometer and a vibration sensor that determined whether the impact was a crash or not attained. This was conducted over 10 trials for situations with expected results, and these were then compared with the obtained results to determine whether the smart helmet succeeded in detecting an accident.
As shown in Table 2, the accuracy of the system in detecting the situation as a crash yielded 90% while having a precision of 87.5%, a recall of 100%, and an F1 score of 93.3% from drop testing the smart helmet over 10 trials.

3.2. Design of a Breath Analyzer Using MQ3 Testing for the Rider’s Drunkenness during the Smart Helmet’s Operation

As shown in Table 3, the accuracy of the MQ3 sensor to act as a breath analyzer had an accuracy of 89.09% while having a precision of 87.87%, a recall of 96.03%, and an F1 score of 91.78% from testing with different concentrations of alcohol readily available in the market.

3.3. GPS Location and Status of the Delivery

As shown in Table 4, the lower the RMSE value, the better the fit. Based on the calculations, the RMSE of the latitude equates to 0.000051274. Meanwhile, the longitude is 0.00017925, implying that the smart helmet is on par with GPS from smartphones. Figure 6 shows the implantation of the smart helmet together with the GPS feature below.
As shown in Table 5, the mean time delay of the 10 trials is 2.37 s, which is considered real-time.

3.4. Assess the Smart Helmet’s Operation Quality upon Usage by the Delivery Rider

As shown in Table 6, the actual mean and S.D. of the reliability of the smart helmet and mobile application are 4.24 and 0.469. The actual mean and S.D. of the usability of the smart helmet and mobile application are 4.12 and 0.561. The actual mean and S.D. of the functionality of the smart helmet and mobile application are 4.36 and 0.570. The smart helmet and mobile application performed greatly for the three categories. Figure 6 displays the actual helmet in use.

Author Contributions

Conceptualization, J.P.M.C., R.B.H.B.III and V.B.C.; methodology, A.D.T.A., J.P.M.C., S.N.A.S., R.B.H.B.III, R.E.P.D.L. and V.B.C.; software, J.P.M.C., R.B.H.B.III, R.E.P.D.L. and V.B.C.; validation, A.D.T.A., J.P.M.C., R.B.H.B.III and V.B.C.; formal analysis, J.P.M.C., R.B.H.B.III, R.E.P.D.L. and V.B.C.; investigation, A.D.T.A., J.P.M.C., R.B.H.B.III and V.B.C.; resources, A.D.T.A., J.P.M.C., S.N.A.S., R.B.H.B.III, R.E.P.D.L. and V.B.C.; data curation, A.D.T.A., J.P.M.C., R.B.H.B.III and V.B.C.; writing—original draft preparation, A.D.T.A. and S.N.A.S.; writing—review and editing, C.G.J., C.C.S., J.P.M.C., R.B.H.B.III and V.B.C.; visualization, A.D.T.A., J.P.M.C., S.N.A.S., R.B.H.B.III., R.E.P.D.L. and V.B.C.; supervision, C.C.S., C.G.J., E.A.G., J.P.M.C., R.B.H.B.III. and V.B.C.; project administration, J.P.M.C., R.B.H.B.III and V.B.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Shin, Y.; Van Thai, V.; Grewal, D.; Kim, Y. Do Corporate Sustainable Management Activities Improve Customer Satisfaction, Word of Mouth Intention and Repurchase Intention? Empirical Evidence from the Shipping Industry. Int. J. Logist. Manag. 2017, 28, 555–570. [Google Scholar] [CrossRef]
  2. Behr, C.J.; Kumar, A.; Hancke, G.P. A smart helmet for air quality and hazardous event detection for the mining industry. In Proceedings of the 2016 IEEE International Conference on Industrial Technology (ICIT), Taipei, Taiwan, 14–17 March 2016; pp. 2026–2031. [Google Scholar] [CrossRef]
  3. Inquirer. Available online: https://newsinfo.inquirer.net/1392480/lto-estimates-unregistered-motorcycles-in-ph-to-reach-47866. (accessed on 22 October 2022).
  4. MMRAS Annual Report 2018. Available online: https://mmda.gov.ph/images/Home/FOI/MMARAS/MMARAS-Annual-Report-2018.pdf (accessed on 20 October 2022).
  5. MMRAS Annual Report 2021. Available online: https://mmda.gov.ph/images/Home/FOI/MMARAS/MMARAS_Annual_Report_2021.pdf (accessed on 20 October 2022).
  6. MMRAS Annual Report 2022. Available online: https://mmda.gov.ph/images/Home/FOI/MMARAS/MMARAS_Annual_Report_2022.pdf (accessed on 7 September 2023).
  7. Khan, A.; Bibi, F.; Dilshad, M.R.; Ahmed, S.; Ullah, Z.; Ali, H. Accident Detection and Smart Rescue System using Android Smartphone with Real-Time Location Tracking. Int. J. Adv. Comput. Sci. Appl. 2018, 9, 341–355. [Google Scholar] [CrossRef]
Figure 1. General block diagram of the system.
Figure 1. General block diagram of the system.
Engproc 58 00129 g001
Figure 2. Circuit diagram of the embedded system.
Figure 2. Circuit diagram of the embedded system.
Engproc 58 00129 g002
Figure 3. Crash detection system.
Figure 3. Crash detection system.
Engproc 58 00129 g003
Figure 4. GPS design.
Figure 4. GPS design.
Engproc 58 00129 g004
Figure 5. Mobile application for notification system.
Figure 5. Mobile application for notification system.
Engproc 58 00129 g005
Figure 6. Field implementation of the helmet. (a) Rider receiving order; (b) rider equipping smart helmet; (c) rider confirming delivery.
Figure 6. Field implementation of the helmet. (a) Rider receiving order; (b) rider equipping smart helmet; (c) rider confirming delivery.
Engproc 58 00129 g006
Table 1. Crash Detection from Accelerometer and Vibration Sensor Data.
Table 1. Crash Detection from Accelerometer and Vibration Sensor Data.
No. of TrialsSituation of TestExpected OutputObtained OutputInterpretation
Trial 1Helmet dropped 2 m above groundTTSuccess (TP)
Trial 2Helmet dropped 2 m above groundTTSuccess (TP)
Trial 3Helmet dropped 2 m above groundTTSuccess (TP)
Trial 4Helmet placed on the groundFFSuccess (TP)
Trial 5Helmet dropped 2 m above groundTTSuccess (TP)
Trial 6Helmet placed on the groundFTFailed (FP)
Trial 7Helmet dropped 2 m above groundTTSuccess (TP)
Trial 8Helmet dropped 2 m above groundTTSuccess (TP)
Trial 9Helmet placed on the groundFFSuccess (TP)
Trial 10Helmet dropped 2 m above groundTTSuccess (TP)
Table 2. Analysis of crash detection data.
Table 2. Analysis of crash detection data.
AccuracyPrecisionRecallF1 Score
0.900.8751.00.933
Table 3. Analysis of alcohol detection.
Table 3. Analysis of alcohol detection.
AccuracyPrecisionRecallF1 Score
0.8909090.8787870.9602640.917721
Table 4. Comparison of longitude and latitude between GPS.
Table 4. Comparison of longitude and latitude between GPS.
GPS from Smart HelmetGPS from Smartphone
No. of TrialsLongitude1Latitude1Longitude2Latitude2
Trial 1121.192223414.4668264121.19171614.4668255
Trial 2121.189842714.4656059121.189670314.4656555
Trial 3121.192347014.4655427121.192352114.4655419
Trial 4121.192543614.4661518121.192560614.4661125
Trial 5121.192231814.465562121.192242414.4655219
Trial 6121.193679914.4655621121.193635414.4655812
Trial 7121.190891714.4654065121.190890614.4653565
Trial 8121.19113314.4650616121.191030914.4650906
Trial 9121.1922114.4645827121.192349714.4645032
Trial 10121.19327114.4641768121.193228714.4640736
RMSE = 0.000051274 (Latitude); 0.00017925 (Longitude)
Table 5. Time delay from the helmet to application.
Table 5. Time delay from the helmet to application.
No. of TrialsData from Helmet to Application (s)Mean Time Delay (s)
Trial 13.7642.37480108
Trial 21.449
Trial 31.66
Trial 42.024
Trial 53.915
Trial 61.256
Trial 72.185
Trial 86.657
Trial 93.059
Trial 101.423
Table 6. Weighted mean of responses using a 5-point Likert scale.
Table 6. Weighted mean of responses using a 5-point Likert scale.
CategoryQuestionsResponsesActual MeanStandard DeviationInterpretation
Reliability554.240.469Great
Usability554.120.561Great
Functionality554.360.570Great
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Alcantara, A.D.T.; Balbuena, R.B.H., III; Catapang, V.B.; Catchillar, J.P.M.; De Leon, R.E.P.; Sanone, S.N.A.; Juarizo, C.G.; Sison, C.C.; Garcia, E.A. Internet of Things-Based Smart Helmet with Accident Identification and Logistics Monitoring for Delivery Riders. Eng. Proc. 2023, 58, 129. https://doi.org/10.3390/ecsa-10-16238

AMA Style

Alcantara ADT, Balbuena RBH III, Catapang VB, Catchillar JPM, De Leon REP, Sanone SNA, Juarizo CG, Sison CC, Garcia EA. Internet of Things-Based Smart Helmet with Accident Identification and Logistics Monitoring for Delivery Riders. Engineering Proceedings. 2023; 58(1):129. https://doi.org/10.3390/ecsa-10-16238

Chicago/Turabian Style

Alcantara, Alyssa Dainelle T., Ramon Balancer H. Balbuena, III, Venlester B. Catapang, John Patrick M. Catchillar, Rick Edmond P. De Leon, Steven Niño A. Sanone, Charles G. Juarizo, Carlos C. Sison, and Eufemia A. Garcia. 2023. "Internet of Things-Based Smart Helmet with Accident Identification and Logistics Monitoring for Delivery Riders" Engineering Proceedings 58, no. 1: 129. https://doi.org/10.3390/ecsa-10-16238

Article Metrics

Back to TopTop