Accurate identification of apple leaf diseases is of great significance for improving apple yield. The lesion area of the apple leaf disease image is small and vulnerable to background interference, which easily leads to low recognition accuracy. To solve this problem, a lightweight bilinear convolutional neural network (CNN) model named BLSENet based on attention mechanism is designed. The model consists of two subnetworks, and each subnetwork is embedded with a Squeeze-and-Excitation (SE) module. By using the feature extraction ability of the two subnetworks and combining the bilinear feature CONCAT operation, the multiscale features of the image are obtained. Compared with the unimproved model LeNet-5 (84.63%), BLSENet has higher accuracy in the test set, which indicates that SE module and bilinear feature fusion have a positive effect on the performance of the model, and BLSENet has the ability to identify apple leaf diseases. The model has achieved the expected goal and can provide technical support for accurate identification and real-time monitoring of apple disease images.
An open-set recognition scheme for tree leaves based on deep learning feature extraction is presented in this study. Deep learning algorithms are used to extract leaf features for different wood species, and the leaf set of a wood species is divided into two datasets: the leaf set of a known wood species and the leaf set of an unknown species. The deep learning network (CNN) is trained on the leaves of selected known wood species, and the features of the remaining known wood species and all unknown wood species are extracted using the trained CNN. Then, the single-class classification is performed using the weighted SVDD algorithm to recognize the leaves of known and unknown wood species. The features of leaves recognized as known wood species are fed back to the trained CNN to recognize the leaves of known wood species. The recognition results of a single-class classifier for known and unknown wood species are combined with the recognition results of a multi-class CNN to finally complete the open recognition of wood species. We tested the proposed method on the publicly available Swedish Leaf Dataset, which includes 15 wood species (5 species used as known and 10 species used as unknown). The test results showed that, with F1 scores of 0.7797 and 0.8644, mixed recognition rates of 95.15% and 93.14%, and Kappa coefficients of 0.7674 and 0.8644 under two different data distributions, the proposed method outperformed the state-of-the-art open-set recognition algorithms in all three aspects. And, the more wood species that are known, the better the recognition. This approach can extract effective features from tree leaf images for open-set recognition and achieve wood species recognition without compromising tree material.