Image-Based Cat (Felis Catus) Facial Expression Recognition Using YOLOv8n

Authors

  • Atanasius Manurip Informatika, Universitas Informatika dan Bisnis Indonesia
  • Marwondo Marwondo Informatika, Universitas Informatika dan Bisnis Indonesia
  • Venia Restreva Danestiara Informatika, Universitas Informatika dan Bisnis Indonesia

DOI:

https://doi.org/10.37278/sisinfo.v8i1.1493

Keywords:

Cat Expression, Computer Vision, Image-based Recognition, YOLO

Abstract

Cats (Felis catus) express emotional states through subtle facial cues that are often difficult for owners to interpret accurately. Automated recognition systems can provide objective analysis of these expressions using computer vision techniques. This study proposes an image-based cat facial expression recognition system using the YOLOv8n architecture. A dataset of 794 images was collected and expanded to 3,279 images through data augmentation. Four expression classes were defined based on CatFACS and related frameworks: normal-netral, senang-afiliatif, stres-takut, and marah-agonistik. The model was trained using a 70:20:10 split for training, validation, and testing. Experimental results show an overall mAP50 of 0.728, with the highest performance achieved in the senang-afiliatif class (0.773). However, the marah-agonistik class could not be reliably detected due to severe class imbalance in the dataset, indicating that the current model remains insufficient for recognizing anger expressions in cats. Precision and recall reached 0.939 and 0.94 respectively, indicating reliable detection under confident predictions. The trained model was successfully integrated into a Gradio-based dashboard for real-time expression recognition. These results demonstrate the feasibility of lightweight YOLOv8n for feline facial expression recognition while highlighting that accurate detection of marah-agonistik expressions requires a more diverse and balanced dataset in future research.

References

. J. Cheng, A. Malo, M. Garbin, B. P. Monteiro, and P. V. Steagall, "Construct validity, responsiveness and reliability of the Feline Grimace Scale in kittens," *Journal of Feline Medicine and Surgery*, vol. 25, no. 12, 2023. https://doi.org/10.1177/1098612X231211765

. Vijayakumar and S. Vairavasundaram, "YOLO-based Object Detection Models: A Review and its Applications," *Multimedia Tools and Applications*, vol. 83, no. 35, pp. 83535–83574, 2024. https://doi.org/10.1007/s11042-024-18872-y

. Peng, M. Sun, K. Zou, B. Zhang, G. Dai, and A. C. Tsoi, "Facial Expression Recognition-You Only Look Once-Neighborhood Coordinate Attention Mamba: Facial Expression Detection and Classification Based on Neighbor and Coordinates Attention Mechanism," *Sensors*, vol. 24, no. 21, 2024. https://doi.org/10.3390/s24216912

. G. Martvel, N. Farhat, I. Shimshoni, and A. Zamansky, "CatFLW: Cat Facial Landmarks in the Wild Dataset," arXiv:2305.04232, 2023. http://arxiv.org/abs/2305.04232

. G. Martvel, L. Scott, B. Florkiewicz, A. Zamansky, I. Shimshoni, and T. Lazebnik, "Computational investigation of the social function of domestic cat facial signals," *Scientific Reports*, vol. 14, no. 1, 2024. https://doi.org/10.1038/s41598-024-79216-2

. G. Martvel, I. Shimshoni, and A. Zamansky, "Automated Detection of Cat Facial Landmarks," *International Journal of Computer Vision*, vol. 132, no. 8, pp. 3103–3118, 2024. https://doi.org/10.1007/s11263-024-02006-w

. L. Scott and B. N. Florkiewicz, "Feline faces: Unraveling the social function of domestic cat facial signals," *Behavioural Processes*, vol. 213, p. 104959, 2023. https://doi.org/10.1016/J.BEPROC.2023.104959

. M. E. Kret, J. J. M. Massen, and F. B. M. de Waal, "My Fear Is Not, and Never Will Be, Your Fear: On Emotions and Feelings in Animals," *Affective Science*, vol. 3, no. 1, pp. 182–189, 2022. https://doi.org/10.1007/s42761-021-00099-x

. M. Feighelstein, I. Shimshoni, L. R. Finka, S. P. L. Luna, D. S. Mills, and A. Zamansky, "Automated recognition of pain in cats," *Scientific Reports*, vol. 12, no. 1, 2022. https://doi.org/10.1038/s41598-022-13348-1

. M. Hussain, "YOLO-v1 to YOLO-v8, the Rise of YOLO and Its Complementary Nature toward Digital Manufacturing and Industrial Defect Detection," *Machines*, vol. 11, no. 7, 2023. https://doi.org/10.3390/machines11070677

. M. L. Ali and Z. Zhang, "The YOLO Framework: A Comprehensive Review of Evolution, Applications, and Benchmarks in Object Detection," *Computers*, vol. 13, no. 12, 2024. https://doi.org/10.3390/computers13120336

. M. M. Ambali Parambil, L. Ali, M. Swavaf, S. Bouktif, M. Gochoo, H. Aljassmi, and F. Alnajjar, "Navigating the YOLO Landscape: A Comparative Study of Object Detection Models for Emotion Recognition," *IEEE Access*, vol. 12, pp. 109427–109442, 2024. https://doi.org/10.1109/ACCESS.2024.3439346

. M. M. Taye, "Theoretical Understanding of Convolutional Neural Network: Concepts, Architectures, Applications, Future Directions," *Computation*, vol. 11, no. 3, 2023. https://doi.org/10.3390/computation11030052

. M. Mendl, V. Neville, and E. S. Paul, "Bridging the Gap: Human Emotions and Animal Emotions," *Affective Science*, vol. 3, no. 4, pp. 703–712, 2022. https://doi.org/10.1007/s42761-022-00125-6

. P. Kovačič, "Cat Facial Action Coding System (CatFACS) and Scientific Illustration," pp. 159–165, 2024. https://doi.org/10.55295/psl.2024.ii17

. Q. Zhang, K. Ahmed, M. I. Khan, H. Wang, and Y. Qu, "YOLO-FCE: A feature and clustering enhanced object detection model for species classification," *Pattern Recognition*, vol. 171, 2025. https://doi.org/10.1016/j.patcog.2025.112218

. R. Zhang and R. Ma, "Facial expression recognition method based on PSA—YOLO network," *Frontiers in Neurorobotics*, vol. 16, 2023. https://doi.org/10.3389/fnbot.2022.1057983

. R. I. Mukhamediev, Y. Popova, Y. Kuchin, E. Zaitseva, A. Kalimoldayev, A. Symagulov, V. Levashenko, F. Abdoldina, V. Gopejenko, K. Yakunin, E. Muhamedijeva, and M. Yelis, "Review of Artificial Intelligence and Machine Learning Technologies: Classification, Restrictions, Opportunities and Challenges," *Mathematics*, vol. 10, no. 15, 2022. https://doi.org/10.3390/math10152552

. S. Broomé, M. Feighelstein, A. Zamansky, G. Carreira Lencioni, P. Haubro Andersen, F. Pessanha, M. Mahmoud, H. Kjellström, and A. A. Salah, "Going Deeper than Tracking: A Survey of Computer-Vision Based Recognition of Animal Pain and Emotions," *International Journal of Computer Vision*, vol. 131, no. 2, pp. 572–590, 2023. https://doi.org/10.1007/s11263-022-01716-3

. S. Ren, M. Sun, B. Wang, M. Liu, and S. Men, "High Precision Infant Facial Expression Recognition by Improved YOLOv8," *IEEE Access*, vol. 13, pp. 39621–39630, 2025. https://doi.org/10.1109/ACCESS.2025.3543950

. T. Rakhimzhanova, A. Kuzdeuov, and H. A. Varol, "AnyFace++: Deep Multi-Task, Multi-Domain Learning for Efficient Face AI," *Sensors*, vol. 24, no. 18, 2024. https://doi.org/10.3390/s24185993

. X. Cao, Y. Su, X. Geng, and Y. Wang, "YOLO-SF: YOLO for Fire Segmentation Detection," *IEEE Access*, vol. 11, pp. 111079–111092, 2023. https://doi.org/10.1109/ACCESS.2023.3322143

