Termite pest monitoring method and monitoring system for protecting buildings

By combining sound waves, temperature and humidity sensors, using Mel frequency cepstral coefficients and differential features as well as cross-modal attention mechanisms, a fusion matrix is ​​generated for deep learning prediction, which solves the problems of low efficiency and poor environmental applicability of existing termite monitoring technology. , achieving high efficiency and accuracy in termite monitoring.

CN118566998BActive Publication Date: 2024-09-27YANAN UNIV
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411011750.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-09-27
Estimated Expiration
2044-07-26

AI Technical Summary

Technical Problem

Existing termite monitoring technology has low efficiency and poor environmental applicability, making it difficult to achieve real-time monitoring and accurate early warning. Especially when lighting conditions change or objects block the environment, the number of termites may be underestimated.

Method used

Using a combination of acoustic wave sensors and temperature and humidity sensors, the acoustic wave features are generated through Mel frequency cepstral coefficients and differential eigenvectors. Combined with the temperature and humidity eigenvectors, a cross-modal attention mechanism is used to generate a fusion matrix, and termite prediction is performed through a deep learning network. .

Benefits of technology

It achieves efficient, accurate monitoring and early warning of termite activities, reduces the impact of lighting conditions and object occlusion on monitoring, and improves the accuracy and real-time nature of monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118566998B
    Figure CN118566998B
Patent Text Reader

Abstract

The present invention provides a termite pest monitoring method and monitoring system for protecting buildings, and relates to the technical field of pest control. The present invention uses an acoustic wave sensor to collect acoustic wave data, calculates the Mel frequency cepstrum coefficient of the acoustic wave data and its first-order difference and second-order difference, and generates an acoustic wave feature vector; collects temperature data and humidity data through a temperature and humidity sensor, respectively calculates the standard deviation, rate of change and unevenness corresponding to the temperature and humidity, generates a temperature feature vector and a humidity feature vector, converts the feature vector into a feature matrix through a cross-modal processing technology, and generates a fusion matrix by combining the acoustic wave feature matrix and the temperature and humidity feature matrix, uses the fusion matrix as an input value, and trains a deep learning network with whether termites appear as a label, and judges whether termites appear according to the real-time input fusion matrix through the trained deep learning network. The present invention realizes termite monitoring through a multimodal sensor system, combining acoustic waves, temperature and humidity, and machine learning technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of pest control, and in particular to a termite pest monitoring method and a monitoring system for protecting buildings. Background Art

[0002] In the field of termite pest monitoring, timely and accurate detection of termites is crucial to protecting the safety of building structures. Traditional monitoring technologies usually rely on chemical trapping and manual inspections, which are not only time-consuming and labor-intensive, but also inefficient and difficult to achieve real-time monitoring and early warning. At the same time, early electronic monitoring systems usually rely on only a single type of sensor, which limits the accuracy of monitoring. Therefore, it is necessary to design a comprehensive, efficient and real-time termite monitoring system.

[0003] In the prior art, publication number CN110992389A discloses a termite monitoring method, device and storage device, which obtains a differential image between a current image frame and a previous image frame in a termite monitoring video, then detects connected domains in the image, and counts the number of connected domains, calculates the number of termites in the current image frame based on the counted number of connected domains, compares the number of termites with a preset threshold, and sends an alarm to a monitoring center when the number of termites in the current image frame is detected to be greater than the preset threshold.

[0004] The main problems with the above methods are: poor environmental applicability, image processing technology is highly dependent on lighting conditions, if the light is insufficient or changes frequently, monitoring will be significantly affected, if termites are blocked by objects, or there are other moving objects, it will be impossible to accurately distinguish between termites and other objects, and non-termite activities may also be considered as termites; termites may be stacked together, causing multiple termites to appear as a large connected domain in the image, resulting in an underestimate of the actual number of termites. Therefore, relying solely on image processing technology for termite monitoring is not accurate enough.

[0005] The above information disclosed in this Background section is only for enhancement of understanding of the background of the present disclosure and therefore it may contain information that does not constitute the prior art that is already known to one of ordinary skill in the art. Summary of the invention

[0006] The object of the present invention is to provide a termite pest monitoring method and monitoring system for protecting buildings, so as to solve the problems raised in the above-mentioned background technology.

[0007] To achieve the above object, the present invention provides the following technical solutions:

[0008] A method for monitoring termite pests for protecting buildings, the specific steps comprising:

[0009] Step 1: Deploy the acoustic wave sensor and the temperature and humidity sensor in the target area of ​​termite activity to be monitored, with an acoustic wave sensor set every 1m and a temperature and humidity sensor set every 0.5m;

[0010] Step 2: The sound signal of the target area is collected once every 10 minutes through the acoustic wave sensor, and the sound signal is pre-emphasized through a high-pass filter. The pre-emphasized signal is divided into short-time frame signals of 20-40ms, and the frame signals have a 50% overlap. Each frame signal is windowed through the Hamming window function, and the windowed frame signal is converted from a time domain signal to a frequency domain signal. The frequency domain signal is passed through a Mel filter to generate Mel frequency cepstrum coefficients, and the Mel frequency cepstrum coefficients are combined with their first-order differences and second-order differences to generate an acoustic wave feature vector;

[0011] Step 3: The temperature data of the target area is collected once every 10 minutes by using a temperature and humidity sensor, and the temperature standard deviation, temperature change rate and temperature non-uniformity are generated according to the temperature data collected each time, and the temperature standard deviation, temperature change rate and temperature non-uniformity are combined into a temperature feature vector;

[0012] Step 4: The humidity data of the target area is collected once every 10 minutes by the temperature and humidity sensor, and the humidity standard deviation, humidity change rate and humidity non-uniformity are generated according to the humidity data collected each time, and the humidity standard deviation, humidity change rate and humidity non-uniformity are combined into a humidity feature vector;

