Sign inSubmit
computersciencejournal.org is not ours. This journal is published only at thescipub.com/jcs. Report a suspicious emailcomputersciencejournal.org is not ours · Report
ArticleMetrics
Research Article · Open access · Published 20 October 2025

Self-Supervised Contrastive Learning for Steering Angle Prediction in Autonomous Driving Simulations

Maxson Phang1 & Suryadiputra Liawatimena1

Journal of Computer Science, Volume 21, Issue 9, pp. 2081–2087 · doi.org/10.3844/jcssp.2025.2081.2087

2,581 accesses1,271 downloads0 citations (Crossref)Metrics
Cite Check for updates

Abstract

Predicting steering angles is a crucial task in autonomous driving, with end-to-end deep learning being a widely used approach. However, such models often suffer from overfitting to learned trajectories, limiting their generalization to new data. To address this, self-supervised contrastive learning is explored as an alternative, allowing models to learn meaningful representations without labeled data. The primary objective is to enhance model generalization, particularly in highway driving scenarios. This study compares the effectiveness of Triplet loss and NT-Xent loss using different encoder architectures. The results show that Triplet loss significantly improves training stability and generalization, while strong data augmentation further enhances performance. MobileNet outperforms ResNet50 in fine-tuning, achieving an MSE of 137.281, demonstrating the potential of lightweight models in contrastive learning tasks. However, compared to the end-to-end Vision Transformer model proposed by Sonata et al. (2023), which achieves an MSE of 2.991, the proposed method still falls short, highlighting the need for further optimization. A major limitation is dataset imbalance, with a predominance of straight-road samples leading to poor performance on sharp turns. Future work should focus on dataset balancing, leveraging deeper encoder architectures, and incorporating hybrid learning approaches to improve generalization. These findings contribute to the development of self-supervised learning for autonomous driving, balancing computational efficiency with predictive accuracy.

Licence and reuse

Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.

How to reuse this article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite this article

Phang, M. & Liawatimena, S. (2025). Self-Supervised Contrastive Learning for Steering Angle Prediction in Autonomous Driving Simulations. Journal of Computer Science, 21(9), 2081–2087. https://doi.org/10.3844/jcssp.2025.2081.2087

Licence
CC BY 4.0
Issue
Volume 21, Issue 9
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
Self-Supervised Contrastive Learning for Steering Angle Prediction in Autonomous Driving SimulationsJournal of Computer Science · Volume 21, Issue 9 · pp. 2081–2087 · CC BY 4.0Download