{"id":{"repo_id":"unitec","oai_identifier":"oai:null:10652/6800"},"canonical_url":"https://search.ndltd.org/etd/unitec/oai:null:10652/6800","repository":{"repo_id":"unitec","name":"Unitec","base_url":"https://www.researchbank.ac.nz/server/oai/request"},"display":{"title":"Optimising YOLO and ByteTrack for robust vehicle counting and classification in adverse weather: A computer-vision-based traffic monitoring study using New Zealand data","abstract":"RESEARCH QUESTIONS • How computer vision and machine learning techniques can be used to develop a robust system that can collect traffic data? • How will it perform in a real-time scenario? • How well will this method perform in rain and fog where the visibility is low and in heavily congested traffic? • Can we capture a New Zealand Dataset representing all weather and traffic conditions? • Is it going to be challenging to prepare a ground truth from the newly captured video data? ABSTRACT Traffic surveillance is critical in modern transportation management systems. It facilitates efficient traffic flow, ensures road safety, and enables informed decision-making. A significant part of traffic surveillance is collecting accurate data on traffic volume and vehicle class. This facilitates adequate and confident decision-making when it comes to future planning. Conventional traffic volume and class data collection methods, such as loop sensors and pneumatic tubes, have been extensively utilised over an extended period. However, they are less reliable in congested traffic situations as they mostly rely on the length of the vehicle to determine the class of the vehicle. They are also expensive to install or maintain and disrupt traffic in the process. On the other hand, computer vision and deep learning-based approaches have gained significant popularity in recent years and have already been successfully applied in various traffic-related operations. These methods can collect in-depth traffic data from multiple lanes and directions with just one camera, reducing costs significantly while improving data quality. Computer-vision-based traffic monitoring systems are good at collecting traffic vol ume and class data in general. However, there is room for improvement in extreme weather conditions like heavy rain and heavily congested traffic like stop-and-go sit uations and in classifying complex vehicles like long freight trucks and vehicles with trailers. A computer vision-based traffic monitoring system capable of surpassing tra ditional methods in terms of accuracy and reliability, particularly for measuring traffic volume and class data under challenging weather and traffic conditions, remains an area of ongoing research and development. This study thoroughly investigates different computer vision models for traffic count and vehicle classification. It proposes a new method to improve the accuracy and detection speed in various adverse weather, lighting, and traffic congestion condi tions aimed at a reliable live monitoring system. This thesis also collects video footage of unique traffic and weather conditions from the New Zealand State Highway to eval uate the proposed method. A total of thirty-five videos covering a total length of over one hour of footage include 8 unique traffic and weather conditions and 7343 vehicles. With these video data, different sizes or sub-versions of You Only Look Once or YOLO (versions 8, 9, 10, and 11) have been thoroughly evaluated against Detection Trans former (DETR), and Faster Region Convolutional Neural Network (Faster-RCNN). A YOLOv10l and a ByteTrack model have been optimised to perform best on both accuracy and detection speed, and the final method is proposed with the optimised version of YOLOv10l and ByteTrack. Out of the box, YOLO and OpenCV-based models gave very inconsistent results where the accuracy fluctuates from 22.19% undercount to 258.97% overcount of the real vehicle count. In this study, multiple weaknesses in the Object-Detection Model and Tracker Model were identified. The proposed method resolved these issues using an optimised YOLOv10l and an optimised ByteTrack model. Overall, it achieved 98.01% accuracy on the total vehicle count, 97.32% on vehicle classification, and 97.67% on accurate lane detection with 17.84 frames per second which is a 32.13% improvement in counting accuracy and 12.64 frames per second faster compared to the out-of the-box YOLO and Open-CV based method. Compared to other versions of YOLO the proposed method outperforms version 8, 9, and 11 by 1.29%, 1.64%, and 0.63% respectively in overall accuracy while maintaining negligible difference in processing time. When it comes to DETR and Faster-RCNN, the proposed method was signif icant faster in processing time and significantly more accurate that Faster-RCNN. It achieved 1.09% higher accuracy with 17.16 FPS faster speed over DETR, and 24.31% higher accuracy with 17.36 FPS faster speed over Faster-RCNN.","abstract_html":"RESEARCH QUESTIONS • How computer vision and machine learning techniques can be used to develop a robust system that can collect traffic data? • How will it perform in a real-time scenario? • How well will this method perform in rain and fog where the visibility is low and in heavily congested traffic? • Can we capture a New Zealand Dataset representing all weather and traffic conditions? • Is it going to be challenging to prepare a ground truth from the newly captured video data? ABSTRACT Traffic surveillance is critical in modern transportation management systems. It facilitates efficient traffic flow, ensures road safety, and enables informed decision-making. A significant part of traffic surveillance is collecting accurate data on traffic volume and vehicle class. This facilitates adequate and confident decision-making when it comes to future planning. Conventional traffic volume and class data collection methods, such as loop sensors and pneumatic tubes, have been extensively utilised over an extended period. However, they are less reliable in congested traffic situations as they mostly rely on the length of the vehicle to determine the class of the vehicle. They are also expensive to install or maintain and disrupt traffic in the process. On the other hand, computer vision and deep learning-based approaches have gained significant popularity in recent years and have already been successfully applied in various traffic-related operations. These methods can collect in-depth traffic data from multiple lanes and directions with just one camera, reducing costs significantly while improving data quality. Computer-vision-based traffic monitoring systems are good at collecting traffic vol ume and class data in general. However, there is room for improvement in extreme weather conditions like heavy rain and heavily congested traffic like stop-and-go sit uations and in classifying complex vehicles like long freight trucks and vehicles with trailers. A computer vision-based traffic monitoring system capable of surpassing tra ditional methods in terms of accuracy and reliability, particularly for measuring traffic volume and class data under challenging weather and traffic conditions, remains an area of ongoing research and development. This study thoroughly investigates different computer vision models for traffic count and vehicle classification. It proposes a new method to improve the accuracy and detection speed in various adverse weather, lighting, and traffic congestion condi tions aimed at a reliable live monitoring system. This thesis also collects video footage of unique traffic and weather conditions from the New Zealand State Highway to eval uate the proposed method. A total of thirty-five videos covering a total length of over one hour of footage include 8 unique traffic and weather conditions and 7343 vehicles. With these video data, different sizes or sub-versions of You Only Look Once or YOLO (versions 8, 9, 10, and 11) have been thoroughly evaluated against Detection Trans former (DETR), and Faster Region Convolutional Neural Network (Faster-RCNN). A YOLOv10l and a ByteTrack model have been optimised to perform best on both accuracy and detection speed, and the final method is proposed with the optimised version of YOLOv10l and ByteTrack. Out of the box, YOLO and OpenCV-based models gave very inconsistent results where the accuracy fluctuates from 22.19% undercount to 258.97% overcount of the real vehicle count. In this study, multiple weaknesses in the Object-Detection Model and Tracker Model were identified. The proposed method resolved these issues using an optimised YOLOv10l and an optimised ByteTrack model. Overall, it achieved 98.01% accuracy on the total vehicle count, 97.32% on vehicle classification, and 97.67% on accurate lane detection with 17.84 frames per second which is a 32.13% improvement in counting accuracy and 12.64 frames per second faster compared to the out-of the-box YOLO and Open-CV based method. Compared to other versions of YOLO the proposed method outperforms version 8, 9, and 11 by 1.29%, 1.64%, and 0.63% respectively in overall accuracy while maintaining negligible difference in processing time. When it comes to DETR and Faster-RCNN, the proposed method was signif icant faster in processing time and significantly more accurate that Faster-RCNN. It achieved 1.09% higher accuracy with 17.16 FPS faster speed over DETR, and 24.31% higher accuracy with 17.36 FPS faster speed over Faster-RCNN.","abstract_has_math":false,"creators":["Biswas, Matthew"],"institution":"Unitec, Te Pūkenga – New Zealand Institute of Skills and Technology","degree_name":"Master of Applied Technologies (Computing)","degree_level":"Masters","degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":["Sharifzadeh, Hamid","Keivanmarz, Ali"],"committee_chairs":[],"committee_members":[],"year":2025,"date_issued":"2025","date_published":"2025","updated_at":"2026-11-26T14:13:46Z","subjects":["New Zealand","vehicle detection","traffic flows","computer vision","real-time data processing","machine learning"],"languages":["en"],"rights":["All rights reserved","Author"],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["Biswas, M. (2025). Optimising YOLO and ByteTrack for robust vehicle counting and classification in adverse weather: A computer-vision-based traffic monitoring study using New Zealand data (Unpublished document submitted in partial fulfilment of the requirements for the degree of Master of Applied Technologies (Computing)). Unitec, Te Pūkenga - New Zealand Institute of Skills and Technology https://hdl.handle.net/10652/6800"],"render_values":[{"text":"Biswas, M. (2025). Optimising YOLO and ByteTrack for robust vehicle counting and classification in adverse weather: A computer-vision-based traffic monitoring study using New Zealand data (Unpublished document submitted in partial fulfilment of the requirements for the degree of Master of Applied Technologies (Computing)). Unitec, Te Pūkenga - New Zealand Institute of Skills and Technology https://hdl.handle.net/10652/6800","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10652/6800","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/10652/6800","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Aunitec%3Aoai%3Anull%3A10652%2F6800","prefix":"oai_dc"},"source_record":{"url":"https://www.researchbank.ac.nz/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Anull%3A10652%2F6800","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Sharifzadeh, Hamid","Keivanmarz, Ali"]},{"key":"dc:creator","label":"Author","values":["Biswas, Matthew"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-05-21T02:06:28Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2025-05-21T02:06:28Z"]},{"key":"dc:date.issued","label":"Date","values":["2025"]},{"key":"dc:type","label":"Dc Type","values":["Masters Thesis"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Masters"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Applied Technologies (Computing)"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["Unitec, Te Pūkenga – New Zealand Institute of Skills and Technology"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["New Zealand","vehicle detection","traffic flows","computer vision","real-time data processing","machine learning"]},{"key":"dc:subject.discipline","label":"Dc Subject Discipline","values":["Applied Technologies"]},{"key":"dc:subject.marsden","label":"Dc Subject Marsden","values":["ANZSRC Fields of Research 2020::40 Engineering::4005 Civil engineering::400512 Transport engineering","ANZSRC Fields of Research 2020::46 Information and computing sciences::4603 Computer vision and multimedia computation::460308 Pattern recognition","ANZSRC Fields of Research 2020::46 Information and computing sciences::4603 Computer vision and multimedia computation::460304 Computer vision","ANZSRC Fields of Research 2020::46 Information and computing sciences::4611 Machine learning"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["All rights reserved"]},{"key":"dc:rights.holder","label":"Dc Rights Holder","values":["Author"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["Biswas, M. (2025). Optimising YOLO and ByteTrack for robust vehicle counting and classification in adverse weather: A computer-vision-based traffic monitoring study using New Zealand data (Unpublished document submitted in partial fulfilment of the requirements for the degree of Master of Applied Technologies (Computing)). Unitec, Te Pūkenga - New Zealand Institute of Skills and Technology https://hdl.handle.net/10652/6800"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/10652/6800"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["RESEARCH QUESTIONS • How computer vision and machine learning techniques can be used to develop a robust system that can collect traffic data? • How will it perform in a real-time scenario? • How well will this method perform in rain and fog where the visibility is low and in heavily congested traffic? • Can we capture a New Zealand Dataset representing all weather and traffic conditions? • Is it going to be challenging to prepare a ground truth from the newly captured video data? ABSTRACT Traffic surveillance is critical in modern transportation management systems. It facilitates efficient traffic flow, ensures road safety, and enables informed decision-making. A significant part of traffic surveillance is collecting accurate data on traffic volume and vehicle class. This facilitates adequate and confident decision-making when it comes to future planning. Conventional traffic volume and class data collection methods, such as loop sensors and pneumatic tubes, have been extensively utilised over an extended period. However, they are less reliable in congested traffic situations as they mostly rely on the length of the vehicle to determine the class of the vehicle. They are also expensive to install or maintain and disrupt traffic in the process. On the other hand, computer vision and deep learning-based approaches have gained significant popularity in recent years and have already been successfully applied in various traffic-related operations. These methods can collect in-depth traffic data from multiple lanes and directions with just one camera, reducing costs significantly while improving data quality. Computer-vision-based traffic monitoring systems are good at collecting traffic vol ume and class data in general. However, there is room for improvement in extreme weather conditions like heavy rain and heavily congested traffic like stop-and-go sit uations and in classifying complex vehicles like long freight trucks and vehicles with trailers. A computer vision-based traffic monitoring system capable of surpassing tra ditional methods in terms of accuracy and reliability, particularly for measuring traffic volume and class data under challenging weather and traffic conditions, remains an area of ongoing research and development. This study thoroughly investigates different computer vision models for traffic count and vehicle classification. It proposes a new method to improve the accuracy and detection speed in various adverse weather, lighting, and traffic congestion condi tions aimed at a reliable live monitoring system. This thesis also collects video footage of unique traffic and weather conditions from the New Zealand State Highway to eval uate the proposed method. A total of thirty-five videos covering a total length of over one hour of footage include 8 unique traffic and weather conditions and 7343 vehicles. With these video data, different sizes or sub-versions of You Only Look Once or YOLO (versions 8, 9, 10, and 11) have been thoroughly evaluated against Detection Trans former (DETR), and Faster Region Convolutional Neural Network (Faster-RCNN). A YOLOv10l and a ByteTrack model have been optimised to perform best on both accuracy and detection speed, and the final method is proposed with the optimised version of YOLOv10l and ByteTrack. Out of the box, YOLO and OpenCV-based models gave very inconsistent results where the accuracy fluctuates from 22.19% undercount to 258.97% overcount of the real vehicle count. In this study, multiple weaknesses in the Object-Detection Model and Tracker Model were identified. The proposed method resolved these issues using an optimised YOLOv10l and an optimised ByteTrack model. Overall, it achieved 98.01% accuracy on the total vehicle count, 97.32% on vehicle classification, and 97.67% on accurate lane detection with 17.84 frames per second which is a 32.13% improvement in counting accuracy and 12.64 frames per second faster compared to the out-of the-box YOLO and Open-CV based method. Compared to other versions of YOLO the proposed method outperforms version 8, 9, and 11 by 1.29%, 1.64%, and 0.63% respectively in overall accuracy while maintaining negligible difference in processing time. When it comes to DETR and Faster-RCNN, the proposed method was signif icant faster in processing time and significantly more accurate that Faster-RCNN. It achieved 1.09% higher accuracy with 17.16 FPS faster speed over DETR, and 24.31% higher accuracy with 17.36 FPS faster speed over Faster-RCNN."]},{"key":"dc:format.extent","label":"Dc Format Extent","values":["179"]},{"key":"dc:title","label":"Title","values":["Optimising YOLO and ByteTrack for robust vehicle counting and classification in adverse weather: A computer-vision-based traffic monitoring study using New Zealand data"]},{"key":"local:contributor.affiliation","label":"Local Contributor Affiliation","values":["Unitec, Te Pūkenga"]}]}],"canonical_facts":{"dc:contributor.advisor":["Sharifzadeh, Hamid","Keivanmarz, Ali"],"dc:creator":["Biswas, Matthew"],"dc:date.accessioned":["2025-05-21T02:06:28Z"],"dc:date.available":["2025-05-21T02:06:28Z"],"dc:date.issued":["2025"],"dc:description.abstract":["RESEARCH QUESTIONS • How computer vision and machine learning techniques can be used to develop a robust system that can collect traffic data? • How will it perform in a real-time scenario? • How well will this method perform in rain and fog where the visibility is low and in heavily congested traffic? • Can we capture a New Zealand Dataset representing all weather and traffic conditions? • Is it going to be challenging to prepare a ground truth from the newly captured video data? ABSTRACT Traffic surveillance is critical in modern transportation management systems. It facilitates efficient traffic flow, ensures road safety, and enables informed decision-making. A significant part of traffic surveillance is collecting accurate data on traffic volume and vehicle class. This facilitates adequate and confident decision-making when it comes to future planning. Conventional traffic volume and class data collection methods, such as loop sensors and pneumatic tubes, have been extensively utilised over an extended period. However, they are less reliable in congested traffic situations as they mostly rely on the length of the vehicle to determine the class of the vehicle. They are also expensive to install or maintain and disrupt traffic in the process. On the other hand, computer vision and deep learning-based approaches have gained significant popularity in recent years and have already been successfully applied in various traffic-related operations. These methods can collect in-depth traffic data from multiple lanes and directions with just one camera, reducing costs significantly while improving data quality. Computer-vision-based traffic monitoring systems are good at collecting traffic vol ume and class data in general. However, there is room for improvement in extreme weather conditions like heavy rain and heavily congested traffic like stop-and-go sit uations and in classifying complex vehicles like long freight trucks and vehicles with trailers. A computer vision-based traffic monitoring system capable of surpassing tra ditional methods in terms of accuracy and reliability, particularly for measuring traffic volume and class data under challenging weather and traffic conditions, remains an area of ongoing research and development. This study thoroughly investigates different computer vision models for traffic count and vehicle classification. It proposes a new method to improve the accuracy and detection speed in various adverse weather, lighting, and traffic congestion condi tions aimed at a reliable live monitoring system. This thesis also collects video footage of unique traffic and weather conditions from the New Zealand State Highway to eval uate the proposed method. A total of thirty-five videos covering a total length of over one hour of footage include 8 unique traffic and weather conditions and 7343 vehicles. With these video data, different sizes or sub-versions of You Only Look Once or YOLO (versions 8, 9, 10, and 11) have been thoroughly evaluated against Detection Trans former (DETR), and Faster Region Convolutional Neural Network (Faster-RCNN). A YOLOv10l and a ByteTrack model have been optimised to perform best on both accuracy and detection speed, and the final method is proposed with the optimised version of YOLOv10l and ByteTrack. Out of the box, YOLO and OpenCV-based models gave very inconsistent results where the accuracy fluctuates from 22.19% undercount to 258.97% overcount of the real vehicle count. In this study, multiple weaknesses in the Object-Detection Model and Tracker Model were identified. The proposed method resolved these issues using an optimised YOLOv10l and an optimised ByteTrack model. Overall, it achieved 98.01% accuracy on the total vehicle count, 97.32% on vehicle classification, and 97.67% on accurate lane detection with 17.84 frames per second which is a 32.13% improvement in counting accuracy and 12.64 frames per second faster compared to the out-of the-box YOLO and Open-CV based method. Compared to other versions of YOLO the proposed method outperforms version 8, 9, and 11 by 1.29%, 1.64%, and 0.63% respectively in overall accuracy while maintaining negligible difference in processing time. When it comes to DETR and Faster-RCNN, the proposed method was signif icant faster in processing time and significantly more accurate that Faster-RCNN. It achieved 1.09% higher accuracy with 17.16 FPS faster speed over DETR, and 24.31% higher accuracy with 17.36 FPS faster speed over Faster-RCNN."],"dc:format.extent":["179"],"dc:identifier.citation":["Biswas, M. (2025). Optimising YOLO and ByteTrack for robust vehicle counting and classification in adverse weather: A computer-vision-based traffic monitoring study using New Zealand data (Unpublished document submitted in partial fulfilment of the requirements for the degree of Master of Applied Technologies (Computing)). Unitec, Te Pūkenga - New Zealand Institute of Skills and Technology https://hdl.handle.net/10652/6800"],"dc:identifier.uri":["https://hdl.handle.net/10652/6800"],"dc:language.iso":["en"],"dc:rights":["All rights reserved"],"dc:rights.holder":["Author"],"dc:subject":["New Zealand","vehicle detection","traffic flows","computer vision","real-time data processing","machine learning"],"dc:subject.discipline":["Applied Technologies"],"dc:subject.marsden":["ANZSRC Fields of Research 2020::40 Engineering::4005 Civil engineering::400512 Transport engineering","ANZSRC Fields of Research 2020::46 Information and computing sciences::4603 Computer vision and multimedia computation::460308 Pattern recognition","ANZSRC Fields of Research 2020::46 Information and computing sciences::4603 Computer vision and multimedia computation::460304 Computer vision","ANZSRC Fields of Research 2020::46 Information and computing sciences::4611 Machine learning"],"dc:title":["Optimising YOLO and ByteTrack for robust vehicle counting and classification in adverse weather: A computer-vision-based traffic monitoring study using New Zealand data"],"dc:type":["Masters Thesis"],"local:contributor.affiliation":["Unitec, Te Pūkenga"],"thesis:degree_level":["Masters"],"thesis:degree_name":["Master of Applied Technologies (Computing)"],"thesis:institution_name":["Unitec, Te Pūkenga – New Zealand Institute of Skills and Technology"]},"updated_at":"2026-11-26T14:13:46Z"}