Evaluating the Reliability of CNN Models on Classifying Traffic and Road Signs using LIME

Md. Atiqur Rahman, Ahmed Saad Tanim, Sanjid Islam Chowdhury, Fahim Pranto, G. M. Shahariar, Md. Tanvir Rouf ShawonarXiv 2023

TL;DR

This paper investigates the reliability of four popular Convolutional Neural Network (CNN) models (ResNet-34, VGG-19, DenseNet-121, and Inception V3) for classifying traffic and road signs. By employing the LIME (Local Interpretable Model-Agnostic Explanations) framework, the study not only confirms the high accuracy of these models but also provides crucial insights into why they make specific predictions, highlighting the importance of interpretability for real-world AI applications like autonomous driving.

What Problem Does This Paper Address?

Autonomous vehicles rely heavily on accurately identifying traffic and road signs to navigate safely. While deep learning models, particularly CNNs, have achieved impressive accuracy in this task, their "black box" nature poses a significant challenge. It's often difficult to understand how these complex models arrive at their decisions, making it hard to trust their predictions, especially in critical situations or when encountering unusual scenarios. This lack of interpretability can hinder the deployment and widespread adoption of these AI systems. This paper aims to bridge this gap by evaluating the reliability of state-of-the-art CNNs for traffic sign classification and, crucially, using LIME to understand the underlying reasoning behind their predictions.

Methods

The core of this research involves two main components:

  1. CNN Model Training and Evaluation: The authors fine-tuned four pre-trained CNN models (ResNet-34, VGG-19, DenseNet-121, and Inception V3) on a traffic sign dataset. They then evaluated their classification performance using standard metrics like accuracy, precision, recall, F1-score, ROC AUC, and MCC.
  2. LIME for Model Interpretation: To understand the decision-making process of these CNNs, the researchers applied the LIME framework. LIME works by creating local, interpretable approximations of the black-box model's behavior around specific predictions. For image classification, this means highlighting the image regions (superpixels) that the model considered most important for its classification decision. By analyzing these highlighted regions, the authors could assess whether the models were focusing on relevant features (e.g., the actual sign) or being misled by irrelevant ones.

Datasets

The primary dataset used in this study is the German Traffic Sign Recognition Benchmark (GTSRB). This dataset contains over 51,000 images of traffic signs, categorized into 43 distinct classes. The paper notes that the dataset is imbalanced, with some classes having significantly more examples than others. The authors preprocessed the images by resizing them to 62x62 pixels and split the dataset into training, validation, and testing sets with a 70:10:20 ratio, respectively, using stratification to maintain class distribution.

Key Insights and Ideas

  • High Accuracy, But Why? The study confirms that the tested CNN models achieve exceptionally high accuracy (often above 99%) on the GTSRB dataset. However, the real value lies in understanding how they achieve this.
  • LIME as a Trust Builder: LIME proves to be a powerful tool for demystifying CNN predictions. By visualizing the important image regions, researchers can gain confidence that the models are indeed focusing on the traffic signs themselves, rather than spurious correlations.
  • Model Strengths and Weaknesses Revealed: LIME analysis highlighted subtle differences in how models interpret images. For instance, some models might mark regions more precisely than others, and certain models struggle more with blurry or unclear images, even if their overall accuracy is high.
  • Importance of Relevant Features: The paper emphasizes that for practical applications like autonomous driving, it's not just about getting the right answer, but getting it for the right reasons. LIME helps ensure that model predictions are founded on pertinent image features.

Key Results

  • Excellent Classification Performance: All four pre-trained models (DenseNet-121, Inception V3, ResNet-34, and VGG-19) demonstrated outstanding performance, with F1-scores consistently above 0.99.
  • LIME Visualizations: The paper presents several LIME interpretations for different traffic sign classes. These visualizations show which parts of the image the models focused on. For correctly classified "Priority Road" signs, DenseNet-121 and ResNet-34 were observed to cover the traffic signs perfectly, while Inception V3 and VGG-19 marked them partially.
  • Misclassification Analysis: LIME also helped explain misclassifications. For example, VGG-19 misclassified a "Priority Road" sign likely due to the image being blurry compared to a correctly classified instance. For "Speed Limit 50 kmph," some models showed scattered positive regions and struggled with unclear images.
  • Model Reliability: The study concludes that LIME is crucial for improving the interpretability and dependability of machine learning models for image identification, even when models achieve near-perfect scores.

Limitations and Future Work

  • LIME Stability: The authors acknowledge that LIME is known for its instability, meaning it might produce slightly different explanations for the same input if run multiple times. However, they state that their experiments showed consistent results when re-running LIME on sample images.
  • Dataset Specificity: The study focused on the GTSRB dataset. Future work could explore the effectiveness of these models and LIME on other traffic sign datasets or even different image classification tasks.
  • Expanding Model and Dataset Coverage: The authors suggest extending their work to cover additional CNN models and datasets to provide a broader understanding of their reliability.
  • Optimizing LIME: Refining LIME to offer even more insightful explanations is another avenue for future research.
  • Exploring Pre-processing Techniques: Investigating how different image pre-processing techniques impact model predictions and LIME explanations is also proposed.
  • Developing New Models: The ultimate ambition is to propose new models that not only classify images accurately but also demonstrably rely on the correct features, further enhancing trustworthiness.

Summary updated

Abstract

The objective of this investigation is to evaluate and contrast the effectiveness of four state-of-the-art pre-trained models, ResNet-34, VGG-19, DenseNet-121, and Inception V3, in classifying traffic and road signs with the utilization of the GTSRB public dataset. The study focuses on evaluating the accuracy of these models' predictions as well as their ability to employ appropriate features for image categorization. To gain insights into the strengths and limitations of the model's predictions, the study employs the local interpretable model-agnostic explanations (LIME) framework. The findings of this experiment indicate that LIME is a crucial tool for improving the interpretability and dependability of machine learning models for image identification, regardless of the models achieving an f1 score of 0.99 on classifying traffic and road signs. The conclusion of this study has important ramifications for how these models are used in practice, as it is crucial to ensure that model predictions are founded on the pertinent image features.
BibTeX
@misc{rahman2023evaluating,
  author = {Md. Atiqur Rahman and Ahmed Saad Tanim and Sanjid Islam Chowdhury and Fahim Pranto and G. M. Shahariar and Md. Tanvir Rouf Shawon},
  title = {{Evaluating the Reliability of CNN Models on Classifying Traffic and Road Signs using LIME}},
  year = {2023},
  eprint = {2309.05747},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.05747},
}
Figure