Next Article in Journal
The Influence of Sample Size on Long-Term Performance of a 6σ Process
Next Article in Special Issue
Enhanced Cyber Attack Detection Process for Internet of Health Things (IoHT) Devices Using Deep Neural Network
Previous Article in Journal
PCB Defect Detection Based on Deep Learning Algorithm
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Environmental Prediction in Cold Chain Transportation of Agricultural Products Based on K-Means++ and LSTM Neural Network

1
College of Information Science and Technology, Zhongkai University of Agriculture and Engineering, Guangzhou 510225, China
2
Intelligent Agriculture Engineering Technology Research Centre, Zhongkai University of Agriculture and Engineering, Guangzhou 510225, China
3
Guangzhou Key Laboratory of Agricultural Products Quality & Safety Traceability Information Technology, Zhongkai University of Agriculture and Engineering, Guangzhou 510225, China
*
Authors to whom correspondence should be addressed.
Processes 2023, 11(3), 776; https://doi.org/10.3390/pr11030776
Submission received: 11 January 2023 / Revised: 26 February 2023 / Accepted: 1 March 2023 / Published: 6 March 2023
(This article belongs to the Special Issue Innovating Architecture, Processes and Applications in Industry IoT)

Abstract

:
Experiments have proven that traditional prediction research methods have limitations in practice. Proposing countermeasures for environmental changes is the key to optimal control of the cold chain environment and reducing the lag of control effects. In this paper, a cold chain transportation environment prediction method, combining k-means++ and a long short-term memory (LSTM) neural network, is proposed according to the characteristics of the cold chain transportation environment of agricultural products. The proposed prediction model can predict the trend of cold chain environment changes in the next ten minutes, which allows cold chain vehicle managers to issue control instructions to the environmental control equipment in advance. The fusion process for temperature and humidity data measured by multiple data sensors is performed with the k-means++ algorithm, and then the fused data are fed into an LSTM neural network for prediction based on time series. The prediction error of the prediction model proposed in this paper is very satisfactory, with a root-mean-square error (RMSE), mean absolute error (MAE), mean squared error (MSE), mean absolute percentage error (MAPE) and R-squared of 0.5707, 0.2484, 0.3258, 0.0312 and 0.9660, respectively, for temperature prediction, and with an RMSE, MAE, MSE, mean absolute percentage error and R-squared of 1.6015, 1.1770, 2.5648, 0.2736 and 0.9702, respectively, for humidity prediction. Finally, the LSTM neural network and back propagation (BP) neural network are compared in order to enhance the reliability of the results. In terms of the prediction effect of the temperature and humidity in cold chain vehicles transporting agricultural products, the proposed model has a higher prediction accuracy than that of existing models and can provide strategic support for the fine management and regulation of the cold chain transportation environment.

1. Introduction

