Author Contributions
The presented work was carried out in collaboration with all of the authors. Conceptualization, W.H.E.M., T.T.Z. and P.T.; Methodology, W.H.E.M., T.T.Z. and P.T.; Software, W.H.E.M.; Validation, W.H.E.M. and T.T.Z.; Formal Analysis, W.H.E.M.; Investigation, W.H.E.M., T.T.Z., P.T., M.A., I.K., Y.H. and K.H.; Resources, T.T.Z., I.K. and K.H.; Data Curation, T.T.Z., I.K. and K.H.; Writing—Original Draft Preparation, W.H.E.M.; Writing—Review and Editing, T.T.Z. and P.T.; Visualization, W.H.E.M.; Supervision, T.T.Z.; Project Administration, T.T.Z.; W.H.E.M. conducted a series of experiments, and all authors analyzed the results. All authors have read and agreed to the published version of the manuscript.
Figure 1.
The methodology of the proposed research.
Figure 1.
The methodology of the proposed research.
Figure 2.
(a) Illustration of the camera setting; (b) data preparation process.
Figure 2.
(a) Illustration of the camera setting; (b) data preparation process.
Figure 3.
(a) Original video; (b) added contrast within the designated area.
Figure 3.
(a) Original video; (b) added contrast within the designated area.
Figure 4.
(a) Noise removal (person); (b) noise removal (car).
Figure 4.
(a) Noise removal (person); (b) noise removal (car).
Figure 5.
Architecture framework of the Detectron2 and the SORT algorithms.
Figure 5.
Architecture framework of the Detectron2 and the SORT algorithms.
Figure 6.
Architecture framework of the Detectron2 and Deep SORT algorithms.
Figure 6.
Architecture framework of the Detectron2 and Deep SORT algorithms.
Figure 7.
Architecture framework of Detectron2 and Modified Deep SORT algorithms.
Figure 7.
Architecture framework of Detectron2 and Modified Deep SORT algorithms.
Figure 8.
Architecture framework of the Detectron2 and ByteTrack algorithms.
Figure 8.
Architecture framework of the Detectron2 and ByteTrack algorithms.
Figure 9.
Architecture Framework of the Detectron2 and Centroid Tracking algorithms.
Figure 9.
Architecture Framework of the Detectron2 and Centroid Tracking algorithms.
Figure 10.
Architecture framework of the Detectron2 and Centroid with Kalman filter.
Figure 10.
Architecture framework of the Detectron2 and Centroid with Kalman filter.
Figure 11.
Architecture framework of Detectron2 and IOU tracking.
Figure 11.
Architecture framework of Detectron2 and IOU tracking.
Figure 12.
Architecture framework of the Detectron2 and CTA.
Figure 12.
Architecture framework of the Detectron2 and CTA.
Figure 13.
Solving process used in CTA miss detection: (a) logic explanation; (b) flow chart.
Figure 13.
Solving process used in CTA miss detection: (a) logic explanation; (b) flow chart.
Figure 14.
Comparison of miss detection case when using IOU and CTA: (a) IOU algorithm (which cannot solve the ID increment case); (b) CTA (which solved the ID increment case).
Figure 14.
Comparison of miss detection case when using IOU and CTA: (a) IOU algorithm (which cannot solve the ID increment case); (b) CTA (which solved the ID increment case).
Figure 15.
Solving process for CTA—occlusion with objects: (a) logic explanation; (b) flow chart.
Figure 15.
Solving process for CTA—occlusion with objects: (a) logic explanation; (b) flow chart.
Figure 16.
Comparison of occlusion with object case of using IOU and CTA: (a) IOU algorithm (which cannot solve the ID increment case); (b) CTA (which solved the ID increment case).
Figure 16.
Comparison of occlusion with object case of using IOU and CTA: (a) IOU algorithm (which cannot solve the ID increment case); (b) CTA (which solved the ID increment case).
Figure 17.
Solving process for CTA—occlusion with other cows: (a) logic explanation; (b) flow chart.
Figure 17.
Solving process for CTA—occlusion with other cows: (a) logic explanation; (b) flow chart.
Figure 18.
Comparison of occlusion with other cows of using IOU and CTA: (a) IOU algorithm (which cannot solve ID switch case); (b) CTA (which solved ID switch case).
Figure 18.
Comparison of occlusion with other cows of using IOU and CTA: (a) IOU algorithm (which cannot solve ID switch case); (b) CTA (which solved ID switch case).
Figure 19.
Sample detection results for all camera views at nighttime: (a) Cam 01; (b) Cam 02; (c) Cam 03; and (d) Cam 04.
Figure 19.
Sample detection results for all camera views at nighttime: (a) Cam 01; (b) Cam 02; (c) Cam 03; and (d) Cam 04.
Figure 20.
Sample detection results for all camera views during daytime: (a) Cam 01; (b) Cam 02; (c) Cam 03; and (d) Cam 04.
Figure 20.
Sample detection results for all camera views during daytime: (a) Cam 01; (b) Cam 02; (c) Cam 03; and (d) Cam 04.
Figure 21.
Sample tracking results using eight different trackers for Cam 03 at nighttime: (a) Detectron2-SORT; (b) Detectron2-Deep SORT; (c) Detectron2-Modified Deep SORT; (d) Detectron2-ByteTrack; (e) Detectron2-Centroid; (f) Detectron2-Centroid_Kalman; (g) Detectron2-IOU; (h) Detectron2-CTA.
Figure 21.
Sample tracking results using eight different trackers for Cam 03 at nighttime: (a) Detectron2-SORT; (b) Detectron2-Deep SORT; (c) Detectron2-Modified Deep SORT; (d) Detectron2-ByteTrack; (e) Detectron2-Centroid; (f) Detectron2-Centroid_Kalman; (g) Detectron2-IOU; (h) Detectron2-CTA.
Figure 22.
Sample performance analysis of miss detection and occlusion using CTA.
Figure 22.
Sample performance analysis of miss detection and occlusion using CTA.
Figure 23.
Sample tracking results using Detectron2_CTA for all cameras during daytime.
Figure 23.
Sample tracking results using Detectron2_CTA for all cameras during daytime.
Table 1.
The performance of existing algorithms is shown.
Table 1.
The performance of existing algorithms is shown.
No. | Existing Algorithms | Advantages | Drawbacks |
---|
1. | YOLO_SORT | Efficient tracking of multiple objects. | Susceptibility to identity switches in crowded scenes. |
2. | CenterNet_ DeepSORT | Improved tracking accuracy through deep learning. | May struggle with occlusions in crowded scenes. |
3. | YOLOv4_DeepSORT | Enhanced tracking accuracy with Kalman filter integration. | Increased computational complexity due to filter usage and struggle with occlusions. |
4. | Probability Gradient Pattern (PGP) | Offers robustness to noise and varying illumination. | Limited effectiveness in scenes with complex backgrounds and extensive occlusions. |
5. | LIBS_GMM | Effective in changing lighting conditions | Limited capability to handle complex background scenes with extensive occlusions. |
Table 2.
Dataset information.
Table 2.
Dataset information.
Dataset | Date | #Frames | #Instances |
---|
Training | 2021: October~November 2022: March~April, June, September~November 2023: January~February | 1080 | 7725 |
Validation | 2021: December, 2022: January, 2023: January | 240 | 2375 |
Table 3.
System specifications for execution.
Table 3.
System specifications for execution.
System Component | Specification |
---|
Operating System | Windows 10 Pro |
Processor | 3.20 GHz 12th Gen Intel Core i9-12900K |
Memory | 64 GB |
Storage | 1 TB HDD |
Graphics Processing Unit (GPU) | NVIDIA GeForce RTX 3090 |
Table 4.
Training and validation detection accuracy for customized detection model.
Table 4.
Training and validation detection accuracy for customized detection model.
Dataset | BBox (%) | Mask (%) |
---|
| AP | AP 50 | AP 75 | AP | AP 50 | AP 75 |
---|
Training | 92.53 | 98.17 | 95.99 | 90.23 | 97.87 | 95.81 |
Validation | 91.12 | 97.67 | 95.67 | 89.56 | 97.17 | 95.13 |
Table 5.
Detection accuracy for nighttime 5 h duration (00:00:00~05:00:00).
Table 5.
Detection accuracy for nighttime 5 h duration (00:00:00~05:00:00).
Cam. | Date | Period | #Frames | TP | FP | TN | FN | Accuracy (%) |
---|
01 | 10 January 2023 | 00:00:00~05:00:00 | 18,000 | 17,990 | 0 | 0 | 10 | 99.94 |
02 | 17,980 | 0 | 0 | 20 | 99.89 |
03 | 17,978 | 0 | 0 | 22 | 99.88 |
04 | 17,988 | 0 | 0 | 12 | 99.93 |
Average Accuracy | 72,000 | 71,936 | 0 | 0 | 64 | 99.91 |
Table 6.
Detection accuracy for daytime 5 h duration (13:00:00~18:00:00).
Table 6.
Detection accuracy for daytime 5 h duration (13:00:00~18:00:00).
Cam No. | Date | Period | #Frames | TP | FP | TN | FN | Accuracy (%) |
---|
01 | 10 January 2023 | 13:00:00~18:00:00 | 18,000 | 17,990 | 0 | 0 | 10 | 99.94 |
02 | 17,980 | 0 | 0 | 20 | 99.89 |
03 | 17,978 | 0 | 0 | 22 | 99.88 |
04 | 17,988 | 0 | 0 | 12 | 99.93 |
Average Accuracy | 72,000 | 71,861 | 0 | 0 | 139 | 99.81 |
Table 7.
Tracking accuracy for nighttime 5 h duration (00:00:00~05:00:00).
Table 7.
Tracking accuracy for nighttime 5 h duration (00:00:00~05:00:00).
Cam. | Methods | #Cows | GT | FP | FN | IDS | MOTA(%) |
---|
01 | Detectron2_SORT | 4 | 213,915 | 0 | 10 | 10,314 | 95.17 |
Detectron2_DeepSORT | 0 | 10 | 12,314 | 94.24 |
Detectron2_Modified_DeepSORT | 0 | 10 | 1610 | 99.24 |
Detectron2_ByteTrack | 0 | 10 | 3348 | 98.43 |
Detectron2_Centroid | 0 | 10 | 1401 | 99.34 |
Detectron2_Centroid_Kalman | 0 | 10 | 11,314 | 94.71 |
Detectron2_IOU | 0 | 10 | 1312 | 99.38 |
Detectron2_CTA | 0 | 10 | 3 | 99.99 |
02 | Detectron2_SORT | 8 | 354,100 | 0 | 20 | 11,472 | 96.75 |
Detectron2_DeepSORT | 0 | 20 | 12,413 | 96.49 |
Detectron2_Modified_DeepSORT | 0 | 20 | 4031 | 98.86 |
Detectron2_ByteTrack | 0 | 20 | 11,872 | 96.64 |
Detectron2_Centroid | 0 | 20 | 3431 | 99.03 |
Detectron2_Centroid_Kalman | 0 | 20 | 12,292 | 96.52 |
Detectron2_IOU | 0 | 20 | 2796 | 99.20 |
Detectron2_CTA | 0 | 20 | 43 | 99.98 |
03 | Detectron2_SORT | 8 | 354,100 | 0 | 22 | 11,517 | 96.74 |
Detectron2_DeepSORT | 0 | 22 | 12,933 | 96.34 |
Detectron2_Modified_DeepSORT | 0 | 22 | 3931 | 98.88 |
Detectron2_ByteTrack | 0 | 22 | 11,341 | 96.79 |
Detectron2_Centroid | 0 | 22 | 3231 | 99.08 |
Detectron2_Centroid_Kalman | 0 | 22 | 12,192 | 96.55 |
Detectron2_IOU | 0 | 22 | 2894 | 99.18 |
Detectron2_CTA | 0 | 22 | 48 | 99.98 |
04 | Detectron2_SORT | 7 | 323,870 | 0 | 12 | 10,417 | 96.78 |
Detectron2_DeepSORT | 0 | 12 | 12,243 | 96.22 |
Detectron2_Modified_DeepSORT | 0 | 12 | 1741 | 99.46 |
Detectron2_ByteTrack | 0 | 12 | 3901 | 98.79 |
Detectron2_Centroid | 0 | 12 | 1641 | 99.49 |
Detectron2_Centroid_Kalman | 0 | 12 | 10,992 | 96.60 |
Detectron2_IOU | 0 | 12 | 1413 | 99.56 |
Detectron2_CTA | 0 | 12 | 37 | 99.98 |
Table 8.
Tracking accuracy for daytime 5 h duration (13:00:00~18:00:00).
Table 8.
Tracking accuracy for daytime 5 h duration (13:00:00~18:00:00).
Cam. | Methods | #Cows | GT | FP | FN | IDS | MOTA(%) |
---|
01 | Detectron2_SORT | 4 | 213,915 | 0 | 66 | 10,214 | 95.19 |
Detectron2_DeepSORT | 0 | 66 | 12,214 | 94.26 |
Detectron2_Modified_DeepSORT | 0 | 66 | 1510 | 99.26 |
Detectron2_ByteTrack | 0 | 66 | 3248 | 98.45 |
Detectron2_Centroid | 0 | 66 | 1301 | 99.36 |
Detectron2_Centroid_Kalman | 0 | 66 | 11,214 | 94.73 |
Detectron2_IOU | 0 | 66 | 1212 | 99.40 |
Detectron2_CTA | 0 | 66 | 4 | 99.97 |
02 | Detectron2_SORT | 8 | 354,100 | 0 | 23 | 11,317 | 96.80 |
Detectron2_DeepSORT | 0 | 23 | 12,213 | 96.54 |
Detectron2_Modified_DeepSORT | 0 | 23 | 3431 | 99.02 |
Detectron2_ByteTrack | 0 | 23 | 10,872 | 96.92 |
Detectron2_Centroid | 0 | 23 | 2831 | 99.19 |
Detectron2_Centroid_Kalman | 0 | 23 | 11,892 | 96.64 |
Detectron2_IOU | 0 | 23 | 2776 | 99.21 |
Detectron2_CTA | 0 | 23 | 51 | 99.98 |
03 | Detectron2_SORT | 8 | 354,100 | 0 | 32 | 11,417 | 96.77 |
Detectron2_DeepSORT | 0 | 32 | 12,813 | 96.37 |
Detectron2_Modified_DeepSORT | 0 | 32 | 3831 | 98.91 |
Detectron2_ByteTrack | 0 | 32 | 11,201 | 96.83 |
Detectron2_Centroid | 0 | 32 | 3131 | 99.11 |
Detectron2_Centroid_Kalman | 0 | 32 | 12,092 | 96.58 |
Detectron2_IOU | 0 | 32 | 2784 | 99.20 |
Detectron2_CTA | 0 | 32 | 34 | 99.98 |
04 | Detectron2_SORT | 7 | 323,870 | 0 | 18 | 10,317 | 96.81 |
Detectron2_DeepSORT | 0 | 18 | 12,113 | 96.25 |
Detectron2_Modified_DeepSORT | 0 | 18 | 1631 | 99.50 |
Detectron2_ByteTrack | 0 | 18 | 3801 | 98.82 |
Detectron2_Centroid | 0 | 18 | 1531 | 99.52 |
Detectron2_Centroid_Kalman | 0 | 18 | 10,892 | 96.63 |
Detectron2_IOU | 0 | 18 | 1313 | 99.59 |
Detectron2_CTA | 0 | 18 | 4 | 99.99 |
Table 9.
Calculation time for 5 h videos (nighttime and daytime).
Table 9.
Calculation time for 5 h videos (nighttime and daytime).
No. | Methods | Calculation Time |
---|
Nighttime | Daytime |
---|
1. | Detectron2_SORT | 6 h 42 min | 6 h 49 min |
2. | Detectron2_DeepSORT | 6 h 40 min | 6 h 55 min |
3. | Detectron2_Modified_DeepSORT | 5 h 39 min | 5 h 56 min |
4. | Detectron2_ByteTrack | 5 h 39 min | 5 h 42 min |
5. | Detectron2_Centroid | 5 h 24 min | 5 h 46 min |
6. | Detectron2_Centroid_Kalman | 6 h 17 min | 6 h 31 min |
7. | Detectron2_IOU | 5 h 11 min | 5 h 19 min |
8. | Detectron2_CTA | 4 h 45 min | 4 h 51 min |