Fall Detection Article
Fall Detection Article
Generic Engineering
ABSTRACT
The project is carried out to reduce the fatality with which some falls end in elderly people not attended in time, the proposed solu-
tion arises from the exponential growth of the use of artificial intelligence in broad fields of daily life, thus assisting in tasks that involve
constant human attention in addition to a high risk of failure. A training model is used that, according to what is considered to pro-
vide better results in terms of classification and identification in frames, this is Yolo v5, which also allows real-time predictions, which is
what is required by the project. For the training of the model, images of real people are combined with synthetic images (obtained
from a web platform that is responsible for modeling in 3D character animations) to obtain a conveniently better result than ex-
pected.
As for the web application that allows accessibility to the user, a frontend with React and a REST API is used. To notify nearby people
and employees of the detected crash, a direct and instant message via WhatsApp and an alarm that is automatically activated
upon detection of the crash are used. As for the results obtained after testing the model, they were satisfactory with a 94% success
rate.
RESUMEN
El proyecto se realiza para disminuir la fatalidad con la que acaban algunas caídas en personas de la tercera edad no atendidas a
tiempo, la solución planteada surge a partir del crecimiento exponencial del uso de la inteligencia artificial en amplios campos de
la vida cotidiana, de esta forma asiste en las tareas que implican una constante atención humana además de un alto riesgo de
fallos. Se utiliza un modelo de entrenamiento que, según lo considerado brinda mejores resultados en cuanto a la clasificación e
identificación en fotogramas, este es Yolo v5 que, además permite realizar predicciones en tiempo real, que es lo requerido por el
proyecto. Para el entrenamiento del modelo, se combinan imágenes de personas reales con imágenes sintéticas (que se obtienen
de una plataforma web que se encarga de modelar en animaciones de personajes en 3D) para obtener un resultado convenien-
temente mejor al esperado.
En cuanto al aplicativo web que permite accesibilidad al usuario se utiliza un frontend con React y un API REST. Con la finalidad de
notificar a las personas cercanas y empleados de la caída detectada se utiliza un mensaje directo e instantáneo vía WhatsApp y
una alarma que se activa de forma automática al momento de la detección de la caída. En cuanto a los resultados obtenidos
luego de realizar las pruebas al modelo, fueron satisfactorios con un 94% de acierto.
1
Student Software Engineering, Universidad Surcolombiana, Colombia. Email: [email protected]
2
Student Software Engineering, Universidad Surcolombiana, Colombia. Email: [email protected]
INGENIERÍA Y REGIÓN 2
Real-time fall recognition model
To train the artificial vision model it is necessary to have a set of
images, for the creation of which images are searched through
the Internet.
INGENIERÍA Y REGIÓN 3
Figure 5. Training set for each class.
Source: Authors
Once the training phase starts, the batches of labels created for Figure 7. 3D model training batch.
each class can be observed, as shown in Figure 6 and Figure 7. Source: Authors.
Variable specification
INGENIERÍA Y REGIÓN 4
If after 60 seconds, a fallen person is still detected, the alarm is
automatically activated, and the employees are also alerted again
by the same means.
Any user logged into the web application can access a section to
observe the fall detection system in real time, for this purpose an
Endpoint is assigned in the backend that is responsible for trans-
mitting the output of the predictions to the model.
If the fall detection system does not work properly, the user
administrator can manually activate the alarm and alert nearby
people so that the victim can get attention as quickly as possible.
To meet the requirements of managing both employees and
family members, Endpoints are provided with corresponding
HTPP verbs that allow listing, adding, modifying, and deleting
each record.
For the functionality of deleting employees and family members,
the records are not deleted from the database, but their status is
changed from active to inactive to audit the information.
• Front-end
For the construction of the frontend, it is used JavaScript with
React as framework, in addition to tailwind CSS that plays the
structural role of the styles of the page. Thanks to these two
technologies the requirements are fulfilled and connected with
the backend to complete the full functionality resulting in an
intuitive page for the user.
Figure 8. Python script to make predictions.
Source: Authors Results
Fall detection model testing
Web platform structure
As shown in Table 2, for the tests performed on the "fall" class,
Once the model has been trained, it is necessary to implement it Figure 9, 547 hits were obtained, 40 results for the incorrect
in web technologies to show the result to the end user. class and on 13 occasions none of the classes were detected.
• API REST Therefore, the fall class has a 91.17% accuracy rate.
video camera.
To obtain these frames, the VideoCapture() function of the Finally, the same operation is applied taking the total values, it is
OpenCv library is used, which requires as parameters the infor- obtained that, of the 1200 images destined for testing, in 1128 of
mation corresponding to the camera to be used and provides as these the expected result is obtained, while in 49 the opposite
a result each frame of the captured video. class to the expected one is obtained and in 23 occasions no
class is detected in the image. Therefore, the fall detection model
Each frame obtained is predicted with the fall detection model to
obtains 94% accuracy.
analyze whether an accident has occurred.
If a fall is detected, an alarm is automatically triggered with a
duration of 60 seconds that serves to alert nearby people, and 94,00% =
1128
× 100 (5)
employees previously registered in the system are notified via 1200
WhatsApp.
INGENIERÍA Y REGIÓN 5
This provides the exact accuracy with which the trained model
detects fallen persons and differentiates them from those who
are standing.
Table 2. Test results of the fall detection model.
Clas s Right Inc orre c t Not de te c t Total Hit pe rc e nt
fall 547 40 13 600 91,17%
standing 581 9 10 600 96,83%
To tal 1128 49 23 1200 94,00%
Source: Authors
Figure 9. Fall detection test class "fall". A user with the role of family member has access to a single
Source: Authors interface through which he/she can visualize the fall detection
system in real time, Figure 12.
Web platform
A web platform is implemented consisting of several interfaces
that allow the end user to access the functionalities that corre-
spond to him/her depending on his/her role.
Users with the role of administrator or family member can log in
to the platform through an interface designed for this purpose,
Figure 10.
INGENIERÍA Y REGIÓN 6
ministrator can manually activate the alarm so that the victim can
be attended to as soon as possible.
• User management
The user with the role of administrator has some interfaces Fall detection system
through which he/she can manage the users registered in the The main function of the fall detection system is to alert the
system, these can be employee management and family members corresponding people to provide help to the victim as soon as
management, Figure 13. possible, for this purpose two methods of alert are created:
notification by WhatsApp to employees and activation of the
alarm to warn people nearby.
INGENIERÍA Y REGIÓN 7
Conclusions and future work
Acknowledgements
This project was carried out under the supervision of Dr. Ferley
Rojas Medina, with the help of Julian Marino Trujillo Obregon, to
whom we would like to express our deep gratitude in the im-
plementation of the system, to our families for their patience, to
God for providing us with enough tools to carry out the project
and to ourselves for not faltering and completing 100% of the
project.
References
Chaudhari, S. (2022). Vision-Based Human Fall Detection in Smart
Homes. Missouri: State University.
Jalal, A., Nadeem, A., & Bobasu, S. (2019). Human Body Parts
Estimation and Detection for Physical Sports Movements. Inter-
national Conference on Communication, Computing and Digi-
tal Systems (C-CODE). Pakistan.
Figure 18. Screenshot of whatsapp notification. Liu, F., Zhou, F., Zhang, F., & Cao, W. (2019). Vision-Based Fall
Source: Authors
Detection and Alarm System for Older Adults in the Family Envi-
ronment. Intelligent Robotics and Applications. Shanghai.
• Alarm notification Liu, X., Liu, Y., Wang, H., & Li, J. (2019). Real-Time Human Body
Detection Based on YOLOv2 Network. Proceedings of the 11th
When a fall is detected, the system automatically triggers an International Conference on Modelling, Identification and Con-
alarm to alert more people so that the victim can receive assis- trol (ICMIC2019) . China.
tance sooner.
INGENIERÍA Y REGIÓN 8
Nguyen, V. D., Tran, T. M., Nguyen, X. B., & Nguyen, M. Q. (2022). Retrieved from https://blogs.iadb.org/salud/es/residencias-
Fall Detection Using Omnidirectional Camera. Intelligent Tech- para-adultos-mayores/
nologies and Robotics. Singapore. World Health Organization. (2021, April 26). Falls. WHO. Retrieved
Sanders, D. (2019, February 15). ¿Cómo es la vida en las residen- September 19, 2022, from https://www.who.int/news-room/fact-
cias para adultos mayores? Inter-American Development Bank. sheets/detail/falls
INGENIERÍA Y REGIÓN 9