The scale of cold chain logistics has been rapidly developing and growing in recent years due to the increase in people’s levels of consumption. Because of the strong time-dependency of agricultural products, the quality of the cold chain transportation environment is particularly important for the preservation of agricultural products. Among many environmental factors, the internal temperature and humidity of compartments are key factors affecting the quality of agricultural products. Abnormal changes in temperature and humidity in the cold chain transportation environment lead to the reproduction and proliferation of bacteria, which is very detrimental to the quality of agricultural products. Therefore, the study of efficient cold chain transport environments, with the aim of obtaining accurate temperature and humidity predictions, can help the cold chain department better control temperature and humidity, which is important for ensuring the safety and quality of agricultural products.
To date, there has been a great deal of research in the area of cold chain monitoring [1,2,3,4]. Experts have been studying temperature and humidity forecasting for years [5,6,7,8,9,10]. One study in the literature [11] proposed a new method for fruit freshness prediction based on multi-sensing technology and a machine learning algorithm. The results showed prediction accuracies of 90.87% (BP), 92.24% (RBF), 94.01% (SVM) and 91.31% (ELM). Maintaining and monitoring the quality of eggs during cold chain storage and transportation is a major concern due to the variation in external environmental factors, such as temperature or humidity [12]. The convolutional neural network (CNN) and long short-term memory (LSTM) algorithms have been stacked to make one deep learning model with hyperparameter optimization to increase HU value prediction performance. Experiments have proven that traditional prediction research methods have limitations in practice. Therefore, in order to grasp the change pattern of each variable in the refrigerated compartment, new artificial intelligence prediction algorithms are used to accurately predict temperature and humidity in the cold chain environment.
Commonly used forecasting methods include time series analysis and machine learning. In recent years, deep learning methods, represented by recurrent neural networks and convolutional neural networks in machine learning, have achieved good results in cold chain prediction. Taking BP as an example, Zhang et al. [13] proposed an improved bacterial chemotaxis optimization (IBCO), which was then integrated into the back propagation (BP) artificial neural network to develop an efficient forecasting model for the prediction of various stock indices. Experiments showed its performance to be superior to that of other methods in terms of learning ability and generalization. Qiao et al. [14] constructed a shelf-life prediction model based on a back propagation (BP) neural network using four kinds of environmental parameters, including temperature, humidity, oxygen and carbon dioxide, to perceive the quality of post-harvest strawberries, also building a cold chain transportation quality perception system (CCT-QPS) with the help of LabVIEW software for constantly monitoring the cold chain environment and commodity quality. The results showed that the proposed method could precisely predict the remaining shelf-life of post-harvest strawberries. A long short-term memory (LSTM) network is a special kind of RNN that is widely used in various fields [15,16,17,18,19,20,21,22]; among them, Duan [23] used LSTM neural networks for travel time prediction. The evaluation results showed that deep learning models considering sequence relations are promising in traffic series data prediction. Park et al. [24] used LSTM neural networks to predict the end-of-life of lithium-ion batteries to reduce the risk of battery failure; the results showed that LSTM is very effective in predicting battery lifetime. Nelson et al. [25] predicted future trends in stock prices based on LSTM neural network forecasts. The results that were obtained were promising, reaching an average of 55.9% accuracy when predicting whether the price of a particular stock is going to go up in the near future. Tsironi et al. [26] collected a large amount of data through shelf-life studies under isothermal and variable conditions, as well as in the actual cold chain. They developed predictive models for the effect of temperature on ready-to-eat green leafy salads. The LSTM prediction model used in this paper predicted the temperature and humidity data in the cold chain environment, and the error obtained was obviously smaller than those of the prediction results of other methods.
However, these studies have relied only on sensor output for analysis and processing. Moreover, there may have been lags in regulation, leading to decreases in the quality of produce. Proposing countermeasures for environmental changes is the key to optimal control of the cold chain environment and reducing the lag of control effects. The relevant data for this study were collected from distinct distributional spaces. The spatial data fusion of temperature and humidity series was performed by using the k-means++ algorithm. This action achieves data dimensionality compression and data redundancy reduction and improves the accuracy of the prediction. Since its inception, LSTM has been employed to address the pervasive long-term dependency issue in general recursive neural networks. Utilizing LSTM can effectively transmit and express information in long-term sequences without neglecting valuable information from the distant past and hence is deemed particularly efficacious for time series prediction. Furthermore, LSTM can resolve the vanishing gradient problem in RNNs. The temperature and humidity data in cold chain environments constitute a long-term sequence. This dataset is highly suitable for time series prediction using LSTM. This paper proposes a cold chain transport prediction model based on a combination of k-means++ and LSTM. It is based on the idea of the fusion of temperature and humidity data using the k-means++ algorithm. The LSTM prediction model is later used to predict the future temperature and humidity data. Experiments have proven that this can effectively improve prediction accuracy.
Section 2 describes the system framework and hardware design. Section 3 presents the details of the forecasting principles and methods. Section 4 gives the different experimental results, together with the analysis and discussion. Section 5 gives practical applications. Finally, our conclusions are given in Section 6.

2. System Framework and Hardware Design

First, we designed an environmental prediction platform for the cold chain transport of agricultural products based on IoT architecture. A schematic diagram of the system is shown in Figure 1. The Stm32f405 chip (32-bit processor) was used for the main control unit. We used it as the control unit of our system for the following reasons: the power consumption of Stm32f405 is lower, and the development of Stm32f405 is relatively easy, which can shorten the development time. In this study, we directly programmed the Stm32f405 chip by connecting it to a PC and utilizing the interfaces of programmer devices (In-System Programming, ISP). The ISP programmer that we utilized to program the chip is PEmicro CYCLONE-LC-UNIV. The MQ Telemetry Transport (MQTT) protocol is transplanted to the master control unit and controls the ESP8266 communication module [27,28,29]. The temperature and humidity concentrations in the cold chain vehicle were transmitted to AliCloud in real time. A WEB console was then further developed based on the IoT architecture to receive and process these real-time data from the master control unit.
The overall block diagram of the hardware system is shown in Figure 2a. It mainly consists of the main control unit Stm32f405 module, a DHT11 sensor module, an ADT7320 temperature sensor module, an ESP8266 communication module and a Li-ion battery power supply module. In this study, the DHT11 is only responsible for collecting the humidity in the cold chain vehicle, and, to ensure the response time, the proposed system uses the ADT7320 temperature module as the temperature acquisition source for the cold chain vehicle. The ESP8266 communication module is responsible for realizing the data interaction between the main control unit and the cloud server. The lithium battery power supply module is responsible for providing the driving voltage (3.3 V) required by the main control unit and the previous modules to ensure the normal operation of the hardware system in the cold chain vehicle. A picture of the employed hardware system to implement the idea is shown in Figure 2b.

3. Forecasting Principles and Methods

3.1. K-Means++ Data Fusion

