Trace methomyl detection method and system based on terahertz spectrum detection technology
By using a near-circular composite resonant ring three-peak terahertz metamaterial sensor and the IPOA-SVR intelligent modeling method, the sensitivity and accuracy issues of terahertz spectroscopy in the detection of trace trichlorfon were solved, achieving quantitative analysis with high sensitivity and accuracy. The feasibility of the IPOA optimization algorithm was verified, providing a research path for rapid detection of pesticide residues.
Patent Information
- Application Number
- CN202611388219.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-08
- Publication Date
- 2026-11-24
AI Technical Summary
Existing terahertz spectroscopy technology lacks sufficient sensitivity and accuracy in the detection of trace amounts of trichlorfon, and is easily affected by moisture and other biological components, making it difficult to achieve rapid, non-destructive, and highly sensitive detection.
A three-peak terahertz metamaterial sensor with a near-circular composite resonant ring, combined with an improved pelican optimization algorithm (IPOA-SVR) intelligent modeling method, is used to determine the characteristic peak frequency of trichlorfon, conduct simulation and spectral acquisition, construct an initial model, and perform dimensionality reduction and parameter optimization to optimize the detection model and achieve trace trichlorfon residue detection.
It achieves highly sensitive and accurate quantitative analysis of trace amounts of trichlorfon residues, verifies the feasibility and superiority of the IPOA optimization algorithm in the field of spectral detection, and provides practicality and scalability for terahertz spectroscopy technology in the rapid detection of pesticide residues.
Smart Images

