Sort:
Issue
Vegetable Price Prediction Based on Optimized Neural Network Time Series Models
Smart Agriculture 2025, 7(5): 78-87
Published: 01 September 2025
Abstract PDF (2.6 MB) Collect
Downloads:70
Objective

The price volatility of vegetables has profound implications for both farmers and consumers. Fluctuating prices directly impact farmers' earnings and pose challenges to market stability and consumer purchasing behaviors. These fluctuations are driven by a multitude of complex and interrelated factors, including supply and demand, seasonal cycles, climatic conditions, logistical efficiency, government policies, consumer preferences, and suppliers' trading strategies. As a result, vegetable prices tend to exhibit nonlinear and non-stationary patterns, which significantly complicate efforts to produce accurate price forecasts. Addressing these forecasting challenges holds considerable practical and theoretical value, as improved prediction models can support more stable agricultural markets, secure farmers' incomes, reduce cost-of-living volatility for consumers, and inform more precise and effective government regulatory strategies.

Methods

The study investigated the application of neural network-based time series forecasting models for the prediction of vegetable prices. In particular, a selection of state-of-the-art neural network architectures was evaluated for their effectiveness in modeling the complex dynamics of vegetable pricing. The selected models for the research included PatchTST and iTransformer, both of which were built upon the Transformer architecture, as well as SOFTS and TiDE, which leveraged multi-layer perceptron (MLP) structures. In addition, Time-LLM, a model based on a large language model architecture, was incorporated to assess its adaptability to temporal data characterized by irregularity and noise. To enhance the predictive performance and robustness of these models, an automatic hyperparameter optimization algorithm was employed. This algorithm systematically adjusted key hyperparameters such as learning rate, batch size, early stopping, and random seed. It utilized probabilistic modeling techniques to construct performance-informed distributions for guiding the selection of more effective hyperparameter configurations. Through iterative updates informed by prior evaluation data, the optimization algorithm increased the search efficiency in high-dimensional parameter spaces, while simultaneously minimizing computational costs. The training and validation process allocated 80% of the data to the training set and 20% to the validation set, and employed the mean absolute error (MAE) as the primary loss function. In addition to the neural network models, the study incorporated a traditional statistical model, the autoregressive integrated moving average (ARIMA), as a baseline model for performance comparison. The predictive accuracy of all models was assessed using three widely recognized error metrics: MAE, mean absolute percentage error (MAPE), and mean squared error (MSE). The model that achieved the most favorable performance across these metrics was selected for final vegetable price forecasting.

Results and Discussions

The experimental design of the study focused on four high-demand, commonly consumed vegetables: carrots, white radishes, eggplants, and iceberg lettuce. Both daily and weekly price forecasting tasks were conducted for each type of vegetable. The empirical results demonstrated that the neural network-based time series models provided strong fitting capabilities and produced accurate forecasts for vegetable prices. The integration of automatic hyperparameter tuning significantly improved the performance of these models. In particular, after tuning, the MSE for daily price prediction decreased by at least 76.3% for carrots, 94.7% for white radishes, and 74.8% for eggplants. Similarly, for weekly price predictions, the MSE reductions were at least 85.6%, 93.6%, and 64.0%, respectively, for the same three vegetables. These findings confirm the substantial contribution of the hyperparameter optimization process to enhancing model effectiveness. Further analysis revealed that neural network models performed better on vegetables with relatively stable price trends, indicating that the underlying consistency in data patterns benefited predictive modeling. On the other hand, Time-LLM exhibited stronger performance in weekly price forecasts involving more erratic and volatile price movements. Its robustness in handling time series data with high degrees of randomness suggests that model architecture selection should be closely aligned with the specific characteristics of the target data. Ultimately, the study identified the best-performing model for each vegetable and each prediction frequency. The results demonstrated the generalizability of the proposed approach, as well as its effectiveness across diverse datasets. By aligning model architecture with data attributes and integrating targeted hyperparameter optimization, the research achieved reliable and accurate forecasts.

Conclusions

The study verified the utility of neural network-based time series models for forecasting vegetable prices. The integration of automatic hyperparameter optimization techniques notably improved predictive accuracy, thereby enhancing the practical utility of these models in real-world agricultural settings. The findings provide technical support for intelligent agricultural price forecasting and serve as a methodological reference for predicting prices of other agricultural commodities. Future research may further improve model performance by integrating multi-source heterogeneous data. In addition, the application potential of more advanced deep learning models can be further explored in the field of price prediction.

