A termite monitoring and early warning system and method

Through the combination of image hash value and thermal imaging sensor monitoring, the deviation impact index is calculated, which solves the problems of high false alarm rate and unstable timeliness of the existing termite monitoring system, achieves accurate and timely monitoring of termite activities, and reduces environmental interference. .

CN118397565BActive Publication Date: 2024-09-06HUBEI TERMITE CONTROL INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410815821.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-09-06
Estimated Expiration
2044-06-24

AI Technical Summary

Technical Problem

The existing termite monitoring system has problems such as high false alarm rate, unstable timeliness and waste of equipment replacement resources. It cannot achieve real-time monitoring and adapt to complex environmental conditions.

Method used

The image acquisition module is used to generate image hash values, combined with thermal imaging sensors to monitor temperature changes, the deviation impact index is calculated through Hamming distance and temperature normalized index, and the image similarity and deviation threshold are combined to determine whether termite activity occurs and reduce environmental interference.

Benefits of technology

It achieves timely and accurate monitoring of termite activities, reduces the false alarm rate, and has both high efficiency and environmental adaptability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118397565B
    Figure CN118397565B
Patent Text Reader

Abstract

The present invention provides a termite monitoring and early warning system and method, and relates to the technical field of pest control. According to the image difference and heat difference generated before and after the termite activity, the present invention installs a high-resolution camera and a thermal imaging sensor in a target area where termites may appear to obtain image and temperature data, generates image similarity by analyzing image hash values ​​of adjacent acquisition times, generates a temperature deviation index by analyzing temperature changes at adjacent times, generates a deviation impact index according to the image similarity and the temperature deviation index, compares the deviation with a normal deviation threshold generated in monitoring when no termites appear, and judges whether it is an environmental error generated in the process of collecting data or a change caused by monitoring termites according to the size of the deviation impact index and the deviation threshold.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Termites, as a ubiquitous pest, pose a major threat to the safety of wooden structures and buildings. At present, termite monitoring mainly relies on regular manual inspections or the use of chemical attractants. These methods are not only easy to cause damage to the environment, but also inefficient, wasting a lot of human resources and failing to achieve real-time monitoring. Common termite monitoring systems mainly rely on a single monitoring technology, which often has problems such as high false alarm rate and incomplete monitoring. In addition, a single monitoring technology cannot adapt to complex and changing environmental conditions, resulting in unstable monitoring results.

[0003] In the prior art, publication number CN113484929A discloses an intelligent termite monitoring system, in which a monitor and a monitoring sensor are installed in a termite detector. The monitoring sensor includes a magnetically controlled switch and a magnet. The magnet is installed on an attractant strip. When the attractant strip is broken by termites, the magnet triggers the magnetically controlled switch to transmit a signal to the monitor, which is then broadcast to a smart mobile terminal in real time and uploaded to a server after being processed.

[0004] The main problems with the above method are: in addition to termites gnawing and causing the lure strips to break, other factors may also cause the lure strips to break and lead to false alarms, such as birds or small animals gnawing, wind action, etc.; the timeliness of the system is highly dependent on the time it takes for termites to gnaw on the lure strips, and the time required to finally process the warning information is unstable; and the lure strips need to be deployed and replaced in the natural environment, which interferes with the ecosystem and requires additional resources for equipment replacement.

