CN-121978309-A - Data analysis-based pepper planting environment abnormality detection method
Abstract
The invention relates to the technical field of planting environment detection, in particular to a method for detecting the abnormality of the planting environment of peppers based on data analysis, which comprises the following steps: obtaining a soil root system coupling characterization value based on the time span difference of the same sequence subsequence in the soil cadmium ion concentration fluctuation sequence and the soil pH value fluctuation sequence and the time span difference of the same sequence subsequence in the prickly ash root system cadmium ion concentration fluctuation sequence and the prickly ash root system pH value fluctuation sequence, obtaining a soil root system propagation direction characterization value based on the initial time difference and the extremely poor difference between the soil cadmium ion concentration fluctuation sequence and the prickly ash root system cadmium ion concentration fluctuation sequence, adjusting a fixed experience hysteresis order based on the soil root system coupling characterization value and the soil root system propagation direction characterization value to obtain an optimized hysteresis order, and performing abnormal detection on the soil cadmium content of the prickly ash planting detection area based on an ARMA model with the optimized hysteresis order. The invention can improve the accuracy of detecting the abnormality of the pepper planting environment.
Inventors
- FAN XIAOBO
- GAO HONGFANG
- XIE XINLAN
Assignees
- 渭南职业技术学院
Dates
- Publication Date
- 20260505
- Application Date
- 20260408
Claims (10)
- 1. A method for detecting the abnormality of the planting environment of pepper based on data analysis is characterized by comprising the following steps: Obtaining a fluctuation sequence of a pepper planting detection area, wherein the fluctuation sequence comprises a soil cadmium ion concentration fluctuation sequence, a soil pH value fluctuation sequence, a pepper root system cadmium ion concentration fluctuation sequence and a pepper root system pH value fluctuation sequence; Dividing the corresponding fluctuation sequence based on the extreme value in the fluctuation sequence to obtain a subsequence, obtaining a soil root system coupling characterization value based on the time span difference of the subsequence in the same order in the fluctuation sequence of the soil cadmium ion concentration and the fluctuation sequence of the soil pH value and the time span difference of the subsequence in the same order in the fluctuation sequence of the Zanthoxylum root system cadmium ion concentration and the fluctuation sequence of the Zanthoxylum root system pH value, obtaining a soil root system propagation direction characterization value based on the initial time difference and the extreme difference between the fluctuation sequence of the soil cadmium ion concentration and the fluctuation sequence of the Zanthoxylum root system cadmium ion concentration, and adjusting a fixed experience hysteresis order based on the soil root system coupling characterization value and the soil root system propagation direction characterization value to obtain an optimized hysteresis order; and carrying out abnormal detection early warning on the cadmium content of soil in the pepper planting detection area based on an ARMA model with the order of optimized hysteresis order.
- 2. The method for detecting the abnormality of the planting environment of the pepper based on the data analysis as claimed in claim 1, wherein the method for acquiring the fluctuation sequence comprises the following steps: Obtaining a sequence to be extracted of a pepper planting detection area, obtaining a stable characterization value corresponding to each data in the sequence to be extracted according to the difference between each data in the sequence to be extracted and the average value of the corresponding sequence to be extracted, and marking the data with the stable characterization value smaller than a preset fluctuation judgment threshold value in the sequence to be extracted as a fluctuation sequence according to the sequence of time, and then denoising the data.
- 3. The method for detecting the abnormal planting environment of the pepper based on the data analysis according to claim 2, wherein the stable representation value of any data in any sequence to be extracted is a negative correlation mapping result of the absolute value of the difference between the corresponding data and the average value of the corresponding sequence to be extracted.
- 4. The method for detecting the abnormal condition of pepper planting based on data analysis according to claim 2, wherein the sequence to be extracted comprises a sequence to be extracted for the concentration of cadmium ions in soil, a sequence to be extracted for the pH value of soil, a sequence to be extracted for the concentration of cadmium ions in pepper root system and a sequence to be extracted for the pH value of pepper root system, and the sequence to be extracted is obtained by carrying out acquisition arrangement of the concentration of cadmium ions in soil, the pH value of soil, the concentration of cadmium ions in pepper root system and the pH value of pepper root system on a pepper planting detection area and data pretreatment.
- 5. The method for detecting the abnormality of the planting environment of the pepper based on the data analysis as claimed in claim 1, wherein the method for obtaining the coupling characterization value of the root system of the soil comprises the following steps: Obtaining a soil coupling characterization value based on the time span difference of the subsequence with the same sequence on the soil cadmium ion concentration fluctuation sequence and the soil pH value fluctuation sequence, and obtaining a root system coupling characterization value based on the time span difference of the subsequence with the same sequence on the pepper root system pH value fluctuation sequence, wherein the soil coupling characterization value is the same as the root system coupling characterization value; And marking the product of the soil coupling characterization value and the root system coupling characterization value as a soil root system coupling characterization value.
- 6. The method for detecting the abnormality of the pepper planting environment based on data analysis according to claim 5, wherein the method for acquiring the soil coupling characterization value comprises the following steps: Matching the subsequence with the same sequence on the soil cadmium ion concentration fluctuation sequence with the subsequence with the same sequence on the soil pH value fluctuation sequence to obtain subsequence pairs, marking a negative correlation mapping result of the absolute value of the difference value between the time span values of the two subsequences in each subsequence pair as a time span characteristic value of the corresponding subsequence pair, and marking the average value of the time span characteristic values of all the subsequence pairs as a soil coupling characteristic value.
- 7. The method for detecting abnormal planting environment of Zanthoxylum bungeanum based on data analysis according to claim 6, wherein the time span value of any sub-sequence is the time length from the start data to the end data in the corresponding sub-sequence.
- 8. The method for detecting the abnormality of the planting environment of the pepper based on the data analysis as claimed in claim 1, wherein the method for obtaining the characteristic value of the propagation direction of the soil root system comprises the following steps: The method comprises the steps of marking a normalization result of a difference value between a moment corresponding to initial data in a soil cadmium ion concentration fluctuation sequence and a moment corresponding to initial data in a pepper root system cadmium ion concentration fluctuation sequence as a time difference index value, marking a normalization result of a difference value between the extreme difference of the pepper root system cadmium ion concentration fluctuation sequence and the extreme difference of the pepper root system cadmium ion concentration fluctuation sequence as a change index value, and marking a product of the time difference index value and the change index value as a soil root system propagation direction representation value.
- 9. The method for detecting the abnormality of the planting environment of the pepper based on the data analysis as claimed in claim 1, wherein the method for obtaining the optimized hysteresis order comprises the following steps: and obtaining a scaling factor according to the soil root system coupling characterization value and the soil root system propagation direction characterization value, and taking the rounding value of the product of the scaling factor and the fixed experience hysteresis order as the optimized hysteresis order.
- 10. The method for detecting the abnormal planting environment of the pepper based on the data analysis according to claim 9, wherein the scaling factor is a result of subtracting a comprehensive characterization value from a preset category attribute discrimination threshold and adding an adjustment constant, and the comprehensive characterization value is a product of the soil root system coupling characterization value and the soil root system propagation direction characterization value.
Description
Data analysis-based pepper planting environment abnormality detection method Technical Field The invention relates to the technical field of planting environment detection, in particular to a method for detecting abnormal planting environment of pepper based on data analysis. Background Heavy metal cadmium (Cd) is used as a highly toxic and strong accumulated pollutant, so that the physicochemical structure of soil can be damaged, the microbial activity of the soil can be inhibited, and the heavy metal cadmium can be accumulated in the root system and fruits of the Chinese prickly ash continuously through the migration and enrichment effect of soil and plants, so that the key physiological metabolic process of the plants is disturbed, the yield of the Chinese prickly ash is reduced, the quality of the Chinese prickly ash is deteriorated, and the abnormal detection of the cadmium content in the planting soil of the Chinese prickly ash is very important in the field of planting of the Chinese prickly ash so as to ensure the quality and the safety of the fruits of the Chinese prickly ash. The existing method for detecting the abnormal cadmium content of the pepper planting soil based on the autoregressive moving average model (ARMA model) depends on the statistical stability of time sequence data, the abnormal fluctuation of the cadmium content is judged through a residual error threshold value, the method also depends on a fixed hysteresis order determined empirically to model historical data, in a specific growth stage of the pepper, the root system of the method can secrete a large amount of organic acid, so that the pH value of rhizosphere soil is obviously reduced, the adsorption-desorption balance of cadmium is further broken, the non-pollution and physiological fluctuation of the cadmium ion concentration in the soil in a short period are induced, the fluctuation caused by the physiological activity of pepper plants is not caused by exogenous pollution, namely the fluctuation caused by the physiological activity of the pepper plants is not caused by a real environmental pollution source, but the ARMA model with the fixed hysteresis order cannot effectively distinguish the physiological fluctuation from the real pollution fluctuation, and further the ARMA model with the fixed hysteresis order can possibly generate overresponse when facing the physiological fluctuation, the fitting omission is possibly generated when the real pollution fluctuation, the error detection is seriously weakened, and the problem of the error detection of the cadmium content of the planting soil is seriously caused, and the problem of how the abnormal cadmium content of the planting soil is required to be automatically adjusted is solved. Disclosure of Invention In order to solve the problems, the invention provides a method for detecting the abnormality of the planting environment of the pepper based on data analysis, which adopts the following technical scheme: The embodiment of the invention provides a method for detecting the abnormality of a pepper planting environment based on data analysis, which comprises the following steps: Obtaining a fluctuation sequence of a pepper planting detection area, wherein the fluctuation sequence comprises a soil cadmium ion concentration fluctuation sequence, a soil pH value fluctuation sequence, a pepper root system cadmium ion concentration fluctuation sequence and a pepper root system pH value fluctuation sequence; Dividing the corresponding fluctuation sequence based on the extreme value in the fluctuation sequence to obtain a subsequence, obtaining a soil root system coupling characterization value based on the time span difference of the subsequence in the same order in the fluctuation sequence of the soil cadmium ion concentration and the fluctuation sequence of the soil pH value and the time span difference of the subsequence in the same order in the fluctuation sequence of the Zanthoxylum root system cadmium ion concentration and the fluctuation sequence of the Zanthoxylum root system pH value, obtaining a soil root system propagation direction characterization value based on the initial time difference and the extreme difference between the fluctuation sequence of the soil cadmium ion concentration and the fluctuation sequence of the Zanthoxylum root system cadmium ion concentration, and adjusting a fixed experience hysteresis order based on the soil root system coupling characterization value and the soil root system propagation direction characterization value to obtain an optimized hysteresis order; and carrying out abnormal detection early warning on the cadmium content of soil in the pepper planting detection area based on an ARMA model with the order of optimized hysteresis order. The method has the advantages that firstly, the fluctuation sequence of the pepper planting detection area is obtained, the fluctuation sequence comprises a soil cadmium ion concentration fluctuat