[0013] Step 5: Convert the acoustic wave feature vector, temperature feature vector and humidity feature vector into the corresponding acoustic wave matrix and temperature and humidity matrix, adjust the weights of the acoustic wave matrix and the temperature and humidity matrix through the cross-modal attention mechanism, and generate a fusion matrix;

[0014] Step 6: Construct a deep learning network, mark the labels of whether termites appear on the fusion matrix, and then input it into the deep learning network for training to obtain a termite prediction model with the input value being the fusion matrix and the output value being whether termites appear;

[0015] Step 7: Generate a fusion matrix in real time using the real-time sound wave, real-time temperature and real-time humidity data of the building to be identified according to the above steps, and then input the fusion matrix into the termite prediction model to determine whether termites appear.

[0016] Furthermore, the principle of generating Mel frequency cepstral coefficients and combining the Mel frequency cepstral coefficients with their first order differences and second order differences to generate the acoustic wave feature vector is as follows:

[0017] The sound signal is pre-emphasized through a high-pass filter, based on the formula:

[0018] ;

[0019] in, Indicates the signal after pre-emphasis at time The corresponding value, and Respectively represent the signal after denoising at time and time The corresponding value, represents the pre-emphasis coefficient, and , represents the time variable;

[0020] The pre-emphasized signal is divided into short-time frame signals, and each frame signal is windowed by the Hamming window function according to the formula:

[0021] ;

[0022] ;

[0023] in, It represents the result after windowing the segmented frame signal. represents the frame signal after segmentation, represents the time variable, represents the Hamming window function, Represents the time index, Indicates the frame length;

[0024] The formula for converting the windowed frame signal from the time domain signal to the frequency domain signal is:

[0025] ;

[0026] Among them, Z represents the frequency domain signal, represents the time domain signal, Indicates the frame length. represents the imaginary unit, Represents the frequency index, the value range is , Indicates the time index, the value range is , represents the base of natural logarithms, represents pi;

[0027] The energy output of each filter is logarithmized to generate logarithmic energies, and the logarithmic energies are discrete cosine transformed to generate Mel-frequency cepstral coefficients based on the formula:

[0028] ;

[0029] ;

[0030] in, Indicates The logarithmic energy of the filter, represents the frequency domain signal, Indicates The value of the Mel filter, represents the frequency index, Indicates the frame length. Indicates Mel-frequency cepstral coefficients, represents the index of the Mel-frequency cepstral coefficients, and , Z represents the total number of Mel frequency cepstral coefficients, represents the index of the Mel filter, Indicates the number of filters used to calculate the zth Mel-frequency cepstrum coefficient. The total number of filters is marked as M, and 2≤ ≤M;

[0031] The formula for calculating the first-order and second-order differences of the Mel-frequency cepstral coefficients is:

[0032] ;

[0033] ;

[0034] in, Indicates The first-order difference of the Mel-frequency cepstral coefficients, represents the z+rth Mel frequency cepstrum coefficient, Indicates The second-order difference of the Mel-frequency cepstral coefficients, represents the first-order difference of the z+rth Mel-frequency cepstrum coefficient, Indicates the frame offset, Determined by the size of the difference window, the size of the difference window is , determine the specific value through actual application scenarios;

[0035] The principle of combining Mel frequency cepstrum coefficients, first-order differences, and second-order differences to synthesize sound wave feature vectors is:

[0036] ;

[0037] in, represents the acoustic wave feature vector.

[0038] Furthermore, the principle for combining the temperature standard deviation, temperature change rate and temperature non-uniformity into a temperature characteristic vector is:

[0039] The temperature standard deviation is generated based on the formula:

[0040] ;

[0041] ;

[0042] in, Indicates the average temperature value collected by the same temperature and humidity sensor in different time periods. Indicates the number of temperature and humidity sensors. Indicates the number of collection times in a day, Indicates the index of the temperature and humidity sensor number. The index representing the collection time. Indicates The temperature and humidity sensor is The temperature value collected at the collection time, represents the temperature standard deviation;

[0043] The formula used to generate the temperature change rate is:

[0044] ;

[0045] ;

[0046] ;

[0047] in, represents the rate of temperature change, and Respectively represent all temperature and humidity sensors in the and The average temperature value collected during the collection time, Indicates The temperature and humidity sensor is The temperature value collected at the collection time, Indicates the time interval between two acquisitions;

[0048] The formula for generating temperature non-uniformity is:

[0049] ;

[0050] in, Indicates Temperature non-uniformity during each acquisition time;

[0051] The combined temperature eigenvector is:

[0052] ;

[0053] in, represents the temperature eigenvector, represents the temperature standard deviation, represents the rate of temperature change, Indicates The temperature non-uniformity of each acquisition time.

[0054] Furthermore, the principle for combining the humidity standard deviation, humidity change rate and humidity non-uniformity into a humidity feature vector is:

[0055] The formula used to generate the humidity standard deviation is:

[0056] ;

[0057] ;

[0058] in, Indicates the average humidity value collected by the same temperature and humidity sensor in different time periods. Indicates the number of temperature and humidity sensors. Indicates the number of collection times in a day, Indicates the index of the temperature and humidity sensor. The index representing the collection time. Indicates The temperature and humidity sensor is The humidity value collected at the collection time, represents the humidity standard deviation;

[0059] The formula used to generate the humidity rate of change is:

[0060] ;

[0061] ;

[0062] ;

[0063] in, represents the humidity change rate, and Respectively represent all temperature and humidity sensors in the and The average humidity value collected during the collection time, Indicates The temperature and humidity sensor is The humidity value collected at the collection time, Indicates the time interval between two acquisitions;

[0064] The formula for generating humidity non-uniformity is:

[0065] ;

[0066] in, Indicates Humidity non-uniformity over time periods;

[0067] The combined humidity eigenvector is:

[0068] ;

[0069] in, represents the humidity feature vector, represents the humidity standard deviation, represents the humidity change rate, Indicates Humidity non-uniformity at each collection time.

[0070] Furthermore, the principle for generating the fusion matrix is:

[0071] Convert the acoustic wave feature vector into a The matrix can be expressed as:

