Contemporary swine husbandry falls short in operational effectiveness, as current systems depend largely on electromechanical controls and can only classify pigs by body mass. Such a method is not only inefficient but also increases labor overheads and the risk of zoonotic infections. Additionally, confining pigs in large herds can worsen disease transmission and make the observation and treatment of unwell animals more difficult. This investigation conducted a trial to develop a deep-learning categorization mechanism, drawing on a dataset enriched with essential metrics and farm imagery amassed over 24 months. The study utilized a Kalman filter-based algorithm to boost the precision of the dynamic categorization process. The experiment introduced a first-of-its-kind machine vision classification system, powered by deep learning, capable of processing live images for multifaceted recognition. The individual recognition model, built on a Residual Neural Network (ResNet), predicts livestock mass using ongoing data. In contrast, the Wasserstein Generative Adversarial Nets (WGAN) image enhancement algorithm improves recognition across diverse conditions, thereby strengthening the model’s resilience. Crucially, the system can detect livestock exhibiting signs of likely illness via atypical body language and sequester them for protection. Experimental results confirm the advantage of the introduced system over standard alternatives. It not only reduces manual intervention and data maintenance costs but also improves the accuracy of livestock recognition and better uses data. The outcomes demonstrate an 89% success rate in livestock ID recognition, a 32% increase in blocked-image recognition, a 95% surge in livestock categorization precision, and a striking 98% success rate in distinguishing pictures of sick pigs. In essence, this research enhances identification efficiency, reduces operating costs, and provides superior tools for disease surveillance.