A method and system for fault diagnosis of environmental soil monitoring equipment
By comparing the phase data of environmental soil monitoring equipment in real time with preset thresholds and extracting time and frequency domain characteristics, the monitoring data error problem caused by sensor phase offset is solved, and accurate diagnosis and fault treatment of phase offset is achieved. Improves data accuracy.
Patent Information
- Application Number
- CN202410892719.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2044-07-04
AI Technical Summary
The phase characteristics of sensors in environmental soil monitoring equipment are offset due to changes in the external environment, resulting in monitoring data errors. It is difficult for traditional fault diagnosis methods to accurately identify phase faults in real time.
By obtaining soil temperature, humidity and conductivity data in real time, comparing phase data with preset thresholds, extracting time domain, frequency domain and time frequency features, judging that the characteristics exceed the threshold range are fault data, and inputting the fault diagnosis model to analyze to generate a phase deviation Move the report.
Real-time identification and accurate diagnosis of sensor phase offsets are achieved, the accuracy of monitoring data is improved, and the rapid maintenance basis is provided to reduce the impact of failures.
Smart Images

Figure CN118709091B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of environmental soil monitoring, and in particular to a method and system for diagnosing faults of environmental soil monitoring equipment. Background Art
[0002] In environmental soil monitoring equipment, the sensor is one of the core components, and the stability of its performance directly affects the accuracy of the monitoring data.
[0003] However, due to the influence of external environmental factors, such as drastic changes in temperature and humidity, the environmental soil is complex and changeable, and the phase characteristics of the sensor may shift, resulting in errors in the monitoring data. The phase shift problem is hidden and difficult to predict. Traditional fault diagnosis methods mainly rely on human observation and judgment and regular maintenance, which are difficult to identify in real time and accurately, so they need to be improved. Summary of the invention
[0004] In order to accurately identify sensor phase offset problems in real time and improve the accuracy of monitoring data; the present application provides a method and system for fault diagnosis of environmental soil monitoring equipment.
[0005] The above-mentioned invention objective of the present application is achieved through the following technical solutions:
[0006] A method for diagnosing faults of environmental soil monitoring equipment comprises the following steps:
[0007] Acquire detection data and phase data of monitoring equipment in real time, wherein the detection data includes soil temperature, humidity and conductivity;
[0008] The acquired phase data is compared with a preset phase threshold, and if the phase data is inconsistent with the pre-stored phase threshold, the deviation is identified as a phase fault;
[0009] Import the acquired soil temperature, humidity and conductivity into the statistical model to identify and extract the time domain features, frequency domain features and time-frequency features;
[0010] Determine whether there is fault data in the time domain features, frequency domain features, and time-frequency features;
[0011] When any one or more of the time domain features, frequency domain features, and time-frequency features exceeds a preset threshold range, the detection data is determined to be fault data;
[0012] Inputting the fault data into the fault diagnosis model to analyze the abnormal change parameters of the fault data, and generating fault location information and fault type information;
[0013] Based on the fault location information and the fault type information, a phase shift report of the monitoring device is generated and sent to the management end.
[0014] By adopting the above technical solution, when the monitoring device performs fault diagnosis, the detection data and phase data of the monitoring device are obtained in real time to ensure the real-time and accuracy of the data. By comparing the phase data obtained in real time with the preset phase threshold, it is possible to identify whether the monitoring device has a phase fault. If the monitoring device has a phase fault, the obtained soil temperature, humidity and conductivity are imported into the statistical model, and the time domain features, frequency domain features and time-frequency features are extracted to facilitate identification of abnormalities in the extracted feature data. It is further determined that any one or more of the time domain features, frequency domain features and time-frequency features exceeds the preset threshold range, then the detection data is determined to be fault data, and specific fault data can be obtained. Through monitoring and diagnosis, potential faults can be predicted to improve the accuracy of diagnosis. The fault data is input into the fault diagnosis model to analyze the abnormal change parameters of the fault data. The fault diagnosis model can automatically generate fault location information and output fault type, and based on the phase fault, a phase offset report of the monitoring device is generated and sent to the management end to provide a basis for fault handling, so that the administrator can accurately and quickly find the cause of the phase offset and take corresponding maintenance measures, thereby improving the accuracy of the monitoring data.
[0015] In a preferred example of the present application, the step of comparing the acquired phase data with a preset phase threshold, and if the phase data is inconsistent with the pre-stored phase threshold, identifying the deviation as a phase fault, comprises the following steps:
[0016] The phase data includes time phase and frequency phase;
[0017] Determine whether the time phase and frequency phase are consistent with a preset phase threshold;
[0018] When both the time phase and the frequency phase are consistent with the preset phase threshold, it is determined to be phase synchronization;
[0019] When any one or more of the time phase and the frequency phase is inconsistent with a preset phase threshold, the phase data is adjusted based on a preset phase offset rule match.
[0020] By adopting the above technical solution, the phase data includes time phase and frequency phase; since the phase delay caused by time and frequency causes phase offset, it is determined whether the time phase and frequency phase are consistent with the preset phase threshold. When the time phase and frequency phase are consistent with the preset phase threshold, it is determined to be phase synchronization, indicating that there is no phase offset phenomenon. When any one or more of the time phase and frequency phase is inconsistent with the preset phase threshold, the phase data is adjusted based on the preset phase offset rule matching. The phase data can be adjusted according to the preset phase offset rule, thereby improving the accuracy of fault diagnosis.
[0021] In a preferred example of the present application: when any one or more of the time phase and the frequency phase is inconsistent with a preset phase threshold, the step of adjusting the phase data based on the preset phase offset rule matching includes the steps of:
[0022] When any one or more of the time phase and the frequency phase is inconsistent with a preset phase threshold, it is determined to be a phase offset;
[0023] Determine the changing trend of the current phase offset;
[0024] If the current phase shift change trend is an overall phase shift, the current phase value is adjusted based on the model fitting function;
[0025] If the current phase offset change trend is a local phase offset, the current phase offset is obtained, and the phase offset bit number is adjusted based on the phase offset.
[0026] By adopting the above technical solution, when a delayed phase shift occurs, the changing trend of the current phase shift is judged, and it can be concluded how the phase is shifted. When the trend of the phase shift shows an overall phase shift, the current phase value can be adjusted through the model fitting function. If the current phase shift changing trend shows a local phase shift, the current phase deviation is obtained, and the phase shift bit number is adjusted based on the phase deviation, so as to accurately judge the changing trend of the phase shift, so as to more effectively diagnose and repair the faults of the monitoring equipment.
[0027] In a preferred example of the present application: the step of importing the acquired soil temperature, humidity and conductivity into a statistical model to identify and extract time domain features, frequency domain features and time-frequency features includes the following steps:
[0028] Based on the obtained soil temperature, humidity and conductivity, obtain statistical parameters of the detection data in each time series, wherein the statistical parameters include mean, standard deviation, skewness and kurtosis;
[0029] Extracting the root mean square, waveform factor and kurtosis factor from the statistical parameters;
[0030] Based on the root mean square, waveform factor and kurtosis factor, the time domain features are obtained through identification and extraction;
[0031] Convert the time domain features into spectral components, analyze the distribution data and corresponding frequency ranges in the spectral components, and extract the frequency components, amplitudes and phase information thereof to generate frequency domain features;
[0032] The time domain features are combined with the frequency domain features, and converted into time-frequency features according to the frequency at which the time domain features and the frequency domain features change over time.
[0033] By adopting the above technical scheme, the basic statistical parameters of each time series of soil temperature, moisture and conductivity, including mean, standard deviation, skewness and kurtosis, are calculated in order to understand the central tendency and dispersion degree of data distribution; by identifying and extracting the root mean square, waveform factor and kurtosis factor, the characteristics of the detection data in the time domain can be obtained, so as to facilitate the identification of the dynamic characteristics of the equipment, and further by converting the time domain characteristics into spectral components, the frequency domain characteristics can be obtained according to their frequency components, amplitude and phase information; the frequency domain characteristics and time domain characteristics are combined and converted into time-frequency characteristics according to the frequency of time changes, thereby reflecting the changing characteristics of the detection data in time and frequency, so as to facilitate more comprehensive monitoring of the characteristic changes of the data.
[0034] In a preferred example of the present application, the step of extracting the root mean square, waveform factor and kurtosis factor from the statistical parameters comprises the steps of:
[0035] Obtain each data point of the statistical parameters, and calculate the output standard deviation, skewness, kurtosis, root mean square, waveform factor and kurtosis factor through calculation formulas;
[0036] The calculation formula of the standard deviation is: ,in and Represent each data point and mean of the signal respectively;
[0037] The calculation formula of the skewness is: , where N, , and Represents the number of data points of the signal, each data point, the mean and standard deviation respectively;
[0038] The calculation formula of the kurtosis is: ,in , and Represent each data point, mean and standard deviation of the signal respectively;
[0039] The calculation formula of the root mean square is: , where N and Represent the number of signal data points and each data point respectively;
[0040] The calculation formula of the factor formula is: , where RMS and Represent the root mean square and mean of the signal respectively;
[0041] The calculation formula of the kurtosis factor is: ,in, is each data point, is the mean of the data, RMS is the root mean square, and N is the number of data points.
[0042] By adopting the above technical scheme, each data point of the statistical parameters is obtained in real time, so as to provide basic data for calculating the standard deviation, skewness, kurtosis, root mean square, waveform factor and kurtosis factor. The standard deviation can reflect the discreteness of the detection data, and the skewness can derive the symmetry of the data distribution; the kurtosis reflects the sharpness of the data distribution, a positive value indicates that the data distribution is sharper than the normal distribution, and a negative value indicates that it is flatter, the root mean square reflects the signal energy of the data point, the waveform factor reflects the complexity of the signal waveform, and the kurtosis factor is a measure of the sharpness of the signal distribution, reflecting the sharpness of the signal distribution, so that through a comprehensive analysis of the standard deviation, skewness, kurtosis, root mean square, waveform factor and kurtosis factor, the phase condition of the equipment can be more accurately understood, the accuracy of fault diagnosis can be improved, and potential fault problems can be more accurately discovered.
[0043] In a preferred example of the present application: when any one or more of the time domain features, frequency domain features and time-frequency features exceeds a preset threshold range, after the step of determining that the detection data is fault data, the following steps are performed:
[0044] According to the scope of the fault data, the fault data is divided into different levels of urgency, including minor, medium and severe;
[0045] Based on the fault data, analyze the time domain features, frequency domain features, and the relationship between the fault features and the urgency in the time-frequency features, and calculate the urgency value of the fault data;
[0046] The urgency value is compared with the preset threshold value corresponding to each urgency, the urgency of the fault data is determined, and a fault urgency report is generated and sent to the management end.
[0047] Based on the fault location, fault type and phase fault, corresponding response measures are further generated according to their urgency and sent to the management end.
[0048] By adopting the above technical solution, when fault data is obtained, it can be divided into different levels of urgency according to the scope of impact in the fault data. By calculating the urgency value of the fault data and comparing it with the threshold values corresponding to each preset urgency, the urgency level of the fault data can be obtained, the urgency level of the fault data can be graded, and a fault urgency report can be generated and sent to the management end, so that the management end can take different response measures according to the different urgency levels of the fault, thereby improving the efficiency and pertinence of fault handling.
[0049] The second object of the invention is achieved by the following technical solutions:
[0050] A fault diagnosis system for environmental soil monitoring equipment, comprising:
[0051] A data acquisition module, used to obtain detection data and phase data of the monitoring equipment in real time, wherein the detection data includes soil temperature, humidity and conductivity;
[0052] A phase comparison module is used to compare the acquired phase data with a preset phase threshold. If the phase data is inconsistent with the pre-stored phase threshold, the deviation is identified as a phase fault;
[0053] The statistical model module is used to import the acquired soil temperature, humidity and conductivity into the statistical model, identify and extract the time domain features, frequency domain features and time-frequency features;
[0054] A fault judgment module, used to judge whether there is fault data in the time domain features, frequency domain features and time-frequency features;
[0055] A fault determination module, configured to determine that the detection data is fault data when any one or more of the time domain features, frequency domain features, and time-frequency features exceeds a preset threshold range;
[0056] A diagnosis model module, used to input fault data into a fault diagnosis model to analyze abnormal change parameters of the fault data, and generate fault location information and fault type information;
[0057] The report generation module is used to generate a phase shift report of the monitoring device based on the fault location information and the fault type information, and send it to the management end.
[0058] When the monitoring device performs fault diagnosis, the detection data and phase data of the monitoring device are obtained in real time to ensure the real-time and accuracy of the data. By comparing the phase data obtained in real time with the preset phase threshold, it is possible to identify whether the monitoring device has a phase fault. If the monitoring device has a phase fault, the obtained soil temperature, humidity and conductivity are imported into the statistical model, and the time domain features, frequency domain features and time-frequency features are extracted to facilitate identification of anomalies in the extracted feature data. It is further determined that any one or more of the time domain features, frequency domain features and time-frequency features exceeds the preset threshold range, then the detection data is determined to be fault data, and specific fault data can be obtained. Through monitoring and diagnosis, potential faults can be predicted and the accuracy of diagnosis can be improved. The fault data is input into the fault diagnosis model to analyze the abnormal change parameters of the fault data. The fault diagnosis model can automatically generate fault location information and output fault type, and based on the phase fault, a phase offset report of the monitoring device is generated and sent to the management end to provide a basis for fault handling, so that the administrator can accurately and quickly find the cause of the phase offset and take corresponding maintenance measures, thereby improving the accuracy of the monitoring data.
[0059] Optional,
[0060] A phase analysis module, used for the phase data including time phase and frequency phase;
[0061] A phase judgment module is used to judge whether the time phase and frequency phase are consistent with a preset phase threshold;
[0062] A phase synchronization module, used for determining phase synchronization when both the time phase and the frequency phase are consistent with a preset phase threshold;
[0063] The phase delay module is used to adjust the phase data based on a preset phase offset rule matching when any one or more of the time phase and the frequency phase is inconsistent with a preset phase threshold.
[0064] By adopting the above technical solution, the phase data includes time phase and frequency phase; since the phase delay caused by time and frequency causes phase offset, it is determined whether the time phase and frequency phase are consistent with the preset phase threshold. When the time phase and frequency phase are consistent with the preset phase threshold, it is determined to be phase synchronization, indicating that there is no phase offset phenomenon. When any one or more of the time phase and frequency phase is inconsistent with the preset phase threshold, the phase data is adjusted based on the preset phase offset rule matching. The phase data can be adjusted according to the preset phase offset rule, thereby improving the accuracy of fault diagnosis.
[0065] The third objective of the present application is achieved through the following technical solutions:
[0066] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned method for diagnosing faults of environmental soil monitoring equipment when executing the computer program.
[0067] The fourth objective of the present application is achieved through the following technical solutions:
[0068] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned environmental soil monitoring equipment fault diagnosis method are implemented.
[0069] In summary, the present application includes at least one of the following beneficial technical effects:
[0070] 1. By comparing the phase data acquired in real time with the preset phase threshold, it is possible to identify whether the monitoring device has a phase fault. If the monitoring device has a phase fault, the acquired soil temperature, humidity and conductivity are imported into the statistical model, and the time domain features, frequency domain features and time-frequency features are extracted. It is further determined that any one or more of the time domain features, frequency domain features and time-frequency features exceeds the preset threshold range, and specific fault data can be obtained. Through monitoring and diagnosis, potential faults can be predicted to improve the accuracy of diagnosis. The fault data is input into the fault diagnosis model to analyze the abnormal change parameters of the fault data. The fault diagnosis model can automatically generate fault location information and fault type information, generate a phase offset report of the monitoring device, and send it to the management end to provide a basis for fault handling, so that the administrator can accurately and quickly find the cause of the phase offset and take corresponding maintenance measures, thereby improving the accuracy of the monitoring data;
[0071] 2. Phase data includes time phase and frequency phase; due to the phase delay caused by time and frequency, the phase shift is caused. Therefore, by judging whether the time phase and the frequency phase are consistent with the preset phase threshold, when the time phase and the frequency phase are consistent with the preset phase threshold, it is determined to be phase synchronization, indicating that there is no phase shift phenomenon. When any one or more of the time phase and the frequency phase is inconsistent with the preset phase threshold, the phase data is adjusted based on the preset phase shift rule. The phase data can be adjusted according to the preset phase shift rule to improve the accuracy of fault diagnosis;
[0072] 3. When the phase is delayed and offset, the changing trend of the current phase offset is determined, and it can be concluded how the phase is offset. When the trend of the phase offset is an overall phase offset, the current phase value can be adjusted through the model fitting function. If the current phase offset change trend is a local phase offset, the current phase deviation is obtained, and the phase offset bit is adjusted based on the phase deviation to accurately determine the changing trend of the phase offset, so as to more effectively diagnose and repair the faults of the monitoring equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] Figure 1 This is a flowchart of an implementation of a method for diagnosing a fault in an environmental soil monitoring device according to an embodiment of the present application;
[0074] Figure 2 This is a flowchart of an implementation of step S20 in an embodiment of a method for diagnosing a fault in an environmental soil monitoring device of the present application;
[0075] Figure 3 This is a flowchart of an implementation of step S240 in an embodiment of a method for diagnosing a fault in an environmental soil monitoring device of the present application;
[0076] Figure 4 This is a flowchart of an implementation of step S30 in an embodiment of a method for diagnosing a fault in an environmental soil monitoring device of the present application;
[0077] Figure 5 This is an implementation flow chart after step S50 in an embodiment of a method for diagnosing a fault in an environmental soil monitoring device of the present application;
[0078] Figure 6 This is a principle block diagram of a computer device of the present application. DETAILED DESCRIPTION
[0079] The following is combined with Figure 1-6 This application is described in further detail.
[0080] In one embodiment, if Figure 1 As shown, the present application discloses a method for diagnosing faults of environmental soil monitoring equipment, which specifically includes the following steps:
[0081] S10: Acquire detection data and phase data of the monitoring device in real time, wherein the detection data includes soil temperature, humidity and conductivity;
[0082] In this embodiment, the detection data refers to the original data reflecting the state or characteristics of the sensor and the monitoring device, and the phase data refers to the time series data or signal characteristic data related to the detection data.
[0083] Specifically, the terminal can obtain detection data from sensors and monitoring devices, where the terminal is a third-party platform that exchanges data with sensors or monitoring devices through the cloud, and can obtain detection data and phase data of the monitoring devices, where the detection data is soil temperature, soil moisture and conductivity in the monitoring device.
[0084] S20: comparing the acquired phase data with a preset phase threshold, and if the phase data is inconsistent with the pre-stored phase threshold, identifying the deviation as a phase fault;
[0085] In this embodiment, the preset phase threshold refers to a value that is pre-set in the monitoring device and is used to determine whether the phase data is normal, including thresholds for time phase, frequency phase, phase delay, and phase synchronization.
[0086] Specifically, the acquired phase data is compared with the preset phase threshold to determine whether the phase synchronization in the phase data is consistent with the preset phase threshold. If not, it means that the phase data is a phase fault, so as to further diagnose the fault of the monitoring equipment.
[0087] S30: importing the acquired soil temperature, humidity and conductivity into a statistical model to identify and extract time domain features, frequency domain features and time-frequency features;
[0088] In this embodiment, the statistical model (SPC) is a quality control method for monitoring and improving dynamic random processes; time domain characteristics refer to the characteristics of analyzing signals or data from a time perspective, usually including statistics such as the mean, variance, standard deviation, and autocorrelation function of the data; frequency domain characteristics refer to the characteristics of analyzing signals or data after converting them from the time domain to the frequency domain, involving Fourier transform; time-frequency characteristics refer to the characteristics of signals or data that are simultaneously described in time and frequency.
[0089] Specifically, by collecting and measuring soil temperature, humidity and conductivity in real time and importing them into statistical models for monitoring and analysis, control limits are set based on statistical methods to distinguish normal variation from abnormal variation, identify abnormal data outside the standard fluctuation range, and extract time domain features, frequency domain features and time-frequency features, so as to more comprehensively understand and control the changes in abnormal parameters.
[0090] S40: Determine whether there is fault data in the time domain feature, the frequency domain feature, and the time-frequency feature;
[0091] In this embodiment, by determining whether the time domain features, the frequency domain features, and the time-frequency features are fault data, the cause of the fault of the device can be obtained, so as to facilitate subsequent positioning of the fault diagnosis.
[0092] S50: When any one or more of the time domain feature, the frequency domain feature and the time-frequency feature exceeds a preset threshold range, it is determined that the detection data is fault data;
[0093] In this embodiment, the preset threshold range refers to a threshold value that is reasonably set for the subset.
[0094] Specifically, when any one or more of the time domain features, frequency domain features, and time-frequency features exceeds a preset threshold range, the detection data is determined to be fault data, indicating that the monitoring device has a fault, thereby simplifying the fault diagnosis problem and improving the accuracy of the diagnosis.
[0095] S60: inputting the fault data into a fault diagnosis model to analyze abnormal change parameters of the fault data, and generating fault location information and fault type information;
[0096] In this embodiment, the fault diagnosis model refers to a machine learning model that identifies the characteristics of faults by learning normal operation data and abnormal data to distinguish between normal operation and potential fault states.
[0097] Specifically, the fault data is input into the fault diagnosis model so that the fault diagnosis model can analyze the abnormal change parameters of the fault data, locate the specific position of the abnormal parameters to generate fault location information, and output fault type information based on the detected abnormal characteristics.
[0098] S70: Generate a phase shift report of the monitoring device based on the fault location information and the fault type information, and send the report to the management end.
[0099] In this embodiment, a phase shift report of the monitoring device is generated through fault location information and fault type information, and the phase shift report includes detailed information of the fault, such as the fault location, fault type, phase shift amount, and measures corresponding to the fault; and the report is sent to the management end so that after the management end receives the phase shift report, it can take corresponding measures according to the relevant report to ensure that the monitoring device resumes normal operation.
[0100] In one embodiment, referring to Figure 2 , step S20 comprises the steps of:
[0101] S210: The phase data includes a time phase and a frequency phase;
[0102] S220: Determine whether the time phase and the frequency phase are consistent with a preset phase threshold;
[0103] S230: When the time phase and the frequency phase are both consistent with the preset phase threshold, it is determined to be phase synchronization;
[0104] S240: When any one or more of the time phase and the frequency phase is inconsistent with a preset phase threshold, the phase data is adjusted based on a preset phase offset rule match.
[0105] In this embodiment, the phase data includes the time phase and the frequency phase, and it is determined whether the time phase and the frequency phase are consistent with the preset phase threshold; if they are consistent, it is determined to be phase synchronization, indicating that there is no fault in the monitored phase; if any one or more of the time phase and the frequency phase are inconsistent with the preset phase threshold, it indicates that the phase is delayed and there is a potential fault problem in the equipment. The phase data is adjusted based on the preset phase offset rule to facilitate timely fault diagnosis of the equipment and improve the accuracy of the monitoring data.
[0106] In one embodiment, referring to Figure 3 , step S240 comprises the steps of:
[0107] S241: When any one or more of the time phase and the frequency phase is inconsistent with a preset phase threshold, it is determined to be a phase offset;
[0108] S242: Determine the change trend of the current phase offset;
[0109] S243: If the current phase shift change trend is an overall phase shift, adjusting the current phase value based on the model fitting function;
[0110] S244: If the current phase offset change trend is a local phase offset, obtain the current phase offset, and adjust the phase offset bit number based on the phase offset.
[0111] In this embodiment, the model fitting function may be linear regression, polynomial fitting, or any function suitable for data characteristics, which is used to estimate and compensate for systematic errors;
[0112] Specifically, soil monitoring equipment is used to collect time phase and frequency phase data in real time, and the collected phase data is compared with a preset phase threshold. If any phase data exceeds the preset phase threshold range, the system determines that there is a phase offset, and statistical analysis is performed on the phase offset data to determine its changing trend. The analysis may include calculating the mean, standard deviation, and trend line of the phase offset. If the analysis results show that the phase offset presents an overall trend, that is, the phase offset persists in multiple data points, the model fitting function is used to adjust the current phase data. If the analysis results show that the phase offset presents a local trend, that is, the phase offset only appears in specific data points, the current phase deviation is calculated, and based on the calculated phase deviation, the number of bits of the phase offset is adjusted to correct the local error.
[0113] In one embodiment, referring to Figure 4 , step S30 comprises the steps of:
[0114] S310: Based on the acquired soil temperature, humidity and conductivity, obtain statistical parameters of the detection data in each time series, wherein the statistical parameters include mean, standard deviation, skewness and kurtosis;
[0115] S320: extracting the root mean square, waveform factor and kurtosis factor from the statistical parameters;
[0116] S330: performing identification and extraction based on the root mean square, waveform factor and kurtosis factor to obtain time domain features;
[0117] S340: converting the time domain features into spectral components, analyzing the distribution data and the corresponding frequency range in the spectral components, and extracting the frequency components, amplitude and phase information thereof to generate frequency domain features;
[0118] S350: combining the time domain features with the frequency domain features, and converting them into time-frequency features according to the frequencies at which the time domain features and the frequency domain features change over time.
[0119] In this embodiment, statistical parameters refer to quantities that describe some basic characteristics of statistical data, wherein the statistical parameters include mean, standard deviation, skewness and kurtosis.
[0120] Specifically, the statistical parameters of soil temperature, humidity and conductivity in each time series are calculated. The statistical parameters include mean, standard deviation, skewness and kurtosis. The root mean square, waveform factor and kurtosis factor are calculated from these statistical parameters to reflect the time change and abnormal factors of soil parameters. The root mean square, waveform factor and kurtosis factor are used for identification and extraction to obtain time domain features. The time domain features are converted to frequency domain features through Fourier transform, and the time domain features are converted into spectral components. The distribution data and frequency range of the spectral components are analyzed to extract frequency components, amplitude and phase information, which is helpful to identify the frequency characteristics of soil parameters; the time domain features and frequency domain features are combined, and time-frequency features are generated through time-varying frequency conversion. Time-frequency features can provide comprehensive information about the time and frequency changes of soil parameters, which is useful for monitoring and analyzing changes in soil status, so as to more comprehensively describe the changes in soil parameters and improve the accuracy of monitoring. In addition, frequency domain features are obtained from time domain signals through spectrum analysis techniques such as Fourier transform. They describe the frequency components of the signal, such as the main frequency, spectrum bandwidth and the intensity of the frequency components. Frequency domain features include: the intensity of the signal at different frequencies. The intensity or amplitude of each frequency component. The phase angle of each frequency component reflects the position of the signal on the time axis. Time-frequency features combine time domain and frequency domain analysis to provide frequency information of the signal changing over time. The time-frequency features can be obtained by: STFT provides the frequency components of the signal at different time points by sliding a fixed-length window on the signal and calculating the Fourier transform of each window. The results of STFT can be represented as a three-dimensional data structure called a time-frequency spectrum, which shows the energy distribution of the signal at different time points and frequencies. Extract key features such as local frequency components, amplitude and phase from the time-frequency spectrum, which will describe the changes in the frequency components of the signal at different time points.
[0121] In one embodiment, referring to Figure 5 , after step S50, perform the following steps:
[0122] S501: Classify the fault data into different levels of urgency according to the scope of the fault data, including slight, medium and severe urgency;
[0123] S502: Based on the fault data, analyze the time domain features, the frequency domain features, and the relationship between the fault features and the urgency in the time-frequency features, and calculate the urgency value of the fault data;
[0124] S503: Compare the urgency value with the preset threshold value corresponding to each urgency, determine the urgency of the fault data, and generate a fault urgency report and send it to the management end.
[0125] In this embodiment, data related to the fault and the scope of the fault data are collected, and the fault data are divided into different levels of urgency, including slight, medium and severe urgency; the collected fault data are pre-processed by denoising, normalization and the like to improve the accuracy of subsequent analysis, and appropriate signal processing techniques (such as fast Fourier transform FFT, wavelet transform, etc.) are used to extract the time domain, frequency domain and time-frequency features of the fault data, and the relationship between the extracted features and the urgency of the fault is analyzed. Based on the results of the feature analysis, an urgency value is calculated for each fault data, and a comprehensive index is obtained by weighting the features in a certain way. One or more thresholds are set for each urgency, and the calculated urgency value is compared with these thresholds. The urgency of the fault data is judged according to the comparison results, and a fault urgency report is generated and sent to the management end, so as to quickly and accurately evaluate the urgency of the fault so as to take corresponding measures to reduce the impact of the fault on the system or production.
[0126] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0127] In one embodiment, a system for diagnosing a fault in an environmental soil monitoring device is provided, and the system for diagnosing a fault in an environmental soil monitoring device corresponds one-to-one to a method for diagnosing a fault in an environmental soil monitoring device in the above embodiment. The system for diagnosing a fault in an environmental soil monitoring device comprises:
[0128] A data acquisition module, used to obtain detection data and phase data of the monitoring equipment in real time, wherein the detection data includes soil temperature, humidity and conductivity;
[0129] A phase comparison module is used to compare the acquired phase data with a preset phase threshold. If the phase data is inconsistent with the pre-stored phase threshold, the deviation is identified as a phase fault;
[0130] The statistical model module is used to import the acquired soil temperature, humidity and conductivity into the statistical model, identify and extract the time domain features, frequency domain features and time-frequency features;
[0131] A fault judgment module, used to judge whether there is fault data in the time domain features, frequency domain features and time-frequency features;
[0132] A fault determination module, configured to determine that the detection data is fault data when any one or more of the time domain features, frequency domain features, and time-frequency features exceeds a preset threshold range;
[0133] A diagnosis model module, used to input fault data into a fault diagnosis model to analyze abnormal change parameters of the fault data, and generate fault location information and fault type information;
[0134] The report generation module is used to generate a phase shift report of the monitoring device based on the fault location information and the fault type information, and send it to the management end.
[0135] Optionally, also include:
[0136] A phase analysis module, used for the phase data including time phase and frequency phase;
[0137] A phase judgment module is used to judge whether the time phase and frequency phase are consistent with a preset phase threshold;
[0138] A phase synchronization module, configured to determine that the phase is synchronized when both the time phase and the frequency phase are consistent with a preset phase threshold;
[0139] The phase delay module is used to adjust the phase data based on a preset phase offset rule matching when any one or more of the time phase and the frequency phase is inconsistent with a preset phase threshold.
[0140] Optionally, the phase delay module includes:
[0141] A phase shift submodule, used for determining a phase shift when any one or more of the time phase and the frequency phase is inconsistent with a preset phase threshold;
[0142] The offset trend submodule is used to determine the changing trend of the current phase offset;
[0143] The phase fitting submodule is used to adjust the current phase value based on the model fitting function if the current phase offset change trend is an overall phase offset;
[0144] The offset bit number adjustment submodule is used to obtain the current phase deviation if the current phase offset change trend is a local phase offset, and adjust the phase offset bit number based on the phase deviation.
[0145] Optionally, the statistical model module includes:
[0146] A statistical parameter calculation submodule is used to obtain statistical parameters of the detection data in each time series based on the obtained soil temperature, humidity and conductivity, wherein the statistical parameters include mean, standard deviation, skewness and kurtosis;
[0147] A statistical feature extraction submodule, used to extract the root mean square, waveform factor and kurtosis factor from the statistical parameters;
[0148] The time domain feature extraction submodule is used to identify and extract based on the root mean square, waveform factor and kurtosis factor to obtain the time domain features;
[0149] The frequency domain feature extraction submodule is used to convert the time domain features into spectral components, analyze the distribution data and the corresponding frequency range in the spectral components, and extract the frequency components, amplitude and phase information thereof to generate frequency domain features;
[0150] The time-frequency feature extraction submodule is used to combine the time domain features with the frequency domain features, and convert them into time-frequency features according to the frequency at which the time domain features and the frequency domain features change over time.
[0151] Optionally, also include:
[0152] The data point acquisition module is used to obtain each data point of the statistical parameters and calculate the output standard deviation, skewness, kurtosis, root mean square, waveform factor and kurtosis factor through calculation formulas;
[0153] The standard deviation calculation module is used to calculate the standard deviation as follows: ,in and Represent each data point and mean of the signal respectively;
[0154] The skewness calculation module uses the skewness calculation formula as follows: , where N, , and Represents the number of data points of the signal, each data point, the mean and standard deviation respectively;
[0155] The kurtosis calculation module is used for calculating the kurtosis using the following formula: ,in , and Represent each data point, mean and standard deviation of the signal respectively;
[0156] The root mean square calculation module is used for the calculation formula of the root mean square: , where N and Represent the number of signal data points and each data point respectively;
[0157] The waveform factor calculation module is used for the calculation formula of the waveform factor formula: , where RMS and Represent the root mean square and mean of the signal respectively;
[0158] The kurtosis factor calculation module is used for calculating the kurtosis factor as follows: ,in, is each data point, is the mean of the data, RMS is the root mean square, and N is the number of data points.
[0159] Optionally, also include:
[0160] The fault level classification module is used to classify the fault data into different levels of urgency according to the scope of the fault data, including minor, medium and severe urgency;
[0161] The urgency calculation module is used to analyze the time domain characteristics, frequency domain characteristics and the relationship between the fault characteristics and the urgency in the time-frequency characteristics based on the fault data, and calculate the urgency value of the fault data;
[0162] The report generation module is used to compare the urgency value with the preset threshold value corresponding to each urgency, determine the urgency of the fault data, and generate a fault urgency report and send it to the management end.
[0163] For the specific definition of an environmental soil monitoring equipment fault diagnosis system, please refer to the definition of an environmental soil monitoring equipment fault diagnosis method mentioned above, which will not be repeated here. Each module in the above-mentioned environmental soil monitoring equipment fault diagnosis system can be implemented in whole or in part through software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0164] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store detection data, phase data, calibration data, time domain features, frequency domain features, time-frequency features and fault data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a fault diagnosis method for environmental soil monitoring equipment is implemented.
[0165] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements a method for diagnosing faults of environmental soil monitoring equipment when executing the computer program.
[0166] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, a method for diagnosing faults of environmental soil monitoring equipment is implemented.
[0167] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0168] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0169] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for diagnosing faults in environmental soil monitoring equipment, characterized in that: Includes steps: Acquire detection data and phase data of monitoring equipment in real time, wherein the detection data includes soil temperature, humidity and conductivity; The acquired phase data is compared with a preset phase threshold, and if the phase data is inconsistent with the pre-stored phase threshold, a deviation is obtained as a phase fault; Import the acquired soil temperature, humidity and conductivity into the statistical model to identify and extract the time domain features, frequency domain features and time-frequency features; Determine whether there is fault data in the time domain features, frequency domain features, and time-frequency features; When any one or more of the time domain features, frequency domain features, and time-frequency features exceeds a preset threshold range, the detection data is determined to be fault data; Inputting the fault data into the fault diagnosis model to analyze the abnormal change parameters of the fault data, and generating fault location information and fault type information; Based on the fault location information and the fault type information, a phase shift report of the monitoring device is generated and sent to the management end; The step of importing the acquired soil temperature, humidity and conductivity into a statistical model to identify and extract time domain features, frequency domain features and time-frequency features comprises the following steps: Based on the obtained soil temperature, humidity and conductivity, obtain statistical parameters of the detection data in each time series, wherein the statistical parameters include mean, standard deviation, skewness and kurtosis; Extracting the root mean square, waveform factor and kurtosis factor from the statistical parameters; Based on the root mean square, waveform factor and kurtosis factor, the time domain features are obtained through identification and extraction; Convert the time domain features into spectral components, analyze the distribution data and corresponding frequency ranges in the spectral components, and extract the frequency components, amplitudes and phase information thereof to generate frequency domain features; Combining the time domain features with the frequency domain features, and converting them into time-frequency features according to the frequency of the time domain features and the frequency domain features changing over time, including performing frequency analysis on the time domain features and the frequency domain features based on the time series, and determining the components of the time domain features and the frequency domain features in each time series according to the analysis results; combining the components of the time domain features and the frequency domain features of all time series to obtain the time-frequency features; The step of extracting the root mean square, the waveform factor and the kurtosis factor from the statistical parameters comprises: Obtain each data point of the statistical parameters, and calculate the output standard deviation, skewness, kurtosis, root mean square, waveform factor and kurtosis factor through calculation formulas; The calculation formula of the standard deviation is: ,in and Represent each data point and mean of the signal respectively; The calculation formula of the skewness is: , where N, , and Represents the number of data points of the signal, each data point, the mean and standard deviation respectively; The calculation formula of the kurtosis is: ,in , and Represent each data point, mean and standard deviation of the signal respectively; The calculation formula of the root mean square is: , where N and Represent the number of signal data points and each data point respectively; The calculation formula of the waveform factor is: , where RMS and Represent the root mean square and mean of the signal respectively; The calculation formula of the kurtosis factor is: ,in, is each data point, is the mean of the data, RMS is the root mean square, and N is the number of data points.
2. A method for diagnosing faults in environmental soil monitoring equipment according to claim 1, characterized in that: The step of comparing the acquired phase data with a preset phase threshold, and if the phase data is inconsistent with the pre-stored phase threshold, obtaining a deviation as a phase fault, comprises the following steps: The phase data includes time phase and frequency phase; Determine whether the time phase and frequency phase are consistent with a preset phase threshold; When both the time phase and the frequency phase are consistent with the preset phase threshold, it is determined to be phase synchronization; When any one or more of the time phase and the frequency phase is inconsistent with a preset phase threshold, the phase data is adjusted based on a preset phase offset rule match.
3. A method for diagnosing faults in environmental soil monitoring equipment according to claim 2, characterized in that: The step of adjusting the phase data based on a preset phase offset rule matching when any one or more of the time phase and the frequency phase is inconsistent with a preset phase threshold comprises the steps of: When any one or more of the time phase and the frequency phase is inconsistent with a preset phase threshold, it is determined to be a phase offset; Determine the changing trend of the current phase offset; If the current phase shift change trend is an overall phase shift, the current phase value is adjusted based on the model fitting function; If the current phase offset change trend is a local phase offset, the current phase offset is obtained, and the phase offset bit number is adjusted based on the phase offset.
4. A method for diagnosing faults in environmental soil monitoring equipment according to claim 1, characterized in that: After the step of determining that the detection data is fault data when any one or more of the time domain features, frequency domain features, and time-frequency features exceeds a preset threshold range, the following steps are performed: According to the scope of the fault data, the fault data is divided into different levels of urgency, including minor, medium and severe; Based on the fault data, analyze the time domain features, frequency domain features, and the relationship between the fault features and the urgency in the time-frequency features, and calculate the urgency value of the fault data; The urgency value is compared with the preset threshold value corresponding to each urgency, the urgency of the fault data is determined, and a fault urgency report is generated and sent to the management end.
5. A fault diagnosis system for environmental soil monitoring equipment, used in the method according to any one of claims 1 to 4, characterized in that: A data acquisition module, used to obtain detection data and phase data of the monitoring equipment in real time, wherein the detection data includes soil temperature, humidity and conductivity; A phase comparison module is used to compare the acquired phase data with a preset phase threshold. If the phase data is inconsistent with the pre-stored phase threshold, a deviation is obtained as a phase fault; The statistical model module is used to import the acquired soil temperature, humidity and conductivity into the statistical model, identify and extract the time domain features, frequency domain features and time-frequency features; A fault judgment module, used to judge whether there is fault data in the time domain features, frequency domain features and time-frequency features; A fault determination module, configured to determine that the detection data is fault data when any one or more of the time domain features, frequency domain features, and time-frequency features exceeds a preset threshold range; A diagnosis model module, used to input fault data into a fault diagnosis model to analyze abnormal change parameters of the fault data, and generate fault location information and fault type information; The report generation module is used to generate a phase shift report of the monitoring device based on the fault location information and the fault type information, and send it to the management end.
6. The environmental soil monitoring equipment fault diagnosis system according to claim 5, characterized in that: Also includes: A phase analysis module, used for analyzing the phase data to obtain a time phase and a frequency phase; A phase judgment module is used to judge whether the time phase and frequency phase are consistent with a preset phase threshold; A phase synchronization module, used for determining phase synchronization when both the time phase and the frequency phase are consistent with a preset phase threshold; The phase delay module is used to adjust the phase data based on a preset phase offset rule matching when any one or more of the time phase and the frequency phase is inconsistent with a preset phase threshold.
7. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the environmental soil monitoring equipment fault diagnosis method as described in any one of claims 1 to 4 are implemented.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of a method for diagnosing faults in environmental soil monitoring equipment as claimed in any one of claims 1 to 4 are implemented.
