Microsoft Word - 15-DRP21834ζŽ’ζΏ.docx Academic Journal of Science and Technology ISSN: 2771-3032 | Vol. 15, No. 1, 2025 86 Optimal Planting Strategy of Crops Based on Particle Swarm Optimization Algorithm Jixuan Chen1, Yichen Jin2, Xinning Pan3 1Shenzhen Audencia Financial Technology Institute, Shenzhen University, Shenzhen, 518060, China 2College of Civil and Transportation Engineering, Shenzhen University, Shenzhen, 518060, China 3College of Physics and Optoelectronic Engineering, Shenzhen University, Shenzhen, 518060, China Abstract: Food security is the top priority related to the national economy and people's livelihood. In the context of the shortage of cultivated land resources, rational planning of cultivated land resources planting is an important measure to improve the utilization rate of cultivated land. This study focuses on the use of improved particle swarm optimization to improve cultivated land use efficiency. In order to solve the shortcomings of the traditional particle swarm optimization in dealing with cultivated land use problems, such as slow convergence speed and easy to fall into local optimum, improved strategies such as adaptive inertia weighting and variation operation were introduced. By constructing an optimization model with cultivated land output benefit and resource utilization as the objective function, the improved algorithm is applied to the actual cultivated land use scenario for simulation experiments. Experimental results show that the improved algorithm can quickly converge to the optimal solution, significantly improve the rationality of spatial allocation and utilization efficiency of cultivated land, provide an effective technical means for the efficient management and rational planning of cultivated land resources, and have important theoretical and practical significance for promoting the sustainable development of agriculture. Keywords: Mixed Integer Programming, Particle Swarm Optimization Algorithm, Pearson Correlation Coefficient, Linear Regression. 1. Introduction Accurate prediction of crop planting strategies is of great significance to ensure food security and protect the ecological environment. The optimization of crop planting location will directly affect the utilization efficiency of land resources, and is of great significance for improving planting efficiency and reducing costs. Traditional forecasting methods are based on linear regression, such as time series method and analysis method, although there are some improvements in optimizing and simplifying paths, but there are still some shortcomings. For example, Lin Zian [1] analyzed the predictability of the time series method, but the accuracy of the method depends largely on the quality and completeness of the data, and the prediction accuracy is still affected by many factors. Chunjiang Zhu et al. [2] based on linear programming can take into account a variety of constraints to find a better solution, but to a large extent ignore the nonlinear relationship, and there are still deficiencies for market changes in real life. Zhang et al. [3] improved the performance of the particle swarm optimization and proposed a hybrid particle swarm optimization that integrates the advantages of other algorithms. Although this method is optimized for global search, it helps to avoid falling into a local optimal solution. However, there are still limitations such as complex parameter settings and applicable scenario limitations. Therefore, by improving the traditional particle swarm optimization algorithm of Guohao Zhang et al. [4] and combining other ideas such as penalty function, it has played a certain role in optimizing the optimal planting position of crops. This paper first introduces the importance of crop planting strategy prediction and its implications for food security and environmental protection. Then, the main prediction methods used in existing research, including linear regression model, time series method, analytical method, and hybrid particle swarm optimization method, are reviewed, and the advantages and limitations of these methods are pointed out. Then, the main problems faced by the current crop planting strategy prediction are summarized, including data dependence, ignoring nonlinear relationships, complex parameter settings, and limited application scenarios. Finally, the need to develop new forecasting methods or improve existing methods to improve the accuracy and adaptability of crop planting strategy forecasting is emphasized. 2. The Basic Functions of Particle Swarm Algorithm 2.1. The structure of particle swarm algorithm Particle Swarm Optimization (PSO) is a heuristic algorithm inspired by swarm intelligence [5], mimicking the cooperative behavior of groups like birds or fish. Each solution, termed a "particle," navigates the solution space, dynamically adjusting its position and velocity based on individual and group experiences. The process involves initialization, fitness evaluation, updating individual and global best values, iterative updates, and checking termination conditions, This is shown in the Figure.1. Particles are randomly generated with initial positions and velocities, their fitness values calculated to assess quality. The current fitness is compared against historical and global bests, updating if better. Subsequently, particle speeds and positions are modified using specific formulas. Finally, termination criteria such as maximum iterations or fitness thresholds are checked to decide whether to output results or continue iterating. 87 Figure 1. The general flow of particle swarm optimization 2.2. Application of particle swarm algorithm Particle Swarm Optimization (PSO) has a wide range of applications, including function optimization to solve complex mathematical function problems such as multimodal and nonlinear functions, feature selection and classifiers designed for image processing and data mining in pattern classification, and economic scheduling, state estimation and stability analysis in power system optimization to find the optimal generator output power distribution scheme to maximize economic benefits. 3. Results 3.1. Prediction and change trend of particle swarm optimization for crop sales when constrained Firstly, check that there are no missing values and outliers in the attachment data, and then visualize the data after integration, and find that the crops that can be planted in various types of land are different under the planting season, so first expand the land number from 1~54 to 1-82, and define and distinguish according to the range requirements, and then establish an integer programming model, which is solved by particle swarm optimization (PSO). The process and results of the planting planning model are as follows: 3.1.1. Objective Functions: The objective function is established, and the goal is to find the maximum value of the total return in 7 years, and then obtain the optimal planting strategy in 7 years. 𝑀 βˆ‘ βˆ‘ 𝑃 𝐿 πœ‡ (1) 𝑇 βˆ‘ βˆ‘ 𝑆 𝐢 (2) π‘ˆ βˆ‘ βˆ‘ 𝑆 𝑃 (3) πœ“ βˆ‘ βˆ‘ 𝑆 (4) πœ‚ βˆ‘ βˆ‘ 𝐿 πœ‡ (5) 𝐼 𝑀 𝑇, πœ‚ πœ“ π‘ˆ 𝑇, πœ‚ πœ“ (6) where I1 represents the profit in the case of waste of unsalable part, Pij represents the sales price of the Y(i,j) crop per mu, Li represents the planting area of the ith plot, ΞΌij represents the yield per mu of the Y(i,j) crop, Sij represents the normal sales volume of the Y(i,j) crop in 2023, and Cij represents the planting cost of the Y(i,j) crop. M: Represents the total planting income of all crops over 7 years when the crop yield is less than or equal to the expected sales volume. T: Represents the total planting cost of all crops over 7 years. U: Represents the income obtained from the sales of all crops over 7 years when the crop yield is greater than the expected sales volume. Ξ·: Represents the actual production of all crops over 7 years. ψ: Represents the total expected sales volume of all crops over 7 years. The objective function for profit maximization can be expressed as the difference between total revenue and total cost. The total revenue is the sum of the income when the crop yield is less than or equal to the expected sales volume and the income when the crop yield is greater than the expected sales volume. The total cost is the total planting cost. 𝐼 𝑀 𝑇, πœ‚ πœ“ π‘ˆ 𝑇 0.5 βˆ‘ βˆ‘ 𝑃 𝐿 πœ‡ 𝑆 , πœ‚ πœ“ (7) where I2 represents the profit in the case of the sale of the unsalable part at half discount. 3.1.2. Constraints The constraints of the function solution are set according to the problem conditions, and the constraints with weak binding force are eliminated, and then the data are calculated and processed by the particle swarm algorithm. Specifically, it is manifested as the constraint problem of particle swarm optimization on the prediction problem and change trend of crop sales. Flat and dry land, terraced fields, hillside land Y , Y , , 1 i 26,1 j 7 βˆ€j ∈ 1,5 , i ∈ 1,26 , βˆƒk ∈ j, j 2 , s. t. Y , 17,19 (8) Water the ground 88 𝑖𝑓 Y , 16, Y , π‘π‘œπ‘‘ π‘‘π‘Žπ‘˜π‘’π‘› π‘–π‘›π‘‘π‘œ π‘Žπ‘π‘π‘œπ‘’π‘›π‘‘ βˆ€j ∈ 1,5 , i ∈ 27,34 , βˆƒk ∈ j, j 2 , s. t. Y , 17,19 (9) Ordinary greenhouses 𝑖𝑓 π‘Œ , 16, π‘Œ , π‘π‘œπ‘‘ π‘‘π‘Žπ‘˜π‘’π‘› π‘–π‘›π‘‘π‘œ π‘Žπ‘π‘π‘œπ‘’π‘›π‘‘ βˆ€π‘— ∈ 1,5 , 𝑖 ∈ 35,50 βˆͺ 62,77 , βˆƒπ‘˜ ∈ 𝑗, 𝑗 2 , 𝑠. 𝑑. π‘Œ , 17,19 (10) Smart greenhouse βˆ€π‘— ∈ 1,5 , 𝑖 ∈ 51,54 βˆͺ 79,82 , βˆƒπ‘˜ ∈ 𝑗, 𝑗 2 , 𝑠. 𝑑. π‘Œ , 17,19 π‘Œ , π‘Œ , , 𝑖 ∈ 51,54 π‘Œ , π‘Œ , , 𝑖 ∈ 79,82 (11) Due to the large number of results and graphs of the model, only the planting strategies of flat dry land, terraced land and hillside land in case 1 are used. The example shows the model solving process, and the rest of the diagrams are attached in the appendix. After 200 iterations of the particle swarm algorithm, the maximum profit in 7 years is obtained, and the results are shown in Figure 2 below, and the results of some planting strategies are shown in Table 1. Figure 2. The best historical iteration of total returns for flat and dry lands, terraced fields, and hillside lands Among them, this part of the objective function (i.e., total profit) is equal to the optimal value: 1.3695Γ—107, which is the total profit of flat and dry land, terraced land and hillside land in 2024~2030 40,407,466 yuan. Compared to the normal sales profit in 2023 5,940,000 RMB, calculated that the model it designed is feasible. Table 1. Results of partial planting strategies on flat and dryland, terraced and hillside lands Plot name Soybeans black beans red beans mung beans climbing beans wheat Corn millet sorghum A1 0 0 0 0 0 0 0 80 0 A2 0 0 0 0 0 0 0 0 0 A3 0 0 0 0 0 0 0 0 0 A4 0 0 0 0 0 0 72 0 0 A5 0 0 0 68 0 0 0 0 0 A6 0 0 0 0 0 0 0 0 0 B1 0 0 0 0 0 0 0 0 0 B2 0 0 0 0 0 0 0 0 0 B3 0 0 0 40 0 0 0 0 0 B4 0 0 0 0 0 0 0 0 28 3.2. The substitutability and complementarity of crops when there are constraints Analysis of the substitutability and complementarity of crops Through the observation of Annex 1, it can be seen that there are five categories of crops: "grain (legumes)", "grains", "vegetables (legumes)", "vegetables", and "edible fungi". Economic value and eco-friendliness are reflected in many aspects: Our improved planting planning model was tested using the Pearson correlation coefficient [6-7] and linear regression pair, and the data of the expected sales volume, planting cost and sales price of crops in 2023 were imported into the SPSS software, and then the multiple linear function model regression [8] was used to analyze the correlation function, and the results are shown in Table 2 and Figure 3 below. 89 Table 2. Linear regression analysis result table category B standard error Beta t P VIF RΒ² Adjust RΒ² F Constant 3182.657 853.768 - 3.728 0.001*** - - - - Plantcost/ (rmb/mu) 0.842 0.279 0.668 3.018 0.006*** 1.582 0.318 0.256 F=5.136 P=0.015** Sales price -83.869 31.185 -0.596 -2.689 0.013** 1.582 - - - Note: ***, **, and * represent the significance levels of 1%, 5%, and 10%, respectively In the linear regression analysis, although the overall model was statistically significant (P = 0.001), only the planting cost per mu had a significant positive impact on yield per mu (P = 0.001). Conversely, sales volume and sales price showed no significant impact (P = 0.814 and P = 0.828, respectively), indicating that these variables have negligible explanatory power for yield changes per mu. Figure 3. Linear regression model path diagram Furthermore, the normalized coefficients of sales volume and sales price were -0.038 and -0.033, respectively, indicating negligible impact on yield per mu. Adding these variables does not significantly enhance the model's explanatory or predictive power, allowing their correlation to be ignored in subsequent processing. The adjusted RΒ² value of 0.343 for the linear regression indicates average explanatory power, suggesting that other important factors or nonlinear relationships may be present. Future improvements should analyze additional effects and consider more complex models to enhance accuracy and reliability. In summary, the current analysis shows weak and insignificant impacts from sales volume and sales price, justifying their exclusion in further processing. Other potential influencing factors and methods should be considered to improve the prediction and interpretation of yield changes per mu. Consequently, it concludes that the expected sales volume of crops in 2023, planting costs, and selling prices are not correlated. 3.3. Construction and solution of improved planting planning model In this paper, it screened the crops that could be planted in the first and second seasons in each category, and screened out some crops with relatively low economic efficiency and no longer planted in the future, so as to construct an improved planting planning model. Crop Screening: For crop selection, it used the TOPSIS evaluation model. The TOPSIS method is a multi-criteria decision analysis tool, which evaluates the proximity of each alternative to the ideal solution by constructing an ideal solution and a negative ideal solution, so as to rank the planting priority of crops, and then carry out crop selection. The steps of Topsis are as follows: a) We selected four indicators for evaluation: expected sales volume, mu cost, mu yield, crop yield per mu, and sales unit price. Build a data matrix 𝐸 𝑒 .The π’†π’Šπ’‹ is the value of the ith crop on the jth index. The normalized method of vector gauge is used to obtain the normative decision matrix. Normalized decision matrix 𝐡 𝑏 𝑏 βˆ‘ (12) b) Construct a weighted gauge matrix 𝐢 𝑐 , 𝑀 𝑀 𝑀 𝑀 (13) 𝑐 𝑀 𝑏 (14) c) Determine the positive ideal solution𝐢 and the negative ideal solution 𝐢 , and let the jth property value of the positive ideal solution be 𝐢 , and the negative ideal solution is the same. Positive ideal solution:𝑐 𝑓 π‘₯ π‘šπ‘Žπ‘₯ 𝑐 , 𝑗 ∈ 𝐽 π‘šπ‘–π‘› 𝑐 , 𝑗 ∈ 𝐽 (15) negative ideal solution: 𝑐 𝑓 π‘₯ π‘šπ‘Žπ‘₯ 𝑐 , 𝑗 ∈ 𝐽 π‘šπ‘–π‘› 𝑐 , 𝑗 ∈ 𝐽 (16) 𝐽 is a collection of benefit-based indicators (such as expected sales volume, yield per mu, and sales unit price), and 𝐽 is a collection of cost-based indicators (such as cost per mu). d) Calculate the distance of each scheme to the positive and 90 negative ideal solutions.to the positive ideal solution is 𝑠 and to the negative ideal solution is 𝑠 𝑠 βˆ‘ 𝑐 𝑐 (17) 𝑠 βˆ‘ 𝑐 𝑐 (18) e) Calculate the ranking index value (the comprehensive evaluation index) of each program 𝑓 (19) To sum up, the crops it eliminated and their types are: crops in the first quarter: grain (legumes): red beans, mung beans, climbing beans; Grains: sorghum, millet, wheat, barley, sword beans; Vegetables (legumes): kidney beans; Vegetables: spinach, green peppers, cauliflower, cabbage, lettuce, peppers, yellow cabbage crops in the second quarter: vegetables (legumes): sword beans; Vegetables: potatoes, spinach, green peppers, lettuce, baby greens, lettuce, yellow cabbage, celery, carrots; Edible mushrooms: elm mushroom, shiitake mushroom. Finally, the results of the different models in the two cases are shown as follows: Figure 4. Comparison of economic benefits before and after model optimization As shown in Figure 4, the average annual total consumption of the improved model according to question 3 is significantly higher than that of the previous model, especially the total consumption in 2028 will reach 8.25 10 yuan, and the results of the improved model are better than those of the previous model, which proves that the improved planting planning model has better performance. 4. Conclusions This paper explores optimizing planting methods in China to enhance cultivated land utilization and address organic farming challenges. A particle swarm optimization-based integer programming model is developed, considering factors like growth characteristics, planting time, cost, yield per mu, and sales price. The model breaks down complex problems into manageable sub-problems for improved efficiency and predicts crop sales trends while examining crop substitutability and complementarity. This addresses issues such as cultivated land shortage and declining planting areas. The solution simplifies the use of PSO, significantly improving processing speed with large datasets. The model is practical, easy to build, and portable. While the PSO algorithm enables parallel processing for better search efficiency, it may converge prematurely, yielding only local optimal solutions. The model's performance heavily depends on parameter settings like inertia weight, learning factor, and number of iterations; poor parameters can negatively impact the results.In order to further improve the algorithm and improve the performance of the algorithm, it suggests that it be mixed with other heuristic algorithms, in addition to increasing the amount of raw data, to improve the accuracy and scientific of the model optimization results. The algorithm can also be used in similar decision allocation problems, and has a wide application prospect. References [1] Zian L ,Xiyan S ,Yuanfa J .Landslide Displacement Prediction Model Using Time Series Analysis Method and Modified LSTM Model[J].Electronics,2022,11(10):1519-1519. [2] Chunjiang Z. Study on Structure Optimization of Agriculture Plantation Based on Linear Programming Model[J]. Journal of Anhui Agricultural Sciences, 2006, 34(12): 2623. [3] SCHWAAB M, BISCAIA J, EVARISTO C. Nonlinear parameter estimation through particle swarm optimization[J]. Chem Eng Sci,2008,63(6) :1542-1552. [4] Zhang G ,Wang C ,Wang H , et al.Advanced data augmentation techniques coupled with enhanced particle swarm optimization for predicting total phosphorus concentrations in limited transmission spectra samples: A case study on the Yangtze River[J].Journal of Water Process Engineering, 2024, 68106547-106547. [5] Zhen H.Ying P.Xiaoli C.Research on the basic theory and improvement of particle swarm algorithm[J].Silicon Valley, 2014, 7(05):37+36. 91 [6] Nimit S ,Ali Z J ,Sarayute T , et al.The Indonesian youth tourist motivation intention to visit Phuket: a post Covid-19 study with the moderating role of health risk using SPSS PROCESS macro (Model 1)[J].Journal of Islamic Marketing, 2025, 16(1):141- 165. [7] Li Z ,Wang L ,Wang D .Analysis of music similarity based on Pearson correlation coefficient[J].Art and Performance Letters, 2021, 2(5). [8] Zaiying Z. Tolerance of non-homogeneous linear estimation of regression coefficient matrix in multiple linear model[J].Acta mathematica scientia, 2010, 30(06):1621-1628.