The k-means++ algorithm is an improved clustering version of the k-means algorithm [30,31,32]. It is based on the principle of the k-means clustering algorithm. This algorithm is obtained by optimizing the initial clustering centers. For example, a complex spectral–spatial classification scheme for hyperspectral images was proposed and explored in the literature [33]. The k-means++ algorithm is used for image clustering. The proposed method provides improved precision and speed of hyperspectral data classification. Spatial data fusion of temperature and humidity series was performed by using the k-means++ algorithm. This action achieves data dimensionality compression and data redundancy reduction and improves the accuracy of the data. We used the fused temperature and humidity time series to represent the temperature and humidity state of the entire refrigerated compartment and then used it to construct the input time series samples for the prediction model. The process is shown in Figure 3.
The k-means++ data fusion algorithm has the following main steps:
(1) Randomly select one sample point on data set γ as the first initial clustering center, α.
(2) Count the shortest distance between each sample to the existing clustering center and express it as D ( x ) .
(3) Count the probability, P ( x ) , of each sample point being selected as the next clustering center and select the sample point corresponding to the maximum probability value as the next clustering center.
P ( x ) = D ( x ) 2 x γ D ( x ) 2
(4) Repeat steps (2) and (3) until the kth cluster center is selected.
(5) Count the k clustering centers obtained and run the k-means clustering algorithm.

3.2. LSTM Neural Network

A long short-term memory neural network is a special type of recurrent neural network (RNN) [34,35,36,37,38]. To implement this mechanism, the maintenance of information is controlled by three gates: an input gate, a forget gate and an output gate. It is a better solution to the long-time dependence problem, the gradient disappearance problem and the explosion problem of RNNs [39,40,41,42].
Figure 4 shows the internal structure of an LSTM cell with a peephole. It is particularly popular for predicting time series, where fixed length windows of time series are generated and fed into an LSTM network.
The input sequence of the LSTM can be displayed as { x 1 , x 2 , , x t } , where the subsequent x t R K is the K-dimensional vector associated with the tth time interval. The LSTM structure comprises an input gate, i t ; an output gate, O t ; and a forget gate, f t , W f ,   W i ,   and   W o are the forget gate weights, input gate weights and output gate weights, respectively. W c is the candidate vector weight. b c is the candidate vector bias. C t is the candidate vector at moment t . C ˜ t is the updated value of the candidate vector at time t. h t   and   h t 1 are all outputs of the model at times t and t − 1. The descriptions [45] are as follows:
(1) Forget gate
f t = σ ( W f [ h t 1 , x t ] + b f )
(2) Input gate
i t = σ ( W i [ h t 1 , x t ] + b i )
(3) Output gate
O t = σ ( W o [ h t 1 , x t ] + b o )
(4) Unit
C ˜ t = tanh ( W c [ h t 1 , x t ] + b c )
C t = f t C t 1 + i t C ˜ t
(5) Final output
h t = O t t a n h ( C t )

3.3. Combination of K-Means++ Algorithm and LSTM Neural Network

This experiment constructed a k-means++-based LSTM prediction model. It is based on the idea of the fusion of temperature and humidity data using the k-means++ algorithm. The LSTM prediction model was later used to predict future temperature and humidity data. Experiments have proven that this can effectively improve prediction accuracy. The prediction process is shown in Figure 5.
The specific steps in the cold chain prediction are as follows:
(1) Remote collection of temperature and humidity data from each sensor in the cold vehicle.
(2) Cleaning of the data.
(3) Data fusion using the k-means++ algorithm.
(4) Dividing the fused data into a training set and a test set.
(5) Performing parameter tuning on the model to obtain the optimal parameters.
(6) Importing the test set data into the model for prediction and obtaining the prediction results.

3.4. Model Evaluation Indicators

In order to assess the prediction effect of the model, this paper chose four indicators to evaluate it.
(1) Root-mean-square error (RMSE). The order of magnitude is more intuitive, and the range is [0, +∞). When the true value is the same as the predicted value, it is equal to zero, which is a perfect model.
e R M S E = 1 m i = 1 n ( x ( i ) y ( i ) ) 2
(2) Mean absolute error (MAE). When the real value is the same as the predicted value, the value is zero, which is a perfect model.
e M A E = 1 m i = 1 n | y ( i ) x ( i ) |
(3) Mean absolute percentage error (MAPE). The range is [0,+∞). A result of 0% indicates a perfect model, and a result greater than 100% indicates an inferior model.
e M A P E = 100 % m i = 1 n | x ( i ) y ( i ) y ( i ) |
(4) Mean squared error (MSE). As the error becomes larger, the value becomes larger.
e M S E = 1 m i = 1 n ( x ( i ) y ( i ) ) 2
(5) R-squared coefficient of determination (where R is the correlation coefficient, and the square of the correlation coefficient is the coefficient of determination). As the R-squared coefficient of determination comes closer to 1, the model’s prediction accuracy becomes higher.

4. Results and Discussion

4.1. Experimental Preparation

The main products transported in the cold chain were vegetables and other agricultural products. The transport route was from Guangzhou Baiyun to Guangzhou Haizhu. The dimensions of the box contained in the cold chain truck were 4075 × 2060 × 1860 (mm). In combination with the size of the cold chain truck and the location of the agricultural products, four hardware systems (i.e., four temperature collection sources and four humidity collection sources), designed for this study, were placed inside the boxes.
The experimental data collection period for this study was from 1 March 2022 to 6 March 2022. A total of approximately 1500 temperature and humidity data points were collected by the system. The system was set to collect temperature and humidity data every 10 min. Some of the raw data are shown in Table 1. To ensure the accuracy of the prediction model, this study used linear interpolation for data loss repair.

