Cargando…

Deep Learning with Attention Mechanisms for Road Weather Detection

There is great interest in automatically detecting road weather and understanding its impacts on the overall safety of the transport network. This can, for example, support road condition-based maintenance or even serve as detection systems that assist safe driving during adverse climate conditions....

Descripción completa

Detalles Bibliográficos
Autores principales: Samo, Madiha, Mafeni Mase, Jimiama Mosima, Figueredo, Grazziela
Formato: Online Artículo Texto
Lenguaje:English
Publicado: MDPI 2023
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9867451/
https://www.ncbi.nlm.nih.gov/pubmed/36679596
http://dx.doi.org/10.3390/s23020798
_version_ 1784876345447153664
author Samo, Madiha
Mafeni Mase, Jimiama Mosima
Figueredo, Grazziela
author_facet Samo, Madiha
Mafeni Mase, Jimiama Mosima
Figueredo, Grazziela
author_sort Samo, Madiha
collection PubMed
description There is great interest in automatically detecting road weather and understanding its impacts on the overall safety of the transport network. This can, for example, support road condition-based maintenance or even serve as detection systems that assist safe driving during adverse climate conditions. In computer vision, previous work has demonstrated the effectiveness of deep learning in predicting weather conditions from outdoor images. However, training deep learning models to accurately predict weather conditions using real-world road-facing images is difficult due to: (1) the simultaneous occurrence of multiple weather conditions; (2) imbalanced occurrence of weather conditions throughout the year; and (3) road idiosyncrasies, such as road layouts, illumination, and road objects, etc. In this paper, we explore the use of a focal loss function to force the learning process to focus on weather instances that are hard to learn with the objective of helping address data imbalances. In addition, we explore the attention mechanism for pixel-based dynamic weight adjustment to handle road idiosyncrasies using state-of-the-art vision transformer models. Experiments with a novel multi-label road weather dataset show that focal loss significantly increases the accuracy of computer vision approaches for imbalanced weather conditions. Furthermore, vision transformers outperform current state-of-the-art convolutional neural networks in predicting weather conditions with a validation accuracy of 92% and an F1-score of 81.22%, which is impressive considering the imbalanced nature of the dataset.
format Online
Article
Text
id pubmed-9867451
institution National Center for Biotechnology Information
language English
publishDate 2023
publisher MDPI
record_format MEDLINE/PubMed
spelling pubmed-98674512023-01-22 Deep Learning with Attention Mechanisms for Road Weather Detection Samo, Madiha Mafeni Mase, Jimiama Mosima Figueredo, Grazziela Sensors (Basel) Article There is great interest in automatically detecting road weather and understanding its impacts on the overall safety of the transport network. This can, for example, support road condition-based maintenance or even serve as detection systems that assist safe driving during adverse climate conditions. In computer vision, previous work has demonstrated the effectiveness of deep learning in predicting weather conditions from outdoor images. However, training deep learning models to accurately predict weather conditions using real-world road-facing images is difficult due to: (1) the simultaneous occurrence of multiple weather conditions; (2) imbalanced occurrence of weather conditions throughout the year; and (3) road idiosyncrasies, such as road layouts, illumination, and road objects, etc. In this paper, we explore the use of a focal loss function to force the learning process to focus on weather instances that are hard to learn with the objective of helping address data imbalances. In addition, we explore the attention mechanism for pixel-based dynamic weight adjustment to handle road idiosyncrasies using state-of-the-art vision transformer models. Experiments with a novel multi-label road weather dataset show that focal loss significantly increases the accuracy of computer vision approaches for imbalanced weather conditions. Furthermore, vision transformers outperform current state-of-the-art convolutional neural networks in predicting weather conditions with a validation accuracy of 92% and an F1-score of 81.22%, which is impressive considering the imbalanced nature of the dataset. MDPI 2023-01-10 /pmc/articles/PMC9867451/ /pubmed/36679596 http://dx.doi.org/10.3390/s23020798 Text en © 2023 by the authors. https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
spellingShingle Article
Samo, Madiha
Mafeni Mase, Jimiama Mosima
Figueredo, Grazziela
Deep Learning with Attention Mechanisms for Road Weather Detection
title Deep Learning with Attention Mechanisms for Road Weather Detection
title_full Deep Learning with Attention Mechanisms for Road Weather Detection
title_fullStr Deep Learning with Attention Mechanisms for Road Weather Detection
title_full_unstemmed Deep Learning with Attention Mechanisms for Road Weather Detection
title_short Deep Learning with Attention Mechanisms for Road Weather Detection
title_sort deep learning with attention mechanisms for road weather detection
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9867451/
https://www.ncbi.nlm.nih.gov/pubmed/36679596
http://dx.doi.org/10.3390/s23020798
work_keys_str_mv AT samomadiha deeplearningwithattentionmechanismsforroadweatherdetection
AT mafenimasejimiamamosima deeplearningwithattentionmechanismsforroadweatherdetection
AT figueredograzziela deeplearningwithattentionmechanismsforroadweatherdetection