[0072] ;

[0073] in, represents the acoustic wave feature matrix;

[0074] Combine the temperature feature vector and the humidity feature vector to transform into a The temperature and humidity characteristic matrix can be expressed as:

[0075] ;

[0076] in, represents the temperature and humidity feature matrix, represents the temperature standard deviation, represents the rate of temperature change, Indicates temperature non-uniformity, represents the humidity standard deviation, represents the humidity change rate, Indicates humidity non-uniformity;

[0077] The same number of elements is intercepted from the acoustic feature matrix and the temperature and humidity feature matrix to generate the similarity between the two. The formula is as follows:

[0078] ;

[0079] in, Indicates the similarity between the corresponding elements of the acoustic wave feature matrix and the temperature and humidity feature matrix, The first The elements of the column, represents the column index of the elements in the acoustic wave feature matrix, and , Represents the temperature and humidity feature matrix The elements of the row, represents the element row index in the temperature and humidity feature matrix, and ;

[0080] Arrange all the calculated similarity values ​​in sequence to form a matrix , the matrix Represents the correlation matrix between the acoustic wave feature matrix and the temperature and humidity feature matrix;

[0081] The attention weights are generated based on the correlation matrix according to the formula:

[0082] ;

[0083] ;

[0084] in, represents the attention weight of the sound wave features, represents the attention weight of temperature and humidity features, represents the correlation matrix, represents the transposed matrix of the correlation matrix;

[0085] The feature fusion is performed by calculating the generated attention weights to generate a fusion matrix based on the formula:

[0086] ;

[0087] in, represents the fusion matrix, represents the attention weight of the sound wave features, represents the acoustic wave feature matrix, represents the attention weight of the temperature and humidity feature matrix, Represents the temperature and humidity feature matrix.

[0088] The present invention also provides a termite pest monitoring system for protecting buildings, the system is used to implement the above-mentioned termite pest monitoring method for protecting buildings, comprising:

[0089] The sensor deployment module is used to deploy acoustic wave sensors and temperature and humidity sensors in the target area of ​​termite activity to be monitored, with an acoustic wave sensor set every 1m and a temperature and humidity sensor set every 0.5m;

[0090] The acoustic wave acquisition and processing module is used to collect the sound signal of the target area once every 10 minutes through the acoustic wave sensor, and pre-emphasize the sound signal through a high-pass filter, and divide the pre-emphasized signal into short-time frame signals of 20~40ms, with 50% overlap between frame signals, and add a window to each frame signal through the Hamming window function, and convert the windowed frame signal from the time domain signal to the frequency domain signal, and generate the Mel frequency cepstral coefficient of the frequency domain signal through the Mel filter, and combine the Mel frequency cepstral coefficient with its first-order difference and second-order difference to generate the acoustic wave feature vector;

[0091] A temperature collection and processing module is used to collect temperature data of the target area once every 10 minutes through a temperature and humidity sensor, generate a temperature standard deviation, a temperature change rate and a temperature non-uniformity according to the temperature data collected each time, and combine the temperature standard deviation, the temperature change rate and the temperature non-uniformity into a temperature feature vector;

[0092] A humidity collection and processing module is used to collect humidity data of the target area once every 10 minutes through a temperature and humidity sensor, generate humidity standard deviation, humidity change rate and humidity non-uniformity according to the humidity data collected each time, and combine the humidity standard deviation, humidity change rate and humidity non-uniformity into a humidity feature vector;

[0093] The feature fusion module is used to convert the acoustic wave feature vector, temperature feature vector and humidity feature vector into the corresponding acoustic wave matrix and temperature and humidity matrix, adjust the weights of the acoustic wave matrix and the temperature and humidity matrix through the cross-modal attention mechanism, and generate a fusion matrix;

[0094] The model building module is used to build a deep learning network. After marking the labels of whether termites appear on the fusion matrix, it is input into the deep learning network for training, and the input value is the fusion matrix, and the output value is the termite prediction model of whether termites appear.

[0095] The comprehensive judgment module is used to generate a fusion matrix in real time according to the above steps based on the real-time sound wave, real-time temperature and real-time humidity data of the building to be identified, and then input the fusion matrix into the termite prediction model to determine whether termites appear.

[0096] Compared with the prior art, the present invention has the following beneficial effects:

[0097] The present invention uses an acoustic wave sensor to collect acoustic wave data, processes the acoustic wave data into Mel frequency cepstrum coefficients, generates acoustic wave feature vectors according to the Mel frequency cepstrum coefficients and their first-order differences and second-order differences, reduces the dimension of the sound signal while retaining the main features of the original acoustic wave signal, including pitch and timbre, and can accurately distinguish the acoustic waves of termite activities; uses a temperature and humidity sensor to regularly collect temperature data and humidity data, generates a temperature and humidity standard deviation and a change rate through data collected by the same sensor at different times, and generates temperature and humidity non-uniformity through data collected by different sensors at the same time, considers the temperature and humidity changes in different areas at the same time on the one hand, and considers the temperature and humidity changes in the same area at different times on the other hand, so that termite monitoring is more accurate, generates temperature feature vectors and humidity feature vectors, combines the three feature vectors through a cross-modal attention mechanism, generates corresponding acoustic wave feature matrices and temperature and humidity feature matrices, calculates the weights corresponding to the feature matrices, and generates a fusion matrix that can judge whether termites appear, imports the data collected by the sensor in real time into a trained deep learning network, and generates a fusion matrix to judge whether termites appear. By adopting a multimodal sensor system that combines sound waves, temperature, humidity and machine learning technology, efficient and accurate monitoring of termite activities and early warning can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0098] Figure 1 This is a schematic diagram of a method flow of an embodiment of the present invention;

[0099] Figure 2 Schematic diagram of system modules according to an embodiment of the present invention. DETAILED DESCRIPTION

[0100] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.

[0101] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0102] Example:

[0103] See also Figure 1 , the present invention provides a technical solution:

[0104] A method for monitoring termite pests for protecting buildings, the specific steps comprising:

[0105] Step 1: Deploy the acoustic wave sensor and the temperature and humidity sensor in the target area of ​​termite activity to be monitored, with an acoustic wave sensor set every 1m and a temperature and humidity sensor set every 0.5m;

[0106] In this embodiment, the acoustic wave sensor model is: MaxBotix MB7066;

[0107] The temperature and humidity sensor model is: DHT22.

[0108] Step 2: The sound signal of the target area is collected once every 10 minutes through the acoustic wave sensor, and the sound signal is pre-emphasized through a high-pass filter. The pre-emphasized signal is divided into short-time frame signals of 20-40ms, and the frame signals have a 50% overlap. Each frame signal is windowed through the Hamming window function, and the windowed frame signal is converted from a time domain signal to a frequency domain signal. The frequency domain signal is passed through a Mel filter to generate Mel frequency cepstrum coefficients, and the Mel frequency cepstrum coefficients are combined with their first-order differences and second-order differences to generate an acoustic wave feature vector;

[0109] In this embodiment, the sound signal is pre-emphasized by a high-pass filter, and the formula is as follows:

[0110] ;

[0111] in, Indicates the signal after pre-emphasis at time The corresponding value, and Respectively represent the signal after denoising at time and time The corresponding value, represents the pre-emphasis coefficient, and , represents the time variable;

[0112] The signal after pre-emphasis reflects the enhancement effect on the original signal. The common pre-emphasis coefficient is 0.90~0.97. The larger the pre-emphasis coefficient, the more obvious the high-frequency enhancement effect. The smaller the pre-emphasis coefficient, the weaker the high-frequency enhancement effect. The pre-emphasis signal should be close to 1 and less than 1. If it is greater than 1, it will lead to excessive gain in the high-frequency part and introduce too much noise. If it is too small, the pre-emphasis effect is not obvious and the spectrum cannot be effectively balanced. Therefore, the value of pre-emphasis is between 0.9 and 0.97. The signal after pre-emphasis is proportional to the pre-emphasis coefficient and the original signal strength.

[0113] The pre-emphasized signal is divided into short-time frame signals, and each frame signal is windowed by the Hamming window function according to the formula:

[0114] ;

[0115] ;

[0116] in, It represents the result after windowing the segmented frame signal. represents the frame signal after segmentation, represents the time variable, represents the Hamming window function, Represents the time index, Indicates the frame length;

[0117] Windowing the signal reduces the discontinuity between the two segments of the signal, making the spectrum representation of the signal clearer and more focused on the actual frequency components of the signal. The purpose of selecting the Hamming window as the window function is to effectively reduce spectrum leakage and provide a better balance between time domain and frequency domain performance, reducing the sidelobe amplitude while maintaining a reasonable mainlobe width.

[0118] The formula for converting the windowed frame signal from the time domain signal to the frequency domain signal is:

[0119] ;

[0120] Among them, Z represents the frequency domain signal, represents the time domain signal, Indicates the frame length. represents the imaginary unit, Represents the frequency index, the value range is , Indicates the time index, the value range is , represents the base of natural logarithms, represents pi;

[0121] The time domain signal is converted into a frequency domain signal using Fourier transform, which reflects the distribution of the time domain signal at each frequency index. Increasing means that the time domain signal is multiplied by a faster oscillating waveform, which directly affects the amplitude and phase of the corresponding frequency component in the frequency domain representation. The frequency domain component is inversely proportional to the frequency index and proportional to the input signal sample.

[0122] The energy output of each filter is logarithmized to generate logarithmic energies, and the logarithmic energies are discrete cosine transformed to generate Mel-frequency cepstral coefficients based on the formula:

[0123] ;

[0124] ;

[0125] in, Indicates The logarithmic energy of the filter, represents the frequency domain signal, Indicates The value of the Mel filter, represents the frequency index, Indicates the frame length. Indicates Mel-frequency cepstral coefficients, represents the index of the Mel-frequency cepstral coefficients, and , Z represents the total number of Mel-frequency cepstral coefficients, and , represents the index of the Mel filter, Indicates the number of filters used to calculate the zth Mel-frequency cepstrum coefficient. The total number of filters is marked as M, and 2≤ ≤M, and ;

[0126] The formula for calculating the first-order and second-order differences of the Mel-frequency cepstral coefficients is:

[0127] ;

[0128] ;

[0129] in, Indicates The first-order difference of the Mel-frequency cepstral coefficients, represents the z+rth Mel frequency cepstrum coefficient, Indicates The second-order difference of the Mel-frequency cepstral coefficients, represents the first-order difference of the z+rth Mel-frequency cepstrum coefficient, Indicates the frame offset, Determined by the size of the difference window, the size of the difference window is , determine the specific value through actual application scenarios;

[0130] The principle of combining Mel frequency cepstrum coefficients, first-order differences, and second-order differences to synthesize sound wave feature vectors is:

[0131] ;

[0132] in, represents the acoustic wave feature vector.

[0133] The Mel frequency cepstral coefficient reflects the spectral characteristics of the speech signal that match the human auditory perception. The filter group on the Mel scale reflects the nonlinear perception of the human auditory sense of frequency. In the low-frequency region, the frequency resolution on the Mel scale is higher, and in the high-frequency region, the resolution is lower. The Mel frequency cepstral coefficient is proportional to the logarithmic energy of the Mel filter and the number of Mel filters.

[0134] The first-order difference of Mel frequency represents the speed feature, that is, the rate of change of Mel frequency cepstral coefficients over time, which reflects the dynamic transformation of speech signals. The second-order difference represents the acceleration feature, that is, the rate of change of the first-order difference of Mel frequency cepstral coefficients over time, which can capture more subtle changes in speech signals. Combining Mel frequency cepstral coefficients, the first-order difference of Mel frequency cepstral coefficients and the second-order difference of Mel frequency cepstral coefficients to generate a feature vector can timely capture the rapidly changing dynamic features in speech signals, thereby improving the accuracy and robustness of speech recognition.