4.2. Forecast Results

4.2.1. K-Means++ Data Fusion Results

This paper used one time period from the raw data for analysis. The raw temperature data are illustrated in Figure 6a. The temperature changes were cyclical in nature, with a cycle time between 70 and 80 min. The relative humidity data are illustrated in Figure 6b. The temperature variation was also cyclical, with a cycle time between 65 and 75 min.
The k-means++ algorithm performs clustering based on the Euclidean distance of the data from the initial points. It is characterized by its high computational speed and efficiency. The algorithm abandons the k-means random selection of clustering centers. The fused data are shown in Figure 7a,b. This data fusion improved the accuracy to a certain extent and presented a more accurate periodicity. In this paper, we used the fused temperature and humidity time series representation. Thus, the input time series samples were constructed.

4.2.2. LSTM Neural Network Prediction Results

The data were processed using the k-means++ algorithm. The data were then normalized and divided into a training set and a test set according to a 7:3 division ratio. The data were fed into the LSTM model and an LSTM prediction model based on the k-means++ algorithm that was constructed. In this paper, the models were trained separately for temperature and humidity, and the predictions were more accurate.
The LSTM model for temperature was trained using the Adam algorithm optimizer. The number of iterations was set to 82, and the number of neurons was ten. Four experiments were conducted separately. The number of nodes in the hidden layer and the time steps are shown in Table 2.
Figure 8 represents the trend in the predicted and actual values of temperature for the four groups of the LSTM neural network. As can be seen from the figures, the temperature prediction curve fits well for the four sets of experiments. The predictions at the extremes were relatively less accurate overall, which is where errors mainly occurred.
The LSTM model for humidity was also trained using the Adam algorithm optimizer. The number of iterations was set to 95, and the number of neurons was 27. Four experiments were conducted separately. The number of nodes in the hidden layer and the time steps are shown in Table 3.
Figure 9 represents the trend of the predicted and actual values of humidity for the four groups of the LSTM neural network. The main errors occurred where the data set fluctuates considerably.

4.2.3. Evaluation of Forecast Results

It can be seen from Figure 8 that Test one was able to fit the approximate trend of the actual temperature profile better than the other three sets of tests. The remaining three trials did not have as good of a fit as Test one because of the number of nodes in the hidden layer and the time steps. As can be seen from the curves in Figure 9, Test one could better fit the actual humidity curve trend. Test four had too many nodes in the implied layer and appeared to be over-fitted. The curve appears to fluctuate, which reduces the prediction effect. The experiments show that the settings of the number of nodes in the hidden layer and the time steps hada relatively large degree of influence on the curve-fitting effect.
In order to reflect the error values of the four prediction models more directly, we made a prediction error comparison with different parameters. Table 4 shows the RMSE, MAE, MSE and R-squared of the four prediction models. The first group of experiments achieved the best results for both the humidity and temperature prediction models, as listed in Table 4. The RMSE, MAE, MSE, MAPE and R-squared for temperature reached 0.5707, 0.4284, 0.3258, 0.0312 and 0.9660, respectively. The RMSE, MAE, MSE, MAPE and R-squared for relative humidity reached 1.6015, 1.1770, 2.5648, 0.2736 and 0.9702, respectively. This illustrates that the k-means++-based LSTM prediction model is more satisfactory for cold chain transportation environment prediction.

4.2.4. Comparison

In order to verify the proposed prediction models, a comparison experiment was set up in this paper. Using k-means++–BP as the reference model, the temperature and humidity prediction effects of the two different prediction models were examined and compared. The prediction results of the two groups of models are shown in Figure 10. The errors of the two groups of models are shown in Table 5. It can be seen from Figure 10 that both sets of prediction models could predict the temperature and humidity in the cold chain transport carriage to different degrees. The results show that the prediction results of the two groups of models are in line with the trend of the actual data changes, but the prediction effects were different.
It can be concluded that the prediction results of the k-means++ and LSTM neural network are better than those of the k-means++ and BP neural network. The prediction accuracy of the k-means++ and LSTM neural network prediction model established in this experiment was relatively high. It could accurately predict the change pattern of temperature and humidity in the cold chain transport carriage in the next 10 min.
The results in Table 5 show that the RMSE, MAE, MSE and MAPE of the k-means++-LSTM temperature predictions were reduced by 25.69%, 27.91%, 44.78% and 50.19%, respectively, relative to the k-means++–BP predictions. The RMSE, MAE, MSE and MAPE for relative humidity were reduced by 33.03%, 25.58%, 55.16% and 50.64%, respectively.
As can be seen from Table 5, the k-means++–LSTM prediction model had less error volatility and better results with a single time series prediction compared to those of the k-means++–BP prediction model. The LSTM neural network could accurately predict the temperature and humidity in the cold chain environment 10 min in advance, which could provide a decision basis for the regulation of temperature and humidity in the cold chain transportation environment.

5. Practical Applications

