Resumen
The internal temperature of the pigsty has a great impact on the pigs. Keeping the temperature in the pigsty within a certain range is a pressing problem in environmental control. The current pigsty temperature regulation method is based mainly on manual and simple automatic control. There is rarely intelligent control, and such direct methods have problems such as low control accuracy, high energy consumption and untimeliness, which can easily lead to the occurrence of heat stress conditions. Therefore, this paper proposed an improved sparrow search algorithm (ISSA) based on a multi-strategy improvement to optimize the least squares support vector machine (LSSVM) to form a pigsty temperature prediction model. In the optimization process of the sparrow search algorithm (SSA), the initial position of the sparrow population was first generated by using the reverse good point set; secondly, the population number update formula was proposed to automatically adjust the number of discoverers and followers based on the number of iterations to improve the search ability of the algorithm; finally, the adaptive t-distribution was applied to the discoverer position variation to refine the discoverer population and further improve the search ability of the algorithm. Tests were conducted using 23 benchmark functions, and the results showed that ISSA outperformed SSA. By comparing it with the LSSVM models optimized by four standard algorithms, the prediction effect of the ISSA-LSSVM model was tested. In the end, the ISSA-LSSVM temperature prediction model had MSE of 0.0766, MAE of 0.2105, and R2 of 0.9818. The results showed that the proposed prediction model had the best prediction performance and prediction accuracy, and can provide accurate data support for the prediction and control of the internal temperature of the pigsty.