[0135] Step 3: The temperature data of the target area is collected once every 10 minutes by using a temperature and humidity sensor, and the temperature standard deviation, temperature change rate and temperature non-uniformity are generated according to the temperature data collected each time, and the temperature standard deviation, temperature change rate and temperature non-uniformity are combined into a temperature feature vector;

[0136] In this embodiment, the principle for combining the temperature standard deviation, temperature change rate and temperature non-uniformity into a temperature characteristic vector is:

[0137] The temperature standard deviation is generated based on the formula:

[0138] ;

[0139] ;

[0140] in, Indicates the average temperature value collected by the same temperature and humidity sensor in different time periods. Indicates the number of temperature and humidity sensors. Indicates the number of collection times in a day, Indicates the index of the temperature and humidity sensor number. The index representing the collection time. Indicates The temperature and humidity sensor is The temperature value collected at the collection time, represents the temperature standard deviation;

[0141] The temperature standard deviation reflects the fluctuation of temperature data collected in the target area at different time periods. The larger the temperature standard deviation, the more drastic the temperature fluctuation. The causes of this temperature fluctuation can be divided into two types: external environment and termite activity. The external environment and termite activity correspond to different temperature standard deviation ranges. The temperature standard deviation is proportional to the discreteness of the temperature data.

[0142] The formula used to generate the temperature change rate is:

[0143] ;

[0144] ;

[0145] ;

[0146] in, represents the rate of temperature change, and Respectively represent all temperature and humidity sensors in the and The average temperature value collected during the collection time, Indicates The temperature and humidity sensor is The temperature value collected at the collection time, Indicates the time interval between two acquisitions;

[0147] The temperature change rate indicates how fast the temperature changes between two time intervals, reflecting the activity of termites. A sudden increase in the temperature change rate may be due to termite activity. The higher the temperature change rate, the faster the temperature changes and the higher the possibility of termites appearing. The size of the temperature change rate is inversely proportional to the time interval and directly proportional to the difference in temperature before and after.

[0148] The formula for generating temperature non-uniformity is:

[0149] ;

[0150] in, Indicates Temperature non-uniformity during each acquisition time;

[0151] Temperature non-uniformity reflects the temperature conditions in different areas at the same time. The greater the temperature non-uniformity collected at the same time, the more uneven the temperature distribution in the area at this time, and the greater the possibility of termites appearing. Temperature non-uniformity is proportional to the temperature fluctuation at the same time.

[0152] The combined temperature eigenvector is:

[0153] ;

[0154] in, represents the temperature eigenvector, represents the temperature standard deviation, represents the rate of temperature change, Indicates The temperature non-uniformity of each acquisition time.

[0155] The temperature characteristic vector combines the temperature standard deviation, temperature change rate and temperature non-uniformity in order. The temperature standard deviation, temperature change rate and temperature non-uniformity each have a value range that may be caused by termite activity. When combined together, it can be judged whether the value change is caused by termite activity based on the value of the characteristic vector.

[0156] Step 4: The humidity data of the target area is collected once every 10 minutes by the temperature and humidity sensor, and the humidity standard deviation, humidity change rate and humidity non-uniformity are generated according to the humidity data collected each time, and the humidity standard deviation, humidity change rate and humidity non-uniformity are combined into a humidity feature vector;

[0157] In this embodiment, the principle for combining the humidity standard deviation, humidity change rate and humidity non-uniformity into a humidity feature vector is:

[0158] The formula used to generate the humidity standard deviation is:

[0159] ;

[0160] ;

[0161] in, Indicates the average humidity value collected by the same temperature and humidity sensor in different time periods. Indicates the number of temperature and humidity sensors. Indicates the number of collection times in a day, Indicates the index of the temperature and humidity sensor. The index representing the collection time. Indicates The temperature and humidity sensor is The humidity value collected at the collection time, represents the humidity standard deviation;

[0162] The humidity standard deviation reflects the fluctuation of humidity data collected in the target area at different time periods. The larger the humidity standard deviation, the more drastic the humidity fluctuation. The causes of this humidity fluctuation can be divided into two types: external environment and termite activity. The external environment and termite activity correspond to different humidity standard deviation ranges. The humidity standard deviation is proportional to the discreteness of the humidity data.

[0163] The formula used to generate the humidity rate of change is:

[0164] ;

[0165] ;

[0166] ;

[0167] in, represents the humidity change rate, and Respectively represent all temperature and humidity sensors in the and The average humidity value collected during the collection time, Indicates The temperature and humidity sensor is The humidity value collected at the collection time, Indicates the time interval between two acquisitions;

[0168] The humidity change rate indicates how fast the temperature changes between two time intervals, reflecting the activity of termites. A sudden increase in the humidity change rate may be due to termite activity. The higher the humidity change rate, the faster the humidity changes and the higher the possibility of termites appearing. The size of the humidity change rate is inversely proportional to the time interval and directly proportional to the difference in humidity before and after.

[0169] The formula for generating humidity non-uniformity is:

[0170] ;

[0171] in, Indicates Humidity non-uniformity over time periods;

[0172] Humidity non-uniformity reflects the temperature conditions in different areas at the same time. The greater the humidity non-uniformity collected at the same time, the more uneven the humidity distribution in the area at this time, and the greater the possibility of termites appearing. Humidity non-uniformity is proportional to the fluctuation of humidity at the same time.

[0173] The combined humidity eigenvector is:

[0174] ;

[0175] in, represents the humidity feature vector, represents the humidity standard deviation, represents the humidity change rate, Indicates Humidity non-uniformity at each collection time.

[0176] The humidity feature vector combines the humidity standard deviation, humidity change rate and humidity non-uniformity in order. The humidity standard deviation, humidity change rate and humidity non-uniformity each have a value range that may be caused by termite activity. When combined together, it can be judged whether the value change is caused by termite activity based on the value of the feature vector.

