Dasanayaka Lekamalage Vindya Sathsarani Dasanayaka
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Dasanayaka Lekamalage Vindya Sathsarani Dasanayaka has a total of 9 co-authors. Here are the top co-authors by number of shared publications:
- Dae Yeong Kang
Department of Smart Farm, Gyeongsang National University, Jinju 52828, Republic of Korea
2 shared publications - Hyeon Tae Kim
Department of Bio-Industrial Machinery Engineering, Institute of Smart Space Agriculture (ISSA), Gyeongsang National University, Jinju 52828, Republic of Korea
2 shared publications - Mohammad Ismail
Department of Bio-Systems Engineering, Gyeongsang National University, Jinju 52828, Republic of Korea
2 shared publications - Seong-Hun Kim
Department of Smart Farm, Gyeongsang National University, Jinju 52828, Republic of Korea
2 shared publications - Daniyar Pirlepesov Maratovich
Department of Smart Farm, Gyeongsang National University, Jinju 52828, Republic of Korea
1 shared publication - Muhammad Ismail Khan
Department of Computer Science, Bahria University, Shangrila Road, Sector E-8, Islamabad 44000, Pakistan
1 shared publication
Latest Publications
- Open Access
- 10 October 2026
- Published by MDPI AG in Veterinary Sciences
- Vol. 13 (10) , 1068
Comparing Temporal Averaging and Transformer Encoders for Video-Based Cattle Behavior Classification Under Severe Class Imbalance
Automated cattle behavior monitoring from video is challenging due to severe class imbalance and the need for efficient temporal modeling. We compared four architectures on 542 videos containing standing, lying down, and rumination; rumination appeared only six times, while two dataset classes were absent. ResNet-50 and EfficientNet-B3 backbones were paired with either a Transformer encoder or temporal averaging and trained with three-fold stratified cross-validation and weighted cross-entropy. EfficientNet-B3 with temporal averaging (Eff-B3 + Avg) achieved the highest out-of-fold accuracy (85.61%) and best calibration (ECE = 0.074), while requiring 41 MB and 28 ms per video. Its Transformer counterpart scored 84.13% despite four times more parameters. ResNet-50 + Transformer reached 84.69% but was poorly calibrated and storage-intensive. Frame ablation identified 16 frames per video as the best accuracy-speed trade-off. No model correctly classified any rumination example, underscoring that rumination was not learnable under the specific weighted-cross-entropy and stratified-sampling strategies evaluated here; this finding does not establish a general impossibility of learning extremely underrepresented behaviors under alternative training strategies such as focal loss, oversampling, anomaly detection, or self-supervised pre-training. Rare-class analysis, treating support as rare, showed high-confidence rumination errors: mean confidence was 0.891, but only 1.01% of probability mass was assigned to the true class, yielding a class-wise expected calibration error of 0.891. These findings indicate that calibration post-processing cannot rescue a class with zero true positives.- 10 October 2026
- Published by MDPI AG in Veterinary Sciences
- Vol. 13 (10) , 1068
Open AccessComparing Temporal Averaging and Transformer Encoders for Video-Based Cattle Behavior Classification Under Severe Class Imbalance
Automated cattle behavior monitoring from video is challenging due to severe class imbalance and the need for efficient temporal modeling. We compared four architectures on 542 videos containing standing, lying down, and rumination; rumination appeared only six times, while two dataset classes were absent. ResNet-50 and EfficientNet-B3 backbones were paired with either a Transformer encoder or temporal averaging and trained with three-fold stratified cross-validation and weighted cross-entropy. EfficientNet-B3 with temporal averaging (Eff-B3 + Avg) achieved the highest out-of-fold accuracy (85.61%) and best calibration (ECE = 0.074), while requiring 41 MB and 28 ms per video. Its Transformer counterpart scored 84.13% despite four times more parameters. ResNet-50 + Transformer reached 84.69% but was poorly calibrated and storage-intensive. Frame ablation identified 16 frames per video as the best accuracy-speed trade-off. No model correctly classified any rumination example, underscoring that rumination was not learnable under the specific weighted-cross-entropy and stratified-sampling strategies evaluated here; this finding does not establish a general impossibility of learning extremely underrepresented behaviors under alternative training strategies such as focal loss, oversampling, anomaly detection, or self-supervised pre-training. Rare-class analysis, treating support as rare, showed high-confidence rumination errors: mean confidence was 0.891, but only 1.01% of probability mass was assigned to the true class, yielding a class-wise expected calibration error of 0.891. These findings indicate that calibration post-processing cannot rescue a class with zero true positives. - Open Access
Multi-Object Tracking of Korean Cattle (Hanwoo) in High-Density Barns Using Multi-Temporal Window Repair (MTW-Repair)
Reliable individual tracking supports animal behavior monitoring in precision livestock farming. However, tracking cattle using a single camera in high-density barns is challenging because of frequent occlusion, scale variation, and irregular movement. This study presents a lightweight multi-object tracking framework for densely housed Hanwoo cattle, combining a Hanwoo-trained YOLOv8n detector with appearance-free BoT-SORT association. Frame sampling reduces the detection workload, while an offline Multi-Temporal Window Repair (MTW-Repair) procedure reconnects fragmented trajectories. The framework was evaluated using short annotated video clips and a continuous 215 min barn recording. In the short clips, appearance-free BoT-SORT outperformed ByteTrack while maintaining comparable throughput, and MTW-Repair reduced identity switches across all evaluated frame-sampling intervals. In the long recording, MTW-Repair reduced the total number of generated identities for both trackers. Manual verification of 50 randomly sampled ByteTrack merge events yielded a merge precision of 84.0%. Appearance-based re-identification offered only marginal accuracy gains at a higher computational cost. These findings support the potential of frame sampling and offline trajectory repair for computationally efficient cattle monitoring.
Open AccessMulti-Object Tracking of Korean Cattle (Hanwoo) in High-Density Barns Using Multi-Temporal Window Repair (MTW-Repair)
Reliable individual tracking supports animal behavior monitoring in precision livestock farming. However, tracking cattle using a single camera in high-density barns is challenging because of frequent occlusion, scale variation, and irregular movement. This study presents a lightweight multi-object tracking framework for densely housed Hanwoo cattle, combining a Hanwoo-trained YOLOv8n detector with appearance-free BoT-SORT association. Frame sampling reduces the detection workload, while an offline Multi-Temporal Window Repair (MTW-Repair) procedure reconnects fragmented trajectories. The framework was evaluated using short annotated video clips and a continuous 215 min barn recording. In the short clips, appearance-free BoT-SORT outperformed ByteTrack while maintaining comparable throughput, and MTW-Repair reduced identity switches across all evaluated frame-sampling intervals. In the long recording, MTW-Repair reduced the total number of generated identities for both trackers. Manual verification of 50 randomly sampled ByteTrack merge events yielded a merge precision of 84.0%. Appearance-based re-identification offered only marginal accuracy gains at a higher computational cost. These findings support the potential of frame sampling and offline trajectory repair for computationally efficient cattle monitoring.