Smart agricultural greenhouses provide well-controlled conditions for crop cultivation but require accurate prediction of environmental factors to ensure ideal crop growth and management efficiency. Due to the limitations of existing predictors in dealing with massive, nonlinear, and dynamic temporal data, this study proposes a bidirectional self-attentive encoder–decoder framework (BEDA) to construct the long-time predictor for multiple environmental factors with high nonlinearity and noise in a smart greenhouse. Firstly, the original data are denoised by wavelet threshold filter and pretreatment operations. Secondly, the bidirectional long short-term-memory is selected as the fundamental unit to extract time-serial features. Then, the multi-head self-attention mechanism is incorporated into the encoder–decoder framework to improve the prediction performance. Experimental investigations are conducted in a practical greenhouse to accurately predict indoor environmental factors (temperature, humidity, and CO2) from noisy IoT-based sensors. The best model for all datasets was the proposed BEDA method, with the root mean square error of three factors’ prediction reduced to 2.726, 3.621, and 49.817, and with an R of 0.749 for temperature, 0.848 for humidity, and 0.8711 for CO2 concentration, respectively. The experimental results show that the favorable prediction accuracy, robustness, and generalization of the proposed method make it suitable to more precisely manage greenhouses.
Current food traceability systems have a number of problems, such as data being easily tampered with and a lack of effective methods to intuitively analyze the causes of risks. Therefore, a novel method has been proposed that combines blockchain technology with visualization technology, which uses Hyperledger to build an information storage platform. Features such as distribution and tamper-resistance can guarantee the authenticity and validity of data. A data structure model is designed to implement the data storage of the blockchain. The food safety risks of unqualified detection data can be quantitatively analyzed, and a food safety risk assessment model is established according to failure rate and qualification deviation. Risk analysis used visual techniques, such as heat maps, to show the areas where unqualified products appeared, with a migration map and a force-directed graph used to trace these products. Moreover, the food sampling data were used as the experimental data set to test the validity of the method. Instead of difficult-to-understand and highly specialized food data sets, such as elements in food, food sampling data for the entire year of 2016 was used to analyze the risks of food incidents. A case study using aquatic products as an example was explored, where the results showed the risks intuitively. Furthermore, by analyzing the reasons and traceability processes effectively, it can be proven that the proposed method provides a basis to formulate a regulatory strategy for regions with risks.
In order to reduce the distribution cost of fresh food logistics and achieve the goal of green distribution at the same time, the Green Fresh Food Logistics with Heterogeneous Fleet Vehicle Route Problem (GFLHF-VRP) model is established. Based on the particularity of the model, an improved genetic algorithm called Genetic Algorithm with Adaptive Simulated Annealing Mutation (GAASAM) is proposed in which the mutation operation is upgraded to a simulated annealing mutation operation and its parameters are adjusted by the adaptive operation. The experimental results show that the proposed GAASAM can effectively solve the vehicle routing problem of the proposed model, achieve better performance than the genetic algorithm, and avoid falling into a local optimal trap. The distribution routes obtained by GAASAM are with lower total distribution cost, and achieve the goal of green distribution in which energy, fuel consumption and carbon emissions are reduced at the same time. On the other hand, the proposed GFLHF-VRP and GAASAM can provide a reliable distribution route plan for fresh food logistics enterprises with multiple types of distribution vehicles in real life, which can further reduce the distribution cost and achieve a greener and more environment-friendly distribution solution. The results of this study also provide a managerial method for fresh food logistics enterprises to effectively arrange the distribution work with more social responsibility.
E-commerce has developed greatly in recent years, as such, its regulations have become one of the most important research areas in order to implement a sustainable market. The analysis of a large amount of reviews data generated in the shopping process can be used to facilitate regulation: since the review data is short text and it is easy to extract the features through deep learning methods. Through these features, the sentiment analysis of the review data can be carried out to obtain the users’ emotional tendency for a specific product. Regulators can formulate reasonable regulation strategies based on the analysis results. However, the data has many issues such as poor reliability and easy tampering at present, which greatly affects the outcome and can lead regulators to make some unreasonable regulatory decisions according to these results. Blockchain provides the possibility of solving these problems due to its trustfulness, transparency and unmodifiable features. Based on these, the blockchain can be applied for data storage, and the Long short-term memory (LSTM) network can be employed to mine reviews data for emotional tendencies analysis. In order to improve the accuracy of the results, we designed a method to make LSTM better understand text data such as reviews containing idioms. In order to prove the effectiveness of the proposed method, different experiments were used for verification, with all results showing that the proposed method can achieve a good outcome in the sentiment analysis leading to regulators making better decisions.
As a part of food safety research, researches on food transactions safety has attracted increasing attention recently. Food choice is an important factor affecting food transactions safety: It can reflect consumer preferences and provide a basis for market regulation. Therefore, this paper proposes a food market regulation method based on blockchain and a deep learning model: Stacked autoencoders (SAEs). Blockchain is used to ensure the fairness of transactions and achieve transparency within the transaction process, thereby reducing the complexity of the trading environment. In order to enhance the usability, relevant Web pages have been developed to make it more friendly and conduct a security analysis for using blockchain. Consumers’ reviews after the transactions are finished can be used to train SAEs in order to perform emotional tendencies predictions. Compared with different advanced models for predictions, the test results show that SAEs have a better performance. Furthermore, in order to provide a basis for the formulation of regulation strategies and its related policies, case studies of different traders and commodities have also been conducted, proving the effectiveness of the proposed method.