[0177] Step 5: Convert the acoustic wave feature vector, temperature feature vector and humidity feature vector into the corresponding acoustic wave matrix and temperature and humidity matrix, adjust the weights of the acoustic wave matrix and the temperature and humidity matrix through the cross-modal attention mechanism, and generate a fusion matrix;

[0178] In this embodiment, the principle for generating the fusion matrix is ​​as follows:

[0179] Convert the acoustic wave feature vector into a The matrix can be expressed as:

[0180] ;

[0181] in, represents the acoustic wave feature matrix;

[0182] Combine the temperature feature vector and the humidity feature vector to transform into a The temperature and humidity characteristic matrix can be expressed as:

[0183] ;

[0184] in, represents the temperature and humidity feature matrix, represents the temperature standard deviation, represents the rate of temperature change, Indicates temperature non-uniformity, represents the humidity standard deviation, represents the humidity change rate, Indicates humidity non-uniformity;

[0185] The same number of elements is intercepted from the acoustic feature matrix and the temperature and humidity feature matrix to generate the similarity between the two. The formula is as follows:

[0186] ;

[0187] in, Indicates the similarity between the corresponding elements of the acoustic wave feature matrix and the temperature and humidity feature matrix, The first The elements of the column, represents the column index of the elements in the acoustic wave feature matrix, and , Represents the temperature and humidity feature matrix The elements of the row, represents the element row index in the temperature and humidity feature matrix, and ;

[0188] Arrange all the calculated similarity values ​​in sequence to form a matrix , the matrix Represents the correlation matrix between the acoustic wave feature matrix and the temperature and humidity feature matrix, Represents the correlation matrix Middle Ledi Elements of a row;

[0189] The attention weights are generated based on the correlation matrix according to the formula:

[0190] ;

[0191] ;

[0192] in, represents the attention weight of the sound wave features, represents the attention weight of temperature and humidity features, represents the correlation matrix, represents the transposed matrix of the correlation matrix;

[0193] The purpose of calculating the attention weight through the softmax function is to convert the original relevance score into a probability value ranging from 0 to 1, and to ensure that the sum of all attention weights is 1, so as to ensure that the model reasonably distributes weights between different modalities and avoid the situation where the features of a certain modality are too prominent or ignored.

[0194] The feature fusion is performed by calculating the generated attention weights to generate a fusion matrix based on the formula:

[0195] ;

[0196] in, represents the fusion matrix, represents the attention weight of the sound wave features, represents the acoustic wave feature matrix, represents the attention weight of the temperature and humidity feature matrix, Represents the temperature and humidity feature matrix.

[0197] The fusion matrix is ​​a fusion of sound wave features and temperature and humidity features to generate a comprehensive feature representation with richer information, reflecting the correlation of each modal feature. Each element in the fusion matrix represents the relationship between a specific sound wave feature and a specific temperature and humidity feature. The higher the weight value, the higher the similarity between the two.

[0198] Step 6: Construct a deep learning network, mark the labels of whether termites appear on the fusion matrix, and then input it into the deep learning network for training to obtain a termite prediction model with the input value being the fusion matrix and the output value being whether termites appear;

[0199] Step 7: Generate a fusion matrix in real time using the real-time sound wave, real-time temperature and real-time humidity data of the building to be identified according to the above steps, and then input the fusion matrix into the termite prediction model to determine whether termites appear.

[0200] In this embodiment, the input features of the deep learning network include: sound wave feature vector, temperature feature vector and humidity feature vector;

[0201] The structure of the deep learning network is:

[0202] Input layer: used to receive 3 types of feature inputs;

[0203] The first hidden layer: contains 64 neurons and uses the ReLU activation function;

[0204] The second hidden layer: contains 32 neurons and uses the ReLU activation function;

[0205] Output layer: Contains 1 neuron and uses the sigmoid activation function to determine whether termites appear.

[0206] See also Figure 2 The present invention also provides a termite pest monitoring system for protecting buildings, the system is used to implement the above-mentioned termite pest monitoring method for protecting buildings, comprising:

[0207] The sensor deployment module is used to deploy acoustic wave sensors and temperature and humidity sensors in the target area of ​​termite activity to be monitored, with an acoustic wave sensor set every 1m and a temperature and humidity sensor set every 0.5m;

[0208] The acoustic wave acquisition and processing module is used to collect the sound signal of the target area once every 10 minutes through the acoustic wave sensor, and pre-emphasize the sound signal through a high-pass filter, and divide the pre-emphasized signal into short-time frame signals of 20~40ms, with 50% overlap between frame signals, and add a window to each frame signal through the Hamming window function, and convert the windowed frame signal from the time domain signal to the frequency domain signal, and generate the Mel frequency cepstral coefficient of the frequency domain signal through the Mel filter, and combine the Mel frequency cepstral coefficient with its first-order difference and second-order difference to generate the acoustic wave feature vector;

[0209] A temperature collection and processing module is used to collect temperature data of the target area once every 10 minutes through a temperature and humidity sensor, generate a temperature standard deviation, a temperature change rate and a temperature non-uniformity according to the temperature data collected each time, and combine the temperature standard deviation, the temperature change rate and the temperature non-uniformity into a temperature feature vector;

[0210] A humidity collection and processing module is used to collect humidity data of the target area once every 10 minutes through a temperature and humidity sensor, generate humidity standard deviation, humidity change rate and humidity non-uniformity according to the humidity data collected each time, and combine the humidity standard deviation, humidity change rate and humidity non-uniformity into a humidity feature vector;

[0211] The feature fusion module is used to convert the acoustic wave feature vector, temperature feature vector and humidity feature vector into the corresponding acoustic wave matrix and temperature and humidity matrix, adjust the weights of the acoustic wave matrix and the temperature and humidity matrix through the cross-modal attention mechanism, and generate a fusion matrix;

[0212] The model building module is used to build a deep learning network. After marking the labels of whether termites appear on the fusion matrix, it is input into the deep learning network for training, and the input value is the fusion matrix, and the output value is the termite prediction model of whether termites appear.

