Alibaba is best known-as China’s largest e-commerce company, but it’s lately made forays into artificial intelligence and cloud computing. Through a program it calls ET Brain, it’s using AI to improve traffic and city planning, increase airport efficiency, and diagnose illness.

The company’s latest AI foray is taking place among pigs.

Alibaba’s Cloud Unit signed an agreement on Feb. 6 with the Tequ Group, a Chinese food-and-agriculture conglomerate that raises about 10 million pigs each year (link in Chinese), to deploy facial and voice recognition on Tequ’s pig farms.

According to an Alibaba representative, the company will offer software to Tequ that it will deploy on its farms with its own hardware. Using image recognition, the software will identify each pig based on a mark placed on its body. This corresponds with a file for each pig kept in a database, which records and tracks characteristics such as the pig’s breed type, age, and weight. The software can monitor changes in the level of a pig’s physical activity to assess its level of fitness. In addition, it can monitor the sounds on the farm—picking up a pig’s cough, for example, to assess whether or not the pig is sick and at risk of spreading a disease. The software will also draw from its data to assess which pigs are most capable of giving birth to healthy offspring.

Tequ’s CIO stressed that taking care of pigs is no easy task for large pig farms. “If you have 10 million pigs, relying on manpower is already not enough,” he said (link in Chinese), according to a report by local publication Tianxia Wangshang, adding that it’s impossible to manually count each pig given how many are born every day.

Alibaba told Quartz that the software is currently in use at some of Tequ’s farms already.

Alibaba is not the only Chinese tech company to venture into rearing China’s favorite meat. William Ding, CEO of Chinese game maker NetEase, opened a pig farm in 2009, where black hogs are raised hormone-free. Weiyang, the company’s pork-centric subsidiary, went on to raise $23 million from high-profile Chinese VC firms. Ding has been open about how the project is intended less as a business and more as a means to raise awareness about food scandals in China. “My intention is to explore new farming models by raising pork and at the same time, make a contribution to solving food safety problems,” he told Chinese media. “I am putting on a stunt to raise people’s awareness.”

China is the world’s largest supplier, consumer, and importer of pork. The country produced 53.5 million (.pdf) metric tons of pork in 2017, and since 2007 has kept a pork reserve that it uses to control pork prices (paywall).