Smart City Traffic Monitoring:YOLOv7 Transfer Learning Approach for Real-Time Vehicle Detection

Zahra Esfandiari Baiat, S. Baydere
{"title":"Smart City Traffic Monitoring:YOLOv7 Transfer Learning Approach for Real-Time Vehicle Detection","authors":"Zahra Esfandiari Baiat, S. Baydere","doi":"10.1109/SmartNets58706.2023.10216009","DOIUrl":null,"url":null,"abstract":"Real-time vehicle detection is a critical component of traffic monitoring, with significant implications for smart city applications. Accurate and efficient detection of vehicles can improve traffic flow and reduce congestion. This paper presents a real-time vehicle detection system based on Deep Learning (DL) techniques, using the YOLOv7 object detection framework. The system was trained on a novel dataset with a diverse range of vehicles, including different sizes, orientations, and lighting conditions, to improve object detection accuracy. To reduce the required training time and computing resources, Transfer learning is utilized to fine-tune two variants of YOLOv7, YOLOv7-x and YOLOv7-tiny. The results of the experiment revealed that the YOLOv7-x achieved a mean Average Precision (mAP) rate of 96.7%, while the YOLOv7-tiny achieved 89.3%. Furthermore, when the models were fed with a video stream, the YOLOv7-tiny achieved 57 Frames Per Second (FPS), whereas the YOLOv7-x achieved 27 FPS. As a result, the YOLOv7-tiny is more suitable for resource-constrained devices, such as those frequently utilized in IoT applications, due to its smaller model size, lower computational requirements, and higher FPS rate with acceptable accuracy. On the other hand, if higher accuracy is the priority, the YOLOv7-x model should be considered. The proposed frameworks help to improve the effectiveness of traffic management systems, leading to more efficient and sustainable transportation in smart cities.","PeriodicalId":301834,"journal":{"name":"2023 International Conference on Smart Applications, Communications and Networking (SmartNets)","volume":"701 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-07-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2023 International Conference on Smart Applications, Communications and Networking (SmartNets)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/SmartNets58706.2023.10216009","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Real-time vehicle detection is a critical component of traffic monitoring, with significant implications for smart city applications. Accurate and efficient detection of vehicles can improve traffic flow and reduce congestion. This paper presents a real-time vehicle detection system based on Deep Learning (DL) techniques, using the YOLOv7 object detection framework. The system was trained on a novel dataset with a diverse range of vehicles, including different sizes, orientations, and lighting conditions, to improve object detection accuracy. To reduce the required training time and computing resources, Transfer learning is utilized to fine-tune two variants of YOLOv7, YOLOv7-x and YOLOv7-tiny. The results of the experiment revealed that the YOLOv7-x achieved a mean Average Precision (mAP) rate of 96.7%, while the YOLOv7-tiny achieved 89.3%. Furthermore, when the models were fed with a video stream, the YOLOv7-tiny achieved 57 Frames Per Second (FPS), whereas the YOLOv7-x achieved 27 FPS. As a result, the YOLOv7-tiny is more suitable for resource-constrained devices, such as those frequently utilized in IoT applications, due to its smaller model size, lower computational requirements, and higher FPS rate with acceptable accuracy. On the other hand, if higher accuracy is the priority, the YOLOv7-x model should be considered. The proposed frameworks help to improve the effectiveness of traffic management systems, leading to more efficient and sustainable transportation in smart cities.
智慧城市交通监控:YOLOv7实时车辆检测迁移学习方法
实时车辆检测是交通监控的关键组成部分,对智慧城市应用具有重要意义。准确高效的车辆检测可以改善交通流量,减少拥堵。本文采用YOLOv7目标检测框架,提出了一种基于深度学习(DL)技术的实时车辆检测系统。该系统在一个新的数据集上进行了训练,该数据集包含各种车辆,包括不同的尺寸、方向和光照条件,以提高目标检测精度。为了减少所需的训练时间和计算资源,我们利用迁移学习对YOLOv7、YOLOv7-x和YOLOv7-tiny这两个变体进行了微调。实验结果表明,YOLOv7-x的平均精度(mAP)率为96.7%,而YOLOv7-tiny的平均精度(mAP)率为89.3%。此外,当模型被视频流馈送时,YOLOv7-tiny达到了57帧每秒(FPS),而YOLOv7-x达到了27帧每秒。因此,YOLOv7-tiny更适合于资源受限的设备,例如在物联网应用中经常使用的设备,因为它具有更小的模型尺寸,更低的计算要求,更高的FPS速率和可接受的精度。另一方面,如果更高的精度是优先考虑的,应该考虑YOLOv7-x模型。拟议的框架有助于提高交通管理系统的有效性,从而在智慧城市中实现更高效和可持续的交通。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信