Figure CN123155478A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of pesticide residue detection technology, specifically to a method and system for detecting trace amounts of trichlorfon based on terahertz spectroscopy. Background Technology
[0002] Trichlorfon is a broad-spectrum organophosphate insecticide widely used in agriculture to control chewing pests on vegetables, fruit trees, and grain crops. Its main mechanism of action is to inhibit the activity of cholinesterase in insects, hindering the normal breakdown of the neurotransmitter acetylcholine, leading to over-excitation of the insect's nervous system and subsequent paralysis and death. Trichlorfon is commonly used to control cabbage caterpillars, cotton bollworms, rice weevils, and underground pests, demonstrating significant pest control effects. In addition, trichlorfon is frequently used as an insecticide in livestock and aquaculture, effectively controlling internal and external parasites in livestock and parasitic diseases in fish. However, the problem of trichlorfon residues on the surface of fruits and vegetables has raised widespread concern, and long-term consumption of food containing this compound residue may pose a risk to human health. Although its acute toxicity is relatively low, long-term exposure may lead to a range of health problems, including neurotoxicity, endocrine disruption, and damage to organs such as the liver and kidneys. In particular, trichlorfon transforms into the more toxic dichlorvos in alkaline environments, further increasing its potential risks. Therefore, despite the existence of strict international regulations governing the use and permissible residue levels of trichlorfon, enhanced monitoring remains crucial to further reduce its potential harm to human health and the environment. For example, according to the Chinese national standard GB5749-2022, the maximum permissible residue concentration of trichlorfon in drinking water is [not specified]. In everyday situations, improper use of trichlorfon or inadequate food cleaning can easily lead to excessive residues, thereby endangering human health and causing food safety issues. Therefore, developing a rapid, accurate, and highly sensitive method for detecting trichlorfon residues is of great theoretical significance.
[0003] Currently, commonly used methods for pesticide residue detection include gas chromatography, enzyme-linked immunosorbent assay (ELISA), and hyperspectral imaging. These methods can effectively identify pesticide residues, possess high sensitivity, and can detect low concentrations of pesticide residues. They can also process various sample types, including agricultural products and environmental samples. However, these methods also have limitations, such as complex sample pretreatment procedures and susceptibility to matrix interference, which can affect detection accuracy. While traditional detection methods are inexpensive and easy to operate, they have lower sensitivity and are more suitable for preliminary screening of high-concentration samples. Therefore, there is an urgent need to develop a new detection technology that combines high sensitivity with rapid and non-destructive detection capabilities.
[0004] Terahertz (THz) detection technology typically refers to the use of to Terahertz (THz) spectroscopy is a non-destructive analytical method that uses high-frequency electromagnetic waves to acquire information about sample absorption, refractive index, and imaging. THz waves possess low photon energy, are non-ionizing, and can penetrate non-metallic and non-polar materials to a certain extent. Furthermore, the low-frequency vibrations, rotations, and intermolecular interactions of many organic molecules reside in the terahertz band, making it suitable for characterizing the structure and composition of target substances in food systems. In recent years, THz spectroscopy and imaging technology has received widespread attention in food safety testing and has been used for food component analysis, quality evaluation, adulteration identification, and rapid screening of risk factors such as pesticide residues, food additives, mycotoxins, and microbial contamination. THz technology combines the advantages of rapid, non-contact, and non-destructive testing, making it particularly suitable for agricultural product quality control and on-site initial screening.
[0005] However, pesticide residues are usually present in trace amounts. Traditional terahertz spectroscopy suffers from weak signals due to the weak interaction between terahertz waves and materials, resulting in limited detection sensitivity. Furthermore, terahertz spectroscopy is sensitive to moisture and other biological components, which may introduce interference signals and affect the accurate identification of trace substances. Although terahertz spectroscopy exhibits good resolution in certain sample types, its resolution and selectivity remain limited when detecting trace substances. Therefore, traditional terahertz spectroscopy often needs to be used in combination with other techniques to improve the sensitivity and accuracy of trace substance detection. Summary of the Invention
[0006] In view of this, the present invention provides a method and system for detecting trace amounts of trichlorfon based on terahertz spectroscopy detection technology, so as to improve the sensitivity and accuracy of detection.
[0007] One aspect of the present invention provides a method for detecting trace amounts of trichlorfon based on terahertz spectroscopy, comprising: The target parameters of the target metamaterial sensor are determined based on the characteristic peak frequency of the trichlorfon, and simulation is performed based on the target parameters to obtain the target terahertz material. A sample of trichlorfon was prepared, and the trichlorfon sample was subjected to spectral acquisition using the target terahertz material to obtain target spectral data; An initial model is constructed, and the initial model is trained using a target feature selection method. The target spectral data is then dimensionality-reduced based on the trained initial model to obtain dimensionality-reduced spectral data. The model parameters of the initial model are optimized using a target parameter optimization method to obtain optimized parameters. The initial model is then optimized based on the optimized parameters and the dimensionality-reduced spectral data to obtain a target detection model. The target parameter optimization method is an improved Pelican optimization algorithm. The target detection model is used to detect trace amounts of trichlorfon residues.
[0008] Another aspect of the present invention provides a trace trichlorfon detection system based on terahertz spectroscopy detection technology, comprising: The materials module is used to determine the target parameters of the target metamaterial sensor based on the characteristic peak frequency of the trichlorfon, and to perform simulation based on the target parameters to obtain the target terahertz material. The acquisition module is used to prepare a trichlorfon sample and to acquire the target spectral data of the trichlorfon sample through the target terahertz material. The dimensionality reduction module is used to construct an initial model, train the initial model using a target feature selection method, and perform dimensionality reduction processing on the target spectral data based on the trained initial model to obtain dimensionality-reduced spectral data. An optimization module is used to optimize the model parameters of the initial model based on a target parameter optimization method to obtain optimized parameters. Based on the optimized parameters and the dimensionality-reduced spectral data, the initial model is optimized to obtain a target detection model. The target parameter optimization method is an improved pelican optimization algorithm. The detection module is used to detect trace amounts of trichlorfon residues using the target detection model.
[0009] The method and system for detecting trace amounts of trichlorfon based on terahertz spectroscopy provided by the present invention have the following beneficial effects: This invention integrates a detection framework combining a near-circular composite resonant ring three-peak terahertz metamaterial sensor with the IPOA-SVR (improved pelican optimization algorithm and support vector regression) intelligent modeling method. This framework not only achieves highly sensitive and accurate quantitative analysis of trace amounts of trichlorfon residues, but also verifies the feasibility and superiority of the IPOA optimization algorithm in the field of spectral detection. It provides a practical and scalable research path for the rapid detection of pesticide residues using terahertz spectroscopy technology. Attached Figure Description
[0010] Figure 1 This is a flowchart illustrating a method for detecting trace amounts of trichlorfon based on terahertz spectroscopy. Figure 2 A schematic diagram of terahertz metamaterials; Figure 3 The simulation diagram is for FDTD. Figure 4 Electromagnetic field distribution and terahertz transmission spectrum of metamaterial structure simulated using FDTD; Figure 5 Transmission spectra of trichlorfon solutions at different concentrations on the surface of metamaterial sensors; Figure 6 The results of significance analysis for spectra at different concentrations; Figure 7 A graph showing the distribution of features extracted from CARS; Figure 8 A graph showing the distribution of variables extracted for SPA features; Figure 9 A graph showing the distribution of variables extracted for UVE features; Figure 10 A comparison chart of modeling performance for different feature sets; Figure 11 This is a graph showing the fitting of the predicted values and the true values of the IPOA-SVR model after CARS feature extraction. Detailed Implementation
[0011] Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain embodiments of the present invention, and should not be construed as limiting the present invention.
[0012] Please see Figure 1 The first embodiment of the present invention provides a method for detecting trace amounts of trichlorfon based on terahertz spectroscopy, comprising steps S1 to S5: S1. Determine the target parameters of the target metamaterial sensor based on the characteristic peak frequency of the trichlorfon, and perform simulation based on the target parameters to obtain the target terahertz material.
[0013] Step S1 includes: S11. Obtain the characteristic peak frequency of the trichlorfon, and determine the target peak frequency point of the target metamaterial sensor based on the characteristic peak frequency of the trichlorfon. Specifically, the frequency points of the characteristic peaks of the substance trichlorfon in the terahertz band are as follows: , and To improve the sensitivity of terahertz spectroscopy in detecting trichlorfon through resonance effects, characteristic peak frequencies inherent in the material itself are typically selected as the peak frequencies for metamaterial design.
[0014] This embodiment uses a TAS7500 terahertz time-domain spectrometer (THz-TDS) manufactured by Aventis Corporation of Japan for spectral acquisition. The system uses a femtosecond laser as the excitation source to generate broadband terahertz pulses through an excitation photoconductive antenna. The terahertz pulses interact with the sample, and their transmitted or reflected signals are received by the detector. The system precisely controls the time delay between the pump light and the detector light through a mechanical delay line, thereby scanning point-by-point and obtaining the complete terahertz time-domain waveform. Performing a Fourier transform on the time-domain signal yields the frequency domain spectral response information of the sample in the terahertz band.
[0015] S12. Calculate the quality factor and sensitivity of the target terahertz material through simulation spectrum, and perform parameter scanning on the preset database according to the target peak frequency point, the quality factor and the sensitivity to obtain the target parameters of the target metamaterial sensor. Specifically, sensitivity The quality factor (QF) is a key indicator for measuring a structure's responsiveness to changes in external physical or chemical parameters. It is commonly used to describe a structure's performance when sensing changes in refractive index, concentration, or thickness. Higher sensitivity indicates a more significant response to small perturbations. (Quality Factor) is an important parameter for measuring resonant performance. The value reflects the structure's selectivity for a specific frequency and its ability to store and dissipate energy within the system. A higher value indicates a sharper resonance peak, higher frequency resolution, and lower system energy loss. In terahertz metamaterial devices, high... A higher value usually means a stronger local electric field enhancement effect and higher detection sensitivity, making it particularly suitable for high-precision sensing scenarios such as weak signal perception and trace substance identification.
[0016] S13. Select a single periodic structure as the modeling object, and perform modeling and simulation according to the target parameters to obtain the target terahertz material; Specifically, based on the above analysis, modeling and simulation can be performed according to the target parameters to obtain the target terahertz metamaterial. For example... Figure 2 As shown, Figure 2 In the diagram, (a) is a planar schematic of the metamaterial, and (b) shows the size parameters of the metamaterial sensor. The target peak frequency points include... , and The target terahertz material possesses a near-circular composite resonant ring three-peak structure, and the target parameters include: period... First radius Second radius Third radius Fourth radius First length Second length The target terahertz material substrate material is selected with a refractive index of It is made of silicon with a gold metal layer on the surface.
[0017] This embodiment of the terahertz metamaterial sensor uses a four-inch double-sided polished silicon wafer as the substrate and combines photolithography and ion beam etching (IBE) processes to fabricate the micro-nano structure. The entire fabrication process mainly includes metal thin film deposition, substrate pretreatment, spin coating of photoresist, pre-baking, ultraviolet exposure, development, residual photoresist removal, hard coating, ion beam etching, and photoresist removal. First, using the double-sided polished silicon wafer as the metamaterial sensor substrate, a Cr adhesion layer and an Au metal layer are sequentially deposited on its surface. The Cr layer is used to improve the adhesion between the Au layer and the silicon substrate, and the Au layer serves as the metal functional layer of the metamaterial resonant structure. Through photolithography processes such as HMDS pretreatment, spin coating of AZ6112 photoresist, pre-baking, exposure, development, residual photoresist removal, and hard coating, a photoresist mask corresponding to the designed structure is formed on the surface of the Au layer. Finally, ion beam etching (IBE) was used to remove the Au metal layer in the areas not protected by the mask, and residual photoresist was removed by ultrasonic removal with acetone, ultimately obtaining a terahertz metamaterial sensor chip with silicon as the substrate and gold as the surface resonant structure.
[0018] like Figure 3 As shown, the designed metamaterial sensor was modeled using Lumerical FDTD Solutions software. Considering that metamaterials are typically composed of periodically repeating structural units, their overall electromagnetic response characteristics can be approximated by simulating the unit structures, thus significantly improving simulation efficiency and computational accuracy. Therefore, this embodiment selects a single periodic structure as the modeling object for simulation analysis. The substrate material with a refractive index of [insert refractive index here] was chosen. The silicon sensor has a gold surface layer to enhance its resonant response characteristics in the terahertz band. Simulation results show that this metamaterial sensor exhibits [significant performance] in the terahertz band. The characteristic peaks are as follows: , and .
[0019] like Figure 4 As shown, Figure 4 This demonstrates the spatial distribution of the electric field intensity in the near-field region of a near-circular composite resonant ring structure metamaterial sensor simulated using the FDTD algorithm. Figure 4 In the figure, (a), (b), and (c) represent the target terahertz material simulated using FDTD at different terahertz frequencies. Place, Place, The spatial distribution of the electric field intensity at a given location. In this frequency band, the electric field energy is mainly distributed along the outer ring of the structure, forming continuous and symmetrical arc-shaped high-intensity regions (mainly reddish-yellow) on both sides, constituting the dominant "hot spots." Simultaneously, weaker electric field enhancement can be observed near the top and bottom of the inner ring, giving the overall structure a "ring-shaped superimposed weak quadrupole" distribution characteristic. The electric field intensity gradually decreases from the outer ring towards the center of the structure, and the color transitions significantly from warm to cool, exhibiting a typical edge-localized enhancement effect. This mode indicates that in this frequency band, the structure mainly achieves energy capture and localized enhancement of the incident terahertz wave through outer ring resonance. When the frequency increases to... At this point, the electric field distribution is still dominated by the outer ring, but the hotspot region is further enhanced and expands along the circumference. The high-intensity arc-shaped regions on both sides are more continuous and brighter, showing stronger field localization capability. Meanwhile, the electric field response in the inner ring region is relatively weakened, making the overall distribution more inclined towards an "outer ring-dominated dipole enhancement mode." The electric field gradient is steeper, and the red-blue contrast is enhanced, indicating that this frequency band corresponds to a higher quality factor resonant response, with energy more concentrated in the structural boundary region. When the frequency further increases to... At this point, the electric field distribution pattern undergoes significant reconstruction. The hotspot region shifts from the original left and right outer rings to the top and bottom sides of the structure, exhibiting a distinctly symmetrical "vertical bipolar (dumbbell-shaped)" distribution. The hotspot area decreases significantly, but the local electric field intensity increases significantly, manifesting as a more concentrated bright red region, while the remaining areas rapidly decay to a low-intensity blue background, further enhancing the spatial gradient of the electric field. This shift from "lateral outer ring enhancement" to "vertical center enhancement" reflects the excitation of different intrinsic resonant modes at high frequencies.
[0020] Numerical simulations based on the finite-difference time-domain (FDTD) method demonstrate that the designed metamaterial sensor exhibits unique recognition potential for trace analytes. To further verify the actual detection efficiency of the metamaterial sensor, this embodiment will construct test samples of trichlorfon solution with multiple concentration gradients, acquire characteristic spectral lines using a terahertz spectral acquisition system, and establish a quantitative prediction model using machine learning algorithms. This experimental approach not only verifies the reliability of the simulation prediction results but also reveals the sensing response mechanism of the metamaterial microstructure in complex media environments, providing empirical support for the highly sensitive detection of pesticide residues.
[0021] S2. Prepare a sample of trichlorfon, and collect the spectrum of the trichlorfon sample through the target terahertz material to obtain the target spectral data.
[0022] Step S2 includes: A standard solution of trichlorfon was selected as the reference solution. Ultrapure deionized water was used to quantitatively dilute the reference solution using a high-precision pipette. Each sample was then subjected to a vortex mixer. Speed Mixing After a period of time, ensuring that the solute molecules are uniformly distributed in the solvent, several sets of concentration gradient samples are transferred to brown volumetric flasks for sealed storage. Dry air is continuously circulated into the optical cavity of the spectrometer using an air compressor, and the relative humidity within the cavity is monitored by temperature and humidity sensors to ensure adequate humidity. The temperature stabilized at Within the specified range, once the environment has stabilized, use a pipette to press... Samples of different concentration gradients were sequentially and quantitatively aspirated from low to high concentrations and dropped onto the surface of the metamaterial sensor. point A composite sampling mode of repeated measurements is used to obtain target spectral data.
[0023] Specifically, in this embodiment, the standard solution of trichlorfon (initial concentration of) provided by the Aladdin reagent platform was selected. A stock solution was prepared using methanol as the solvent. To establish a trace detection system, a solution was prepared using a serial dilution method according to the national standard GB5749-2022. A concentration gradient of samples was used. Ultrapure deionized water was chosen as the dilution solvent due to its low terahertz absorption, high transparency, and chemical stability, which minimizes background interference and ensures reproducibility. Ultrapure deionized water was pipetted using a high-precision pipette and the stock solutions were quantitatively diluted. The final concentration series solutions were transferred to brown volumetric flasks and sealed for storage. Specific concentration distribution parameters are detailed in Appendix Table 1.
[0024] Table 1. Concentration gradient of trichlorfon solution ; Meanwhile, to eliminate the interference of environmental factors on the experiment, dry air was continuously introduced into the optical cavity of the spectrometer using an air compressor before the formal experiment, and the relative humidity inside the cavity was monitored by temperature and humidity sensors to ensure that the humidity was within the cavity. The temperature stabilized at Within the range. Once the experimental environment has stabilized, use a pipette to press... Different concentration gradients of trichlorfon solution were sequentially and quantitatively aspirated from low to high concentrations and added dropwise to the surface of the metamaterial sensor. Due to the strong absorption characteristics of liquid water for THz waves, the metamaterial was placed... Dry in a drying oven for 30 minutes to ensure complete evaporation of moisture, which will not affect the experimental results. Then, place the dried metamaterial into the instrument's optical cavity. After each sample placement, allow it to stand for 2 minutes to allow the system and cavity environment to stabilize. To improve data reliability, [further details are needed]. point Composite sampling mode with repeated measurements The total number of samples obtained was [number], including the group concentration samples and the bare metamaterial without added samples. The original spectral data, i.e. the target spectral data.
[0025] like Figure 5 As shown, the metamaterial sensor exhibits significantly different transmission spectral responses to pesticide solutions of different concentrations. Considering the signal-to-noise ratio characteristics of the terahertz system and the influence of water vapor absorption on the spectrum within a specific frequency band, the effective analytical frequency band is limited to [specific range missing]. to Within the range. The selection of this frequency band effectively avoids the low-frequency region ( ) and high frequency region ( The strong noise interference in the ) ultimately yielded High-quality spectral data points are used for subsequent quantitative modeling and analysis.
[0026] To further elucidate its sensing mechanism, local magnification analysis was performed on the two characteristic transmission peak regions. Although the pesticide molecules adsorbed on the metamaterial surface are at trace levels, the system still exhibits significant spectral response characteristics thanks to the local electromagnetic field enhancement effect generated by metamaterial resonance. Specifically, as the pesticide concentration increases, the transmission peak intensity gradually weakens, while the resonance frequency shows a significant blue shift.
[0027] like Figure 6 As shown, to verify whether the differences in terahertz transmission characteristics of samples with different concentrations of trichlorfon are statistically significant, the following were performed: Terahertz spectral data for each concentration gradient were averaged across the entire frequency band, and one-way ANOVA was then performed. The significance of the differences between adjacent concentration groups was analyzed using a test. Figure 6 In the graph, * indicates a significant difference; ** indicates a highly significant difference; and *** indicates an extremely significant difference. As can be seen from the graph, the significant differences between different adjacent concentration groups are not entirely consistent. Specifically, the... The group differences reached a significant level ( ), No. The group differences reached a highly significant level ( ), No. , and The group differences reached a highly significant level ( In comparison, the first , , and The differences between groups were not statistically significant, indicating that the terahertz spectral response was relatively weak within these adjacent concentration ranges. These results suggest that terahertz spectroscopy has a certain sensitivity to changes in trichlorfon concentration, and significant distinctions can be achieved between some adjacent concentration groups, especially in the [missing information - likely a specific concentration range]. , and Strong statistical differences were observed within the concentration ranges. However, some concentration ranges did not show significant differences, suggesting that the terahertz transmission response may exhibit local plateaus or nonlinear variations. The signal differences did not significantly exceed the effects of intra-group fluctuations and instrument noise.
[0028] S3. Construct an initial model, train the initial model using a target feature selection method, and perform dimensionality reduction on the target spectral data based on the trained initial model to obtain dimensionality-reduced spectral data.
[0029] Raw spectral data often has high dimensionality and strong redundancy and noise interference, which may limit the potential for further model improvement. To further enhance the model's generalization ability and robustness, this embodiment introduces multiple feature variable selection methods for data preprocessing based on the raw terahertz spectral data.
[0030] Step S3 includes: S31. Initialize the target spectral data into a feature set, which includes several feature subsets. Input the feature set into the initial model for prediction output to obtain predicted values. :
[0031] In the formula, For the first Feature weights for each feature subset For the first The first feature subset One characteristic, The intercept is... The number of features in the feature subset; S32. Input the feature subsets into the initial model sequentially for training, and output the feature weight of each feature in each training round. Sort the features in the feature subset in descending order according to the absolute value of the feature weights, and remove the feature with the lowest absolute value of the feature weight to obtain a new feature subset. S33. The new feature subset is re-input into the initial model and the process of feature weight output and feature removal is repeated until the dimensionality reduction requirement is met to obtain dimensionality-reduced spectral data.
[0032] Specifically, the dimensionality reduction requirement here is that the condition is met once the number of features is reduced to a certain level. The target feature selection method can be CARS (Competitive Adaptive Reweighted Sampling), SPA (Continuous Projection), or UVE (Uninformative Variable Removal) algorithm.
[0033] like Figure 7As shown, taking the CARS algorithm as an example, the CARS algorithm uses an adaptive reweighted sampling strategy to assess the importance of variables by combining the absolute value of the regression coefficients in the PLS model, and selects the optimal subset of variables based on the minimum RMSECV. In this embodiment, the number of Monte Carlo samplings is set to... Next, from to From the full spectrum variables within the range, the characteristic variables corresponding to each frequency point are selected first, and finally retained. Each variable serves as an effective feature input.
[0034] like Figure 8 As shown, taking the SPA algorithm as an example, through continuous projection, SPA prioritizes variables with low collinearity and containing effective discriminative information in the original variable space, thus preserving the main spectral information while reducing the impact of redundant variables on model stability. The retained variables are mainly concentrated in regions with strong spectral response changes, especially around 1.0-1.2 THz, 1.3-1.4 THz, and 2.0 THz, where there is a relatively dense distribution of variables. Among these, the two main peak regions not only retain multiple key variables at their peak positions, indicating that these regions are most sensitive to changes in dichlorvos solution concentration or metamaterial enhancement responses, and are important frequency bands characterizing sample differences. In the valley regions with low spectral responses and relatively flat curve changes, only a few variables are retained, indicating that the effective information contained in these regions is relatively limited, and most redundant variables have been removed by the SPA algorithm.
[0035] like Figure 9 As shown, taking the UVE algorithm as an example, after processing by the UVE algorithm, the effective feature variables in the terahertz spectrum are significantly filtered and retained, eliminating information variables with low correlation to the concentration of trichlorfon or mainly containing noise. Finally, the effective feature variables are selected from the original spectral data. The UVE method utilizes a subset of information variables to achieve spectral dimensionality reduction and feature optimization. The retained feature variables are mainly concentrated near three distinct absorption peaks, located approximately 1.0–1.2 THz, 1.3–1.5 THz, and 2.0–2.1 THz, respectively. Fewer variables are retained in flat areas and weaker absorption regions. This indicates that these peak regions contain feature information closely related to changes in trichlorfon concentration and contribute more significantly to quantitative modeling. The 1.0–1.2 THz and 2.0–2.1 THz regions show the highest concentration of retained variables, suggesting that this frequency band may be the main sensitive feature region for trichlorfon and has the greatest impact on the model's predictive ability. Furthermore, UVE effectively reduces the number of redundant and noisy variables while retaining key peak information, thus reducing data dimensionality and minimizing the impact of variable collinearity on the model, thereby improving the stability and generalization ability of subsequent modeling.
[0036] S4. The model parameters of the initial model are optimized using the target parameter optimization method to obtain optimized parameters. The initial model is then optimized based on the optimized parameters and the dimensionality-reduced spectral data to obtain a target detection model. The target parameter optimization method is the improved Pelican Optimization Algorithm (IPOA).
[0037] In this embodiment, IPOA improves the model's quantitative prediction capability by globally optimizing the key parameters of SVR. Utilizing IPOA's swarm intelligence search mechanism, iterative optimization is performed on key parameters such as the penalty factor C and kernel function parameters. The search position is continuously updated using the model prediction error as the fitness function, ultimately obtaining the optimal parameter combination. This enhances the model's ability to learn complex spectral features and improves its generalization performance and stability.
[0038] Step S4 includes: S41. Initialize the model parameters of the initial model to the target population, and initialize each individual in the target population using Logistic chaotic mapping:
[0039]
[0040] In the formula, For the first The individual in the first Wei, Di Chaotic state value at the next iteration. For the first The individual in the first Wei, Di Chaotic state value at the next iteration. For chaotic mapping control parameters (take) ), For the first after initialization The first individual Dimensional variables; Indicates the first The individual in the first Initial values of chaotic states in dimension 1 and The first Upper and lower bounds of a dimensional variable; S42, in the In this iteration, the current optimal individual is selected as the prey position based on the fitness function value:
[0041] In the formula, For the first The prey's location in the next iteration For the first The optimal individual in the target population at the next iteration; S43. Introduce a nonlinear adaptive weighting factor to guide each individual toward the prey location by simulating the quail's search behavior driven by wind:
[0042]
[0043] In the formula, For the first Inertia weights in the next iteration , These are the minimum inertia weight and the maximum inertia weight, respectively. The maximum number of iterations, , The first The individual in the first sequence Position at the next iteration The first random number ( ), For random integers ( ); S44. After the search phase is completed, perform a local development search:
[0044] In the formula, A constant control factor. The second random number ( ); S45. Perform elite back-learning on the current best individual to enhance the population's ability to escape local optima:
[0045] In the formula, For the first The optimal individual at the nth iteration Dimensional reverse solution, The third random number ( ); S46. During the iteration process, boundary adjustments are made for each individual, and the fitness of each individual before and after the iteration is compared. The greedy criterion is used to retain the individual with the lower fitness.
[0046] In the formula, For new candidate solutions generated through the search phase or partial development phase, The fitness function; S47. Repeat the iteration process until the iteration stopping condition is met, output the optimal individual to obtain the optimization parameters, and optimize the initial model based on the optimization parameters and the dimensionality reduction spectral data to obtain the target detection model.
[0047] Specifically, the initial model here is the SVR support vector regression model.
[0048] S5. The residual detection of trace amounts of trichlorfon is achieved through the target detection model.
[0049] Specifically, after obtaining the target detection model, the sample to be tested can be obtained. The target terahertz material obtained in the above steps is used to collect the spectrum of the sample to be tested. The obtained spectral data is input into the target detection model, and the detection result can be output.
[0050] It should be noted that, in order to verify the effectiveness of the object detection model (IPOA-SVR) of this invention, a systematic comparative analysis was conducted with the unoptimized SVR model. All models were trained and predicted on the same training and test sets, using correlation coefficients (... Evaluation metrics such as root mean square error (RMSE) and mean absolute error (MAE) were used to comprehensively assess the model's performance in terms of fitting accuracy and generalization ability, ensuring the objectivity and fairness of the comparison results. The model results are shown in Table 2. Figure 10 As shown: Table 2 Evaluation of the Prediction Performance of Each Model ; According to Table 2 above and Figure 10 The experimental results show that the IPOA-SVR model exhibits excellent performance in the quantitative detection of trichlorfon using terahertz spectroscopy. Compared to direct modeling using full-band data, the IPOA-SVR model, after being selected using CARS, UVE, and SPA feature extraction methods, shows a certain degree of optimization in all indicators. Among them, the model selected using CARS performs the best. Upgraded to RMSE and MAE decreased to and Furthermore, the model constructed after CARS feature extraction also demonstrated superior predictive ability compared to full-band modeling. This result indicates that appropriate feature selection can not only effectively eliminate redundant variables and alleviate model complexity, but also enhance the model's ability to learn key information, thereby improving regression accuracy and generalization performance. Although the improvement is limited, this performance gain is significant for improving the model's practicality and stability in high-precision modeling tasks.
[0051] Therefore, the IPOA-SVR model demonstrates superior performance compared to other models, fully validating the feasibility and advantages of applying the IPOA algorithm to SVR modeling, and proving its potential and practical value in terahertz spectral quantitative analysis. Its excellent modeling capabilities not only help improve the accuracy of pesticide residue detection but also provide new ideas for optimizing terahertz spectral data processing methods.
[0052] Meanwhile, to further evaluate the sensitivity and detection capability of the target detection model in practical applications, the limit of detection (LOD) was calculated based on data extracted from three types of features. The LOD is an important indicator of a quantitative model's ability to identify substances in a low concentration range, typically used to characterize the model's response to the lowest detectable concentration of the target substance. Calculating the LOD further verifies the model's effectiveness and reliability in the trace trichlorfon detection task. In this embodiment, the LOD calculation is based on... Method of 10 ... The principle is that the standard deviation of the sample predicted values ( Three times the slope of the model () An estimation is performed to ensure the results have statistical significance and engineering applicability. The calculation formula is as follows:
[0053] like Figure 11 As shown, Figure 11 The image shows a graph of the model predictions and the actual values for the CARS-IPOA-SVR model. The LOD of the model is calculated using the formula above. The IPOA-SVR model after feature extraction exhibits a good detection limit level, indicating that the method has a certain sensitivity in the detection of low concentrations of trichlorfon residues.
[0054] In summary, this embodiment constructs a terahertz metamaterial sensor based on a three-peak structure of a near-circular composite resonant ring. It achieves the enhancement effect of the three resonant peaks in the terahertz frequency band and applies it to the highly sensitive detection of trace residues of trichlorfon. Based on the trichlorfon transmission spectral data acquired by the terahertz metamaterial sensing platform, a high-performance quantitative modeling method integrating the improved pelican optimization algorithm (IPOA) and support vector regression (SVR) is proposed. Compared with the unoptimized SVR model, the IPOA-SVR model exhibits superior predictive performance in evaluation metrics such as R, RMSE, and MAE, verifying the advantages of the IPOA algorithm in global optimization and parameter control. Furthermore, combining three feature extraction algorithms—CARS, SPA, and UVE—effectively improves the model's prediction accuracy and generalization ability. The CARS-IPOA-SVR model achieves the best predictive performance on the test set, with an R value increased to 0.9358 and RMSE and MAE reduced to 0.0213 and 0.0165, respectively, demonstrating stronger feature selection ability and modeling adaptability. The F-test was used to verify the statistical significance of the experimental spectral data. The differences between adjacent concentration groups were generally significant, further confirming the reliability and practicality of the terahertz metamaterial sensor in quantitative analysis, demonstrating good robustness and practical application potential. This invention not only achieves highly sensitive and accurate quantitative analysis of trace amounts of trichlorfon residues but also verifies the feasibility and superiority of the IPOA optimization algorithm in the field of spectral detection, providing a practical and scalable research path for the rapid detection of pesticide residues using terahertz spectroscopy.
[0055] A second embodiment of the present invention provides a trace trichlorfon detection system based on terahertz spectroscopy detection technology, the system comprising: The materials module is used to determine the target parameters of the target metamaterial sensor based on the characteristic peak frequency of the trichlorfon, and to perform simulation based on the target parameters to obtain the target terahertz material. The acquisition module is used to prepare a trichlorfon sample and to acquire the target spectral data of the trichlorfon sample through the target terahertz material. The dimensionality reduction module is used to construct an initial model, train the initial model using a target feature selection method, and perform dimensionality reduction processing on the target spectral data based on the trained initial model to obtain dimensionality-reduced spectral data. An optimization module is used to optimize the model parameters of the initial model based on a target parameter optimization method to obtain optimized parameters. Based on the optimized parameters and the dimensionality-reduced spectral data, the initial model is optimized to obtain a target detection model. The target parameter optimization method is an improved pelican optimization algorithm. The detection module is used to detect trace amounts of trichlorfon residues using the target detection model.
[0056] Furthermore, the step of determining the target parameters of the target metamaterial sensor based on the characteristic peak frequency of the trichlorfon, and performing simulation based on the target parameters to obtain the target terahertz material includes: The characteristic peak frequency of trichlorfon is obtained, and the target peak frequency point of the target metamaterial sensor is determined based on the characteristic peak frequency of trichlorfon. The quality factor and sensitivity of the target terahertz material are calculated by simulating the spectrum, and the parameters of the preset database are scanned according to the target peak frequency point, the quality factor and the sensitivity to obtain the target parameters of the target metamaterial sensor. A single periodic structure is selected as the modeling object, and modeling and simulation are performed according to the target parameters to obtain the target terahertz material.
[0057] Furthermore, the target peak frequency point includes , and .
[0058] Furthermore, the target terahertz material possesses a near-circular composite resonant ring three-peak structure, and the target parameters include: period... First radius Second radius Third radius Fourth radius First length Second length The target terahertz material substrate material is selected with a refractive index of It is made of silicon with a gold metal layer on the surface.
[0059] Furthermore, the step of preparing the trichlorfon sample and acquiring the target spectral data by spectral acquisition of the trichlorfon sample using the target terahertz material includes: A standard solution of trichlorfon was selected as the reference solution. Ultrapure deionized water was used to quantitatively dilute the reference solution using a high-precision pipette. Each sample was then subjected to a vortex mixer. Speed Mixing After a period of time, ensuring that the solute molecules are uniformly distributed in the solvent, several sets of concentration gradient samples are transferred to brown volumetric flasks for sealed storage. Dry air is continuously circulated into the optical cavity of the spectrometer using an air compressor, and the relative humidity within the cavity is monitored by temperature and humidity sensors to ensure adequate humidity. The temperature stabilized at Within the specified range, once the environment has stabilized, use a pipette to press... Samples of different concentration gradients were sequentially and quantitatively aspirated from low to high concentrations and dropped onto the surface of the metamaterial sensor. point A composite sampling mode of repeated measurements is used to obtain target spectral data.
[0060] Furthermore, the steps of training the initial model using a target feature selection method and performing dimensionality reduction processing on the target spectral data based on the trained initial model to obtain dimensionality-reduced spectral data include: The target spectral data is initialized into a feature set, which includes several feature subsets. The feature set is then input into the initial model for prediction output to obtain predicted values. :
[0061] In the formula, For the first Feature weights for each feature subset For the first The first feature subset One characteristic, The intercept is... The number of features in the feature subset; The feature subsets are sequentially input into the initial model for training, and the feature weights of each feature are output in each training round. The features in the feature subset are sorted in descending order according to the absolute value of the feature weights, and the features with the lowest absolute value of the feature weights are removed to obtain a new feature subset. The new feature subset is re-input into the initial model, and the process of feature weight output and feature removal is repeated until the dimensionality reduction requirement is met to obtain dimensionality-reduced spectral data.
[0062] Furthermore, the step of optimizing the model parameters of the initial model using the target parameter optimization method to obtain optimized parameters, and then optimizing the initial model based on the optimized parameters and the dimensionality-reduced spectral data to obtain the target detection model includes: The model parameters of the initial model are initialized to the target population, and the Logistic chaotic mapping is used to initialize each individual in the target population:
[0063]
[0064] In the formula, For the first The individual in the first Wei, Di Chaotic state value at the next iteration. For the first The individual in the first Wei, Di Chaotic state value at the next iteration. These are the control parameters for chaotic mapping. For the first after initialization The first individual Dimensional variables; Indicates the first The individual in the first Initial values of chaotic states in dimension 1 and The first Upper and lower bounds of a dimensional variable; In the In this iteration, the current optimal individual is selected as the prey position based on the fitness function value:
[0065] In the formula, For the first The prey's location in the next iteration For the first The optimal individual in the target population at the next iteration; A nonlinear adaptive weighting factor is introduced to guide each individual quail toward the prey location by simulating the wind-driven search behavior of quail:
[0066]
[0067] In the formula, For the first Inertia weights in the next iteration , These are the minimum inertia weight and the maximum inertia weight, respectively. The maximum number of iterations, , The first The individual in the first sequence Position at the next iteration The first random number, It is a random integer; After the search phase is complete, perform a local development search:
[0068] In the formula, A constant control factor. The second random number; Perform elite back-learning on the current best individual to enhance the population's ability to escape local optima:
[0069] In the formula, For the first The optimal individual at the nth iteration Dimensional reverse solution, The third random number; During the iteration process, the boundary is adjusted for each individual, and the fitness of each individual before and after the iteration is compared. The greedy criterion is used to retain individuals with lower fitness.
[0070] In the formula, For new candidate solutions generated through the search phase or partial development phase, The fitness function; The iterative process is repeated until the iteration stopping condition is met, and the optimal individual is output to obtain the optimized parameters. Based on the optimized parameters and the dimensionality-reduced spectral data, the initial model is optimized to obtain the target detection model.
[0071] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these all fall within the protection scope of the present invention. Therefore, the protection scope of this invention patent should be determined by the appended claims.
Claims
1. A method for detecting trace amounts of trichlorfon based on terahertz spectroscopy, characterized in that, include: The target parameters of the target metamaterial sensor are determined based on the characteristic peak frequency of the trichlorfon, and simulation is performed based on the target parameters to obtain the target terahertz material. A sample of trichlorfon was prepared, and the trichlorfon sample was subjected to spectral acquisition using the target terahertz material to obtain target spectral data; An initial model is constructed, and the initial model is trained using a target feature selection method. The target spectral data is then dimensionality-reduced based on the trained initial model to obtain dimensionality-reduced spectral data. The model parameters of the initial model are optimized using a target parameter optimization method to obtain optimized parameters. The initial model is then optimized based on the optimized parameters and the dimensionality-reduced spectral data to obtain a target detection model. The target parameter optimization method is an improved Pelican optimization algorithm. The target detection model is used to detect trace amounts of trichlorfon residues.
2. The method for detecting trace amounts of trichlorfon based on terahertz spectroscopy as described in claim 1, characterized in that, The steps of determining the target parameters of the target metamaterial sensor based on the characteristic peak frequency of trichlorfon, and performing simulation based on the target parameters to obtain the target terahertz material include: The characteristic peak frequency of trichlorfon is obtained, and the target peak frequency point of the target metamaterial sensor is determined based on the characteristic peak frequency of trichlorfon. The quality factor and sensitivity of the target terahertz material are calculated by simulating the spectrum, and the parameters of the preset database are scanned according to the target peak frequency point, the quality factor and the sensitivity to obtain the target parameters of the target metamaterial sensor. A single periodic structure is selected as the modeling object, and modeling and simulation are performed according to the target parameters to obtain the target terahertz material.
3. The method for detecting trace amounts of trichlorfon based on terahertz spectroscopy as described in claim 2, characterized in that, The target peak frequency points include , and .
4. The method for detecting trace amounts of trichlorfon based on terahertz spectroscopy as described in claim 3, characterized in that, The target terahertz material possesses a near-circular composite resonant ring three-peak structure, and the target parameters include: period... First radius Second radius Third radius Fourth radius First length Second length The target terahertz material substrate material is selected with a refractive index of It is made of silicon with a gold metal layer on the surface.
5. The method for detecting trace amounts of trichlorfon based on terahertz spectroscopy as described in claim 4, characterized in that, The step of preparing the trichlorfon sample and acquiring the target spectral data by spectral acquisition of the trichlorfon sample using the target terahertz material includes: A standard solution of trichlorfon was selected as the reference solution. Ultrapure deionized water was used to quantitatively dilute the reference solution using a high-precision pipette. Each sample was then subjected to a vortex mixer. Speed Mixing After a period of time, ensuring that the solute molecules are uniformly distributed in the solvent, several sets of concentration gradient samples are transferred to brown volumetric flasks for sealed storage. Dry air is continuously circulated into the optical cavity of the spectrometer using an air compressor, and the relative humidity within the cavity is monitored by temperature and humidity sensors to ensure adequate humidity. The temperature stabilized at Within the specified range, once the environment has stabilized, use a pipette to press... Samples of different concentration gradients were sequentially and quantitatively aspirated from low to high concentrations and dropped onto the surface of the metamaterial sensor. point A composite sampling mode of repeated measurements is used to obtain target spectral data.
6. The method for detecting trace amounts of trichlorfon based on terahertz spectroscopy as described in claim 4, characterized in that, The steps of training the initial model using a target feature selection method and then performing dimensionality reduction on the target spectral data based on the trained initial model to obtain dimensionality-reduced spectral data include: The target spectral data is initialized into a feature set, which includes several feature subsets. This feature set is then input into the initial model for prediction output to obtain predicted values. : ; In the formula, For the first Feature weights for each feature subset For the first The first feature subset One characteristic, The intercept is... The number of features in the feature subset; The feature subsets are sequentially input into the initial model for training, and the feature weights of each feature are output in each training round. The features in the feature subset are sorted in descending order according to the absolute value of the feature weights, and the features with the lowest absolute value of the feature weights are removed to obtain a new feature subset. The new feature subset is re-input into the initial model, and the process of feature weight output and feature removal is repeated until the dimensionality reduction requirement is met to obtain dimensionality-reduced spectral data.
7. The method for detecting trace amounts of trichlorfon based on terahertz spectroscopy as described in claim 6, characterized in that, The steps of optimizing the model parameters of the initial model using the target parameter optimization method to obtain optimized parameters, and optimizing the initial model based on the optimized parameters and the dimensionality-reduced spectral data to obtain the target detection model include: The model parameters of the initial model are initialized to the target population, and the Logistic chaotic mapping is used to initialize each individual in the target population: ; ; In the formula, For the first The individual in the first Wei, Di Chaotic state value at the next iteration. For the first The individual in the first Wei, Di Chaotic state value at the next iteration. These are the control parameters for chaotic mapping. For the first after initialization The first individual Dimensional variables; Indicates the first The individual in the first Initial values of chaotic states in dimension 1 and The first Upper and lower bounds of a dimensional variable; In the In this iteration, the current optimal individual is selected as the prey position based on the fitness function value: ; In the formula, For the first The prey's location in the next iteration For the first The optimal individual in the target population at the next iteration; A nonlinear adaptive weighting factor is introduced to guide each individual quail toward the prey location by simulating the wind-driven search behavior of quail: ; ; In the formula, For the first Inertia weights in the next iteration , These are the minimum inertia weight and the maximum inertia weight, respectively. The maximum number of iterations, , The first The individual in the first sequence Position at the next iteration The first random number, It is a random integer; After the search phase is complete, perform a local development search: ; In the formula, A constant control factor. The second random number; Perform elite back-learning on the current best individual to enhance the population's ability to escape local optima: ; In the formula, For the first The optimal individual at the nth iteration Dimensional reverse solution, The third random number; During the iteration process, the boundary is adjusted for each individual, and the fitness of each individual before and after the iteration is compared. The greedy criterion is used to retain individuals with lower fitness. ; In the formula, For new candidate solutions generated through the search phase or partial development phase, The fitness function; The iterative process is repeated until the iteration stopping condition is met, and the optimal individual is output to obtain the optimized parameters. Based on the optimized parameters and the dimensionality-reduced spectral data, the initial model is optimized to obtain the target detection model.
8. A trace trichlorfon detection system based on terahertz spectroscopy detection technology, characterized in that, The system includes: The materials module is used to determine the target parameters of the target metamaterial sensor based on the characteristic peak frequency of the trichlorfon, and to perform simulation based on the target parameters to obtain the target terahertz material. The acquisition module is used to prepare a trichlorfon sample and to acquire the target spectral data of the trichlorfon sample through the target terahertz material. The dimensionality reduction module is used to construct an initial model, train the initial model using a target feature selection method, and perform dimensionality reduction processing on the target spectral data based on the trained initial model to obtain dimensionality-reduced spectral data. An optimization module is used to optimize the model parameters of the initial model based on a target parameter optimization method to obtain optimized parameters. Based on the optimized parameters and the dimensionality-reduced spectral data, the initial model is optimized to obtain a target detection model. The target parameter optimization method is an improved pelican optimization algorithm. The detection module is used to detect trace amounts of trichlorfon residues using the target detection model.
9. The trace trichlorfon detection system based on terahertz spectroscopy detection technology according to claim 8, characterized in that, The material module is specifically used for: The characteristic peak frequency of trichlorfon is obtained, and the target peak frequency point of the target metamaterial sensor is determined based on the characteristic peak frequency of trichlorfon. The quality factor and sensitivity of the target terahertz material are calculated by simulating the spectrum, and the parameters of the preset database are scanned according to the target peak frequency point, the quality factor and the sensitivity to obtain the target parameters of the target metamaterial sensor. A single periodic structure is selected as the modeling object, and modeling and simulation are performed according to the target parameters to obtain the target terahertz material.
10. The trace trichlorfon detection system based on terahertz spectroscopy detection technology according to claim 9, characterized in that, The target peak frequency points include , and .
