Wheat spike detection has important research significance for production estimation and crop field management. With the development of deep learning-based algorithms, researchers tend to solve the detection task by convolutional neural networks (CNNs). However, traditional CNNs equip with the inductive bias of locality and scale-invariance, which makes it hard to extract global and long-range dependency. In this paper, we propose a Transformer-based network named Multi-Window Swin Transformer (MW-Swin Transformer). Technically, MW-Swin Transformer introduces the ability of feature pyramid network to extract multi-scale features and inherits the characteristic of Swin Transformer that performs self-attention mechanism by window strategy. Moreover, bounding box regression is a crucial step in detection. We propose a Wheat Intersection over Union loss by incorporating the Euclidean distance, area overlapping, and aspect ratio, thereby leading to better detection accuracy. We merge the proposed network and regression loss into a popular detection architecture, fully convolutional one-stage object detection, and name the unified model WheatFormer. Finally, we construct a wheat spike detection dataset (WSD-2022) to evaluate the performance of the proposed methods. The experimental results show that the proposed network outperforms those state-of-the-art algorithms with 0.459 mAP (mean average precision) and 0.918 AP50. It has been proved that our Transformer-based method is effective to handle wheat spike detection under complex field conditions.
The visible and near-infrared (Vis-NIR) reflectance spectroscopy was utilized for the rapid and nondestructive discrimination of edible oil adulteration. In total, 110 samples of sesame oil and rapeseed oil adulterated with soybean oil in different levels were produced to obtain the reflectance spectra of 350–2500 nm. A set of multivariant methods was applied to identify adulteration types and adulteration rates. In the qualitative analysis of adulteration type, the support vector machine (SVM) method yielded high overall accuracy with multiple spectra pretreatments. In the quantitative analysis of adulteration rate, the random forest (RF) combined with multivariate scattering correction (MSC) achieved the highest identification accuracy of adulteration rate with the full wavelengths of Vis-NIR spectra. The effective wavelengths of the Vis-NIR spectra were screened to improve the robustness of the multivariant methods. The analysis results suggested that the competitive adaptive reweighted sampling (CARS) was helpful for removing the redundant information from the spectral data and improving the prediction accuracy. The PLSR + MSC + CARS model achieved the best prediction performance in the two adulteration cases of sesame oil and rapeseed oil. The coefficient of determination () and the root mean square error () of the prediction set were 0.99656 and 0.01832 in sesame oil adulterated with soybean oil, and the and were 0.99675 and 0.01685 in rapeseed oil adulterated with soybean oil, respectively. The Vis-NIR reflectance spectroscopy with the assistance of multivariant analysis can effectively discriminate the different adulteration rates of edible oils.
1 June 2024 in Spectrochimica Acta Part A: Molecular and Biomolecular Spectroscopy
The composition and content of fatty acids are critical indicators to identify the quality of edible oils. This study was undertaken to establish a rapid determination method for quality detection of edible oils based on quantitative analysis of palmitic acid, stearic acid, arachidic acid, and behenic acid. Seven kinds of oils were measured to obtain Vis-NIR spectra. Multivariate methods combined with pretreatment methods were adopted to establish quantitative analysis models for the four fatty acids. The model of support vector machine (SVM) with standard normal variate (SNV) pretreatment showed the best predictive performance for the four fatty acids. For the palmitic acid, the determination coefficient of prediction () was 0.9504 and the root mean square error of prediction () was 0.8181. For the stearic acid, and were 0.9636 and 0.2965. In the prediction of arachidic acid, and were 0.9576 and 0.0577. In the prediction of behenic acid, the and were 0.9521 and 0.1486. Furthermore, the effective wavelengths selected by successive projections algorithm (SPA) were useful for establishing simplified prediction models. The results demonstrate that Vis-NIR spectroscopy combined with multivariate methods can provide a rapid and accurate approach for fatty acids detection of edible oils.
Underwater applications present unique challenges such as color deviation, noise, and low contrast, which can degrade image quality. Addressing these issues, we propose a novel approach called the learnable full-frequency transformer dual generative adversarial network (LFT-DGAN). Our method comprises several key innovations. Firstly, we introduce a reversible convolution-based image decomposition technique. This method effectively separates underwater image information into low-, medium-, and high-frequency domains, enabling more thorough feature extraction. Secondly, we employ image channels and spatial similarity to construct a learnable full-frequency domain transformer. This transformer facilitates interaction between different branches of information, enhancing the overall image processing capabilities. Finally, we develop a robust dual-domain discriminator capable of learning spatial and frequency domain characteristics of underwater images. Extensive experimentation demonstrates the superiority of the LFT-DGAN method over state-of-the-art techniques across multiple underwater datasets. Our approach achieves significantly improved quality and evaluation metrics, showcasing its effectiveness in addressing the challenges posed by underwater imaging. The code can be found at https://github.com/zhengshijian1993/LFT-DGAN.