The predicted results from this experiment were applied to the control of the temperature and humidity environment in a cold chain vehicle in practice. The predicted data from the present study were applied to actual cold chain transport in the same vehicle used for the experiment. Again, the cold chain truck was used to transport mainly agricultural products, such as vegetables, following the same driving route.
The actual data collected are shown in Figure 11. The refrigeration system and humidity regulation systems were adjusted in advance inside the cold chain vehicle with reference to the predictions of this paper. The aim of this experimental cold chain prediction was to achieve early command of the refrigeration system and the humidity regulation system. The results show that this application achieved the desired objective and provided good assurance on the quality of the produce.

6. Conclusions

For the characteristics of cold chain data, this paper proposes a new cold chain transport prediction method, which effectively improves the prediction effect. The results indicate that, in a cold chain transportation environment, the RMSE, MAE, MSE and R-squared of the temperature prediction by the k-means++-based LSTM prediction model are 0.5707, 0.4284, 0.3258 and 0.9660, respectively. The RMSE, MAE, MSE and R-squared of the relative humidity prediction are 1.6015, 1.1770, 2.5648 and 0.9702, respectively. The prediction effect is obvious and can accurately reflect the actual cold chain environment.
The cold chain temperature and humidity prediction model proposed in this paper accurately reflects the temperature and humidity trend in the cold chain transportation environment of agricultural products. The proposed prediction model can predict the trend of cold chain environment changes in the next ten minutes, which allows the cold chain vehicle managers to issue control instructions to the environmental control equipment in advance. This greatly alleviates the problem of lagging control effects.
In the future, we will test other algorithms, such as the Kalman filter with a state transition matrix taking into account the cyclicity (Fourier series), and we will study a novel prediction approach based on multi-model combination.

Author Contributions

Conceptualization, J.J.; data curation, Z.L.; formal analysis, Z.L. and N.C.; funding acquisition, J.J. and S.L.; investigation, C.P. and N.C.; validation, W.L.; visualization, S.L.; writing—original draft preparation, J.J.; writing—review and editing, Z.L. and N.C. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported in part by the National Natural Science Foundation of China under Grant 61871475, in part by the Guangdong Science and Technology Plan under Grant 201905010006, in part by the Guangzhou Science Research Plan under Grant 201904010233 and Grant 201903010043 and in part by the Guangzhou Rural Science and Technology Specialists Project under Grant 20212100058.

Data Availability Statement

The data used and/or analyzed during the current study are available from the corresponding author on reasonable request.

Acknowledgments

We thank Aiqing Huang, Zhongyu Pan and the development engineers for their initial work with the control platform.

Conflicts of Interest

The authors declare that there are no conflict of interest regarding the publication of this paper.