[0213] The comprehensive judgment module is used to generate a fusion matrix in real time according to the above steps based on the real-time sound wave, real-time temperature and real-time humidity data of the building to be identified, and then input the fusion matrix into the termite prediction model to determine whether termites appear.

[0214] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.

[0215] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented by software, the above embodiments may be implemented in whole or in part in the form of a computer program product. Those skilled in the art may appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein may be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed by hardware or software methods depends on the specific application and design constraints of the technical solution.

[0216] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0217] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A method for monitoring termite pests for protecting buildings, characterized in that: The specific steps include: Step 1: Deploy the acoustic wave sensor and the temperature and humidity sensor in the target area of ​​termite activity to be monitored, with an acoustic wave sensor set every 1m and a temperature and humidity sensor set every 0.5m; Step 2: The sound signal of the target area is collected once every 10 minutes through the acoustic wave sensor, and the sound signal is pre-emphasized through a high-pass filter. The pre-emphasized signal is divided into short-time frame signals of 20-40ms, and the frame signals have a 50% overlap. Each frame signal is windowed through the Hamming window function, and the windowed frame signal is converted from a time domain signal to a frequency domain signal. The frequency domain signal is passed through a Mel filter to generate Mel frequency cepstrum coefficients, and the Mel frequency cepstrum coefficients are combined with their first-order differences and second-order differences to generate an acoustic wave feature vector; Step 3: The temperature data of the target area is collected once every 10 minutes by using a temperature and humidity sensor, and the temperature standard deviation, temperature change rate and temperature non-uniformity are generated according to the temperature data collected each time, and the temperature standard deviation, temperature change rate and temperature non-uniformity are combined into a temperature feature vector; Step 4: The humidity data of the target area is collected once every 10 minutes by the temperature and humidity sensor, and the humidity standard deviation, humidity change rate and humidity non-uniformity are generated according to the humidity data collected each time, and the humidity standard deviation, humidity change rate and humidity non-uniformity are combined into a humidity feature vector; Step 5: Convert the sound wave feature vector, temperature feature vector and humidity feature vector into the corresponding sound wave matrix and temperature and humidity matrix, adjust the weights of the sound wave matrix and temperature and humidity matrix through the cross-modal attention mechanism, and generate a fusion matrix; Step 6: Construct a deep learning network, mark the labels of whether termites appear on the fusion matrix, and then input it into the deep learning network for training to obtain a termite prediction model with the input value being the fusion matrix and the output value being whether termites appear; Step 7: Generate a fusion matrix in real time using the real-time sound wave, real-time temperature and real-time humidity data of the building to be identified according to the above steps, and then input the fusion matrix into the termite prediction model to determine whether termites appear.

2. A method for monitoring termite pests for protecting buildings according to claim 1, characterized in that: The principle for generating the Mel-frequency cepstral coefficients in step 2 and combining the Mel-frequency cepstral coefficients with their first-order differences and second-order differences to generate the acoustic wave feature vectors is as follows: The sound signal is pre-emphasized through a high-pass filter, based on the formula: ; in, Indicates the signal after pre-emphasis at time The corresponding value, and Respectively represent the signal after denoising at time and time The corresponding value, represents the pre-emphasis coefficient, and , represents the time variable; The pre-emphasized signal is divided into short-time frame signals, and each frame signal is windowed by the Hamming window function according to the formula: ; ; in, It represents the result after windowing the segmented frame signal. represents the frame signal after segmentation, represents the time variable, represents the Hamming window function, Represents the time index, Indicates the frame length; The formula for converting the windowed frame signal from the time domain signal to the frequency domain signal is: ; Among them, Z represents the frequency domain signal, represents the time domain signal, Indicates the frame length. represents the imaginary unit, Represents the frequency index, the value range is , Indicates the time index, the value range is , represents the base of natural logarithms, represents pi; The energy output of each filter is logarithmized to generate logarithmic energies, and the logarithmic energies are discrete cosine transformed to generate Mel-frequency cepstral coefficients based on the formula: ; ; in, Indicates The logarithmic energy of the filter, represents the frequency domain signal, Indicates The value of the Mel filter, represents the frequency index, Indicates the frame length. Indicates Mel-frequency cepstral coefficients, represents the index of the Mel-frequency cepstral coefficients, and , Z represents the total number of Mel frequency cepstral coefficients, represents the index of the Mel filter, Indicates the number of filters used to calculate the zth Mel-frequency cepstrum coefficient. The total number of filters is marked as M, and 2≤ ≤M; The formula for calculating the first-order and second-order differences of the Mel-frequency cepstral coefficients is: ; ; in, Indicates The first-order difference of the Mel-frequency cepstral coefficients, represents the z+rth Mel frequency cepstrum coefficient, Indicates The second-order difference of the Mel-frequency cepstral coefficients, represents the first-order difference of the z+rth Mel-frequency cepstrum coefficient, Indicates the frame offset, Determined by the size of the difference window, the size of the difference window is , determine the specific value through actual application scenarios; The principle of combining Mel frequency cepstrum coefficients, first-order differences, and second-order differences to synthesize sound wave feature vectors is: ; in, represents the sound wave feature vector.

3. A method for monitoring termite pests for protecting buildings according to claim 1, characterized in that: The principle for combining the temperature standard deviation, temperature change rate and temperature non-uniformity into a temperature characteristic vector in step 3 is: The temperature standard deviation is generated based on the formula: ; ; in, Indicates the average temperature value collected by the same temperature and humidity sensor in different time periods. Indicates the number of temperature and humidity sensors. Indicates the number of collection times in a day, Indicates the index of the temperature and humidity sensor number. The index representing the collection time. Indicates The temperature and humidity sensor is The temperature value collected at the collection time, represents the temperature standard deviation; The formula used to generate the temperature change rate is: ; ; ; in, represents the rate of temperature change, and Respectively represent all temperature and humidity sensors in the and The average temperature value collected during the collection time, Indicates The temperature and humidity sensor is The temperature value collected at the collection time, Indicates the time interval between two acquisitions; The formula for generating temperature non-uniformity is: ; in, Indicates Temperature non-uniformity during each acquisition time; The combined temperature eigenvector is: ; in, represents the temperature eigenvector, represents the temperature standard deviation, represents the rate of temperature change, Indicates The temperature non-uniformity of each acquisition time.

