In-situ detection system for total nitrogen organic matter in tobacco planting soil based on electrochemical analysis
Patent Information
- Application Number
- CN202611145178.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-30
- Publication Date
- 2026-09-29
AI Technical Summary
[0004]本发明提供基于电化学分析的植烟土壤全氮有机质原位检测系统,以解决现有的问题
[0015]本发明的技术方案的有益效果是:通过集成探针实现植烟土壤全氮有机质的原位电化学检测,无需复杂样品前处理,提升了检测效率;系统采用氧化参数连续迭代调控机制,根据无机氮浓度变化动态优化氧化电压与时长,确保氧化反应充分彻底。通过联动分析浓度数据波动与氧化参数迭代情况,确定反应截止条件并计算估测系数,有效提升检测精度与可靠性;通过将氧化过程与定量分析有机结合,实现了土壤氮含量的快速、准确原位测定,为精准施肥和烟叶品质提升提供技术支撑。
Smart Images

Figure CN122836151A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of soil in-situ detection technology, specifically to an in-situ detection system for total nitrogen organic matter in tobacco-growing soil based on electrochemical analysis. Background Technology
[0002] Suitable soil environment is a prerequisite for tobacco cultivation. The nutrient content in the soil directly affects tobacco development and quality. Therefore, soil nutrient testing in tobacco-growing areas plays a crucial role in tobacco growth, soil health, and sustainable management. Among nutrient testing methods, in-situ detection of total nitrogen organic matter in tobacco-growing soil is a core requirement for tobacco quality control. Conventional electrochemical analysis methods can only directly measure inorganic nitrogen, while organic nitrogen needs to be converted through electrochemical oxidation. It was indirectly measured later.
[0003] However, the organic matter in tobacco-growing soils is mainly composed of high-molecular-weight humus, and its complexity leads to slow oxidation kinetics, resulting in a low conversion rate of organic matter and causing a large deviation in the estimation results of organic matter. Consequently, the reliability of the in-situ detection results of total nitrogen organic matter in tobacco-growing soils is insufficient. Summary of the Invention
[0004] This invention provides an in-situ detection system for total nitrogen organic matter in tobacco-growing soil based on electrochemical analysis to solve existing problems.
[0005] The in-situ detection system for total nitrogen organic matter in tobacco-growing soil based on electrochemical analysis of the present invention adopts the following technical solution: One embodiment of the present invention provides an in-situ detection system for total nitrogen organic matter in tobacco-growing soil based on electrochemical analysis. The system includes the following modules: The measurement preparation module is used to oxidize the tobacco-planting soil at the detection point using an integrated probe and obtain inorganic nitrogen concentration data during the oxidation process. The integrated probe contains an oxidation electrode, a nitrate ion selective electrode, and an ammonium ion selective electrode. The inorganic nitrogen concentration data includes nitrate concentration data and ammonium concentration data. The oxidation parameter module is used to continuously iterate the oxidation parameters of the oxidation electrode. During the continuous iteration of the oxidation parameters, the iteration process of the oxidation parameters is adjusted according to the changes in the inorganic nitrogen concentration data to obtain inorganic nitrogen concentration data at several iterations. The oxidation parameters include oxidation voltage and oxidation time. The data analysis module is used to cut off the iteration process based on the iterative control of oxidation parameters, and to perform a linkage analysis on the fluctuation of inorganic nitrogen concentration data and the iteration of oxidation parameters for all iterations after the cutoff, so as to obtain the estimated coefficient of tobacco-growing soil at the detection point. The detection output module is used to obtain the nitrogen content detection results of the tobacco-growing soil at the detection point by estimating the coefficient and combining it with the change in nitrogen content before and after oxidation of the tobacco-growing soil.
[0006] Optionally, the specific method for obtaining the inorganic nitrogen concentration data under the aforementioned number of iterations is as follows: The base value, iteration step size, and upper limit value of each oxidation parameter are preset to obtain an initial oxidation array formed by the base values of all oxidation parameters. Inorganic nitrogen concentration data are obtained during the oxidation of tobacco soil at the detection point by the oxidation electrode under the initial oxidation array. The conversion coefficient under the initial oxidation array is calculated based on the change of inorganic nitrogen concentration data corresponding to the initial oxidation array. The oxidation parameters in the initial oxidation array are iterated. During the iteration process, the degree of adjustment of the oxidation parameters is determined based on the change of inorganic nitrogen concentration data and the conversion coefficient, so as to obtain the inorganic nitrogen concentration data of the oxidation array formed by the oxidation parameters during the iteration process.
[0007] Optionally, the specific method for obtaining the conversion coefficient under the initial oxidation array is as follows: Based on the differences in the numerical levels of data points in the inorganic nitrogen concentration data under the initial oxidation array, obtain the inorganic nitrogen increment parameters under the initial oxidation array; By combining the inorganic nitrogen increment parameters under the initial oxidation array with the corresponding oxidation voltage and oxidation time, the conversion coefficient under the initial oxidation array is calculated. The inorganic nitrogen increment parameters are positively correlated with the conversion coefficient, while the oxidation voltage and oxidation time are negatively correlated with the conversion coefficient.
[0008] Optionally, the specific method for obtaining the inorganic nitrogen concentration data under the oxidation array formed during the iteration process of the oxidation parameters is as follows: Based on the magnitude of the conversion coefficients in the initial oxidation array, the priority of the oxidation parameters in the initial oxidation array during the first iteration is determined, thereby obtaining the oxidation array and corresponding conversion coefficients obtained after iterating the corresponding oxidation parameters in the first iteration; the oxidation parameters in the oxidation array are iterated alternately, and the iteration necessity coefficients of the oxidation parameters are determined based on the degree of change of inorganic nitrogen concentration data in the corresponding oxidation array before and after the iteration, as well as the difference in the corresponding conversion coefficients. The iteration process of the corresponding oxidation parameters is controlled by adjusting the magnitude of the necessary coefficients during iteration, thereby obtaining inorganic nitrogen concentration data at different iteration numbers during the iteration process.
[0009] Optionally, the method for determining the priority of the oxidation parameters in the initial oxidation array during the first iteration based on the magnitude of the conversion coefficients of the initial oxidation array, thereby obtaining the oxidation array and corresponding conversion coefficients under the first iteration after iterating the corresponding oxidation parameters, includes the following specific methods: A preset conversion threshold is set. When the conversion coefficient is greater than or equal to the conversion threshold, the oxidation time in the initial oxidation array is iterated for the first time; when the conversion coefficient is less than the conversion threshold, the oxidation voltage in the initial oxidation array is iterated for the first time. When performing the first iteration on the oxidation parameters in the initial oxidation array, the corresponding preset iteration step size is used to obtain the inorganic nitrogen concentration data under the corresponding oxidation array after the first iteration. The initial oxidation array and the corresponding inorganic nitrogen concentration data in the method for obtaining the conversion coefficient of the initial oxidation parameters are replaced by the corresponding oxidation array and the corresponding inorganic nitrogen concentration data after the first iteration to obtain the conversion coefficient of the corresponding oxidation array after the first iteration.
[0010] Optionally, the method for iteratively iterating the oxidation parameters in the oxidation array and determining the necessary coefficients for the iteration of oxidation parameters based on the changes in inorganic nitrogen concentration data under the corresponding oxidation array before and after iteration, and the differences in the corresponding conversion coefficients, includes the following specific methods: At the current iteration number When the number is greater than or equal to 3, the number of... When iterating over the oxidation voltage in the oxidation array, the oxidation duration is used as the first iteration. The priority iteration parameter for the nth iteration; when the nth iteration... When iterating over the oxidation duration in the oxidation array for the second time, the oxidation voltage is used as the first... The priority iteration parameter for the next iteration; Using the least squares method, respectively, the th Second and third After the first iteration, the inorganic nitrogen concentration data under the corresponding oxidation array are fitted with straight lines to obtain the slope of the fitted straight line for the corresponding inorganic nitrogen concentration data, and combined with the first iteration... Second and third The difference in the transformation coefficients of the corresponding oxidation arrays after the nth iteration is used to calculate the nth iteration. The iteration necessity coefficients of the priority iteration parameters of the next iteration, wherein the slope of the fitted line is negatively correlated with the iteration necessity coefficients, and the difference in the transformation coefficients is positively correlated with the iteration necessity coefficients.
[0011] Optionally, the method for controlling the iteration process of the corresponding oxidation parameters by adjusting the magnitude of the iteration necessity coefficient to obtain inorganic nitrogen concentration data at different iteration numbers during the iteration process includes: A first threshold and a second threshold are preset, with the first threshold being greater than the second threshold. When the iteration necessity coefficient is greater than or equal to the first threshold, The iteration step size of the corresponding priority iteration parameter is adjusted as a control coefficient to obtain the adjusted iteration step size. The value of the priority iteration parameter is iteratively increased by the adjusted iteration step size, while the other oxidation parameter is fixed to the value under the previous iteration order to obtain the oxidation array under the current iteration number. When the iteration necessity coefficient is less than the first threshold and greater than or equal to the second threshold, the iteration step size of the corresponding priority iteration parameter remains unchanged, and the other oxidation parameter is also fixed to the value under the previous iteration order, so as to obtain the oxidation array under the current iteration number. When the iteration necessity coefficient is less than the second threshold, The iteration step size of the corresponding priority iteration parameter is adjusted using a control coefficient to obtain the adjusted iteration step size. The value of the priority iteration parameter is iteratively increased using this adjusted step size, while the other oxidation parameter is fixed to the value from the previous iteration sequence, resulting in the oxidation array for the current iteration number. Indicates the first The iteration necessity coefficients of the priority iteration parameters for the next iteration.
[0012] Optionally, the method for stopping the iteration process based on the iterative control of oxidation parameters includes: Get the contiguous path before the current iteration number The necessary coefficients of the oxidation parameters for each iteration number are calculated and formed into a corresponding sequence, denoted as the sequence of necessary coefficients for adjacent iterations of the current iteration number. The necessary coefficients in the adjacent iteration sequence are sorted in ascending order according to their corresponding iteration numbers. The preset quantity parameter; Analyze the decay of the necessary coefficients in the sequence of necessary coefficients for adjacent iterations, calculate the cutoff coefficient for the current iteration number, preset a cutoff threshold, and stop iterating on the oxidation parameters at the current iteration number when the value of the cutoff coefficient is greater than or equal to the cutoff threshold.
[0013] Optionally, the specific method for obtaining the cutoff coefficient of the current iteration number is as follows: Establish a two-dimensional rectangular coordinate system, with the horizontal axis representing the iteration number and the vertical axis representing the iteration necessity coefficients of the oxidation parameters at the corresponding iteration number. Obtain a scatter plot of the sequence of iteration necessity coefficients of the current iteration number in the two-dimensional rectangular coordinate system. The necessary coefficient sequence of adjacent iterations for the current iteration number is fitted to a straight line in a two-dimensional rectangular coordinate system using the least squares method. The slope corresponding to the fitted line is recorded as the adjacent decay rate for the current iteration number. Combined with the necessary coefficient of the oxidation parameter for the current iteration number, the cutoff coefficient for the current iteration number is obtained.
[0014] Optionally, the method for performing a linked analysis of the fluctuations in inorganic nitrogen concentration data and the iterations of oxidation parameters across all iterations after the cutoff point to obtain the estimated coefficient of tobacco-growing soil at the detection point includes: The oxidation arrays under all iterations are classified, and the growth degree of oxidation parameters and inorganic nitrogen increment parameters under different types of oxidation arrays are standardized to obtain voltage increment standard sequences, voltage-nitrogen increment standard sequences, duration increment standard sequences, and duration-nitrogen increment standard sequences. The DTW distance between the voltage increment standard sequence and the voltage-nitrogen increment standard sequence is obtained using the DTW algorithm and is denoted as the first similarity coefficient. The DTW distance between the duration increment standard sequence and the duration-nitrogen increment standard sequence is denoted as the second similarity coefficient. By performing discrete analysis on the voltage increment standard sequence and the duration increment standard sequence, and determining the weights based on the first and second similarity coefficients, the estimation coefficients of tobacco-growing soil are obtained.
[0015] The beneficial effects of the technical solution of this invention are as follows: In-situ electrochemical detection of total nitrogen organic matter in tobacco-growing soil is achieved through integrated probes, eliminating the need for complex sample pretreatment and improving detection efficiency. The system employs a continuous iterative control mechanism for oxidation parameters, dynamically optimizing the oxidation voltage and duration based on changes in inorganic nitrogen concentration to ensure a thorough oxidation reaction. By linking the analysis of concentration data fluctuations with the iteration of oxidation parameters, the reaction cutoff condition is determined and the estimation coefficient is calculated, effectively improving detection accuracy and reliability. By organically combining the oxidation process with quantitative analysis, rapid and accurate in-situ determination of soil nitrogen content is achieved, providing technical support for precision fertilization and tobacco quality improvement. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a structural block diagram of the in-situ detection system for total nitrogen organic matter in tobacco-growing soil based on electrochemical analysis, as described in this invention. Figure 2This is a schematic diagram of the structure of an electronic device provided in one embodiment of the present invention. Detailed Implementation
[0018] To further illustrate the technical means and effects adopted by the present invention to achieve its intended purpose, the following, in conjunction with the accompanying drawings and preferred embodiments, details the specific implementation, structure, features, and effects of the in-situ detection system for total nitrogen organic matter in tobacco-growing soil based on electrochemical analysis proposed by the present invention. In the following description, different "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. Furthermore, specific features, structures, or characteristics in one or more embodiments can be combined in any suitable form.
[0019] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.
[0020] The specific scheme of the in-situ detection system for total nitrogen organic matter in tobacco-growing soil based on electrochemical analysis provided by the present invention will be described in detail below with reference to the accompanying drawings.
[0021] Please see Figure 1 The diagram illustrates a structural block diagram of an in-situ detection system for total nitrogen organic matter in tobacco-growing soil based on electrochemical analysis, according to an embodiment of the present invention. The system includes the following modules: The measurement preparation module 101 is used to oxidize the tobacco-planting soil at the detection point using an integrated probe and obtain inorganic nitrogen concentration data during the oxidation process.
[0022] It should be noted that in the detection of total nitrogen organic matter in tobacco-growing soils, inorganic nitrogen can usually be directly measured using an ion-selective analyzer. However, the organic nitrogen portion of the total nitrogen requires an electrochemical oxidation process to convert it into organic nitrogen. Afterwards, measurements are taken to infer the organic nitrogen content of the tobacco-growing soil. However, this process requires the use of appropriate electrochemical oxidation devices to treat the tobacco-growing soil in situ, and the collection of relevant data generated during the treatment process by detection devices to serve as the basis for in-situ detection of total nitrogen organic matter in the tobacco-growing soil.
[0023] To implement the in-situ detection system for total nitrogen organic matter in tobacco-growing soil based on electrochemical analysis proposed in this embodiment, it is first necessary to use electrodes to detect inorganic nitrogen and oxidize soil organic matter. The specific process is as follows: First, an ion-selective electrode (ISE) and an ammonium ion-selective electrode were selected as inorganic nitrogen detection sensors, and a platinum electrode was selected as the oxidation electrode. The inorganic nitrogen detection sensor and the oxidation electrode were integrated into the same probe.
[0024] Then, the probe is inserted into the tobacco-growing soil, and the soil is electrochemically oxidized through the oxidation electrode in the probe. During the electrochemical oxidation process, the inorganic nitrogen concentration data of the tobacco-growing soil is detected by an inorganic nitrogen detection sensor. The inorganic nitrogen concentration data includes the time-series concentration data of nitrate ions and ammonium ions, respectively, which are denoted as nitrate concentration data and ammonium concentration data. Each nitrate concentration data and ammonium concentration data corresponds to a corresponding oxidation parameter, which includes the oxidation voltage and oxidation time of the oxidation electrode during the electrochemical oxidation process.
[0025] Finally, the inorganic nitrogen concentration data was filtered using a Gaussian filtering algorithm.
[0026] Thus, the inorganic nitrogen concentration data were obtained using the above method.
[0027] The oxidation parameter module 102 is used to continuously iterate the oxidation parameters of the oxidation electrode. During the continuous iteration of the oxidation parameters, the iteration process of the oxidation parameters is controlled according to the changes in the inorganic nitrogen concentration data to obtain the inorganic nitrogen concentration data under several iterations.
[0028] It should be noted that, since organic nitrogen is obtained through electrochemical oxidation... During the process, there are corresponding oxidation conversion rates under different parameter values. Therefore, in order to more accurately measure the organic nitrogen content in tobacco-growing soil, this embodiment of the invention selects to perform total nitrogen detection through a multi-parameter adjustment process, and then obtains the inorganic nitrogen and organic nitrogen content in tobacco-growing soil based on the total nitrogen detection results.
[0029] Specifically, in step S201, the base value, iteration step size, and upper limit value of each oxidation parameter are preset, and an initial oxidation array is obtained formed by the base values of all oxidation parameters. The inorganic nitrogen concentration data obtained during the oxidation of tobacco soil at the detection point by the oxidation electrode under the initial oxidation array is obtained. The conversion coefficient under the initial oxidation array is calculated based on the change of inorganic nitrogen concentration data corresponding to the initial oxidation array.
[0030] First, a base value, iteration step size, and upper limit value are preset for each oxidation parameter. Within the range of the base value and upper limit value corresponding to the oxidation parameter, the base value is iteratively increased by the iteration step size to obtain the value sequence of each oxidation parameter.
[0031] It should be noted that, since the organic matter in tobacco-growing soil is mainly composed of high-molecular-weight humus, the complexity of its chemical structure leads to slow oxidation kinetics. This results in a low conversion rate of recalcitrant organic nitrogen when the oxidation parameter level is low during the organic matter conversion process. Furthermore, the organic matter content cannot be accurately and effectively estimated in advance during in-situ detection of total nitrogen organic matter. Therefore, this embodiment of the invention selects to iteratively adjust the relevant oxidation parameters to ensure efficient conversion of organic matter in tobacco-growing soil, so as to obtain accurate inorganic nitrogen and organic nitrogen content after subsequent total nitrogen detection.
[0032] It should be noted that in this embodiment of the invention, the basic value of the oxidation voltage is set to 1V, the iteration step size is 0.2V, and the upper limit is 3V; the basic value of the oxidation time is 10s, the iteration step size is 2s, and the upper limit is 50s. The 50-second upper limit is the maximum allowable value of the oxidation time, serving as a safety threshold and operating boundary. In other embodiments, adjustments can be made according to actual conditions, and this embodiment of the invention does not impose specific limitations.
[0033] Then, the value sequence of each oxidation parameter is traversed to obtain an array formed by the first element in the value sequence of all oxidation parameters, which is denoted as the initial oxidation array; the inorganic nitrogen concentration data obtained by the oxidation electrode during the soil oxidation process under the initial oxidation array is obtained; and the conversion coefficient under the initial oxidation array is calculated based on the change of inorganic nitrogen concentration data corresponding to the initial oxidation array.
[0034] As an optional embodiment, the specific method for obtaining the conversion coefficient under the initial oxidation array is as follows: based on the difference in the numerical level of data points in the inorganic nitrogen concentration data under the initial oxidation array, the inorganic nitrogen increment parameter under the initial oxidation array is obtained. Combined with the inorganic nitrogen increment parameter under the initial oxidation array and the corresponding oxidation voltage and oxidation time, the conversion coefficient under the initial oxidation array is calculated. The inorganic nitrogen increment parameter is positively correlated with the conversion coefficient, while the oxidation voltage and oxidation time are both negatively correlated with the conversion coefficient.
[0035] As an optional embodiment, the specific calculation method for the conversion coefficient can be: in, This represents the conversion coefficient of the initial oxidation array; This represents the preset normalization coefficient, with dimensions of . ; This represents the inorganic nitrogen increment parameter under the initial oxidation array; This represents the oxidation voltage under the initial oxidation array; This indicates the oxidation duration under the initial oxidation array; This represents the nitrate increment parameter under the initial oxidation array; This represents the nitrogen increment parameter under the initial oxidation array; This indicates the preset correction factor; Represents the maximum value function; This represents the sigmoid normalization function.
[0036] In a specific embodiment of the present invention, a preset normalization coefficient is provided. It can be This makes the calculation results dimensionless. In other embodiments, the value of the normalization coefficient can be adjusted according to the actual situation. The embodiments of the present invention do not make specific limitations.
[0037] As an optional embodiment, the specific method for obtaining the nitrate increment parameter under the initial oxidation array is as follows: obtain the numerical difference between the last data point and the first data point of the nitrate concentration data under the initial oxidation array, and use it as the nitrate increment parameter under the initial oxidation array.
[0038] As an optional embodiment, the specific method for obtaining the nitrogen increment parameter under the initial oxidation array is as follows: obtain the numerical difference between the last data point and the first data point of the ammonium concentration data under the initial oxidation array, and use it as the ammonium increment parameter under the initial oxidation array; use the sum of the nitrate increment parameter and the ammonium increment parameter under the initial oxidation array as the nitrogen increment parameter under the initial oxidation array.
[0039] It should be noted that since the total organic nitrogen content in tobacco-growing soil is unknown, the absolute conversion rate of organic nitrogen cannot be directly calculated. Therefore, this embodiment of the invention uses conversion efficiency as a normalized efficiency index to avoid dependence on the total organic nitrogen content, considering only the effectiveness of the organic nitrogen oxidation process under the current oxidation parameters. The conversion coefficient is used to describe the degree of organic matter oxidation and conversion in the soil using the oxidation electrode under the corresponding oxidation array and oxidation parameters. The higher the conversion coefficient, the higher the conversion intensity of organic matter in tobacco-growing soil to inorganic nitrogen. In addition, since the nitrogen content may fluctuate during the oxidation process due to the biochemical activities of microorganisms, and the main product of electrochemical oxidation of organic nitrogen is nitrate ions, the nitrate increment parameter is used when calculating the inorganic nitrogen increment parameter. and the corrected nitrogen increment parameter Determine the inorganic nitrogen increment parameters to ensure that the electrochemical oxidation process under the initial oxidation array can be accurately reflected; In addition, in one specific embodiment of the present invention, a correction coefficient is set. The value can be 0.85 to ensure that the contribution of organic nitrogen oxidation is dominant and to avoid false positive increments. In other embodiments, the value of the correction coefficient can be adjusted as appropriate. This embodiment of the invention does not impose specific limitations.
[0040] It should be further noted that when oxidizing and transforming organic matter in tobacco-growing soil through electrochemical oxidation, the specific oxidation effect is affected by the current oxidation parameters. As oxidation proceeds, the oxidation of organic matter slows down. Therefore, in order to further determine the actual nitrogen content in tobacco-growing soil, it is necessary to further iteratively adjust the oxidation parameters to promote the oxidation rate of organic nitrogen. Therefore, in the subsequent embodiments of this invention, the initial oxidation parameters in the oxidation and transformation process will be adjusted and iterated to ensure the effective transformation of organic nitrogen in tobacco-growing soil and avoid problems caused by improper oxidation parameters. This will enable more effective utilization of the dynamic transformation process of organic nitrogen to inorganic nitrogen in tobacco-growing soil to determine the organic nitrogen content in the future.
[0041] Step S202: Iterate the oxidation parameters in the initial oxidation array. During the iteration process, based on the degree of change of inorganic nitrogen concentration data and combined with the conversion coefficient, determine the degree of adjustment of oxidation parameters at the corresponding number of iterations, thereby obtaining the inorganic nitrogen concentration data of the oxidation array formed by the oxidation parameters during the iteration process.
[0042] It should be noted that during the iteration of oxidation parameters in the initial oxidation array, different oxidation parameters have different degrees of promoting the inorganic transformation of organic nitrogen in tobacco-growing soil. Therefore, in order to facilitate the in-situ detection of total nitrogen organic matter, that is, to estimate the content of total nitrogen organic matter in tobacco-growing soil through a single in-situ detection, this embodiment of the invention uses historical inorganic nitrogen concentration data for analysis in real time, thereby regulating the electrochemical oxidation process and obtaining inorganic nitrogen concentration data during the regulation process.
[0043] As a preferred embodiment, the specific method for obtaining the inorganic nitrogen concentration data under the oxidation array formed during the iteration process of the oxidation parameters is as follows: First, based on the magnitude of the conversion coefficients in the initial oxidation array, the priority of the oxidation parameters in the initial oxidation array during the first iteration is determined, thereby obtaining the oxidation array and corresponding conversion coefficients obtained after iterating the corresponding oxidation parameters in the first iteration. The oxidation parameters in the oxidation array are iterated alternately, and the iteration necessity coefficients of the oxidation parameters are determined based on the degree of change of inorganic nitrogen concentration data in the corresponding oxidation array before and after the iteration, as well as the difference in the corresponding conversion coefficients.
[0044] As an optional embodiment, the method of determining the priority of the first iteration of the oxidation parameters in the initial oxidation array based on the magnitude of the conversion coefficient of the initial oxidation array, thereby obtaining the oxidation array and corresponding conversion coefficient after the first iteration of the corresponding oxidation parameters, includes the following specific methods: a preset conversion threshold is set; when the conversion coefficient is greater than or equal to the conversion threshold, the oxidation duration in the initial oxidation array is iterated for the first time; when the conversion coefficient is less than the conversion threshold, the oxidation voltage in the initial oxidation array is iterated for the first time; a corresponding preset iteration step size is used when iterating the oxidation parameters in the initial oxidation array for the first time to obtain the inorganic nitrogen concentration data of the corresponding oxidation array after the first iteration; the initial oxidation array and corresponding inorganic nitrogen concentration data in the method for obtaining the conversion coefficient of the initial oxidation parameters are replaced by the corresponding oxidation array and corresponding inorganic nitrogen concentration data after the first iteration to obtain the conversion coefficient of the corresponding oxidation array after the first iteration.
[0045] As an optional embodiment, the method of iteratively iterating the oxidation parameters in the oxidation array and determining the iteration necessity coefficient of the oxidation parameters based on the degree of change in the inorganic nitrogen concentration data under the corresponding oxidation array before and after the iteration, and the difference in the corresponding conversion coefficient, includes: in the current iteration number... When the number is greater than or equal to 3, the number of... When iterating over the oxidation voltage in the oxidation array, the oxidation duration is used as the first iteration. The priority iteration parameter for the nth iteration; when the nth iteration... When iterating over the oxidation duration in the oxidation array for the second time, the oxidation voltage is used as the first... The priority iteration parameters for the nth iteration; the least squares method is used to iterate through the nth iteration. Second and third After the first iteration, the inorganic nitrogen concentration data under the corresponding oxidation array are fitted with straight lines to obtain the slope of the fitted straight line for the corresponding inorganic nitrogen concentration data, and combined with the first iteration... Second and third The difference in the transformation coefficients of the corresponding oxidation arrays after the nth iteration is used to calculate the nth iteration. The iteration necessity coefficients of the priority iteration parameters of the next iteration, wherein the slope of the fitted line is negatively correlated with the iteration necessity coefficients, and the difference in the transformation coefficients is positively correlated with the iteration necessity coefficients.
[0046] As an optional embodiment, the specific method for calculating the iteration necessity coefficient of the priority iteration parameter can be: in, Indicates the first The iteration necessity coefficient of the priority iteration parameter in the next iteration; Indicates the first The weight coefficients of the priority iteration parameters in the next iteration; Indicates the first The transformation coefficients of the corresponding oxidation array after the next iteration; Indicates the first The transformation coefficients of the corresponding oxidation array after the next iteration; This represents a preset smoothing constant used to avoid a denominator of 0; Indicates the number of iterations; Indicates the first After the nth iteration, the corresponding oxidation array is the th The slope of the fitted straight line corresponding to each inorganic nitrogen concentration data; Indicates the preset reference slope; This represents the sigmoid normalization function; This represents an exponential function with the natural constant as its base.
[0047] Preset smoothing constants based on experience. The value can be 0.01, the conversion threshold can be 0.7, and the reference slope can be 10. These can be adjusted in other embodiments as appropriate, and the embodiments of the present invention are not specifically limited.
[0048] Because nitrogen-containing organic matter contains a wide variety of complex substances, when oxidizing it using electrochemical technology, it is necessary to consider that different substances will exhibit different oxidation results under different oxidation parameters and conditions. Therefore, it is necessary to iteratively increase the oxidation parameters during the oxidation process to ensure the effective conversion of organic nitrogen into inorganic nitrogen without causing other interference. In order to regulate the iterative process, the obtained iteration necessity coefficient is used to describe the degree of necessity for further iterative increases of the corresponding oxidation parameters during the oxidation of tobacco soil by the oxidation electrode. The larger the value of the iteration necessity coefficient, the higher the necessity for iterating the corresponding oxidation parameters.
[0049] Then, the iteration process of the corresponding oxidation parameters is controlled by adjusting the magnitude of the necessary iteration coefficient, and inorganic nitrogen concentration data at different iteration numbers are obtained during the iteration process.
[0050] As an optional embodiment, the method for controlling the iteration process of the corresponding oxidation parameters by adjusting the magnitude of the iteration necessity coefficient includes: presetting a first threshold and a second threshold, with the first threshold being greater than the second threshold; when the iteration necessity coefficient is greater than or equal to the first threshold, ... The iteration step size of the corresponding priority iteration parameter is adjusted using a control coefficient to obtain the adjusted iteration step size. The value of the priority iteration parameter is iteratively increased using this adjusted step size, while the other oxidation parameter remains fixed at its value from the previous iteration, resulting in the oxidation array for the current iteration number. When the iteration necessity coefficient is less than the first threshold but greater than or equal to the second threshold, the iteration step size of the corresponding priority iteration parameter remains unchanged, and the other oxidation parameter is also fixed at its value from the previous iteration, thus obtaining the oxidation array for the current iteration number. When the iteration necessity coefficient is less than the second threshold, ... The iteration step size of the corresponding priority iteration parameter is adjusted using a control coefficient to obtain the adjusted iteration step size. The value of the priority iteration parameter is iteratively increased using this adjusted step size, while the other oxidation parameter is fixed to the value from the previous iteration sequence, resulting in the oxidation array for the current iteration number. Indicates the first The iteration necessity coefficients of the priority iteration parameters for the next iteration.
[0051] In one specific embodiment, the first threshold can be set to 0.8 and the second threshold to 0.3. In other embodiments, the thresholds can be adjusted according to the actual situation. This embodiment of the invention does not impose any specific limitations.
[0052] It should be noted that the organic nitrogen composition of tobacco-growing soil is complex, usually dominated by high-molecular-weight humic substances. Oxidation voltage and oxidation time have a strong coupling effect on oxidation kinetics. Therefore, in order to reduce the complex impact of this strong coupling effect on the electrochemical oxidation process, this invention adopts a single-parameter rotation strategy to rotate and control the oxidation parameters in the oxidation array. This ensures that only a single oxidation parameter changes in each iteration, so that the corresponding iteration necessity coefficient can be accurately attributed to the adjustment effect of the oxidation parameter. This avoids attribution ambiguity caused by simultaneous changes in multiple parameters. Thus, at a higher level of iteration necessity coefficient, the iteration step size of the corresponding oxidation parameter is enhanced, promoting efficient oxidation of organic nitrogen components and shortening the detection time. At a lower level of iteration necessity coefficient, the iteration step size is decayed to prevent excessive oxidation and side reactions (such as carbon skeleton breakage interfering with total nitrogen determination). The generated multi-round inorganic nitrogen concentration data contains a complete oxidation kinetic trajectory, providing high-information input for subsequent nitrogen content estimation, and improving the accuracy and reliability of nitrogen content detection results in the in-situ detection of total nitrogen organic matter in tobacco-growing soil.
[0053] Thus, the inorganic nitrogen concentration data for different iteration numbers were obtained using the above method.
[0054] The data analysis module 103 is used to cut off the iteration process based on the iterative control of oxidation parameters, and to perform a linkage analysis on the fluctuation of inorganic nitrogen concentration data and the iteration of oxidation parameters under all iterations after the cutoff, so as to obtain the estimated coefficient of tobacco-growing soil at the detection point.
[0055] It should be noted that when organic nitrogen in tobacco-growing soil is oxidized to inorganic nitrogen using electrochemical technology, the organic nitrogen content in the soil decreases as the oxidation process progresses. Increasing the oxidation parameters cannot significantly increase the oxidation rate. Therefore, the iteration of the oxidation parameters should be stopped to avoid excessive oxidation of other organic matter in the soil due to excessively high oxidation parameter values, which would interfere with the detection of total nitrogen. Furthermore, the inorganic nitrogen concentration data obtained after stopping the iteration contains information on the content of total nitrogen organic matter in tobacco-growing soil during the oxidation process. Therefore, this embodiment of the invention further analyzes the inorganic nitrogen concentration data in the multi-stage oxidation process of tobacco-growing soil and calculates the estimation coefficient.
[0056] Specifically, in step S301, based on the iteration necessity coefficient of the oxidation parameter at each iteration number, the criterion for stopping the iteration is determined, thereby obtaining the final inorganic nitrogen concentration data.
[0057] It should be noted that in the actual scenario of in-situ detection of total nitrogen in tobacco-growing soils, the electrochemical oxidation process faces challenges such as complex organic nitrogen composition and dynamic decay of oxidation efficiency. If the iteration terminates too early, the incomplete conversion of recalcitrant organic nitrogen will lead to low results; if excessive oxidation continues, it is easy to trigger side reactions such as the breakage of the humic carbon skeleton, generating interfering ions and distorting nitrogen concentration data. Traditional fixed-number or single-threshold termination strategies are difficult to adapt to the differences in oxidation kinetics of different soil samples. Therefore, this step constructs a cutoff coefficient by continuously tracking the recent iteration necessity coefficient to reflect the oxidation efficiency. When the oxidation efficiency has significantly decayed, the system terminates the iteration, thereby ensuring sufficient conversion of organic nitrogen while accurately avoiding the risk of excessive oxidation. This achieves a dynamic balance between sufficiency and safety in the detection process, significantly improving the system's adaptability and result reliability in complex field environments.
[0058] As a preferred embodiment, the method for determining the criterion for stopping the iteration based on the iteration necessity coefficient of the oxidation parameter at each iteration number, thereby obtaining the final inorganic nitrogen concentration data, includes: obtaining the continuous values before the current iteration number. The necessary coefficients of the oxidation parameters for each iteration number are calculated and formed into a corresponding sequence, denoted as the sequence of necessary coefficients for adjacent iterations of the current iteration number. The necessary coefficients in the adjacent iteration sequence are sorted in ascending order according to their corresponding iteration numbers. The preset quantity parameters are used to analyze the decay of the necessary coefficients in the sequence of necessary coefficients for adjacent iterations, calculate the cutoff coefficient for the current iteration number, preset the cutoff threshold, and stop iterating on the oxidation parameters at the current iteration number when the value of the cutoff coefficient is greater than or equal to the cutoff threshold. The data formed by the oxidation array corresponding to all iteration numbers and the inorganic nitrogen concentration data under the initial oxidation array is obtained and recorded as the final inorganic nitrogen concentration data.
[0059] It should be noted that, in a specific embodiment of the present invention, the cutoff threshold can be set to 0.8, and the quantity parameter... The value of can be 5. The specific values of the cutoff threshold and quantity parameters can be adjusted according to the actual situation in other embodiments. This embodiment of the invention does not impose specific limitations.
[0060] As an optional embodiment, the specific method for obtaining the cutoff coefficient of the current iteration number is as follows: establish a two-dimensional rectangular coordinate system, with the horizontal axis of the two-dimensional rectangular coordinate system being the iteration number and the vertical axis being the iteration necessity coefficient of the oxidation parameter under the corresponding iteration number, obtain a scatter plot of the adjacent iteration necessity coefficient sequence of the current iteration number in the two-dimensional rectangular coordinate system, perform a line fitting on the scatter plot of the adjacent iteration necessity coefficient sequence of the current iteration number in the two-dimensional rectangular coordinate system using the least squares method, record the slope corresponding to the obtained line fitting result as the adjacent decay rate of the current iteration number, and combine it with the iteration necessity coefficient of the oxidation parameter under the current iteration number to obtain the cutoff coefficient of the current iteration number.
[0061] In addition, when the value of the oxidation parameter reaches the upper limit, the corresponding oxidation parameter will no longer be iterated, so as to avoid the oxidation parameter value being too high, which would lead to continuous over-oxidation and cause side reactions such as the breakage of the carbon skeleton of humic substances.
[0062] As an optional embodiment, the specific method for calculating the cutoff coefficient of the current iteration number can be: in, This represents the cutoff coefficient for the current iteration coefficients; This represents the adjacent period decay rate of the current iteration number; This represents the iteration necessity coefficient of the oxidation parameter at the current iteration number; This represents an exponential function with the natural constant as its base.
[0063] Step S302: Based on the fluctuation of data points in the final inorganic nitrogen concentration data and the iteration of oxidation parameters under each iteration number, calculate the estimation coefficient of tobacco-planted soil at the detection point.
[0064] It should be noted that during the oxidation of tobacco-growing soil using the oxidation electrode in the probe, the oxidation effect of humus in the tobacco-growing soil varies to different degrees under different oxidation parameters. This results in oxidation arrays obtained at different stages reflecting the actual situation of the oxidation of organic nitrogen in the tobacco-growing soil at each stage. In order to effectively describe the process of organic nitrogen being oxidized and converted into inorganic nitrogen throughout the process, this embodiment of the invention calculates the estimation coefficient of tobacco-growing soil by analyzing the fluctuation of data points in the final inorganic nitrogen concentration data and the iteration of oxidation parameters at each iteration number. This describes the effect of promoting the inorganic conversion of organic nitrogen by iterating the oxidation parameters.
[0065] As a preferred embodiment, the specific method for obtaining the estimation coefficient of tobacco-planted soil at the detection point is as follows: The oxidation arrays under all iterations are classified, and the growth degree of oxidation parameters and inorganic nitrogen increment parameters under different types of oxidation arrays are standardized to obtain voltage increment standard sequences, voltage-nitrogen increment standard sequences, duration increment standard sequences, and duration-nitrogen increment standard sequences; the DTW distance between the voltage increment standard sequence and the voltage-nitrogen increment standard sequence is obtained using the DTW algorithm and recorded as the first similarity coefficient; the DTW distance between the duration increment standard sequence and the duration-nitrogen increment standard sequence is recorded as the second similarity coefficient; by performing a discrete analysis on the voltage increment sequence and the duration increment sequence, and determining the weights based on the first and second similarity coefficients, the estimation coefficient of the tobacco-planted soil is obtained.
[0066] As an optional embodiment, the specific method for obtaining the voltage increment standard sequence, voltage-nitrogen increment standard sequence, duration increment standard sequence, and duration-nitrogen increment standard sequence includes: using the method for obtaining inorganic nitrogen increment parameters under the initial oxidation array, obtaining the inorganic nitrogen increment parameters under the oxidation array corresponding to all inorganic nitrogen concentration data included in the final inorganic nitrogen concentration data; during the iteration of the oxidation parameters in the oxidation array; obtaining the oxidation array obtained by iterating the oxidation voltage in the oxidation array, denoted as the voltage-oxidation array; obtaining the oxidation array obtained by iterating the oxidation duration in the oxidation array, denoted as the duration-oxidation array; sorting the oxidation voltages in all voltage-oxidation arrays in ascending order of the iteration number corresponding to the voltage-oxidation array to obtain the corresponding sequence, denoted as oxidation... The voltage iteration sequence is obtained by first-order forward difference of the oxidation voltage iteration sequence, denoted as the voltage increment sequence. Similarly, the oxidation voltage in the voltage increment sequence is replaced with the oxidation duration to obtain the duration increment sequence. The inorganic nitrogen increment parameters under all voltage-oxidation arrays are sorted in ascending order of iteration number, and the resulting sequence is denoted as the voltage-nitrogen increment sequence. The inorganic nitrogen increment parameters under all duration-oxidation arrays are sorted in ascending order of iteration number, and the resulting sequence is denoted as the duration-nitrogen increment sequence. The voltage increment sequence, voltage-nitrogen increment sequence, duration increment sequence, and duration-nitrogen increment sequence are standardized using the Z-Score standardization method to obtain the voltage increment standard sequence, voltage-nitrogen increment standard sequence, duration increment standard sequence, and duration-nitrogen increment standard sequence, respectively.
[0067] It should be noted that, in this embodiment of the invention, the hybrid iterative trajectory is decoupled according to voltage and duration parameters to construct standardized parameter increment sequences and corresponding inorganic nitrogen increment sequences, respectively. Then, the DTW algorithm is used to accurately quantify the nonlinear temporal correlation between parameter adjustment and nitrogen response, that is, the DTW distance is used to characterize similarity, and the standard deviation of the parameter increment sequence is introduced to evaluate the stability of the iterative process. By weighted fusion of correlation strength and stability indicators, the estimation coefficient is obtained. When the estimated coefficient is high, it indicates that the oxidation parameter adjustment and nitrogen increment are highly coordinated and the process is stable, and the reliability of the net increase in inorganic nitrogen concentration is high. When the estimated coefficient is low, false positive increments caused by microbial disturbance, electrode noise, etc. are automatically suppressed. This not only effectively eliminates the distortion of results by environmental interference, but also transforms the process into a quantifiable correction basis, making the detection results both accurate and interpretable.
[0068] As an optional embodiment, the specific calculation method for the estimation coefficient can be: in, This represents the estimated coefficient of the tobacco-growing soil at the testing point; Estimated factors for tobacco-growing soils; Represents the first similarity coefficient; This represents the second similarity coefficient; This represents the coefficient of variation of all elements in the voltage increment sequence; This represents the coefficient of variation for all elements in the time increment sequence; This represents the preset hyperparameters used to avoid a denominator of 0; This represents the sigmoid normalization function.
[0069] It should be noted that, through and The first and second similarity coefficients are normalized to obtain the corresponding weights, and the values of the weights range from [value range missing]. Between, for the first weight Second weight Generally speaking, the larger the value, the stronger the correlation between the degree of iteration of the oxidation parameter and the degree of increase in inorganic nitrogen during the process of promoting the conversion of organic nitrogen to inorganic nitrogen. Therefore, the nitrogen content data obtained under this oxidation parameter better reflects its oxidative contribution. Conversely, the smaller the weight value, the less it reflects the corresponding oxidative contribution. Furthermore, the standard deviation of elements in the incremental standard sequence (i.e., voltage increment standard sequence, duration increment standard sequence) corresponding to the oxidation parameter reflects the iterative adjustment of the oxidation parameter during the oxidation process. The larger the standard deviation, the more discrete the degree of iteration during the iteration process. Therefore, the influence of this oxidation parameter on the oxidation process of organic nitrogen in tobacco-growing soil may be more unstable, resulting in an unstable oxidation effect on organic nitrogen. This also means that the estimated nitrogen content in the total nitrogen organic matter detection results is more likely to be low. Regarding the calculation method of the estimation coefficient, since the final calculation result of the estimation factor is positive, the range of values for the result of normalizing the estimation factor using the sigmoid normalization function is... To facilitate subsequent numerical correction using estimated coefficients, embodiments of the present invention employ... This ensures that the final output value range is [value missing]. Furthermore, in one specific embodiment of the present invention, hyperparameters are set. The value can be 0.01 and can be adjusted according to the actual situation. This embodiment of the invention does not impose specific limitations.
[0070] Thus, the estimated coefficient of tobacco-growing soil at the test site was obtained using the above method.
[0071] The detection output module 104 is used to obtain the nitrogen content detection results of the tobacco soil at the detection point by estimating the coefficient and combining it with the change of nitrogen content before and after oxidation of the tobacco soil.
[0072] Specifically, firstly, the nitrate and ammonium ion concentrations at the first time step in the final inorganic nitrogen concentration data are extracted and denoted as the initial nitrate and initial ammonium ion concentrations; the sum of the initial nitrate and initial ammonium ion concentrations is taken as the initial total nitrogen concentration; then, the nitrate and ammonium ion concentrations at the last iteration termination time are extracted from the final inorganic nitrogen concentration data and denoted as the final nitrate and final ammonium ion concentrations, and the sum of the final nitrate and final ammonium ion concentrations is taken as the final total nitrogen concentration.
[0073] It should be noted that, in one specific embodiment of the present invention, the concentration unit has been converted to the standard unit of soil nitrogen content (e.g., mg / kg) through system calibration, without the need for additional volume or moisture content parameters.
[0074] Then, the difference between the final total nitrogen concentration and the initial total nitrogen concentration is taken as the net increase in inorganic nitrogen concentration; the net increase in inorganic nitrogen concentration is corrected using the estimation coefficient to obtain the organic nitrogen concentration. ,in Indicates organic nitrogen concentration. Indicates the net increase in inorganic nitrogen concentration. This represents the estimated coefficient.
[0075] It should be noted that the net increase in inorganic nitrogen concentration theoretically originates from the oxidation and transformation of organic nitrogen, but it is affected by oxidation efficiency, environmental interference, etc., and needs to be corrected in conjunction with dynamic process indicators to avoid directly equating it with organic nitrogen concentration; in addition, The larger the value, the more synergistic the adjustment of oxidation parameters with the net increase in inorganic nitrogen concentration (sufficient oxidation, minimal interference). High credibility; The smaller the value, the more likely it is to indicate process mismatch (such as oxidation stagnation or noise dominance). The correction factor approaches 0, suppressing the interference of unreliable increments on the results.
[0076] Finally, the sum of the organic nitrogen concentration and the initial total nitrogen concentration is taken as the total nitrogen concentration; the initial total nitrogen concentration is taken as the inorganic nitrogen concentration, and an in-situ detection report of total nitrogen and organic matter in tobacco-growing soil is generated. The report should include at least the following: inorganic nitrogen concentration, organic nitrogen concentration, and total nitrogen concentration.
[0077] This concludes the embodiment.
[0078] It should be noted that the embodiments used in this example The model is only used to represent negative correlations and the results of the constraint model output are in Within this range, in specific implementations, other models with the same purpose can be substituted; this embodiment is merely an example. The description will be based on a model, without making specific limitations on it. This refers to the input of the model.
[0079] This invention also provides an electronic device. Please refer to [link to relevant documentation]. Figure 2 The electronic device may include a processor 201, a memory 202, and a program 2021 stored in the memory 202 and executable on the processor 201.
[0080] When program 2021 is executed by processor 201, it can achieve the following: Figure 1 The corresponding system embodiments and any modules that achieve the same beneficial effects will not be described in detail here.
[0081] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware related to program instructions, and the program can be stored in a readable medium.
[0082] This invention also provides a readable storage medium storing a computer program, which, when executed by a processor, can perform the above-described functions. Figure 1 Any module in the corresponding system embodiment that can achieve the same technical effect will not be described again here to avoid repetition.
[0083] The computer-readable storage medium of this invention can be any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. For example, a computer-readable storage medium can be an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0084] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0085] The program code contained on the storage medium can be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0086] Computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or terminal. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0087] This invention also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement the in-situ detection system for total nitrogen organic matter in tobacco-growing soil based on electrochemical analysis provided in the above embodiments.
[0088] It should be noted that the order of the above embodiments of the present invention is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. The processes depicted in the accompanying drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0089] The various embodiments in this specification are described in a progressive manner. The same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on describing the differences from other embodiments.
[0090] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the principles of the present invention should be included within the protection scope of the present invention.
Claims
1. An in-situ detection system for total nitrogen organic matter in tobacco-growing soil based on electrochemical analysis, characterized in that, The system includes the following modules: The measurement preparation module is used to oxidize the tobacco-planting soil at the detection point using an integrated probe and obtain inorganic nitrogen concentration data during the oxidation process. The integrated probe contains an oxidation electrode, a nitrate ion selective electrode, and an ammonium ion selective electrode. The inorganic nitrogen concentration data includes nitrate concentration data and ammonium concentration data. The oxidation parameter module is used to continuously iterate the oxidation parameters of the oxidation electrode. During the continuous iteration of the oxidation parameters, the iteration process of the oxidation parameters is adjusted according to the changes in the inorganic nitrogen concentration data to obtain inorganic nitrogen concentration data at several iterations. The oxidation parameters include oxidation voltage and oxidation time. The data analysis module is used to cut off the iteration process based on the iterative control of oxidation parameters, and to perform a linkage analysis on the fluctuation of inorganic nitrogen concentration data and the iteration of oxidation parameters for all iterations after the cutoff, so as to obtain the estimated coefficient of tobacco-growing soil at the detection point. The detection output module is used to obtain the nitrogen content detection results of the tobacco-growing soil at the detection point by estimating the coefficient and combining it with the change in nitrogen content before and after oxidation of the tobacco-growing soil.
2. The in-situ detection system for total nitrogen organic matter in tobacco-growing soil based on electrochemical analysis according to claim 1, characterized in that, The specific method for obtaining the inorganic nitrogen concentration data under the aforementioned number of iterations is as follows: The base value, iteration step size, and upper limit value of each oxidation parameter are preset to obtain an initial oxidation array formed by the base values of all oxidation parameters. Inorganic nitrogen concentration data are obtained during the oxidation of tobacco soil at the detection point by the oxidation electrode under the initial oxidation array. The conversion coefficient under the initial oxidation array is calculated based on the change of inorganic nitrogen concentration data corresponding to the initial oxidation array. The oxidation parameters in the initial oxidation array are iterated. During the iteration process, the degree of adjustment of the oxidation parameters is determined based on the change of inorganic nitrogen concentration data and the conversion coefficient, so as to obtain the inorganic nitrogen concentration data of the oxidation array formed by the oxidation parameters during the iteration process.
3. The in-situ detection system for total nitrogen organic matter in tobacco-growing soil based on electrochemical analysis according to claim 2, characterized in that, The specific method for obtaining the conversion coefficient under the initial oxidation array is as follows: Based on the differences in the numerical levels of data points in the inorganic nitrogen concentration data under the initial oxidation array, obtain the inorganic nitrogen increment parameters under the initial oxidation array; By combining the inorganic nitrogen increment parameters under the initial oxidation array with the corresponding oxidation voltage and oxidation time, the conversion coefficient under the initial oxidation array is calculated. The inorganic nitrogen increment parameters are positively correlated with the conversion coefficient, while the oxidation voltage and oxidation time are negatively correlated with the conversion coefficient.
4. The in-situ detection system for total nitrogen organic matter in tobacco-growing soil based on electrochemical analysis according to claim 2, characterized in that, The specific method for obtaining the inorganic nitrogen concentration data under the oxidation array formed during the iteration process of the oxidation parameters is as follows: Based on the magnitude of the conversion coefficients in the initial oxidation array, the priority of the oxidation parameters in the initial oxidation array during the first iteration is determined, thereby obtaining the oxidation array and corresponding conversion coefficients obtained after iterating the corresponding oxidation parameters in the first iteration; the oxidation parameters in the oxidation array are iterated alternately, and the iteration necessity coefficients of the oxidation parameters are determined based on the degree of change of inorganic nitrogen concentration data in the corresponding oxidation array before and after the iteration, as well as the difference in the corresponding conversion coefficients. The iteration process of the corresponding oxidation parameters is controlled by adjusting the magnitude of the necessary coefficients during iteration, thereby obtaining inorganic nitrogen concentration data at different iteration numbers during the iteration process.
5. The in-situ detection system for total nitrogen organic matter in tobacco-growing soil based on electrochemical analysis according to claim 4, characterized in that, The method for determining the priority of the oxidation parameters in the initial oxidation array during the first iteration based on the magnitude of the conversion coefficients of the initial oxidation array, thereby obtaining the oxidation array and corresponding conversion coefficients under the first iteration after iterating over the corresponding oxidation parameters, includes the following specific methods: A preset conversion threshold is set. When the conversion coefficient is greater than or equal to the conversion threshold, the oxidation time in the initial oxidation array is iterated for the first time; when the conversion coefficient is less than the conversion threshold, the oxidation voltage in the initial oxidation array is iterated for the first time. When performing the first iteration on the oxidation parameters in the initial oxidation array, the corresponding preset iteration step size is used to obtain the inorganic nitrogen concentration data under the corresponding oxidation array after the first iteration. The initial oxidation array and the corresponding inorganic nitrogen concentration data in the method for obtaining the conversion coefficient of the initial oxidation parameters are replaced by the corresponding oxidation array and the corresponding inorganic nitrogen concentration data after the first iteration to obtain the conversion coefficient of the corresponding oxidation array after the first iteration.
6. The in-situ detection system for total nitrogen organic matter in tobacco-growing soil based on electrochemical analysis according to claim 4, characterized in that, The method for iteratively iterating the oxidation parameters in the oxidation array and determining the necessary coefficients for the iteration of oxidation parameters based on the changes in inorganic nitrogen concentration data under the corresponding oxidation array before and after iteration, as well as the differences in the corresponding conversion coefficients, includes the following specific methods: At the current iteration number When the number is greater than or equal to 3, the number of... When iterating over the oxidation voltage in the oxidation array, the oxidation duration is used as the first iteration. The priority iteration parameter for the nth iteration; when the nth iteration... When iterating over the oxidation duration in the oxidation array for the second time, the oxidation voltage is used as the first... The priority iteration parameter for the next iteration; Using the least squares method, respectively, the th Second and third After the first iteration, the inorganic nitrogen concentration data under the corresponding oxidation array are fitted with straight lines to obtain the slope of the fitted straight line for the corresponding inorganic nitrogen concentration data, and combined with the first iteration... Second and third The difference in the transformation coefficients of the corresponding oxidation arrays after the nth iteration is used to calculate the nth iteration. The iteration necessity coefficients of the priority iteration parameters of the next iteration, wherein the slope of the fitted line is negatively correlated with the iteration necessity coefficients, and the difference in the transformation coefficients is positively correlated with the iteration necessity coefficients.
7. The in-situ detection system for total nitrogen organic matter in tobacco-growing soil based on electrochemical analysis according to claim 4, characterized in that, The method for controlling the iterative process of the corresponding oxidation parameters by adjusting the magnitude of the necessary iteration coefficient to obtain inorganic nitrogen concentration data at different iteration numbers includes the following specific methods: A first threshold and a second threshold are preset, with the first threshold being greater than the second threshold. When the iteration necessity coefficient is greater than or equal to the first threshold, The iteration step size of the corresponding priority iteration parameter is adjusted as a control coefficient to obtain the adjusted iteration step size. The value of the priority iteration parameter is iteratively increased by the adjusted iteration step size, while the other oxidation parameter is fixed to the value under the previous iteration order to obtain the oxidation array under the current iteration number. When the iteration necessity coefficient is less than the first threshold and greater than or equal to the second threshold, the iteration step size of the corresponding priority iteration parameter remains unchanged, and the other oxidation parameter is also fixed to the value under the previous iteration order, so as to obtain the oxidation array under the current iteration number. When the iteration necessity coefficient is less than the second threshold, The iteration step size of the corresponding priority iteration parameter is adjusted using a control coefficient to obtain the adjusted iteration step size. The value of the priority iteration parameter is iteratively increased using this adjusted step size, while the other oxidation parameter is fixed to the value from the previous iteration sequence, resulting in the oxidation array for the current iteration number. Indicates the first The iteration necessity coefficients of the priority iteration parameters for the next iteration.
8. The in-situ detection system for total nitrogen organic matter in tobacco-growing soil based on electrochemical analysis according to claim 4, characterized in that, The specific methods for stopping the iteration process based on the iterative control of oxidation parameters are as follows: Get the contiguous path before the current iteration number The necessary coefficients of the oxidation parameters for each iteration number are calculated and formed into a corresponding sequence, denoted as the sequence of necessary coefficients for adjacent iterations of the current iteration number. The necessary coefficients in the adjacent iteration sequence are sorted in ascending order according to their corresponding iteration numbers. The preset quantity parameter; Analyze the decay of the necessary coefficients in the sequence of necessary coefficients for adjacent iterations, calculate the cutoff coefficient for the current iteration number, preset a cutoff threshold, and stop iterating on the oxidation parameters at the current iteration number when the value of the cutoff coefficient is greater than or equal to the cutoff threshold.
9. The in-situ detection system for total nitrogen organic matter in tobacco-growing soil based on electrochemical analysis according to claim 8, characterized in that, The specific method for obtaining the cutoff coefficient of the current iteration number is as follows: Establish a two-dimensional rectangular coordinate system, with the horizontal axis representing the iteration number and the vertical axis representing the iteration necessity coefficients of the oxidation parameters at the corresponding iteration number. Obtain a scatter plot of the sequence of iteration necessity coefficients of the current iteration number in the two-dimensional rectangular coordinate system. The necessary coefficient sequence of adjacent iterations for the current iteration number is fitted to a straight line in a two-dimensional rectangular coordinate system using the least squares method. The slope corresponding to the fitted line is recorded as the adjacent decay rate for the current iteration number. Combined with the necessary coefficient of the oxidation parameter for the current iteration number, the cutoff coefficient for the current iteration number is obtained.
10. The in-situ detection system for total nitrogen organic matter in tobacco-growing soil based on electrochemical analysis according to claim 3, characterized in that, The method for linking the fluctuation of inorganic nitrogen concentration data and the iteration of oxidation parameters across all iterations after the cutoff point to obtain the estimated coefficient of tobacco-growing soil at the detection point includes the following specific methods: The oxidation arrays under all iterations are classified, and the growth degree of oxidation parameters and inorganic nitrogen increment parameters under different types of oxidation arrays are standardized to obtain voltage increment standard sequences, voltage-nitrogen increment standard sequences, duration increment standard sequences, and duration-nitrogen increment standard sequences. The DTW distance between the voltage increment standard sequence and the voltage-nitrogen increment standard sequence is obtained using the DTW algorithm and is denoted as the first similarity coefficient. The DTW distance between the duration increment standard sequence and the duration-nitrogen increment standard sequence is denoted as the second similarity coefficient. By performing a discrete analysis on the voltage increment standard sequence and the duration increment standard sequence, and determining the weights based on the first and second similarity coefficients, the estimation coefficients of tobacco-growing soil are obtained.