References

  1. Zhao, H.; Liu, S.; Tian, C.; Yan, G.; Wang, D. An overview of current status of cold chain in China. Int. J. Refrig. 2018, 88, 483–495. [Google Scholar] [CrossRef]
  2. Konovalenko, I.; Ludwig, A.; Leopold, H. Real-time temperature prediction in a cold supply chain based on newton’s law of cooling. Decis. Support Syst. 2021, 141, 113451. [Google Scholar] [CrossRef]
  3. Mai, N.T.; Gudjónsdóttir, M.; Lauzon, H.L.; Sveinsdóttir, K.; Martinsdóttir, E.; Audorff, H.; Arason, S. Continuous quality and shelf life monitoring of retail—Packed fresh cod loins in comparison with conventional methods. Food Control 2011, 22, 1000–1007. [Google Scholar] [CrossRef]
  4. Díaz, S.E.; Pérez, J.C.; Mateos, A.C.; Marinescu, M.C.; Guerra, B.B. A novel methodology for the monitoring of the agricultural production process based on wireless sensor networks. Comput. Electron. Agric. 2011, 76, 252–265. [Google Scholar] [CrossRef]
  5. Choi, H.; Moon, T.; Jung, D.H.; Son, J.E. Prediction of air temperature and relative humidity in greenhouse via a multilayer perceptron using environmental factors. J. Bio-Environ. Control 2019, 28, 95–103. [Google Scholar] [CrossRef]
  6. Qin, L.; Ma, G.; Chu, Z.; Wu, G. Modeling and control of greenhouse temperature-humidity system based on grey prediction model. Trans. Chin. Soc. Agric. Eng. 2016, 32, 233–241. [Google Scholar]
  7. Yue, Y.; Quan, J.; Zhao, H.; Wang, H. The prediction of greenhouse temperature and humidity based on LM-RBF network. In Proceedings of the 2018 IEEE International Conference on Mechatronics and Automation (ICMA), Changchun, China, 5–8 August 2018; IEEE: Changchun, China, 2018; pp. 1537–1541. [Google Scholar]
  8. Yigit, K.S.; Ertunc, H.M. Prediction of the air temperature and humidity at the outlet of a cooling coil using neural networks. Int. Commun. Heat Mass Transf. 2006, 33, 898–907. [Google Scholar] [CrossRef]
  9. Ma, X.; Fang, C.; Ji, J. Prediction of outdoor air temperature and humidity using Xgboost. In Proceedings of the IOP Conference Series: Earth and Environmental Science—2019 the 2nd International Symposium on Water Pollution and Treatment, Bangkok, Thailand, 17–18 October 2019; Volume 427, p. 012013. [Google Scholar]
  10. Daskalov, P.I. Prediction of temperature and humidity in a naturally ventilated pig building. J. Agric. Eng. Res. 1997, 68, 329–339. [Google Scholar] [CrossRef]
  11. Huang, W.; Wang, X.; Zhang, J.; Xia, J.; Zhang, X. Improvement of blueberry freshness prediction based on machine learning and multi-source sensing in the cold chain logistics. Food Control 2023, 145, 109496. [Google Scholar] [CrossRef]
  12. Kim, T.H.; Kim, J.H.; Kim, J.Y.; Oh, S.E. Egg freshness prediction model using real-time cold chain storage condition based on transfer learning. Foods 2022, 11, 3082. [Google Scholar] [CrossRef]
  13. Zhang, Y.; Wu, L. Stock market prediction of S&P 500 via combination of improved BCO approach and BP neural network. Expert Syst. Appl. 2009, 36, 8849–8854. [Google Scholar]
  14. Qiao, J.; Guo, M.; Wu, Y.; Gao, J.; Yue, Z. Research on strawberry cold chain transportation quality perception method based on BP neural network. Appl. Sci. 2022, 12, 8872. [Google Scholar] [CrossRef]
  15. Fu, R.; Zhang, Z.; Li, L. Using LSTM and GRU neural network methods for traffic flow prediction. In Proceedings of the 2016 31st Youth Academic Annual Conference of Chinese Association of Automation (YAC), Wuhan, China, 11–13 November 2016; pp. 324–328. [Google Scholar]
  16. Sun, J.; Di, L.; Sun, Z.; Shen, Y.; Lai, Z. County-Level Soybean Yield Prediction Using Deep CNN-LSTM Model. Sensors 2019, 19, 4363. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  17. Wu, X.; Liu, Z.; Yin, L.; Zheng, W.; Song, L.; Tian, J.; Yang, B.; Liu, S. A Haze Prediction Model in Chengdu Based on LSTM. Atmosphere 2021, 12, 1479. [Google Scholar] [CrossRef]
  18. Wang, Y.; Zhou, J.; Chen, K.; Wang, Y.; Liu, L. Water quality prediction method based on LSTM neural network. In Proceedings of the 2017 12th International Conference on Intelligent Systems and Knowledge Engineering (ISKE), Nanjing, China, 24–26 November 2017; IEEE: Wuhan, China, 2017; pp. 1–5. [Google Scholar]
  19. Qin, D.; Yu, J.; Zou, G.; Yong, R.; Zhao, Q.; Zhang, B. A novel combined prediction scheme based on CNN and LSTM for urban PM2.5 concentration. IEEE Access 2019, 7, 20050–20059. [Google Scholar] [CrossRef]
  20. Song, X.; Liu, Y.; Xue, L.; Wang, J.; Zhang, J.; Wang, J.; Jiang, L.; Cheng, Z. Time-series well performance prediction based on Long Short-Term Memory (LSTM) neural network model. J. Pet. Sci. Eng. 2019, 186, 106682. [Google Scholar] [CrossRef]
  21. Kang, H.; Yang, S.; Huang, J.; Oh, J. Time Series Prediction of Wastewater Flow Rate by Bidirectional LSTM Deep Learning. Int. J. Control. Autom. Syst. 2020, 18, 3023–3030. [Google Scholar] [CrossRef]
  22. Li, Y.; Zhu, Z.; Kong, D.; Han, H.; Zhao, Y. EA-LSTM: Evolutionary attention-based LSTM for time series prediction. Knowl. Based Syst. 2019, 181, 104785. [Google Scholar] [CrossRef] [Green Version]
  23. Duan, Y.; Yisheng, L.V.; Wang, F.Y. Travel time prediction with LSTM neural network. In Proceedings of the 2016 IEEE 19th International Conference on Intelligent Transportation Systems (ITSC), Rio de Janeiro, Brazil, 1–4 November 2016; pp. 1053–1058. [Google Scholar]
  24. Park, K.; Choi, Y.; Choi, W.J.; Ryu, H.-Y.; Kim, H. LSTM-Based Battery Remaining Useful Life Prediction With Multi-Channel Charging Profiles. IEEE Access 2020, 8, 20786–20798. [Google Scholar] [CrossRef]
  25. Nelson, D.M.Q.; Pereira, A.C.M.; De Oliveira, R.A. Stock market’s price movement prediction with LSTM neural networks. In Proceedings of the 2017 International Joint Conference on Neural Networks (IJCNN), Anchorage, AK, USA, 14–19 May 2017; IEEE: Anchorage, AK, USA, 2017; pp. 1419–1426. [Google Scholar]
  26. Tsironi, T.; Dermesonlouoglou, E.; Giannoglou, M.; Gogou, E.; Katsaros, G.; Taoukis, P. Shelf-life prediction models for ready-to-eat fresh cut salads: Testing in real cold chain. Int. J. Food Microbiol. 2017, 240, 131–140. [Google Scholar] [CrossRef]
  27. Yassein, M.B.; Shatnawi, M.Q.; Aljwarneh, S.; Al-Hatmi, R. Internet of Things: Survey and open issues of MQTT protocol. In Proceedings of the 2017 International Conference on Engineering & MIS (ICEMIS), Antalya, Turkey, 21–23 August 2017; pp. 1–6. [Google Scholar]
  28. Stanford-Clark, A.; Truong, H.L. MQTT for sensor networks (MQTT-SN) protocol specification. Int. Bus. Mach. Corp. Version 2013, 1, 1–28. [Google Scholar]
  29. Light, R.A. Mosquitto: Server and client implementation of the MQTT protocol. J. Open Source Softw. 2017, 2, 265. [Google Scholar] [CrossRef]
  30. Arthur, D.; Vassilvitskii, S. k-Means++: The Advantages of Careful Seeding; Stanford InfoLab Publication Server: Stanford, CA, USA, 2006. [Google Scholar]
  31. Bahmani, B.; Moseley, B.; Vattani, A.; Kumar, R.; Vassilvitskii, S. Scalable k-means++. arXiv 2012, arXiv:1203.6402. [Google Scholar] [CrossRef]
  32. Yoder, J.; Priebe, C.E. Semi-supervised k-means++. J. Stat. Comput. Simul. 2017, 87, 2597–2608. [Google Scholar] [CrossRef]
  33. Zimichev, E.A.; Kazanskii, N.L.; Serafimovich, P.G. Spectral-spatial classification with k-means++ particional clustering. Comput. Opt. 2014, 38, 281–286. [Google Scholar] [CrossRef]
  34. Ren, Y.; Jiang, H.; Ji, N.; Yu, H. TBSM: A traffic burst-sensitive model for short-term prediction under special events. Knowl. Based Syst. 2022, 240, 108120. [Google Scholar] [CrossRef]
  35. Yan, L.; Yin-He, S.; Qian, Y.; Zhi-Yu, S.; Chun-Zi, W.; Zi-Yun, L. Method of Reaching Consensus on Probability of Food Safety Based on the Integration of Finite Credible Data on Block Chain. IEEE Access 2021, 9, 123764–123776. [Google Scholar] [CrossRef]
  36. Xu, X.; Lin, Z.; Li, X.; Shang, C.; Shen, Q. Multi-objective robust optimisation model for MDVRPLS in refined oil distribution. Int. J. Prod. Res. 2021, 60, 6772–6792. [Google Scholar] [CrossRef]
  37. Lu, S.; Ban, Y.; Zhang, X.; Yang, B.; Liu, S.; Yin, L.; Zheng, W. Adaptive control of time delay teleoperation system with uncertain dynamics. Front. Neurorobot. 2022, 16, 928863. [Google Scholar] [CrossRef]
  38. Gers, F.A.; Schmidhuber, J.; Cummins, F. Learning to Forget: Continual Prediction with LSTM. Neural Comput. 2000, 12, 2451–2471. [Google Scholar] [CrossRef]
  39. Petersen, N.C.; Rodrigues, F.; Pereira, F.C. Multi-output bus travel time prediction with convolutional LSTM neural network. Expert Syst. Appl. 2019, 120, 426–435. [Google Scholar] [CrossRef] [Green Version]
  40. Qin, X.; Liu, Z.; Liu, Y.; Liu, S.; Yang, B.; Yin, L.; Liu, M.; Zheng, W. User OCEAN Personality Model Construction Method Using a BP Neural Network. Electronics 2022, 11, 3022. [Google Scholar] [CrossRef]
  41. Dang, W.; Guo, J.; Liu, M.; Liu, S.; Yang, B.; Yin, L.; Zheng, W. A Semi-Supervised Extreme Learning Machine Algorithm Based on the New Weighted Kernel for Machine Smell. Appl. Sci. 2022, 12, 9213. [Google Scholar] [CrossRef]
  42. Li, M.; Tian, Z.; Du, X.; Yuan, X.; Shan, C.; Guizani, M. Power normalized cepstral robust features of deep neural networks in a cloud computing data privacy protection scheme. Neurocomputing 2023, 518, 165–173. [Google Scholar] [CrossRef]
  43. Staudemeyer, R.C.; Morris, E.R. Understanding LSTM—A tutorial into long short-term memory recurrent neural networks. arXiv 2019, arXiv:1909.09586. [Google Scholar]
  44. Sherstinsky, A. Fundamentals of Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) Network. Phys. D Nonlinear Phenom. 2020, 404, 132306. [Google Scholar] [CrossRef] [Green Version]
  45. Yu, Y.; Si, X.; Hu, C.; Zhang, J. A Review of Recurrent Neural Networks: LSTM Cells and Network Architectures. Neural Comput. 2019, 31, 1235–1270. [Google Scholar] [CrossRef]