[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 purpose of the present invention is to provide a termite monitoring and early warning system and method to solve the problems raised in the above background technology.

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

[0008] A termite monitoring and early warning system, specifically comprising:

[0009] The image acquisition module collects the original image of the target area of ​​termite activity to be monitored every ten minutes, scales the original image resolution to 17×16, performs grayscale processing, and generates a first recognition image, and sorts all the first recognition images in the order of acquisition time;

[0010] The image preprocessing module compares the grayscale value of each pixel with the next pixel in the same row in the first recognition image, generates a binary sequence of one row after logical judgment, generates a binary sequence for each row, and connects all the binary sequences in the order of row numbers to generate a 256-bit binary sequence representing the image hash value;

[0011] The image analysis module compares the hash value of each image with the previous image taken at the same time to generate the Hamming distance between adjacent images, and normalizes all the Hamming distances to generate image similarity;

[0012] Temperature monitoring module: in the target area of ​​termite activity to be monitored, the spacing between adjacent sensors shall be 70% to 90% of the sensor monitoring range, and a sufficient number of thermal imaging sensors with a temperature resolution of less than 0.1°C shall be installed in a grid pattern to cover the entire target area;

[0013] The temperature pre-collection module collects the highest temperature and the lowest temperature of the target area in a day when no termites appear in advance through the temperature monitoring module, collects data once every ten minutes, generates a temperature normalization index corresponding to the time, and generates a first temperature image with time as the horizontal coordinate and the temperature normalization index as the vertical coordinate;

[0014] The temperature analysis module collects the real-time temperature of the target area once every ten minutes through the temperature monitoring module, generates a real-time temperature normalization index, substitutes the real-time temperature normalization index into the first temperature image, and generates a temperature deviation index according to the difference between the real-time temperature normalization index corresponding to the same time and the vertical coordinate in the first temperature image;

[0015] The comprehensive judgment module combines the image similarity and temperature deviation index at the same time to generate the deviation impact index of the corresponding time, compares the deviation impact index with the deviation threshold, and generates a comprehensive judgment index to determine whether termite activity occurs.

[0016] Furthermore, the principle for generating the hash value of an image is:

[0017] In the first recognition image generated by grayscale processing, the value of each pixel only represents the brightness level, and the formula for calculating the hash value is:

[0018]

[0019] Among them, h ji represents the hash value corresponding to the i-th pixel in the j-th row of the first recognition image, p i Represents the gray value of the i-th pixel, p i+1Represents the gray value of the (i+1)th pixel, performs logical judgment on all points in each row of the first recognition image to generate a binary sequence, and connects all binary sequences in order of row numbers to generate a binary sequence representing the hash value of the entire image.

[0020] Furthermore, the principle for generating the Hamming distance between adjacent images is:

[0021] For two images with the same hash value length, compare each digit of the hash value from left to right, set a counter, and when the two hash values ​​have different digits in a certain digit, the counter counts up by 1. After all the digits of the hash value are compared, the value of the counter is the Hamming distance;

[0022] The principle on which image similarity is generated is:

[0023]

[0024] Among them, P0 represents the similarity between an image collected at a certain moment and an image collected at an earlier adjacent moment, P represents the Hamming distance between the images collected at the current moment, and P max represents the maximum value of the Hamming distance in the historical data, P min Indicates the minimum value of the Hamming distance in the historical data.

[0025] Furthermore, the formula for generating the temperature normalized index corresponding to time is:

[0026]

[0027] Where T0 represents the temperature normalized index, T max Indicates the highest temperature monitored in the target area in one day, T min Indicates the lowest temperature monitored in the target area in one day. It represents the average temperature collected by all thermal imaging sensors in the target area at a certain time of the day.

[0028] Furthermore, the formula for generating the temperature deviation index is:

[0029]

[0030] in, represents the temperature deviation index, T represents the real-time temperature normalization index collected at a certain time in a day, and T0 represents the temperature normalization index corresponding to the same time in the first temperature image.

[0031] Furthermore, the formula for generating the deviation impact index is:

[0032]

[0033] Among them, ω represents the deviation influence index, P0 represents the image similarity, represents the temperature deviation index, k1 represents the influence weight of image similarity on the deviation influence index, and (1-k1) represents the influence weight of temperature deviation index on the deviation influence index;

[0034] The formula used to generate the deviation threshold is:

[0035]

[0036] Where C represents the deviation threshold, k2 represents the influence weight of image similarity on the deviation threshold, (1-k2) represents the influence weight of temperature on the deviation threshold, and P 0min Indicates the minimum image similarity detected when no termites appear, T 0max It indicates the normalized index of the maximum temperature monitored when no termites are present. represents an average temperature normalized index generated from the first temperature image;

[0037] The formula used to generate the comprehensive judgment index is:

[0038]

[0039] Among them, ε represents the comprehensive judgment index, ω represents the deviation impact index, and C represents the deviation threshold;

[0040] When ε>1, it means that the deviation impact index exceeds the deviation threshold, and termite activity is detected, and an early warning is issued;

[0041] When ε≤1, it means that the deviation impact index at this time is within the deviation threshold, and it is judged that no termite activity occurs.

[0042] The present invention also provides a termite monitoring and early warning method, which is implemented by the above-mentioned termite monitoring and early warning system, and the specific steps include:

[0043] Step 1: Collect the original image of the target area of ​​termite activity to be monitored once every ten minutes, scale the original image resolution to 17×16, perform grayscale processing to generate the first recognition image, and sort all the first recognition images according to the time sequence of collection;

[0044] Step 2: In the first recognition image, compare the grayscale value of each pixel with the next pixel in the same row, and generate a binary sequence of one row after logical judgment. Generate a binary sequence for each row, and connect all binary sequences in order of row numbers to generate a 256-bit binary sequence representing the image hash value;

[0045] Step 3: Compare the hash value of each image with the previous image taken at the same time to generate the Hamming distance between adjacent images, normalize all Hamming distances to generate image similarity;

[0046] Step 4: In the target area of ​​termite activity to be monitored, install a sufficient number of thermal imaging sensors with a temperature resolution of less than 0.1°C in a grid pattern, with the spacing between adjacent sensors being 70% to 90% of the sensor monitoring range;

[0047] Step 5: The highest and lowest temperatures of the target area in a day when no termites appear are collected in advance by the temperature monitoring module, and data is collected every ten minutes to generate a temperature normalization index corresponding to the time, and a first temperature image is generated with time as the horizontal coordinate and the temperature normalization index as the vertical coordinate;

[0048] Step 6: The real-time temperature of the target area is collected once every ten minutes by the temperature monitoring module to generate a real-time temperature normalization index, the real-time temperature normalization index is substituted into the first temperature image, and the temperature deviation index is generated according to the difference between the real-time temperature normalization index corresponding to the same time and the vertical coordinate in the first temperature image;

[0049] Step 7: Combine the image similarity and temperature deviation index at the same time to generate the deviation impact index of the corresponding time, compare the deviation impact index and the deviation threshold, and generate a comprehensive judgment index to determine whether termite activity occurs.

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

[0051] The present invention generates hash values ​​of images by monitoring images of target areas. The difference between images is quantified by calculating the hash value deviation of the acquired images at adjacent times using the Hamming distance. A high-precision thermal imaging sensor is used to monitor the slight temperature changes caused by termite activity. A temperature deviation index is generated by generating a temperature normalization index to eliminate the influence of natural temperature fluctuations. A ten-minute acquisition interval is set to ensure the timeliness of monitoring. Finally, a deviation impact index is generated by the temperature deviation index and image similarity, which is compared with the deviation threshold caused by natural changes in the environment to determine whether termite activity occurs, thereby reducing environmental interference and achieving both timeliness and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 This is a schematic diagram of the system modules of an embodiment of the present invention;

[0053] Figure 2 The figure is a schematic diagram of the method flow of an embodiment of the present invention. DETAILED DESCRIPTION

[0054] 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.

[0055] 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.

[0056] Example:

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

[0058] A termite monitoring and early warning system, comprising:

[0059] The image acquisition module collects the original image of the target area of ​​termite activity to be monitored every ten minutes, scales the original image resolution to 17×16, performs grayscale processing, and generates a first recognition image, and sorts all the first recognition images in the order of acquisition time;

[0060] In this embodiment, the original image is collected by a camera, and the camera should be installed at a sufficient height to ensure that the monitoring coverage is maximized and avoid being blocked. A wide-angle camera can be used or multiple cameras can be installed at key monitoring points to prevent blind spots. The camera model is: FLIR C3 camera;

[0061] In this embodiment, a hash value of the image needs to be generated later, so the image needs to be grayed. The formula for graying the original image is:

[0062] Y i =0.299·R i +0.587 G i +0.114 B i

[0063] Among them, Y i Represents the gray value of the i-th pixel in the original image, R iRepresents the red channel value of the i-th pixel, G i Indicates the green channel value of the i-th pixel, B i Represents the blue channel value of the i-th pixel;

[0064] The grayscale value of each pixel in the original image replaces the original RGB value of the pixel to generate the corresponding grayscale image.

[0065] The image preprocessing module compares the grayscale value of each pixel with the next pixel in the same row in the first recognition image, generates a binary sequence of one row after logical judgment, generates a binary sequence for each row, and connects all the binary sequences in the order of row numbers to generate a 256-bit binary sequence representing the image hash value;

[0066] In this embodiment, the formula for generating the hash value of the image is:

[0067] In the first recognition image generated by grayscale processing, the value of each pixel only represents the brightness level, and the formula for calculating the hash value is:

[0068]

[0069] Among them, h ji represents the hash value corresponding to the i-th pixel in the j-th row of the first recognition image, p i Represents the gray value of the i-th pixel, p i+1 Represents the gray value of the (i+1)th pixel. Perform logical judgment on all points in each row of the first recognition image to generate a binary sequence. When the gray value of the current pixel is greater than that of the next adjacent pixel, the result of the logical judgment is 1, otherwise, the result of the logical judgment is 0. Arrange the binary sequences of all rows end to end to generate a binary sequence representing the hash value of the entire image. For an image with a resolution of 17×16, the length of the generated binary sequence is 256 bits.

[0070] The image analysis module compares the hash value of each image with the previous image taken at the same time to generate the Hamming distance between adjacent images, and normalizes all the Hamming distances to generate image similarity;

[0071] In this embodiment, the smaller the Hamming distance is, the more similar the images are. The principle for generating the Hamming distance between adjacent images is:

[0072] For two images with the same hash value length, compare each digit of the hash value from left to right, set a counter, and when the two hash values ​​have different digits in a certain digit, the counter counts up by 1. After all the bits of the hash value are compared, the value of the counter is the Hamming distance between the two images.

[0073] The principle on which image similarity is generated is:

[0074]

[0075] Among them, P0 represents the similarity between an image collected at a certain moment and an image collected at an earlier adjacent moment, P represents the Hamming distance between images collected at the current moment, and P max represents the maximum Hamming distance of the image in the historical data, P min Represents the minimum value of the Hamming distance of the image in the historical data;

[0076] The Hamming distance between images can directly represent the similarity of the images. After normalizing the Hamming distance, it can be compared and calculated with the collected temperature data at the same scale.

[0077] Temperature monitoring module: in the target area of ​​termite activity to be monitored, the spacing between adjacent sensors shall be 70% to 90% of the sensor monitoring range, and a sufficient number of thermal imaging sensors with a temperature resolution of less than 0.1°C shall be installed in a grid pattern to cover the entire target area;

[0078] In this embodiment, before installing the thermal imaging sensor, possible obstructions and reflective surfaces in the target area are evaluated to avoid obstruction of the monitoring area of ​​the thermal imaging sensor during installation; the heat source distribution map of the target area is used to determine the installation angle to avoid direct exposure of the thermal imaging sensor to the heat source; after installation, a test is performed to check whether the monitoring area is fully covered and whether the sensor readings are accurate;

[0079] The early activities of termites will only cause slight temperature changes. Sensors with high temperature resolution (below 0.1°C) can provide early warnings. Temperature changes in the natural environment are often slow and fluctuate within a large temperature range, while temperature changes caused by termites are more local and specific. High-resolution sensors can distinguish between natural temperature changes and temperature changes caused by termites by capturing these local slight changes. Leave a gap of 70% to 90% of the monitoring range between adjacent sensors to ensure that the entire area is within the monitoring range. Even if a sensor fails, the monitoring density can be guaranteed, while reducing monitoring overlap to avoid data duplication and phenomena caused by multiple sensors capturing the same heat source due to the sensors being installed too close together.

[0080] The model of the thermal imaging sensor is: Firstrate BRW600-400A infrared sensor.

[0081] The temperature pre-collection module collects the highest temperature and the lowest temperature of the target area in a day when no termites appear in advance through the temperature monitoring module, collects data once every ten minutes, generates a temperature normalization index corresponding to the time, and generates a first temperature image with time as the horizontal coordinate and the temperature normalization index as the vertical coordinate;

[0082] In this embodiment, the purpose of temperature pre-collection is to determine the temperature change of the target area within one day without the influence of termites, and to compare it with the temperature change under the influence of termites. The formula for generating the temperature normalization index corresponding to time is:

[0083]

[0084] Where T0 represents the temperature normalized index, T max Indicates the highest temperature monitored in the target area in one day, T min Indicates the lowest temperature monitored in the target area in one day. It represents the average temperature collected by all thermal imaging sensors in the target area at a certain time of the day.

[0085] The temperature analysis module collects the real-time temperature of the target area once every ten minutes through the temperature monitoring module, generates a real-time temperature normalization index, substitutes the real-time temperature normalization index into the first temperature image, and generates a temperature deviation index according to the difference between the real-time temperature normalization index corresponding to the same time and the vertical coordinate in the first temperature image;

[0086] In this embodiment, the real-time temperature collection interval is consistent with the temperature pre-collection interval, and the temperature collected at the same time is used as the only variable. The formula for generating the temperature deviation index is:

[0087]

[0088] in, represents the temperature deviation index, T represents the real-time temperature normalization index collected at a certain time in a day, and T0 represents the temperature normalization index corresponding to the same time in the first temperature image;

[0089] The temperature deviation index reflects the deviation between the real-time temperature collected at a certain moment and the temperature at the same moment in the first temperature image. It indicates the deviation between the real-time temperature collected at a certain moment and the temperature collected in advance at the same moment of the day when no termites appear. By combining the temperature deviation index with the image similarity above and comparing it with the deviation threshold, excluding the influence of natural changes, it can be judged whether termites appear. The temperature deviation index The size is proportional to the difference between the real-time temperature and the pre-collected temperature;

[0090] The comprehensive judgment module combines the image similarity and temperature deviation index at the same time to generate the deviation impact index at the corresponding time, compares the deviation impact index with the deviation threshold, and generates a comprehensive judgment index to determine whether termite activity occurs;

[0091] In this embodiment, the formula for generating the deviation impact index is:

[0092]

[0093] Among them, ω represents the deviation influence index, P0 represents the image similarity, represents the temperature deviation index, k1 represents the influence weight of image similarity on the deviation influence index, and (1-k1) represents the influence weight of temperature deviation index on the deviation influence index;

[0094] The deviation impact index comprehensively reflects the judgment process of whether termites appear through image similarity and temperature deviation index, which is expressed as the sum of the products of image similarity and temperature deviation index and their weights. In the actual monitoring process, the judgment of image similarity is the main one, and the judgment of temperature deviation is the auxiliary one. Therefore, the weights corresponding to image similarity and temperature deviation index are 0.7 and 0.3 respectively. Taking the image without termites as the starting image, the higher the image similarity, the closer the latter image is to the former image in two adjacent images, and the lower the possibility of termites appearing. The deviation impact index reflects the difference in the acquisition time. The greater the difference, the greater the deviation impact index, and the greater the probability of termites appearing. Therefore, the image similarity is inversely proportional to the deviation impact index. The higher the temperature deviation index, the greater the deviation between the real-time temperature collected and the temperature without termites appearing at the same time. This change may be caused by termite activity. The larger the temperature deviation index, the greater the possibility of termites appearing. Therefore, the temperature deviation index is proportional to the deviation impact index.

[0095] The formula used to generate the deviation threshold is:

[0096]

[0097] Where C represents the deviation threshold, k2 represents the influence weight of image similarity on the deviation threshold, (1-k2) represents the influence weight of temperature on the deviation threshold, and the value of k2 is the same as the value of k1 in generating the deviation influence index. 0min Indicates the minimum image similarity detected when no termites appear, T 0max It indicates the normalized index of the maximum temperature monitored when no termites are present. represents an average temperature normalized index generated from the first temperature image;

[0098] The deviation threshold indicates the maximum value of the deviation impact index under the influence of image similarity and temperature deviation index when no termites appear, reflecting the changes in image similarity and temperature deviation in the natural process. When no termites appear, the factors that cause the change in image similarity include: day and night alternation, other objects passing through the camera shooting area, and when the image similarity is lower than P 0min When , it means that the image similarity change at this time is caused by termites, and the deviation threshold is inversely proportional to the image similarity; when no termites appear, the highest temperature and the average temperature in the first temperature image are substituted into the calculation formula of the temperature deviation index to generate the maximum temperature deviation index not affected by termites, and the lowest image similarity and the maximum temperature deviation index are substituted into the calculation formula of the deviation influence index to generate the deviation threshold representing the maximum natural deviation situation;

[0099] The formula used to generate the comprehensive judgment index is:

[0100]

[0101] Among them, ε represents the comprehensive judgment index, ω represents the deviation impact index, and C represents the deviation threshold;

[0102] The purpose of the comprehensive judgment index is to reflect the relationship between the deviation impact index and the deviation threshold. Whether termites appear is determined by judging whether the deviation impact index exceeds the deviation threshold. The comprehensive judgment index is proportional to the deviation impact index and inversely proportional to the deviation threshold.

[0103] When ε>1, it means that the deviation impact index exceeds the deviation threshold, and termite activity is detected, and an early warning is issued;

[0104] When ε≤1, it means that the deviation impact index at this time is within the deviation threshold, and it is judged that no termite activity occurs.

[0105] See also Figure 2 The present invention also provides a termite monitoring and early warning method, which is implemented by the above-mentioned termite monitoring and early warning system, and the specific steps include:

[0106] Step 1: Collect the original image of the target area of ​​termite activity to be monitored once every ten minutes, scale the original image resolution to 17×16, perform grayscale processing to generate the first recognition image, and sort all the first recognition images according to the time sequence of collection;

[0107] Step 2: In the first recognition image, compare the grayscale value of each pixel with the next pixel in the same row, and generate a binary sequence of one row after logical judgment. Generate a binary sequence for each row, and connect all binary sequences in order of row numbers to generate a 256-bit binary sequence representing the image hash value;

[0108] Step 3: Compare the hash value of each image with the previous image taken at the same time to generate the Hamming distance between adjacent images, normalize all Hamming distances to generate image similarity;

[0109] Step 4: In the target area of ​​termite activity to be monitored, install a sufficient number of thermal imaging sensors with a temperature resolution of less than 0.1°C in a grid pattern, with the spacing between adjacent sensors being 70% to 90% of the sensor monitoring range;

[0110] Step 5: The highest and lowest temperatures of the target area in a day when no termites appear are collected in advance by the temperature monitoring module, and data is collected every ten minutes to generate a temperature normalization index corresponding to the time, and a first temperature image is generated with time as the horizontal coordinate and the temperature normalization index as the vertical coordinate;

[0111] Step 6: The real-time temperature of the target area is collected once every ten minutes by the temperature monitoring module to generate a real-time temperature normalization index, the real-time temperature normalization index is substituted into the first temperature image, and the temperature deviation index is generated according to the difference between the real-time temperature normalization index corresponding to the same time and the vertical coordinate in the first temperature image;

[0112] Step 7: Combine the image similarity and temperature deviation index at the same time to generate the deviation impact index of the corresponding time, compare the deviation impact index and the deviation threshold, and generate a comprehensive judgment index to determine whether termite activity occurs.

[0113] 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.

[0114] 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.

[0115] 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.

[0116] 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 termite monitoring and early warning system, characterized in that: Specifically include: The image acquisition module collects the original image of the target area of ​​termite activity to be monitored every ten minutes, scales the original image resolution to 17×16, performs grayscale processing, and generates a first recognition image, and sorts all the first recognition images in the order of acquisition time; The image preprocessing module compares the grayscale value of each pixel with the next pixel in the same row in the first recognition image, generates a binary sequence of one row after logical judgment, generates a binary sequence for each row, and connects all the binary sequences in the order of row numbers to generate a 256-bit binary sequence representing the image hash value; The image analysis module compares the hash value of each image with the previous image taken at the same time to generate the Hamming distance between adjacent images, and normalizes all the Hamming distances to generate image similarity; Temperature monitoring module: in the target area of ​​termite activity to be monitored, the spacing between adjacent sensors shall be 70% to 90% of the sensor monitoring range, and a sufficient number of thermal imaging sensors with a temperature resolution of less than 0.1°C shall be installed in a grid pattern to cover the entire target area; The temperature pre-collection module collects the highest temperature and the lowest temperature of the target area in a day when no termites appear in advance through the temperature monitoring module, collects data once every ten minutes, generates a temperature normalization index corresponding to the time, and generates a first temperature image with time as the horizontal coordinate and the temperature normalization index as the vertical coordinate; The temperature analysis module collects the real-time temperature of the target area once every ten minutes through the temperature monitoring module, generates a real-time temperature normalization index, substitutes the real-time temperature normalization index into the first temperature image, and generates a temperature deviation index according to the difference between the real-time temperature normalization index corresponding to the same time and the vertical coordinate in the first temperature image; The comprehensive judgment module combines the image similarity and temperature deviation index at the same time to generate the deviation impact index at the corresponding time, compares the deviation impact index with the deviation threshold, and generates a comprehensive judgment index to determine whether termite activity occurs; The principle behind generating the hash value of an image is: In the first recognition image generated by grayscale processing, the value of each pixel only represents the brightness level, and the formula for calculating the hash value is: Among them, h ji represents the hash value corresponding to the i-th pixel in the j-th row of the first recognition image, p i Represents the gray value of the i-th pixel, p i+1 Represents the gray value of the (i+1)th pixel, performs logical judgment on all points in each row of the first recognition image to generate a binary sequence, and connects all binary sequences in the order of row numbers to generate a binary sequence representing the hash value of the entire image; The principle for generating the Hamming distance between adjacent images is: For two images with the same hash value length, compare each digit of the hash value from left to right, set a counter, and when the two hash values ​​have different digits in a certain digit, the counter counts up by 1. After all the digits of the hash value are compared, the value of the counter is the Hamming distance; The principle on which image similarity is generated is: Among them, P0 represents the similarity between an image collected at a certain moment and an image collected at an earlier adjacent moment, P represents the Hamming distance between the images collected at the current moment, and P max represents the maximum value of the Hamming distance in the historical data, P min Represents the minimum value of the Hamming distance in the historical data; The formula for generating the temperature normalized index corresponding to time is based on: Where T0 represents the temperature normalized index, T max Indicates the highest temperature monitored in the target area in one day, T min Indicates the lowest temperature monitored in the target area in one day. It represents the average temperature collected by all thermal imaging sensors in the target area at a certain time of the day; The formula used to generate the Temperature Deviation Index is: in, represents the temperature deviation index, T represents the real-time temperature normalization index collected at a certain time in a day, and T0 represents the temperature normalization index corresponding to the same time in the first temperature image; The formula used to generate the deviation impact index is: Among them, ω represents the deviation influence index, P0 represents the image similarity, represents the temperature deviation index, k1 represents the influence weight of image similarity on the deviation influence index, and (1-k1) represents the influence weight of temperature deviation index on the deviation influence index; The formula used to generate the deviation threshold is: Where C represents the deviation threshold, k2 represents the influence weight of image similarity on the deviation threshold, (1-k2) represents the influence weight of temperature on the deviation threshold, and P 0min Indicates the minimum image similarity detected when no termites appear, T 0max It indicates the normalized index of the maximum temperature monitored when no termites are present. represents an average temperature normalized index generated from the first temperature image; The formula used to generate the comprehensive judgment index is: Among them, ε represents the comprehensive judgment index, ω represents the deviation impact index, and C represents the deviation threshold; When ε>1, it means that the deviation impact index exceeds the deviation threshold, and termite activity is detected, and an early warning is issued; When ε≤1, it means that the deviation impact index at this time is within the deviation threshold, and it is judged that no termite activity occurs.

2. A termite monitoring and early warning method, characterized in that: The method is performed by the termite monitoring and early warning system according to claim 1, and the specific steps include: Step 1: Collect the original image of the target area of ​​termite activity to be monitored once every ten minutes, scale the original image resolution to 17×16, perform grayscale processing to generate the first recognition image, and sort all the first recognition images according to the time sequence of collection; Step 2: In the first recognition image, compare the grayscale value of each pixel with the next pixel in the same row, and generate a binary sequence of one row after logical judgment. Generate a binary sequence for each row, and connect all binary sequences in order of row numbers to generate a 256-bit binary sequence representing the image hash value; Step 3: Compare the hash value of each image with the previous image taken at the same time to generate the Hamming distance between adjacent images, normalize all Hamming distances to generate image similarity; Step 4: In the target area of ​​termite activity to be monitored, install a sufficient number of thermal imaging sensors with a temperature resolution of less than 0.1°C in a grid pattern, with the spacing between adjacent sensors being 70% to 90% of the sensor monitoring range; Step 5: The highest and lowest temperatures of the target area in a day when no termites appear are collected in advance by the temperature monitoring module, and data is collected every ten minutes to generate a temperature normalization index corresponding to the time, and a first temperature image is generated with time as the horizontal coordinate and the temperature normalization index as the vertical coordinate; Step 6: The real-time temperature of the target area is collected once every ten minutes by the temperature monitoring module to generate a real-time temperature normalization index, the real-time temperature normalization index is substituted into the first temperature image, and the temperature deviation index is generated according to the difference between the real-time temperature normalization index corresponding to the same time and the vertical coordinate in the first temperature image; Step 7: Combine the image similarity and temperature deviation index at the same time to generate the deviation impact index of the corresponding time, compare the deviation impact index and the deviation threshold, and generate a comprehensive judgment index to determine whether termite activity occurs.