. X. Lang, Z. Ren, D. Wan, Y. Zhang, and S. Shu, "MR-YOLO: An Improved YOLOv5 Network for Detecting Magnetic Ring Surface Defects," *Sensors*, vol. 22, no. 24, 2022. https://doi.org/10.3390/s22249897

. X. Ren, Y. Bai, G. Liu, and P. Zhang, "YOLO-Lite: An Efficient Lightweight Network for SAR Ship Detection," *Remote Sensing*, vol. 15, no. 15, 2023. https://doi.org/10.3390/rs15153771

. Y. Bu, H. Ye, Z. Tie, Y. Chen, and D. Zhang, "OD-YOLO: Robust Small Object Detection Model in Remote Sensing Image with a Novel Multi-Scale Feature Fusion," *Sensors*, vol. 24, no. 11, 2024. https://doi.org/10.3390/s24113596

. Y. Guo, S. Chen, R. Zhan, W. Wang, and J. Zhang, "LMSD-YOLO: A Lightweight YOLO Algorithm for Multi-Scale SAR Ship Detection," *Remote Sensing*, vol. 14, no. 19, 2022. https://doi.org/10.3390/rs14194801

. Y. Qiu, F. Sha, and L. Niu, "DKA-YOLO: Enhanced Small Object Detection via Dilation Kernel Aggregation Convolution Modules," *IEEE Access*, vol. 12, pp. 187353–187366, 2024. https://doi.org/10.1109/ACCESS.2024.3515201

. Y. S. Dosso, D. Kyrollos, K. J. Greenwood, J. Harrold, and J. R. Green, "NICUface: Robust Neonatal Face Detection in Complex NICU Scenes," *IEEE Access*, vol. 10, pp. 62893–62909, 2022. https://doi.org/10.1109/ACCESS.2022.3181167

. Y. Shao, Z. Xu, and Q. Zhu, "SH-YOLO: Enhanced Real-Time Detection of Laparoscopic Surgical Instruments in Computer-Aided Surgery Based on Star Operation and Hybrid Attention Mechanisms," *IEEE Access*, vol. 13, pp. 135179–135195, 2025. https://doi.org/10.1109/ACCESS.2025.3593635

. Y. Song, Z. Xie, X. Wang, and Y. Zou, "MS-YOLO: Object Detection Based on YOLOv5 Optimized Fusion Millimeter-Wave Radar and Machine Vision," *IEEE Sensors Journal*, vol. 22, no. 15, pp. 15435–15447, 2022. https://doi.org/10.1109/JSEN.2022.3167251

. Y. Su, Q. Liu, W. Xie, and P. Hu, "YOLO-LOGO: A transformer-based YOLO segmentation model for breast mass detection and segmentation in digital mammograms," *Computer Methods and Programs in Biomedicine*, vol. 221, 2022. https://doi.org/10.1016/j.cmpb.2022.106903

. Y. Wang, Y. Li, D. M. S. Kayes, H. S. Abdullahi, S. Gao, H. Zhang, Z. Song, and P. Lv, "Research on a Lightweight PCB Detection Algorithm Based on AE-YOLO," *IEEE Access*, vol. 12, pp. 109367–109379, 2024. https://doi.org/10.1109/ACCESS.2024.3439523

. Y. Yang, Z. Liu, J. Chen, H. Gao, and T. Wang, "Railway Foreign Object Intrusion Detection Using UAV Images and YOLO-UAT," *IEEE Access*, vol. 13, pp. 18498–18509, 2025. https://doi.org/10.1109/ACCESS.2025.3533304

Downloads

Published

2026-04-16

How to Cite

Manurip, A., Marwondo, M., & Danestiara, V. R. (2026). Image-Based Cat (Felis Catus) Facial Expression Recognition Using YOLOv8n. SISINFO : Jurnal Sistem Informasi Dan Informatika, 8(1), 77–85. https://doi.org/10.37278/sisinfo.v8i1.1493

Issue

Section

Articles