Figure 1. Schematic of our platform.
Figure 1. Schematic of our platform.
Processes 11 00776 g001
Figure 2. (a) System architecture diagram; (b) Picture of the employed hardware system.
Figure 2. (a) System architecture diagram; (b) Picture of the employed hardware system.
Processes 11 00776 g002
Figure 3. Flow chart of k-means++ data fusion.
Figure 3. Flow chart of k-means++ data fusion.
Processes 11 00776 g003
Figure 4. LSTM network structure [43,44].
Figure 4. LSTM network structure [43,44].
Processes 11 00776 g004
Figure 5. Flow chart of the cold chain transport environment prediction method based on k-means++ and LSTM neural network.
Figure 5. Flow chart of the cold chain transport environment prediction method based on k-means++ and LSTM neural network.
Processes 11 00776 g005
Figure 6. Original data set: (a) Temperature data; (b) Humidity data.
Figure 6. Original data set: (a) Temperature data; (b) Humidity data.
Processes 11 00776 g006
Figure 7. Fusion data set: (a) Temperature; (b) humidity.
Figure 7. Fusion data set: (a) Temperature; (b) humidity.
Processes 11 00776 g007
Figure 8. Prediction curves for k-means++ and LSTM temperature models: (a) Experiment 1 prediction curve; (b) Experiment 2 prediction curve; (c) Experiment 3 prediction curve; (d) Experiment 4 prediction curve.
Figure 8. Prediction curves for k-means++ and LSTM temperature models: (a) Experiment 1 prediction curve; (b) Experiment 2 prediction curve; (c) Experiment 3 prediction curve; (d) Experiment 4 prediction curve.
Processes 11 00776 g008
Figure 9. Prediction curves for k-means++ and LSTM humidity models: (a) Experiment 1 prediction curve; (b) Experiment 2 prediction curve; (c) Experiment 3 prediction curve; (d) Experiment 4 prediction curve.
Figure 9. Prediction curves for k-means++ and LSTM humidity models: (a) Experiment 1 prediction curve; (b) Experiment 2 prediction curve; (c) Experiment 3 prediction curve; (d) Experiment 4 prediction curve.
Processes 11 00776 g009
Figure 10. (a) Prediction results of two temperature models; (b) Prediction results of two temperature models.
Figure 10. (a) Prediction results of two temperature models; (b) Prediction results of two temperature models.
Processes 11 00776 g010
Figure 11. (a) Practical temperature applications; (b) Practical humidity applications.
Figure 11. (a) Practical temperature applications; (b) Practical humidity applications.
Processes 11 00776 g011
Table 1. Selected raw collected data.
Table 1. Selected raw collected data.
NodeTimeTemperature/°CRelative Humidity/%
107:05:04−20.279.3
407:15:02−20.379.2
207:25:56−2079.8
307:35:23−20.278.8
207:45:12−20.170.8
415:22:28−1067.84
215:32:22−19.370.01
315:42:34−19.672.21
115:52:01−19.974.41
215:02:46 −20.275.01
Table 2. Comparison of temperature prediction parameters for cold chain transportation.
Table 2. Comparison of temperature prediction parameters for cold chain transportation.
NodeNumber of Nodes in the Hidden LayerTime Steps
155
2251
3352
4453
Table 3. Comparison of humidity prediction parameters for cold chain transportation.
Table 3. Comparison of humidity prediction parameters for cold chain transportation.
NodeNumber of Nodes in the Hidden LayerTime Steps
153
251
3101
4152
Table 4. Prediction error of temperature and humidity in cold chain transportation environment with different parameters.
Table 4. Prediction error of temperature and humidity in cold chain transportation environment with different parameters.
NodeTemperature/°CRelative Humidity/%
RMSEMAEMSEMAPER-SquaredRMSEMAEMSEMAPER-Squared
10.57070.42840.32580.03120.97241.60151.17702.56480.27360.9702
20.57700.41180.33290.03560.96522.41521.39565.83330.62370.9322
30.61890.48960.38310.04080.96002.40351.38855.77720.58860.9329
40.58260.44310.33940.03480.96461.75351.05103.07480.35470.9643
Average value0.58730.44320.34530.03560.96552.04341.25304.31251.84060.9499
Table 5. Prediction error of the two groups of prediction models.
Table 5. Prediction error of the two groups of prediction models.
ModelTemperature/°CRelative Humidity/%
RMSEMAEMSEMAPER-SquaredRMSEMAEMSEMAPER-Squared
k-means++–BP0.76810.59430.59010.06340.93842.39171.58165.72060.55430.9335
k-means++–LSTM0.57070.42840.32580.03120.96601.60151.17702.56480.27360.9702
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Jiang, J.; Peng, C.; Liu, W.; Liu, S.; Luo, Z.; Chen, N. Environmental Prediction in Cold Chain Transportation of Agricultural Products Based on K-Means++ and LSTM Neural Network. Processes 2023, 11, 776. https://doi.org/10.3390/pr11030776

AMA Style

Jiang J, Peng C, Liu W, Liu S, Luo Z, Chen N. Environmental Prediction in Cold Chain Transportation of Agricultural Products Based on K-Means++ and LSTM Neural Network. Processes. 2023; 11(3):776. https://doi.org/10.3390/pr11030776

Chicago/Turabian Style

Jiang, Junjie, Cuiling Peng, Wenjing Liu, Shuangyin Liu, Zhijie Luo, and Ningxia Chen. 2023. "Environmental Prediction in Cold Chain Transportation of Agricultural Products Based on K-Means++ and LSTM Neural Network" Processes 11, no. 3: 776. https://doi.org/10.3390/pr11030776

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop