Traditionally, the classification of seed defects mainly relies on the characteristics of color, shape, and texture. This method requires repeated extraction of a large amount of feature information, which is not efficiently used in detection. In recent years, deep learning has performed well in the field of image recognition. We introduced convolutional neural networks (CNNs) and transfer learning into the quality classification of seeds and compared them with traditional machine learning algorithms. Experiments showed that deep learning algorithm was significantly better than the machine learning algorithm with an accuracy of 95% (GoogLeNet) vs. 79.2% (SURF+SVM). We used three classifiers in GoogLeNet to demonstrate that network accuracy increases as the depth of the network increases. We used the visualization technology to obtain the feature map of each layer of the network in CNNs and used the heat map to represent the probability distribution of the inference results. As an end-to-end network, CNNs can be easily applied for automated seed manufacturing.
Standalone solar PV systems have emerged as potential alternatives to electricity problems in areas where a grid is unavailable. Obtaining full power from a photoelectric system, DC-DC inverter, DC-AC converter, and control system presents great difficulties when building these devices. A standalone two-stage approach is introduced in this work with a boost converter followed by an inverter and a battery with a bidirectional converter. In this paper, a novel virtual synchronous generator (VSG) controller is designed and implemented to adjust the inverter output. The VSG element and the maximum power point tracking (MPPT) used in this study serve the following purposes: to adjust the inverter output and to realize the maximum power of the PV scheme. The new control strategy design was evaluated and validated using extensive MATLAB simulations under different scenarios, including load variations. The system output was evaluated using extensive MATLAB simulations. A hands-on experiment was conducted for the VSG using console testing. Due to the lack of laboratory equipment, we could not experiment with the entire system.
Food safety problems are becoming increasingly severe in modern society, and establishing an accurate food safety risk warning and analysis model is of positive significance in avoiding food safety accidents. We propose an algorithmic framework that integrates the analytic hierarchy process based on the entropy weight (AHP-EW) and the autoencoder-recurrent neural network (AE-RNN). Specifically, the AHP-EW method is first used to obtain the weight percentages of each detection index. The comprehensive risk value of the product samples is obtained by weighted summation with the detection data, which is used as the expected output of the AE-RNN network. The AE-RNN network is constructed to predict the comprehensive risk value of unknown products. The detailed risk analysis and control measures are taken based on the risk value. We applied this method to the detection data of a dairy product brand in China for example validation. Compared with the performance of 3 models of the back propagation algorithm (BP), the long short-term memory network (LSTM), and the LSTM based on the attention mechanism (LSTM-Attention), the AE-RNN model has a shorter convergence time, predicts data more accurately. The root mean square error (RMSE) of experimental data is only 0.0018, proving that the model is feasible in practice and helps improve the food safety supervision system in China to avoid food safety incidents.
The inappropriate application of pesticides to vegetable crops often results in environmental pollution, which seriously impacts the environment and human health. Given that current methods of pesticide residue detection are associated with issues such as low accuracy, high equipment cost, and complex flow, this study puts forward a new method for detecting pesticide residues on lettuce leaves. To establish this method, spectral analysis was used to determine the characteristic wavelength of pesticide residues (709 nm), machine vision equipment was improved, and a bandpass filter and light source of characteristic wavelength were installed to acquire leaf image information. Next, image preprocessing and feature information extraction were automatically implemented through programming. Several links were established for the training model so that the required feature information could be automatically extracted after the batch input of images. The pesticide residue detected using the chemical method was taken as the output and modeled, together with the input image information, using the convolutional neural network (CNN) algorithm. Furthermore, a prediction program was rewritten to generalize the input images during the prediction process and directly obtain the output pesticide residue. The experimental results revealed that when the detection device and method designed in this study were used to detect pesticide residues on lettuce leaves in a key state laboratory, the coefficient of determination of the equation reached 0.883, and the root mean square error (RMSE) was 0.134 mg/L, indicating high accuracy and that the proposed method integrated the advantages of spectrum detection and deep learning. According to comparison testing, the proposed method can meet Chinese national standards in terms of accuracy. Moreover, the improved machine vision equipment was less expensive, thus providing powerful support for the application and popularization of the proposed method.
Exact enumeration of aphids before the aphids outbreak can provide basis for precision spray. This paper designs counting software that can be run on smartphones for real-time enumeration of aphids. As a first step of the method used in this paper, images of the yellow sticky board that is aiming to catch insects are segmented from complex background by using GrabCut method; then the images will be normalized by perspective transformation method. The second step is the pretreatment on the images; images of aphids will be segmented by using OSTU threshold method after the effect of random illumination is eliminated by single image difference method. The last step of the method is aphids’ recognition and counting according to area feature of aphids after extracting contours of aphids by contour detection method. At last, the result of the experiment proves that the effect of random illumination can be effectively eliminated by using single image difference method. The counting accuracy in greenhouse is above 95%, while it can reach 92.5% outside. Thus, it can be seen that the counting software designed in this paper can realize exact enumeration of aphids under complicated illumination which can be used widely. The design method proposed in this paper can provide basis for precision spray according to its effective detection insects.