Fyp Report Bob 1
Fyp Report Bob 1
COMPUTING
A PROJECT REPORT
Submitted by
BACHELOR OF TECHNOLOGY
in
INFORMATION TECHNOLOGY
DECEMBER 2024
ii
ANNA UNIVERSITY
CHENNAI - 600 025
BONAFIDE CERTIFICATE
COUNTERSIGNED
Dr. SWAMYNATHAN
HEAD OF THE DEPARTMENT
DEPARTMENT OF INFORMATION SCIENCE AND TECHNOLOGY
COLLEGE OF ENGINEERING, GUINDY
ANNA UNIVERSITY
CHENNAI 600025
iii
ABSTRACT
ACKNOWLEDGEMENT
We also thank the faculty member and non teaching staff members
of the Department of Information Science and Technology, Anna University,
Chennai for their valuable support throughout the course of our project work.
TABLE OF CONTENTS
ABSTRACT iii
ACKNOWLEDGEMENT iv
LIST OF FIGURES viii
LIST OF TABLES ix
1 INTRODUCTION 1
1.1 AUTONOMOUS DRIVING 1
1.1.1 Sensor Technology 1
1.1.2 Computer Vision and Artificial Intelligence 2
1.1.3 Edge and Cloud Computing in Autonomous Driving 3
1.2 CHALLENGES IN AUTONOMOUS DRIVING 4
1.2.1 Dynamic Environments 4
1.2.2 Real-Time Processing 4
1.2.3 Task Complexity and Offloading 4
1.2.4 Connectivity Dependence 5
1.2.5 Safety and Regulatory Compliance 5
1.3 MOTIVATION 5
1.3.1 Safety 6
1.3.2 Mobility Solutions 6
1.3.3 Traffic Efficiency 6
1.3.4 Environmental Impact 6
1.4 OBJECTIVES 7
1.5 PROBLEM STATEMENT 7
1.6 PROPOSED SOLUTION 8
1.7 TESTING IN SIMULATION PLATFORMS 9
1.8 ORGANIZATION OF THE REPORT 10
2 LITERATURE SURVEY 11
2.1 SIAMESE NETWORKS FOR DEFECT DETECTION 11
2.1.1 Basic Architecture and Working Principles 11
2.1.2 Twin and Triple Siamese Networks 12
2.2 OPTIMIZATION TECHNIQUES FOR SIAMESE
NETWORKS 13
2.2.1 Parameter Reduction and Feature Enhancement 13
vi
3 SYSTEM DESIGN 18
3.1 SYSTEM ARCHITECTURE 18
3.1.1 Data Acquisition 19
3.1.2 Data Preprocessing 19
3.1.3 Siamese Network Model 20
3.1.4 Training Process 21
3.1.5 Evaluation Method 22
3.1.6 Deployment Strategy 22
3.2 IMPLEMENTATION 23
3.2.1 Dataset Implementation 23
3.2.2 Model Implementation 23
3.2.3 Training Implementation 24
3.2.4 Model Testing and Deployment 25
3.2.5 Real World Application 25
4 SYSTEM DESIGN 27
4.1 SETTING UP THE ENVIRONMENT 27
4.1.1 RSU Deployment in CARLA Simulator 27
4.1.2 Edge Server Configuration 28
4.1.3 Cloud Server Configuration 28
4.1.4 Socket Programming for Communication 29
4.1.5 Data Transmission and Storage 29
4.2 SIGNAL AND SIGN BOARD DETECTION 30
4.3 VEHICLES AND PEDESTRIAN DETECTION 32
4.4 OFFLOADING RL 34
4.5 DECISION AGENT 37
vii
5 IMPLEMENTATION RESULTS 41
5.1 SETTING UP THE ENVIRONMENT MODULE 41
5.2 SIGNAL AND SIGN DETECTION MODULE 43
5.3 VEHICLE AND PEDESTRIAN DETECTION MODULE 47
5.4 OFFLOADING RL MODULE 49
5.5 DECISION AGENT 50
REFERENCES 54
viii
LIST OF FIGURES
LIST OF TABLES
1
CHAPTER 1
INTRODUCTION
1.3 MOTIVATION
1.3.1 Safety
1.4 OBJECTIVES
CHAPTER 2
LITERATURE SURVEY
networks are particularly valuable when dealing with complex defect patterns
that require more nuanced feature comparisons.
samples, these networks can effectively learn the discriminative features that
distinguish quality products from those with defects.
2.5 SUMMARY
CHAPTER 3
SYSTEM DESIGN
3.2 IMPLEMENTATION
Adam optimizer with a low learning rate (0.00005) and weight decay (1e-5)
ensures stable convergence while mitigating overfitting.
of each leather piece, which are then processed by the model. The system
is designed to be user-friendly, allowing quality control personnel to view
detection results on a dashboard without needing technical expertise. When
a defect is detected, the system alerts operators and logs the information for
quality tracking purposes. This integration helps reduce manual inspection time
while maintaining high-quality standards in leather manufacturing.
27
CHAPTER 4
SYSTEM DESIGN
The cloud server was integrated with the edge server using secure
and efficient communication protocols. The Flask framework on the edge
29
server facilitates the transmission of task data to the cloud server, while the
EC2 instance handles these tasks using pre-trained models for detection and
prediction.
For tasks offloaded to the cloud server, the edge server encapsulated
the data and transmitted it to the EC2 instance using secure channels. The
received data was processed and stored in a structured format for further
analysis. A file-based storage approach was initially used on both servers to
enable rapid prototyping, with plans for database integration in later stages.
Input
• Images generated from the CARLA simulator, captured from the virtual
cameras mounted on the vehicles or RSUs.
Assumptions
• Lighting conditions in the simulator are varied but do not include extreme
conditions such as complete darkness or blinding light.
Algorithm
Time Complexity:
• Object Detection: O(m · k), where m is the number of grid cells, and k is
the number of anchor boxes.
Process
Images from the CARLA simulator are processed using the YOLOv8
model. These images are first preprocessed to match the model’s input size.
32
YOLOv8 uses its convolutional neural network to extract features and identifies
objects within the image. Non-maximum suppression (NMS) eliminates
overlapping bounding boxes, ensuring only the best fit is retained. The detected
elements are then classified into predefined categories, such as ”Stop Sign” or
”Traffic Light.” Python programming and libraries like OpenCV and Ultralytics’
YOLOv8 are employed to implement this detection pipeline.
Expected Output
Input
Assumptions
Algorithm
Time Complexity:
Process
Expected Output
4.4 OFFLOADING RL
Input
Assumptions
• Network connectivity between vehicles, RSUs, edge servers, and the cloud
server is reliable and has minimal packet loss.
Algorithm
Time Complexity:
• O(N · A), where N is the number of states and A is the number of actions.
Space Complexity:
Process
Expected Output
Input
Assumptions
• Detection outputs from the YOLOv8 model are accurate and reliable for
decision-making.
Algorithm
Time Complexity:
Space Complexity:
Process
Expected Output
• Safe and efficient navigation of the ego vehicle through the CARLA
environment.
CHAPTER 5
IMPLEMENTATION RESULTS
In this phase of the project, the system has implemented the detection
models using YOLOv8, a state-of-the-art object detection framework known for
its high efficiency and accuracy. The implementation was carried out in the
CARLA simulation environment, which emulates real-world driving scenarios.
Challenges Faced
Figure 5.3 depicts the signal detection process using yolov8 model
in the simulation environment. The system uses real-time image processing
techniques to accurately identify and interpret traffic signals. This functionality
is crucial for enabling autonomous vehicles to make informed navigation
decisions and adhere to traffic rules within dynamic environments.
45
Figure 5.4 demonstrates the detection of a ”60 km/h” speed limit sign
as part of the signboard detection process using the YOLO model. This feature
allows the system to accurately identify regulatory speed limits in real time,
ensuring that autonomous vehicles adapt their speed accordingly to maintain
safe and lawful driving behavior.
46
Figure 5.5 shows the detection of a ”Stop” sign using the YOLO
model. This capability enables autonomous vehicles to recognize and respond
47
Figure 5.6 illustrates the detection of a ”90 km/h” speed limit sign
using the YOLO model. This ensures that autonomous vehicles can identify
and adhere to the prescribed speed limits, promoting safe and efficient driving.
Challenges Faced
Figures 5.10 and 5.11 illustrate the functioning of the decision agent
responsible for managing task execution and agent control. After completing
assigned tasks, the decision agent evaluates the outcomes and dynamically
adjusts the agent’s actions based on real-time conditions, ensuring optimal
performance and efficient resource utilization.
53
CHAPTER 6
[1] Hui Huang, Qiang Ye, and Yitong Zhou. 6g-empowered offloading for
real-time applications in multi-access edge computing. IEEE Transactions
on Network Science and Engineering, 10(3):1311–1323, May-June 2023.
[2] W. Sun, Y. Zhao, B. Guo, L. Xu, W. Ma, and T. Q. Duong. Accelerating
convergence of federated learning in mec with dynamic community. IEEE
Transactions on Mobile Computing, 23(2):1769–1785, Feb 2024.
[3] Jing He, Songtao Guo, Mingyan Li, and Yongdong Zhu. Acefl:
Federated learning accelerating in 6g-enabled mobile edge computing
networks. IEEE Transactions on Network Science and Engineering,
10(3):1200–1214, May-June 2023.
[4] X. Peng, Z. Han, W. Xie, C. Yu, P. Zhu, J. Xiao, and J. Yang. Deep
reinforcement learning for shared offloading strategy in vehicle edge
computing. IEEE Systems Journal, 17(2):2089–2101, June 2023.
[5] W. Wang, Y. Zhang, Q. Liu, T. Wang, and W. Jia. Edge-intelligence-based
computation offloading technology for distributed internet of unmanned
aerial vehicles. IEEE Internet of Things Journal, 11(12):20948–20961,
June 15 2024.
[6] S. Liu, J. Yu, X. Deng, and S. Wan. Fedcpf: An efficient-communication
federated learning approach for vehicular edge computing in 6g
communication networks. IEEE Internet of Things Journal,
11(12):20962–20975, June 15 2024.
[7] J. Liu, J. Ren, Y. Zhang, X. Peng, Y. Zhang, and Y. Yang. Efficient
dependent task offloading for multiple applications in mec-cloud system.
IEEE Transactions on Network Science and Engineering, 11(1):1–14, Jan
2024.
[8] M. K. Hasan, S. Islam, N. Jahan, M. Z. A. Nazri, M. A. Khan, A. I.
Alzahrani, N. Alalwan, and Y. Nam. Federated learning for computational
offloading and resource management of vehicular edge computing in
6g-v2x network. IEEE Transactions on Vehicular Technology, 73(6):1–14,
June 2024.
[9] A. F. Şahin, A. El Saleh, I. Shayea, İ. Yazıcı, and S. A. Saad. Offloading
techniques in mobile edge computing (mec) for future wireless networks.
In 2023 International Conference on Smart Computing and Application
(ICSCA), 2023.
55