IDEAS home Printed from https://ideas.repec.org/a/gam/jsusta/v17y2025i24p11199-d1817751.html

Sustainable Road Safety: Predicting Traffic Accident Severity in Portugal Using Machine Learning

Author

Listed:
  • José Cunha

    (Military Academy Research Center (CINAMIL), Portuguese Military Academy, 1169-203 Lisbon, Portugal
    Instituto Superior Técnico, Universidade de Lisboa, 1049-001 Lisbon, Portugal)

  • José Silvestre Silva

    (Military Academy Research Center (CINAMIL), Portuguese Military Academy, 1169-203 Lisbon, Portugal
    LIBPhys-UC, LA-REAL, Universidade de Coimbra, 3030-709 Coimbra, Portugal)

  • Ricardo Ribeiro

    (Instituto Superior Técnico, Universidade de Lisboa, 1049-001 Lisbon, Portugal
    Instituto de Sistemas e Robótica, Universidade de Lisboa, 1049-001 Lisbon, Portugal)

  • Paulo Gomes

    (Military Academy Research Center (CINAMIL), Portuguese Military Academy, 1169-203 Lisbon, Portugal)

Abstract

Road traffic accidents remain a major global challenge, contributing to significant human and economic losses each year. In Portugal, the analysis and prevention of severe accidents are critical for optimizing the allocation of law enforcement resources and improving emergency response strategies. This study aims to develop and evaluate predictive models for accident severity using real-world data collected by the Portuguese Guarda Nacional Republicana (GNR) between 2019 and 2023. Four algorithms, Random Forest, XGBoost, Multilayer Perceptron (MLP), and Deep Neural Networks (DNN), were implemented to capture both linear and non-linear relationships within the dataset. To address the natural class imbalance, class weighting, Synthetic Minority Oversampling Technique (SMOTE), and Random Undersampling were applied. The models were assessed using Recall, F1-score, and G-Mean, with particular emphasis on detecting severe accidents. Results showed that DNNs achieved the best balance between sensitivity and overall performance, especially under SMOTE and class weighting conditions. The findings highlight the potential of classical machine learning and deep learning models to support proactive road safety management and inform resource allocation decisions in high-risk scenarios.This research contributes to sustainability by enabling data-driven road safety management, which reduces human and economic losses associated with traffic accidents and supports more efficient allocation of public resources. By improving the prediction of severe accidents, the study reinforces sustainable development goals related to safe mobility, resilient infrastructure, and effective disaster prevention and response policies.

Suggested Citation

  • José Cunha & José Silvestre Silva & Ricardo Ribeiro & Paulo Gomes, 2025. "Sustainable Road Safety: Predicting Traffic Accident Severity in Portugal Using Machine Learning," Sustainability, MDPI, vol. 17(24), pages 1-26, December.
  • Handle: RePEc:gam:jsusta:v:17:y:2025:i:24:p:11199-:d:1817751
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2071-1050/17/24/11199/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2071-1050/17/24/11199/
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jsusta:v:17:y:2025:i:24:p:11199-:d:1817751. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.