Just Published: Bridging the Sim-to-Real Gap in Safety-Critical Multi-Task Traffic Perception
A High-Fidelity CARLAโSUMO Digital Twin Approach
๐
Published Online: 9 November 2026
๐ Journal: Computer Modeling in Engineering & Sciences (CMES)
๐ Publisher: Tech Science Press
๐ DOI: 10.32604/cmes.2026.091563
Table Of Content
- A High-Fidelity CARLAโSUMO Digital Twin Approach
- โBridging the Sim-to-Real Gap in Safety-Critical Multi-Task Traffic Perception: A High-Fidelity CARLA-SUMO Digital Twin Approachโ
- Authors
- 1. MacroโMicro Digital Twin Integration
- 2. Safety-Critical Edge-Case Generation
- 3. Real-Time Multi-Task AI Perception
- 4. Rigorous Sim-to-Real Evaluation
- 5. Statistical and Robustness Validation
- EVA02 Vehicle Color Recognition
- Traffic Object Detection
- Safety-Critical Crash Detection
- Looking Forward
- Prof. Mostafa A. Elhosseini
I am delighted to share the publication of our new research article:
โBridging the Sim-to-Real Gap in Safety-Critical Multi-Task Traffic Perception: A High-Fidelity CARLA-SUMO Digital Twin Approachโ
The paper has been published online in Computer Modeling in Engineering & Sciences (CMES) and presents a Digital Twin framework designed to improve the testing and validation of AI-based perception systems for autonomous driving and intelligent transportation.
Authors
Abdullah Alfahaid, Hossam Magdy Balaha, Abdulqader M. Almars, Mohamed Shehata, Mahmoud Badawy, and Mostafa A. Elhosseini
I am pleased to serve as one of the corresponding authors of this collaborative work.
About the Study
One of the major challenges in autonomous driving research is that the most dangerous situations are also among the most difficult to collect in real-world datasets.
Multi-vehicle crashes, extreme weather, severe visual degradation, unusual traffic interactions, and other safety-critical edge cases occur relatively rarely. Yet autonomous systems must be able to perceive and respond reliably when these situations do occur.
Our study addresses this challenge by developing a MacroโMicro Digital Twin framework that combines two complementary simulation environments:
SUMO provides realistic large-scale traffic demand, routing, and city-wide traffic behavior, while CARLA provides high-fidelity vehicle physics, three-dimensional environments, sensors, and visual rendering.
A synchronized co-simulation bridge connects the two environments, enabling controlled injection of rare events such as crashes and severe environmental conditions while maintaining realistic traffic behavior.
What Is New in This Work?
The proposed framework goes beyond using CARLA or SUMO independently.
1. MacroโMicro Digital Twin Integration
The framework couples the macroscopic traffic capabilities of SUMO with the microscopic physics and sensor-rendering capabilities of CARLA.
This allows realistic city-scale traffic conditions to coexist with high-fidelity perception experiments.
2. Safety-Critical Edge-Case Generation
Rare scenarios such as multi-vehicle collisions and extreme weather conditions can be deliberately introduced into the Digital Twin rather than waiting for sufficient examples to occur naturally in real-world datasets.
3. Real-Time Multi-Task AI Perception
An asynchronous multi-threaded perception pipeline simultaneously supports:
Traffic object detection ยท Crash detection ยท Fine-grained vehicle color recognition
The framework integrates YOLOv26 for detection tasks with the EVA02 Vision Transformer for fine-grained vehicle recognition.
4. Rigorous Sim-to-Real Evaluation
Models are first evaluated on real-world datasets and then subjected to controlled synthetic perturbations inside the Digital Twin.
This provides a systematic way to investigate the sim-to-real gap before an AI perception system is deployed in real traffic environments.
5. Statistical and Robustness Validation
The evaluation includes repeated independent trials, corruption testing, ROC and PrecisionโRecall analysis, confidence intervals, and mean Corruption Error assessment to provide stronger evidence of model robustness.
Key Results
The experimental findings demonstrate strong performance across the different components of the framework.
EVA02 Vehicle Color Recognition
The EVA02 Vision Transformer achieved 99.68% mean accuracy on the real-world VCoR dataset across 30 independent trials.
It also achieved:
Balanced Accuracy: 98.62%
Recall: 97.41%
F1-score: 97.43%
Specificity: 99.83%
The model maintained strong robustness under synthetic perturbations, with a custom mCE-like score of 0.039, while retaining approximately 35 FPS inference throughput for cropped vehicle patches.
Traffic Object Detection
Across the evaluated YOLOv26 variants, YOLOv26l provided a strong balance between detection accuracy and computational performance.
It achieved:
mAP50: 0.7973
Recall: 0.7874
Precision: 0.8395
Meanwhile, YOLOv26m achieved the highest reported precision of 0.8593 for the traffic-detection benchmark.
Safety-Critical Crash Detection
The framework was also evaluated for vehicle-crash detection.
YOLOv26x achieved:
mAP50: 0.9740
Recall: 0.9780
while YOLOv26l achieved:
Precision: 0.9881
mAP50โ95: 0.6987
These results demonstrate the potential of the proposed perception pipeline for safety-critical intelligent transportation applications.
Real-Time Performance
Beyond prediction accuracy, real-time operation is essential for autonomous driving.
The complete perception framework achieved an end-to-end latency of 92.5 ms, consisting of a deterministic 50 ms sensor-capture interval and approximately 42.5 ms of asynchronous processing latency.
This asynchronous architecture allows perception inference to proceed without unnecessarily slowing the Digital Twin simulation.
Stronger Dataset and Validation Design
Another important aspect of the work is the attention given to avoiding data leakage and improving generalization.
The study constructed a merged traffic dataset from several public benchmarks, with more than 15,000 annotated images before task-specific filtering.
A perceptual-hashing deduplication procedure identified and removed 1,247 near-duplicate frames, and the vehicle-color experiments used a strict vehicle-disjoint train/test split, ensuring that individual vehicle identities did not appear simultaneously in training and testing data.
These steps strengthen confidence that the reported performance reflects model generalization rather than memorization.
Why This Research Matters
Testing autonomous-driving perception systems directly in the real world is expensive, difficult, and potentially dangerousโespecially when researchers need to investigate crashes, severe weather, occlusion, and other uncommon scenarios.
Digital Twins provide a controlled alternative.
By combining realistic traffic behavior, high-fidelity sensor simulation, AI perception, automatic annotation, and reproducible safety-critical scenario generation, the proposed framework creates an environment in which perception systems can be systematically stress-tested before real-world deployment.
The broader goal is not simply to achieve higher AI accuracy, but to develop safer, more robust, and more trustworthy intelligent transportation systems.
From Simulation Toward Real-World Deployment
The paper contributes to an increasingly important direction in intelligent transportation research:
Digital Twins + Artificial Intelligence + Autonomous Driving + Real-Time Perception
Rather than treating simulation merely as a source of synthetic images, our framework uses the Digital Twin as an integrated Model-in-the-Loop validation environment where traffic dynamics, environmental conditions, sensor behavior, AI inference, and safety-critical events interact in real time.
This creates an important bridge between laboratory AI experiments and eventual real-world deployment.
Publication Information
Title: Bridging the Sim-to-Real Gap in Safety-Critical Multi-Task Traffic Perception: A High-Fidelity CARLA-SUMO Digital Twin Approach
Authors: Abdullah Alfahaid, Hossam Magdy Balaha, Abdulqader M. Almars, Mohamed Shehata, Mahmoud Badawy, Mostafa A. Elhosseini
Journal: Computer Modeling in Engineering & Sciences (CMES)
Publisher: Tech Science Press
Published Online: 9 November 2026
DOI: 10.32604/cmes.2026.091563
Keywords: Digital Twin; Multi-Task Perception; Sim-to-Real Gap; Intelligent Transportation Systems
The article is published as Open Access under the Creative Commons Attribution 4.0 International License (CC BY 4.0).
Read the Full Paper
๐ Read the Published Article โ
๐ Download the Full Paper โ PDF
I warmly invite researchers working in Digital Twins, autonomous driving, computer vision, intelligent transportation systems, simulation, and AI-based perception to read the paper and share their thoughts.
Acknowledgment
My sincere thanks and appreciation to my co-authors:
Abdullah Alfahaid, Hossam Magdy Balaha, Abdulqader M. Almars, Mohamed Shehata, and Mahmoud Badawy
for their valuable contributions, collaboration, discussions, experiments, and effort throughout this research.
Research of this nature is inherently multidisciplinary, bringing together Artificial Intelligence, computer vision, simulation, transportation engineering, Digital Twins, and intelligent systems.
I am grateful to the entire team for making this work possible.
I also extend my appreciation to the editors and reviewers of Computer Modeling in Engineering & Sciences (CMES) and to Tech Science Press for their efforts throughout the peer-review and publication process.
Looking Forward
This publication reinforces one of the research directions I am particularly interested in: using Artificial Intelligence and Digital Twin technologies to develop safer, smarter, and more adaptive engineering systems.
There is still much to explore in sim-to-real transfer, multimodal perception, autonomous systems, explainable AI, edge deployment, and safety-critical validation.
The research journey continues.
Prof. Mostafa A. Elhosseini
Professor of Smart Systems Engineering
IEEE Senior Member
#ProfElhosseiniSmartSysEng

No Comment! Be the first one.