'
Научный журнал «Вестник науки»

Режим работы с 09:00 по 23:00

zhurnal@vestnik-nauki.com

Информационное письмо

  1. Главная
  2. Архив
  3. Вестник науки №4 (73) том 4
  4. Научная статья № 89

Просмотры  158 просмотров

Shaukenov M.

  


COUNTING THE NUMBER OF ENTERING AND EXITING PASSENGERS ON BUSES USING YOLOv8 *

  


Аннотация:
this article demonstrates the application of the YOLOv8 and ByteTrack real-time object identification algorithms to accurately determine the number of individuals boarding and exiting buses. This study aims to determine the prevalence of stowaways on buses in Kazakhstan by employing automatic real-time calculations to accurately count the number of stowaways without the need for manual inspections. While low-density buses have performed well, there is still room for improvement in crowded buses.   

Ключевые слова:
computer vision, YOLO, head detection, people counting, custom dataset   


DOI 10.24412/2712-8849-2024-473-565-569

In Kazakhstan, the frequency of fare evasion has increased significantly over the last few years. Based on the statistics [1, 2], the annual incidence of fare evasion in Astana, Kazakhstan, exceeds 120,000 cases, leading to considerable revenue losses for the bus fleets. Furthermore, the precise quantity of fare evasions occurring daily remains unknown. Therefore, there is a need for an automated solution that can effectively address this issue. This study presents a method for precisely calculating the number of stowaways by utilizing the YOLOv8 real-time detection algorithm [3].?We selected human hair, hats, and hoods for detection because they are the most frequently seen objects in the video recordings provided by Avtobys [4] company. Following that, we started building our custom dataset by using the Roboflow [5] software. We divided the dataset into three sets: train, validation, and test, with proportions of 70%, 20%, and 10%, respectively. Subsequently, we completed the training process for our custom model. Figures 1 and 2 illustrate the confusion matrix and F1 confidence curve.Figure 1. Confusion matrix of the trained model.Figure 2. F1 confidence curve of the trained model.Based on the confusion matrix, the detection performance tends to be good in crowded environments like buses. After the model training, we applied the ByteTrack tracking method, developed by Ultralytics [6], to track humans using YOLOv8. Following that, we executed our initial experiments. Figure 3 displays the results.Figure 3. Detecting people’s heads using YOLOv8 and ByteTrack.After successfully recognizing the heads of passengers, we proceeded to draw a horizontal line to serve as a separation between people approaching the bus and those stepping off. The provided information aids in identifying whether a passenger is entering or exiting the bus. Consequently, we have determined that we will classify a person as entering if they cross the line in a downward direction, and as exiting if they cross the line in an upward direction. Furthermore, in the lower-left corner, we present the count of people who have arrived and exited. Furthermore, we have chosen to render the detection box in a shade of green when an individual is located at the lowermost point of a horizontal line for better comprehension. Positioning an individual above a horizontal line will fill their enclosure with a red box, meaning that the passenger standing outside a bus. Figures 4 and 5 display the results.Figure 4. Two passengers are out of the bus.Figure 5. One passenger enters the bus.Based on the findings, YOLOv8 performs effectively in real-time detection and computation of persons entering and exiting the low-density buses. Moreover, it is suitable for practical applications in real-world scenarios. Nevertheless, an obstacle arises when there is a high concentration of passengers on a bus. Such circumstances compromise the precision of calculation and detection. We will now concentrate our future efforts on enhancing the accuracy of detection and calculation in buses with high passenger density.

  


Полная версия статьи PDF

Номер журнала Вестник науки №4 (73) том 4

  


Ссылка для цитирования:

Shaukenov M. COUNTING THE NUMBER OF ENTERING AND EXITING PASSENGERS ON BUSES USING YOLOv8 // Вестник науки №4 (73) том 4. С. 565 - 569. 2024 г. ISSN 2712-8849 // Электронный ресурс: https://www.вестник-науки.рф/article/14123 (дата обращения: 24.06.2025 г.)


Альтернативная ссылка латинскими символами: vestnik-nauki.com/article/14123



Нашли грубую ошибку (плагиат, фальсифицированные данные или иные нарушения научно-издательской этики) ?
- напишите письмо в редакцию журнала: zhurnal@vestnik-nauki.com


Вестник науки © 2024.    16+




* В выпусках журнала могут упоминаться организации (Meta, Facebook, Instagram) в отношении которых судом принято вступившее в законную силу решение о ликвидации или запрете деятельности по основаниям, предусмотренным Федеральным законом от 25 июля 2002 года № 114-ФЗ 'О противодействии экстремистской деятельности' (далее - Федеральный закон 'О противодействии экстремистской деятельности'), или об организации, включенной в опубликованный единый федеральный список организаций, в том числе иностранных и международных организаций, признанных в соответствии с законодательством Российской Федерации террористическими, без указания на то, что соответствующее общественное объединение или иная организация ликвидированы или их деятельность запрещена.