4. A method for monitoring termite pests for protecting buildings according to claim 1, characterized in that: The principle for combining the humidity standard deviation, humidity change rate and humidity non-uniformity into a humidity feature vector in step 4 is: The formula used to generate the humidity standard deviation is: ; ; in, Indicates the average humidity value collected by the same temperature and humidity sensor in different time periods. Indicates the number of temperature and humidity sensors. Indicates the number of collection times in a day, Indicates the index of the temperature and humidity sensor. The index representing the collection time. Indicates The temperature and humidity sensor is The humidity value collected at the collection time, represents the humidity standard deviation; The formula used to generate the humidity rate of change is: ; ; ; in, represents the humidity change rate, and Respectively represent all temperature and humidity sensors in the and The average humidity value collected during the collection time, Indicates The temperature and humidity sensor is The humidity value collected at the collection time, Indicates the time interval between two acquisitions; The formula for generating humidity non-uniformity is: ; in, Indicates Humidity non-uniformity over time periods; The combined humidity eigenvector is: ; in, represents the humidity feature vector, represents the humidity standard deviation, represents the humidity change rate, Indicates Humidity non-uniformity at each collection time.

5. A method for monitoring termite pests for protecting buildings according to claim 1, characterized in that: The principle for generating the fusion matrix in step 5 is: Convert the acoustic wave feature vector into a The matrix can be expressed as: ; in, represents the acoustic wave feature matrix; Combine the temperature feature vector and the humidity feature vector to transform into a The temperature and humidity characteristic matrix can be expressed as: ; in, represents the temperature and humidity feature matrix, represents the temperature standard deviation, represents the rate of temperature change, Indicates temperature non-uniformity, represents the humidity standard deviation, represents the humidity change rate, Indicates humidity non-uniformity; The same number of elements is intercepted from the acoustic feature matrix and the temperature and humidity feature matrix to generate the similarity between the two. The formula is as follows: ; in, Indicates the similarity between the corresponding elements of the acoustic wave feature matrix and the temperature and humidity feature matrix, The first The elements of the column, represents the column index of the elements in the acoustic wave feature matrix, and , Represents the first The elements of the row, represents the element row index in the temperature and humidity feature matrix, and ; Arrange all the calculated similarity values ​​in sequence to form a matrix , the matrix Represents the correlation matrix between the acoustic wave feature matrix and the temperature and humidity feature matrix; The attention weights are generated based on the correlation matrix according to the formula: ; ; in, represents the attention weight of the sound wave features, represents the attention weight of temperature and humidity features, represents the correlation matrix, represents the transposed matrix of the correlation matrix; The feature fusion is performed by calculating the generated attention weights to generate a fusion matrix based on the formula: ; in, represents the fusion matrix, represents the attention weight of the sound wave features, represents the acoustic wave feature matrix, represents the attention weight of the temperature and humidity feature matrix, Represents the temperature and humidity feature matrix.

6. A termite pest monitoring system for protecting buildings, characterized in that: The system is used to implement the termite pest monitoring method for protecting a building according to any one of claims 1 to 5, comprising: The sensor deployment module is used to deploy acoustic wave sensors and temperature and humidity sensors in the target area of ​​termite activity to be monitored, with an acoustic wave sensor set every 1m and a temperature and humidity sensor set every 0.5m; The acoustic wave acquisition and processing module is used to collect the sound signal of the target area once every 10 minutes through the acoustic wave sensor, and pre-emphasize the sound signal through a high-pass filter, and divide the pre-emphasized signal into short-time frame signals of 20~40ms, with 50% overlap between frame signals, and add a window to each frame signal through the Hamming window function, and convert the windowed frame signal from the time domain signal to the frequency domain signal, and generate the Mel frequency cepstral coefficient of the frequency domain signal through the Mel filter, and combine the Mel frequency cepstral coefficient with its first-order difference and second-order difference to generate the acoustic wave feature vector; A temperature collection and processing module is used to collect temperature data of the target area once every 10 minutes through a temperature and humidity sensor, generate a temperature standard deviation, a temperature change rate and a temperature non-uniformity according to the temperature data collected each time, and combine the temperature standard deviation, the temperature change rate and the temperature non-uniformity into a temperature feature vector; A humidity collection and processing module is used to collect humidity data of the target area once every 10 minutes through a temperature and humidity sensor, generate humidity standard deviation, humidity change rate and humidity non-uniformity according to the humidity data collected each time, and combine the humidity standard deviation, humidity change rate and humidity non-uniformity into a humidity feature vector; The feature fusion module is used to convert the acoustic wave feature vector, temperature feature vector and humidity feature vector into the corresponding acoustic wave matrix and temperature and humidity matrix, adjust the weights of the acoustic wave matrix and the temperature and humidity matrix through the cross-modal attention mechanism, and generate a fusion matrix; The model building module is used to build a deep learning network. After marking the labels of whether termites appear on the fusion matrix, it is input into the deep learning network for training, and the input value is the fusion matrix, and the output value is the termite prediction model of whether termites appear. The comprehensive judgment module is used to generate a fusion matrix in real time according to the above steps based on the real-time sound wave, real-time temperature and real-time humidity data of the building to be identified, and then input the fusion matrix into the termite prediction model to determine whether termites appear.

Citation Information

Patent Citations

  • Termite monitoring method and device and storage device

    CN110992389A

  • Spatial dynamic distribution monitoring method and system for crop diseases and insect pests

    CN110533595A

  • Insect pest early warning method

    CN116933113A

  • Crop growth environment monitoring method based on knowledge graph representation learning

    CN116957838A

  • Data acquisition and analysis method for AI identification of green plant growth situation

    CN117036088A