All projectsArtificial Intelligence & Deep Learning Research
Deep Neural Networks & NLP in Autonomous Vehicle Systems
Conducted an independent undergraduate research study on deep neural networks, natural language processing and their applications in autonomous driving systems. The project combined a technical literature review with practical YOLOv5s fine-tuning for road-vehicle detection, covering 21 configured object categories and real-time webcam inference. Completed as the first B.Tech NTCC research project, receiving a final grade of 9/10.
Object detection output for autonomous vehicle research
01
Project Background and Motivation
This research project was undertaken as the first formal undergraduate research assignment of the Bachelor of Technology programme in Computer Science and Engineering at Amity University. Conducted between 14 May and 15 July 2024, the work formed part of the mandatory NTCC summer research programme following the second semester.
The topic was selected from a growing interest in artificial intelligence, autonomous technologies and the possibility of developing computer systems capable of interpreting their surroundings and making intelligent decisions. Autonomous vehicles were chosen as the principal application because they represent the practical integration of computer vision, neural networks, sensor systems and automated decision-making.
The main motivation was to develop a fundamental understanding of how artificial intelligence systems operate, rather than simply studying the functionality they provide. Particular emphasis was placed on understanding the structure of neural networks, the mathematical processes involved in learning and the practical requirements for training a computer vision model.
The project was completed independently from home during the summer break, under the academic supervision of Dr. Smriti Sehgal at Amity School of Engineering and Technology.
As the first substantial research work of the degree, the project also introduced the processes involved in academic literature review, technical experimentation, research documentation and scientific evaluation.
02
Research Objectives and Methodology
The central objective of the research was to investigate how Deep Neural Networks (DNNs) and Natural Language Processing (NLP) contribute to perception, decision-making and human–machine interaction within cyber-physical systems, particularly autonomous vehicles.
The study followed a combination of theoretical research and practical experimentation. The theoretical component involved reviewing existing academic literature on neural network architectures, natural language processing, deep learning and autonomous driving technologies.
The research examined several questions, including how neural networks learn, how different deep learning architectures are applied to real-world problems, how NLP models interpret human language and how intelligent driving systems process information from cameras and other sensors.
A second objective was to understand the limitations of current autonomous driving technology, especially when neural networks encounter unfamiliar road conditions, incorrectly classify objects or fail to make appropriate decisions under time constraints.
To connect theory with implementation, a practical computer vision experiment was included. This involved fine-tuning a pretrained YOLOv5 object detection model on a road-vehicle dataset and evaluating its ability to identify different vehicle categories from images and video.
The combined methodology allowed the research to establish a theoretical foundation while also providing first-hand experience with machine learning tools, training procedures and model evaluation.
03
Understanding Deep Neural Networks
The initial research phase focused on understanding how deep neural networks represent information and perform computational tasks.
The study began with the basic structure of artificial neural networks, including input layers, hidden layers, output layers, weighted connections and activation functions. These concepts were examined to understand how numerical information is passed through a network to generate predictions.
Particular attention was given to the Multilayer Perceptron (MLP), one of the foundational feed-forward neural network architectures. A handwritten-digit recognition example was used to explain how image pixels can be represented numerically and processed through interconnected layers.
The theoretical MLP architecture consisted of 784 input neurons corresponding to a 28 × 28-pixel image, two hidden layers containing 16 neurons each and an output layer containing 10 neurons representing digits from zero to nine.
This network was studied as a mathematical and architectural example rather than developed as a separate trained software implementation.
The study also introduced other major neural network architectures, including Convolutional Neural Networks (CNNs), Recurrent Neural Networks (RNNs) and Long Short-Term Memory (LSTM) networks.
These investigations established the conceptual foundation needed to understand more advanced deep learning systems and their applications in computer vision and autonomous driving.
04
Neural Network Mathematics and Learning Algorithms
A significant part of the research was dedicated to understanding the mathematical processes through which neural networks learn from training data.
The study examined how input values are multiplied by connection weights, combined with biases and processed through activation functions to generate the output of an artificial neuron.
Forward propagation was studied as the process of moving numerical information through the network's layers to produce a prediction. Non-linear activation functions, including the Rectified Linear Unit (ReLU), were investigated to understand how neural networks represent relationships beyond simple linear transformations.
The Softmax function was examined as an approach for converting output scores into a probability distribution suitable for multiclass classification.
The research then considered categorical cross-entropy loss, which measures the difference between predicted class probabilities and the expected output labels.
Backpropagation was studied to understand how gradients of the loss function are calculated and propagated through the network. These gradients provide information about how connection weights and biases contribute to prediction errors.
Optimisation methods, particularly gradient descent, were examined as mechanisms for updating model parameters to minimise training loss.
The research also discussed alternative optimisation strategies such as stochastic gradient descent, mini-batch gradient descent, AdaGrad, RMSprop and Adam.
These studies provided an understanding of the relationship between model parameters, prediction errors, loss functions and iterative training, which was subsequently applied conceptually during the practical YOLOv5 experiment.
05
Practical Computer Vision Experiment: YOLOv5
To complement the theoretical research, a practical object detection experiment was developed using the YOLOv5 deep learning framework.
The objective was to fine-tune an existing computer vision model so that it could identify different categories of vehicles in road scenes. This experiment was selected because visual object detection is an important component of autonomous driving perception systems.
YOLOv5 was chosen for its object detection capabilities and availability as an open-source framework. The practical implementation used the YOLOv5s model, beginning with pretrained weights rather than training a new detection architecture entirely from scratch.
The development process involved downloading the Ultralytics YOLOv5 repository, preparing the Python environment, installing the required dependencies and configuring the model for custom data.
The Road Vehicle Images Dataset, obtained from Kaggle, provided annotated vehicle images for model fine-tuning.
The dataset included different categories of road vehicles such as cars, buses, motorcycles, taxis, rickshaws, trucks, vans and other vehicle types.
The final model configuration contained 21 object categories. These categories were defined through the dataset configuration file used during training.
The implementation provided practical experience with adapting a pretrained deep learning model to a specialised object detection task, preparing data for training and performing inference using model-generated predictions.
06
Dataset Preparation and Model Training
Preparing the road-vehicle dataset was an important stage of the practical experiment because the YOLOv5 training pipeline required a specific arrangement of image files and corresponding annotation data.
The selected dataset contained 2,704 training images and 300 validation images. Each image was associated with object annotations indicating the locations and classes of vehicles present within the scene.
The dataset was organised into separate training and validation directories, with image and label files maintained in the structure expected by the YOLO framework.
A YAML configuration file was used to specify the dataset locations, the number of object classes and the names of the configured categories.
The model was fine-tuned using the pretrained YOLOv5s weights. The recorded training configuration used an image resolution of 640 × 640 pixels, a batch size of 16 and a total of 50 epochs.
Training was performed on a personal computer and required approximately 14.05 hours to complete, providing first-hand experience with the computational requirements of deep learning model training.
The recorded model summary contained 157 layers and approximately 7.07 million parameters.
Throughout this process, practical knowledge was developed in configuring model training, preparing datasets, managing dependencies, working with pretrained weights and interpreting training outputs.
This represented the first practical application of neural network concepts studied during the theoretical research phase.
07
Model Evaluation and Experimental Results
Following completion of training, the fine-tuned YOLOv5 model was evaluated using the validation dataset.
The model was assessed through standard object detection metrics, including precision, recall and mean Average Precision (mAP).
The recorded overall precision was approximately 66.5%, indicating the proportion of predicted detections that were correct under the evaluation conditions.
The model achieved approximately 35.1% recall, indicating that a substantial proportion of the annotated objects were not successfully detected.
The recorded mean Average Precision at an Intersection over Union threshold of 0.50 was 39.3%, while mAP@50–95 was 23.5%.
Performance varied considerably across the configured vehicle categories. Common classes such as cars, buses and certain three-wheeled vehicles showed comparatively stronger detection performance, while categories represented by very few validation examples produced weak or inconsistent results.
The validation records also demonstrated the effects of uneven class representation and the limitations of model performance when trained with restricted computational resources and a comparatively small dataset.
These results established that the model was capable of detecting multiple vehicle types, but that additional data preparation, training and evaluation would be required for higher reliability.
The purpose of the experiment was to demonstrate the practical application of fine-tuning and object detection rather than to develop a production-ready autonomous vehicle perception system.
08
Image, Video and Real-Time Webcam Detection
After training and evaluating the model, inference experiments were conducted using different forms of visual input.
The first stage involved running object detection on individual photographs and collections of road images. The model identified vehicle objects and displayed their predicted class labels, confidence scores and bounding boxes.
The experiment was then extended to recorded video input, allowing the fine-tuned model to process consecutive frames and generate detections across moving scenes.
Live webcam testing was also performed using Python and OpenCV. Camera frames were captured and passed to the trained YOLOv5 model, which returned detected objects and their associated prediction information.
The predicted object coordinates were used to draw bounding boxes and display class labels on the visual output.
Testing across photographs, videos and webcam input demonstrated how a single trained object detection model could process multiple types of visual data.
The research report contains examples of vehicle detection in traffic scenes, including images containing numerous vehicles as well as individual road objects.
This practical work demonstrated the perception component commonly used in autonomous driving systems, where incoming camera data is continuously analysed to identify relevant objects.
However, the implementation was limited to vehicle detection and visualisation. It was not connected to a physical vehicle, steering system or autonomous driving decision-making controller.
09
Natural Language Processing and Transformer Research
The second major theoretical component examined Natural Language Processing and its role in enabling intuitive interaction between humans and intelligent computer systems.
The research investigated common NLP tasks, including speech recognition, text generation, machine translation, natural language understanding and named entity recognition.
Particular attention was given to transformer architectures and their use of attention mechanisms for interpreting relationships between different elements within a sequence.
The self-attention mechanism was studied to understand how transformer models assign contextual importance to different words and represent relationships within natural language input.
The research reviewed several prominent transformer models, including BERT, GPT and T5, as well as related models such as RoBERTa and DistilBERT.
These architectures were compared in terms of their intended applications, contextual processing characteristics and computational advantages.
The study also examined how NLP enables vehicle occupants to interact with intelligent automotive systems through voice commands, navigation requests, communication functions and vehicle information systems.
This part of the project was conducted through theoretical research and literature review. No standalone NLP application or language model was trained or deployed.
The findings contributed to an understanding of how language processing can complement computer vision and other sensing technologies within a broader intelligent system.
10
Deep Learning and Multimodal Integration in Autonomous Vehicles
The central application examined by the research was the use of artificial intelligence within autonomous and driver-assistance vehicle systems.
The study investigated how information obtained from cameras, radar, LiDAR and other sensing systems can be processed to support environmental perception and vehicle decision-making.
Deep neural networks were examined as computational tools capable of extracting visual features, recognising objects, estimating environmental conditions and generating predictions relevant to driving behaviour.
NVIDIA's PilotNet architecture was studied as an example of a neural network designed to infer vehicle steering behaviour from camera input.
YOLO object detection architectures were examined as examples of perception systems that can identify vehicles and other objects within a road scene.
The research also explored the role of multimodal integration, in which data from multiple sensing sources and human input channels can contribute to a vehicle's understanding of its surroundings.
Natural language processing was considered an additional interaction layer, allowing users to communicate requests through spoken language rather than relying exclusively on conventional physical controls.
The study reviewed the six SAE levels of driving automation, from Level 0 through Level 5, to understand differences in system capabilities and human driving responsibilities.
The resulting research established a conceptual understanding of how intelligent perception, language interpretation, decision-making and vehicle control may be integrated within autonomous driving systems.
This investigation was literature-based; the project did not include construction of an autonomous vehicle or implementation of a complete driving-control system.
11
Research Challenges, Technical Learning and Limitations
As the first substantial research project undertaken during the B.Tech programme, one of the primary challenges was gaining familiarity with the complete research and software development process.
The initial stages required learning how to identify relevant technical literature, understand unfamiliar machine learning concepts and organise the collected information into a structured academic report.
Neural network mathematics introduced additional challenges, particularly understanding how weighted connections, activation functions, loss calculations, gradients and backpropagation contribute to model training.
The practical YOLOv5 experiment required learning how to configure a Python environment, install machine learning libraries, organise training datasets, specify model configuration files and execute the model-training pipeline.
Training on a personal computer also highlighted the computational demands associated with deep learning. Completing the 50-epoch experiment required approximately 14 hours.
Model evaluation revealed additional limitations, including inconsistent detection results and reduced performance for classes with limited training or validation representation.
The literature review also identified broader challenges associated with autonomous driving, including unreliable perception under adverse weather or lighting conditions, incorrect object classification, unexpected environmental situations and safety risks associated with automated decisions.
These findings reinforced the importance of extensive testing and reliable evaluation before deploying AI systems in safety-critical environments.
The project provided an early understanding that successful machine learning development involves not only implementing an algorithm, but also preparing appropriate data, validating results and recognising the limitations of the resulting system.
12
Research Findings, Final Outcome and Academic Achievement
The research was successfully completed on 15 July 2024, resulting in a 47-page NTCC term paper submitted to Amity University.
The completed report covered neural network fundamentals, mathematical learning principles, NLP and transformer architectures, autonomous vehicle technologies, multimodal interaction, practical YOLOv5 implementation and the challenges associated with intelligent driving systems.
The practical experiment demonstrated the ability to fine-tune a pretrained object detection model and perform inference on photographs, recorded video and real-time webcam input.
Although the model achieved moderate validation performance and required further improvement for more demanding applications, the experiment successfully fulfilled its purpose of demonstrating how deep learning concepts could be implemented and evaluated in practice.
The research also identified the importance of perception reliability, robustness to environmental variation and appropriate human oversight in developing trustworthy autonomous systems.
The project received a final university assessment grade of 9 out of 10.
Beyond the academic result, the most significant outcome was the acquisition of foundational technical and research skills, including Python programming for machine learning, dataset management, deep learning model training, experimental evaluation, technical documentation and literature-based analysis.
The knowledge gained through this first research experience subsequently provided a foundation for more advanced work in artificial intelligence, cybersecurity, computer vision, robotics and autonomous platforms.
As the starting point of an ongoing engineering and research journey, the project represents the transition from introductory computer science coursework to independently investigating, implementing and evaluating intelligent computational systems.