Issue
Artificial Intelligence for Agricultural Science (AI4AS): Key Elements, Challenges and Pathways
Smart Agriculture 2025, 7(3): 35-47
Published: 01 May 2025
Abstract PDF (1.4 MB) Collect
Downloads:49
Significance

Artificial intelligence for science (AI4S), as an emerging paradigm that deeply integrates artificial intelligence (AI) with scientific research, has triggered profound transformations in research methodologies. By accelerating scientific discovery through AI technologies, it is driving a shift in scientific research from traditional approaches reliant on experience and intuition to methodologies co-driven by data and AI. This transition has spurred innovative breakthroughs across numerous scientific domains and presents new opportunities for the transformation of agricultural research. With its powerful capabilities in data processing, intelligent analysis, and pattern recognition, AI can transcend the cognitive limitations of researchers in the field and is gradually emerging as an indispensable tool in modern agricultural scientific research, injecting new impetus into the intelligent, efficient, and collaborative development of agricultural scientific research.

Progress

This paper systematically reviews the current advancements in AI4S and its implications for agricultural research. It reveals that AI4S has triggered a global race among countries around the world vying for the commanding heights of a new round of scientific and technological strategies. Developed nations in Europe and America, for instance, have laid out the frontier areas in AI4S and rolled out relevant policies. Meanwhile, some top universities and research institutions are accelerating related research, and tech giants are actively cultivating related industries to advance the application and deployment of AI technologies in scientific research. In recent years, AI4S has achieved remarkable development, showing great potential across multiple disciplines and finding widespread application in data mining, model construction, and result prediction. In the field of agricultural scientific research, AI4S has played an important role in accelerating multi-disciplinary integration, promoting the improvement of the scientific research efficiency, facilitating the breakthrough of complex problems, driving the transformation of the scientific research paradigm, and upgrading scientific research infrastructure. The continuous progress of information technology and synthetic biology has made the interdisciplinary integration of agriculture and multiple disciplines increasingly closer. The deep integration of AI and agricultural scientific research not only improves the application level of AI in the agricultural field but also drives the transformation of traditional agricultural scientific research models towards intelligence, data-driven, and collaborative directions, providing new possibilities for agricultural scientific and technological innovation. The new agricultural digital infrastructure is characterized by intelligent data collection, edge computing power deployment, high-throughput network transmission, and distributed storage architecture, aiming to break through the bottlenecks of traditional agricultural scientific research facilities in terms of real-time performance, collaboration, and scalability. Taking emerging disciplines such as Agrinformatics and climate-focused Agriculture-Forestry-AI(AgFoAI) as examples, they focus on using AI technology to analyze agricultural data, construct crop growth models, and climate change models, etc., to promote the development and innovation of agricultural scientific research.

Conclusions and Prospects

With its robust capabilities in data processing, intelligent analysis, and pattern recognition, AI is increasingly becoming an indispensable tool in modern agricultural scientific research. To address emerging demands, core domains, and research processes in agricultural research, the concept of agricultural intelligent research is proposed, characterized by human-machine collaboration and interdisciplinary integration. This paradigm employs advanced data analytics, pattern recognition, and predictive modeling to perform in-depth mining and precise interpretation of multidimensional, full-lifecycle, large-scale agricultural datasets. By comprehensively unraveling the intrinsic complexities and latent patterns of research subjects, it autonomously generates novel, scientifically grounded, and high-value research insights, thereby driving agricultural research toward greater intelligence, precision, and efficiency. The framework's core components encompass big science infrastructure (supporting large-scale collaborative research), big data resources (integrating heterogeneous agricultural datasets), advanced AI model algorithms (enabling complex simulations and predictions), and collaborative platforms (facilitating cross-disciplinary and cross-institutional synergy). Finally, in response to challenges related to data resources, model capabilities, research ecosystems, and talent development, actionable pathways and concrete recommendations are outlined from the perspectives of top-level strategic planning, critical technical ecosystems, collaborative innovation ecosystems, disciplinary system construction, and interdisciplinary talent cultivation, aiming to establish a new AI4S-oriented agricultural research framework.

Total 2