{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,5,3]],"date-time":"2026-05-03T10:00:59Z","timestamp":1777802459454,"version":"3.51.4"},"reference-count":58,"publisher":"MDPI AG","issue":"20","license":[{"start":{"date-parts":[[2023,10,18]],"date-time":"2023-10-18T00:00:00Z","timestamp":1697587200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"Ministry of Education and Science of the Republic Bulgaria","award":["\u041401-62\/18.03.2021\/"],"award-info":[{"award-number":["\u041401-62\/18.03.2021\/"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Animals"],"abstract":"<jats:p>The health and welfare of livestock are significant for ensuring the sustainability and profitability of the agricultural industry. Addressing efficient ways to monitor and report the health status of individual cows is critical to prevent outbreaks and maintain herd productivity. The purpose of the study is to develop a machine learning (ML) model to classify the health status of milk cows into three categories. In this research, data are collected from existing non-invasive IoT devices and tools in a dairy farm, monitoring the micro- and macroenvironment of the cow in combination with particular information on age, days in milk, lactation, and more. A workflow of various data-processing methods is systematized and presented to create a complete, efficient, and reusable roadmap for data processing, modeling, and real-world integration. Following the proposed workflow, the data were treated, and five different ML algorithms were trained and tested to select the most descriptive one to monitor the health status of individual cows. The highest result for health status assessment is obtained by random forest classifier (RFC) with an accuracy of 0.959, recall of 0.954, and precision of 0.97. To increase the security, speed, and reliability of the work process, a cloud architecture of services is presented to integrate the trained model as an additional functionality in the Amazon Web Services (AWS) environment. The classification results of the ML model are visualized in a newly created interface in the client application.<\/jats:p>","DOI":"10.3390\/ani13203254","type":"journal-article","created":{"date-parts":[[2023,10,18]],"date-time":"2023-10-18T09:56:57Z","timestamp":1697623017000},"page":"3254","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":24,"title":["Health Status Classification for Cows Using Machine Learning and Data Management on AWS Cloud"],"prefix":"10.3390","volume":"13","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-9050-0348","authenticated-orcid":false,"given":"Kristina","family":"Dineva","sequence":"first","affiliation":[{"name":"Institute of Information and Communication Technologies, Bulgarian Academy of Sciences, Acad. G. Bonchev Str., Bl. 2, 1113 Sofia, Bulgaria"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-6084-3179","authenticated-orcid":false,"given":"Tatiana","family":"Atanasova","sequence":"additional","affiliation":[{"name":"Institute of Information and Communication Technologies, Bulgarian Academy of Sciences, Acad. G. Bonchev Str., Bl. 2, 1113 Sofia, Bulgaria"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2023,10,18]]},"reference":[{"key":"ref_1","unstructured":"(2023, March 10). Farm to Fork Strategy. Available online: https:\/\/food.ec.europa.eu\/horizontal-topics\/farm-fork-strategy_en."},{"key":"ref_2","unstructured":"(2023, March 10). Animal Welfare. Available online: https:\/\/www.efsa.europa.eu\/en\/topics\/topic\/animal-welfare."},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"31","DOI":"10.1017\/S1466252319000148","article-title":"A review of traditional and machine learning methods applied to animal breeding","volume":"20","author":"Nayeri","year":"2019","journal-title":"Anim. Health Res. Rev."},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Li, Y., Shu, H., Bindelle, J., Xu, B., Zhang, W., Jin, Z., Guo, L., and Wang, W. (2022). Classification and Analysis of Multiple Cattle Unitary Behaviors and Movements Based on Machine Learning Methods. Animals, 12.","DOI":"10.3390\/ani12091060"},{"key":"ref_5","first-page":"1","article-title":"IoT Based Cattle Health Monitoring System","volume":"5","author":"Shinde","year":"2017","journal-title":"ICIATE"},{"key":"ref_6","first-page":"344","article-title":"IoT-Based Cow Health Monitoring System","volume":"12141","author":"Unold","year":"2020","journal-title":"Comput. Sci. ICCS"},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"e02902","DOI":"10.1016\/j.heliyon.2019.e02902","article-title":"Alterations in sick dairy cows\u2019 daily behavioural patterns","volume":"5","author":"Dittrich","year":"2019","journal-title":"Heliyon"},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"169","DOI":"10.1016\/j.smallrumres.2013.12.031","article-title":"Long term performance of RFID technology in the large scale identification of small ruminants through electronic ceramic boluses: Implications for animal welfare and regulation compliance","volume":"117","author":"Cappai","year":"2014","journal-title":"Small Rumin. Res."},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Shine, P., and Murphy, M.D. (2022). Over 20 Years of Machine Learning Applications on Dairy Farms: A Comprehensive Mapping Study. Sensors, 22.","DOI":"10.3390\/s22010052"},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Maurya, S., Peddoju, S.K., Ahmad, B., and Chihi, I. (2023). Cyber Technologies and Emerging Sciences, Springer. Lecture Notes in Networks and Systems.","DOI":"10.1007\/978-981-19-2538-2"},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"501","DOI":"10.3168\/jds.2020-18653","article-title":"Predicting dairy cattle heat stress using machine learning techniques","volume":"104","author":"Becker","year":"2021","journal-title":"J. Dairy Sci."},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Bovo, M., Agrusti, M., Benni, S., Torreggiani, D., and Tassinari, P. (2021). Random Forest Modelling of Milk Yield of Dairy Cows under Heat Stress Conditions. Animals, 11.","DOI":"10.3390\/ani11051305"},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"822621","DOI":"10.3389\/fvets.2022.822621","article-title":"Recognition of Cattle\u2019s Feeding Behaviors Using Noseband Pressure Sensor with Machine Learning","volume":"9","author":"Chen","year":"2022","journal-title":"Front. Vet. Sci."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"129956","DOI":"10.1016\/j.jclepro.2021.129956","article-title":"Artificial intelligence in animal farming: A systematic literature review","volume":"331","author":"Bao","year":"2022","journal-title":"J. Clean. Prod."},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Leliveld, L.M.C., and Provolo, G. (2020). A Review of Welfare Indicators of Indoor-Housed Dairy Cow as a Basis for Integrated Automatic Welfare Assessment Systems. Animals, 10.","DOI":"10.3390\/ani10081430"},{"key":"ref_16","first-page":"2445","article-title":"Research Progress of Intelligent Sensing Technology for Diagnosis of Livestock and Poultry Diseases","volume":"54","author":"Li","year":"2021","journal-title":"Sci. Agric. Sin."},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"761468","DOI":"10.3389\/fvets.2021.761468","article-title":"A Systematic Review of Automatic Health Monitoring in Calves: Glimpsing the Future from Current Practice","volume":"8","author":"Sun","year":"2021","journal-title":"Front. Vet. Sci."},{"key":"ref_18","first-page":"100388","article-title":"Animal biometric assessment using non-invasive computer vision and machine learning are good predictors of dairy cows age and welfare: The future of automated veterinary support systems","volume":"10","author":"Fuentes","year":"2022","journal-title":"J. Agric. Food Res."},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"Fuentes, S., Gonzalez Viejo, C., Tongson, E., Lipovetzky, N., and Dunshea, F.R. (2021). Biometric Physiological Responses from Dairy Cows Measured by Visible Remote Sensing Are Good Predictors of Milk Productivity and Quality through Artificial Intelligence. Sensors, 21.","DOI":"10.3390\/s21206844"},{"key":"ref_20","unstructured":"(2023, February 08). For Outliers\u2019 Treatment: Clipping, Winsorizing or Removing?. Available online: https:\/\/datascience.stackexchange.com\/questions\/65802\/for-outliers-treatment-clipping-winsorizing-or-removing."},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"321","DOI":"10.1613\/jair.953","article-title":"SMOTE: Synthetic Minority Over-sampling Technique","volume":"16","author":"Chawla","year":"2002","journal-title":"J. Artif. Intell. Res."},{"key":"ref_22","first-page":"381","article-title":"Machine learning algorithms\u2014A Review","volume":"9","author":"Batta","year":"2020","journal-title":"Int. J. Sci. Res."},{"key":"ref_23","unstructured":"Logunova, I. (2023, February 08). K-Nearest Neighbors Algorithm for ML. Available online: https:\/\/serokell.io\/blog\/knn-algorithm-in-ml."},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Dineva, K., and Atanasova, T. (2021). Design of Scalable IoT Architecture Based on AWS for Smart Livestock. Animals, 11.","DOI":"10.3390\/ani11092697"},{"key":"ref_25","unstructured":"(2023, March 10). AWS Glue: Developer Guide, AWS Whitepaper. Available online: https:\/\/docs.aws.amazon.com\/pdfs\/glue\/latest\/dg\/glue-dg.pdf#trigger-job."},{"key":"ref_26","unstructured":"(2023, March 10). Strong Best Practices for Data and Analytics Applications: AWS Whitepaper. Available online: https:\/\/docs.aws.amazon.com\/pdfs\/whitepapers\/latest\/building-data-lakes\/building-data-lakes.pdf#amazon-s3-data-lake-storage-platform."},{"key":"ref_27","unstructured":"(2023, March 10). AWS Step Functions: Developer Guide, AWS Whitepaper. Available online: https:\/\/docs.aws.amazon.com\/pdfs\/step-functions\/latest\/dg\/step-functions-dg.pdf#welcome."},{"key":"ref_28","unstructured":"(2023, March 23). AWS Advanced User Guide. AMS Advanced Concepts and Procedures, AWS Whitepaper. Available online: https:\/\/docs.aws.amazon.com\/pdfs\/managedservices\/latest\/userguide\/ams-ug.pdf#sagemaker,."},{"key":"ref_29","unstructured":"King, A., and Eckersley, R. (2019). Statistics for Biomedical Engineers and Scientists, How to Visualize and Analyze Data, Elsevier Ltd."},{"key":"ref_30","doi-asserted-by":"crossref","first-page":"105220","DOI":"10.1016\/j.applanim.2021.105220","article-title":"A novel accel-erometry approach combining information on classified behaviors and quantified physical activity for assessing health status of cattle: A preliminary study","volume":"235","author":"Uenishi","year":"2021","journal-title":"Appl. Anim. Behav. Sci."},{"key":"ref_31","doi-asserted-by":"crossref","first-page":"107218","DOI":"10.1016\/j.compag.2022.107218","article-title":"Automated measurement of dairy cows body size via 3D point cloud data analysis","volume":"200","author":"Yang","year":"2022","journal-title":"Comput. Electron. Agric."},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"5449","DOI":"10.3168\/jds.2017-13784","article-title":"Validation and comparison of 2 commercially available activity loggers","volume":"101","author":"Nielsen","year":"2018","journal-title":"J. Dairy Sci."},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"1928","DOI":"10.3168\/jds.2012-6107","article-title":"Invited review: Sensors to support health management on dairy farms","volume":"96","author":"Rutten","year":"2013","journal-title":"J. Dairy Sci."},{"key":"ref_34","first-page":"95","article-title":"Health Monitoring System for Dairy Cows","volume":"8","author":"Adersh","year":"2021","journal-title":"J. Emerg. Technol. Innov. Res."},{"key":"ref_35","doi-asserted-by":"crossref","unstructured":"Awasthi, A., Awasthi, A., Riordan, D., and Walsh, J. (2016). Non-Invasive Sensor Technology for the Development of a Dairy Cattle Health Monitoring System. Computers, 5.","DOI":"10.3390\/computers5040023"},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"100601","DOI":"10.1016\/j.animal.2022.100601","article-title":"Estimating risk probabilities for sickness from behavioural patterns to identify health challenges in dairy cows with multivariate cumulative sum control charts","volume":"16","author":"Dittrich","year":"2022","journal-title":"Animal"},{"key":"ref_37","doi-asserted-by":"crossref","unstructured":"Cheng, L., Leung, A., and Ozawa, S. (2018). Neural Information Processing, Proceedings of the 25th International Conference, ICONIP, Siem Reap, Cambodia, 13\u201316 December 2018, Springer. Lecture Notes in Computer Science.","DOI":"10.1007\/978-3-030-04182-3"},{"key":"ref_38","doi-asserted-by":"crossref","first-page":"579","DOI":"10.2478\/aoas-2019-0011","article-title":"The physiological and productivity effects of heat stress in cattle\u2014A review","volume":"19","author":"Herbut","year":"2019","journal-title":"Ann. Anim. Sci."},{"key":"ref_39","first-page":"231","article-title":"Mortality related to cold and heat","volume":"149","author":"Cox","year":"2016","journal-title":"What do we learn from dairy cattle? Environ. Res."},{"key":"ref_40","doi-asserted-by":"crossref","unstructured":"Dac, H.H., Gonzalez Viejo, C., Lipovetzky, N., Tongson, E., Dunshea, F.R., and Fuentes, S. (2022). Livestock Identification Using Deep Learning for Traceability. Sensors, 22.","DOI":"10.3390\/s22218256"},{"key":"ref_41","doi-asserted-by":"crossref","first-page":"10","DOI":"10.1016\/j.jtherbio.2018.08.021","article-title":"Monitoring foot surface temperature using infrared thermal imaging for assessment of hoof health status in cattle: A review","volume":"78","author":"LokeshBabu","year":"2018","journal-title":"J. Therm. Biol."},{"key":"ref_42","doi-asserted-by":"crossref","unstructured":"Congdon, J.V., Hosseini, M., Gading, E.F., Masousi, M., Franke, M., and MacDonald, S.E. (2022). The Future of Artificial Intelligence in Monitoring Animal Identification, Health, and Behaviour. Animals, 12.","DOI":"10.3390\/ani12131711"},{"key":"ref_43","unstructured":"Weichbrod, R.H., Thompson, G.A.H., and Norton, J.N. (2023, March 10). Environmental Factors: Macroenvironment Versus Microenvironment, Management of Animal Care and Use Programs in Research, Education, and Testing, Available online: https:\/\/www.ncbi.nlm.nih.gov\/books\/NBK500431\/."},{"key":"ref_44","doi-asserted-by":"crossref","first-page":"186","DOI":"10.1016\/j.biosystemseng.2022.02.013","article-title":"A machine learning framework to predict the next month\u2019s daily milk yield, milk composition and milking frequency for cows in a robotic dairy farm","volume":"216","author":"Ji","year":"2022","journal-title":"Biosyst. Eng."},{"key":"ref_45","doi-asserted-by":"crossref","first-page":"22","DOI":"10.5604\/01.3001.0015.5609","article-title":"Effect of temperature and relative humidity on the milk production of dairy cows","volume":"13","author":"Imrich","year":"2021","journal-title":"Sci. Technol. Innov."},{"key":"ref_46","doi-asserted-by":"crossref","first-page":"1947","DOI":"10.3168\/jds.2006-513","article-title":"Temperature-Humidity Indices as Indicators of Milk Production Losses due to Heat Stress","volume":"90","author":"Bohmanova","year":"2007","journal-title":"J. Dairy Sci."},{"key":"ref_47","doi-asserted-by":"crossref","unstructured":"Toghdory, A., Ghoorchi, T., Asadi, M., Bokharaeian, M., Najafi, M., and Ghassemi Nejad, J. (2022). Effects of Environmental Temperature and Humidity on Milk Composition, Microbial Load, and Somatic Cells in Milk of Holstein Dairy Cows in the Northeast Regions of Iran. Animals, 12.","DOI":"10.3390\/ani12182484"},{"key":"ref_48","unstructured":"(2023, May 30). Hot and Bothered Cows Get \u00a31.24 Million Study, 27 April 2023. Available online: https:\/\/www.reading.ac.uk\/news\/2023\/Research-News\/Hot-and-bothered-cows-get-million-pound-study."},{"key":"ref_49","doi-asserted-by":"crossref","first-page":"35","DOI":"10.18689\/ijbr-1000107","article-title":"Temperature-Humidity Indices as Indicators to Heat Stress of Climatic Conditions with Relation to Production and Reproduction of Farm Animals","volume":"1","author":"Habeeb","year":"2018","journal-title":"Int. J. Biotechnol. Recent. Adv."},{"key":"ref_50","doi-asserted-by":"crossref","first-page":"706636","DOI":"10.3389\/fanim.2021.706636","article-title":"Critical Temperature-Humidity Index Thresholds for Dry Cows in a Subtropical Climate","volume":"2","author":"Ouellet","year":"2021","journal-title":"Front. Anim. Sci."},{"key":"ref_51","doi-asserted-by":"crossref","unstructured":"Wang, J., Li, J., Wang, F., Xiao, J., Wang, Y., Yang, H., Li, S., and Cao, Z. (2020). Heat stress on calves and heifers: A review. J. Anim. Sci. Biotechnol., 11.","DOI":"10.1186\/s40104-020-00485-8"},{"key":"ref_52","doi-asserted-by":"crossref","unstructured":"Neves, S.F., Silva, M.C.F., Miranda, J.M., Stilwell, G., and Cortez, P.P. (2022). Predictive Models of Dairy Cow Thermal State: A Review from a Technological Perspective. Vet. Sci., 9.","DOI":"10.3390\/vetsci9080416"},{"key":"ref_53","doi-asserted-by":"crossref","unstructured":"Singh, D., Singh, R., Gehlot, A., Akram, S.V., Priyadarshi, N., and Twala, B. (2022). An Imperative Role of Digitalization in Monitoring Cattle Health for Sustainability. Electronics, 11.","DOI":"10.3390\/electronics11172702"},{"key":"ref_54","doi-asserted-by":"crossref","unstructured":"Shabani, I., Biba, T., and \u00c7i\u00e7o, B. (2022). Design of a Cattle-Health-Monitoring System Using Microservices and IoT Devices. Computers, 11.","DOI":"10.3390\/computers11050079"},{"key":"ref_55","unstructured":"(2023, May 12). Artificial Intelligence in the Agri-Food Sector, Applications, Risks and Impacts, March 2023. Available online: https:\/\/www.europarl.europa.eu\/RegData\/etudes\/STUD\/2023\/734711\/EPRS_STU(2023)734711_EN.pdf."},{"key":"ref_56","doi-asserted-by":"crossref","first-page":"13642","DOI":"10.1038\/s41598-021-93056-4","article-title":"Comparison of machine learning methods to predict udder health status based on somatic cell counts in dairy cows","volume":"11","author":"Bobbo","year":"2021","journal-title":"Sci. Rep."},{"key":"ref_57","doi-asserted-by":"crossref","unstructured":"V\u00e1zquez Diosdado, J.A., Barker, Z.E., Hodges, H.R., Amory, J.R., Croft, D.P., Bell, N.J., and Edward, A. (2015). Classification of behaviour in housed d\u0111airy cows using an accelerometer-based activity monitoring system. Anim. Biotelemetry, 3.","DOI":"10.1186\/s40317-015-0045-8"},{"key":"ref_58","doi-asserted-by":"crossref","first-page":"2341","DOI":"10.1021\/acs.iecr.9b06638","article-title":"A Cloud-Based Monitoring System for Performance Assessment of Industrial Plants","volume":"59","author":"Scali","year":"2020","journal-title":"Ind. Eng. Chem. Res."}],"container-title":["Animals"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2076-2615\/13\/20\/3254\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T21:09:14Z","timestamp":1760130554000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2076-2615\/13\/20\/3254"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,10,18]]},"references-count":58,"journal-issue":{"issue":"20","published-online":{"date-parts":[[2023,10]]}},"alternative-id":["ani13203254"],"URL":"https:\/\/doi.org\/10.3390\/ani13203254","relation":{},"ISSN":["2076-2615"],"issn-type":[{"value":"2076-2615","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,10,18]]}}}