RFID-based liquid leakage detection method and detection system
The signal data of the liquid leakage area is obtained through RFID technology, feature vectors are extracted and detection models are constructed, which solves the problem that the type, method and volume of liquid leakage cannot be accurately identified in the prior art, and achieves high-precision and real-time liquid leakage detection.
Patent Information
- Application Number
- CN202510516624.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-23
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2045-04-23
AI Technical Summary
The prior art cannot accurately identify and detect liquid leakage types, leakage methods and leakage volumes.
An RFID reader is used to send radio frequency signals to the RFID anti-liquid tag attached to the target object, obtain backscattered signal data, extract feature vectors of signal strength and phase, and define category tags through the database to build a liquid leakage detection model to detect leakage situations in real time.
It realizes dynamic monitoring of liquid leakage with high precision and identifies leakage types, methods and volumes, and has the advantages of strong real-time and wide application range.
Smart Images

Figure CN120121224A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of radio frequency identification applications, and in particular, to a method and a detection system for liquid leakage detection based on RFID. Background Art
[0002] At present, some important equipment and facilities often need to be protected against liquid leakage, such as hospital medical equipment, data center equipment, liquid transmission pipelines, etc. Once a liquid leakage accident occurs, it will cause certain harm. Therefore, it is necessary to detect liquid leakage in important facilities to avoid the situation from deteriorating. With the continuous development of the Internet of Things technology, the application of radio frequency identification (RFID) technology in liquid environments has become increasingly popular.
[0003] In the prior art, the invention patent with the publication number of CN116933167A discloses a method for liquid perception in a mobile scenario based on RFID, and proposes to realize liquid perception through four parts: data acquisition and preprocessing, phase and signal strength model construction, signal feature extraction, and liquid type identification, based on the coupling effect of materials and tags and the relationship between phase and RSSI. However, this method only judges the liquid type and does not involve the liquid leakage detection part; the invention patent with the publication number of CN118032239A discloses a method for non-destructive detection of liquid leakage based on RFID, and proposes to densely arrange the liquid containers on the conveyor belt in a uniform grid form of M×N and pass them through the detection box to judge in real time whether there is liquid leakage in the liquid containers. However, this method does not involve the key elements in liquid leakage detection, such as the identification ability of leakage type, leakage mode, and leakage volume; the utility model patent with the publication number of CN217827214U discloses a hazardous chemical management cabinet based on RFID, biometric identification, and status monitoring, and proposes to realize the efficient management and real-time monitoring of hazardous chemicals by integrating RFID technology, biometric identification technology, and various status monitoring sensors. However, this technology is mainly applicable to the safety management of hazardous chemicals in laboratory scenarios, lacks applicability in multiple scenarios, and does not conduct a detailed analysis of liquid leakage.
[0004] Therefore, it is necessary to accurately identify and detect the liquid leakage type, leakage mode, and leakage volume for liquid leakage detection. Summary of the Invention
[0005] The technical problem to be solved by the embodiments of the present invention is to provide a method and a detection system for liquid leakage detection based on RFID to solve the problem that the liquid leakage type, leakage mode, and leakage volume cannot be accurately identified and detected in the prior art.
[0006] The present invention discloses a liquid leakage detection method based on RFID, including: Using an RFID reader / writer to send a radio frequency signal to an RFID liquid-resistant tag attached to a target object, and obtaining signal data backscattered by the RFID liquid-resistant tag after being activated by the radio frequency signal; Selecting a part of the obtained signal data as sample data, extracting feature vectors including signal strength and phase from each of the sample data, and storing the extracted feature vectors in a database; Defining a category label including leakage mode, leakage liquid type, and leakage volume for each feature vector in the database; Constructing a liquid leakage detection model based on the feature vectors with category labels defined in the database, inputting the signal data obtained in real time into the liquid leakage detection model, and outputting a liquid leakage detection result including the leakage situation, leakage location, leakage mode, leakage liquid type, and leakage volume of the target object.
[0007] Optionally, the step of using an RFID reader / writer to send a radio frequency signal to an RFID liquid-resistant tag attached to a target object and obtaining signal data backscattered by the RFID liquid-resistant tag after being activated by the radio frequency signal includes: Based on RFID liquid-resistant tags pre-arranged at different positions on the target object, the RFID reader / writer sends a radio frequency signal to the RFID liquid-resistant tag at a set frequency and constant power to activate the RFID liquid-resistant tag; When the RFID liquid-resistant tag is activated by radio frequency, the RFID reader / writer collects in real time the signal data backscattered by each RFID liquid-resistant tag.
[0008] Optionally, before storing the extracted feature vectors in the database, a method for preprocessing the feature vectors is further included, including: According to the feature vectors including signal strength and phase extracted from the sample data, standardizing the scale of the feature vectors to obtain standardized feature data, and the function expression of standardization is:
[0009] wherein, is the standard value of the feature vector, is the value of the feature vector, is the mean value of the feature vector, is the standard deviation of the feature vector; Filling the missing values of the standardized feature data with the average value to obtain preprocessed feature data, and the function expression of average value filling is:
[0010] In the formula, is the average value of non-missing values, is the non-missing value of the i-th feature data, and n is the number of non-missing values; Judge whether there are outliers in the preprocessed feature data according to the preset conditions. The functional expression of the preset conditions is:
[0011] In the formula, k is the conditional coefficient; If there are outliers in the preprocessed feature data, the feature data with outliers is preprocessed again.
[0012] Optionally, constructing a liquid leakage detection model according to the feature vectors defined with class labels in the database includes: Establish a training set according to the preprocessed feature data. The functional expression of the training set is:
[0013] In the formula, is the signal strength and phase after preprocessing of the n-th sample data, is the class label defining the leakage mode, leakage liquid type and leakage volume for the n-th sample data; Select the KNN algorithm to establish a basic classification model, and input the training set into the basic classification model for training to obtain the liquid leakage detection model; Select a sample data without a defined class label from the database, and input the sample data without a defined class label into the liquid leakage detection model for testing to update the model parameters of the liquid leakage detection model.
[0014] Optionally, after inputting the signal data obtained in real time into the liquid leakage detection model, a method for optimizing the liquid leakage detection model is further included, including: Input the signal data obtained in real time into the liquid leakage detection model; If the liquid leakage detection model outputs an anomaly, extract the real-time feature vector containing the signal strength and phase from the signal data collected in real time; Store the real-time feature vector in the database, and define a class label for the real-time feature vector to update the database; Input the real-time feature vector defined with a class label into the liquid leakage detection model, update the model parameters of the liquid leakage detection model, and obtain the optimized liquid leakage detection model.
[0015] Optionally, the liquid leakage detection method further includes a method for leakage warning after the liquid leakage detection model outputs a liquid leakage detection result, including: Generating a liquid leakage detection report based on the liquid leakage detection result output by the liquid leakage detection model; In response to an abnormal leakage being determined in the liquid leakage detection report, triggering a warning.
[0016] The present invention also discloses a detection system that employs the above-mentioned RFID-based liquid leakage detection method, characterized in that the detection system includes: A radio frequency signal processing module, configured to send a radio frequency signal to an RFID liquid-resistant tag attached to a target object using an RFID reader and obtain signal data backscattered by the RFID liquid-resistant tag after being activated by the radio frequency signal; A feature extraction module, configured to select a part of the obtained signal data as sample data, extract feature vectors including signal strength and phase from each of the sample data, and store the extracted feature vectors in a database; A tag definition module, configured to define class labels including leakage mode, leakage liquid type, and leakage volume for each feature vector in the database; A model detection module, configured to construct a liquid leakage detection model based on the feature vectors defined with class labels in the database, input the real-time obtained signal data into the liquid leakage detection model, and output a liquid leakage detection result including the leakage situation, leakage location, leakage mode, leakage liquid type, and leakage volume of the target object.
[0017] Optionally, the radio frequency signal processing module is connected to a reading and writing device, the reading and writing device includes a reading and writing unit and a detection unit, the reading and writing unit includes an RFID reader and an antenna electrically connected to the RFID reader, the detection unit includes a liquid absorption medium and two RFID liquid-resistant tags, the liquid absorption medium includes a first medium body and a second medium body integrally formed side by side, and the shapes of the first medium body and the second medium body are adapted to fit the surface to be detected of the target object; A partition layer is provided between the first medium body and the second medium body, and one of the RFID liquid-resistant tags is disposed inside the first medium body, and the other RFID liquid-resistant tag is disposed on the outer side wall of the second medium body.
[0018] The present invention also discloses a computer-readable storage medium, on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps of the above-mentioned RFID-based liquid leakage detection method are implemented.
[0019] The present invention also discloses a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned RFID-based liquid leakage detection method when executing the computer program.
[0020] Compared with the prior art, the beneficial effects of the RFID-based liquid leakage detection method and detection system provided by the embodiments of the present invention are as follows: Based on the RFID technology, a signal data set backscattered by an RFID liquid-resistant tag attached to a potential leakage area of a target object after being activated by a radio frequency signal is obtained, and a feature vector including signal strength and phase is extracted from the obtained signal data. By defining a class label including leakage mode, leakage liquid type, and leakage volume for each feature vector, a liquid leakage detection model is trained and constructed. Thus, the signal data set obtained in real time is detected by the liquid leakage detection model to identify the leakage situation, leakage location, leakage mode, leakage liquid type, and leakage volume of the target object, so as to realize high-precision dynamic monitoring of the liquid leakage situation of the target object, having the advantages of strong real-time performance and wide application range. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The technical solutions of the present invention will be further described in detail below in conjunction with the drawings and embodiments. In the drawings: Figure 1 is a schematic block diagram of the steps of the RFID-based liquid leakage detection method provided by the embodiment of the present invention; Figure 2 is a schematic diagram of the principle of the radio frequency signal processing module provided by the embodiment of the present invention; Figure 3 is a schematic diagram of the structure of the liquid absorption medium provided by the embodiment of the present invention; Figure 4 is a broken line schematic diagram of the change of signal strength values at different water leakage volumes provided by the embodiment of the present invention; Figure 5 is a broken line schematic diagram of the change of signal strength values at different oil leakage volumes provided by the embodiment of the present invention; Figure 6 is a broken line schematic diagram of the change of signal strength values at different milk leakage volumes provided by the embodiment of the present invention.
[0022] Each reference numeral in the drawings is as follows: 1, RFID reader / writer; 2, antenna; 3, liquid absorption medium; 31, first medium body; 32, second medium body; 33, isolation layer; 4, RFID liquid-resistant tag; 5, host computer software. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0023] It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. Now, in conjunction with the accompanying drawings, the preferred embodiments of the present invention will be described in detail.
[0024] The present invention discloses a liquid leakage detection method based on RFID. As Figure 1 shown, it includes: S1. Use an RFID reader 1 to send a radio frequency signal to an RFID liquid-resistant tag 4 attached to a target object, and obtain the signal data backscattered by the RFID liquid-resistant tag 4 after being activated by the radio frequency signal; S2. Select a part of the obtained signal data as sample data, extract feature vectors including signal strength and phase from each sample data, and store the extracted feature vectors in a database; S3. Define a category label including leakage mode, leakage liquid type, and leakage volume for each feature vector in the database; S4. Construct a liquid leakage detection model according to the feature vectors with category labels defined in the database, input the signal data obtained in real time into the liquid leakage detection model, and output a liquid leakage detection result including the leakage situation, leakage location, leakage mode, leakage liquid type, and leakage volume of the target object.
[0025] Through the implementation of the above embodiments of the liquid leakage detection method, based on RFID technology, an RFID reader 1 is used to obtain the signal data backscattered by an RFID liquid-resistant tag 4 attached to the potential leakage area of a target object, and a data set is formed. Feature vectors including signal strength and phase are extracted from the obtained signal data. Among them, the obtained signal data set usually includes feature information such as time stamps, signal strength, phase, and Doppler frequency. The signal strength is used to quickly judge whether leakage occurs, and the phase is used to accurately locate the leakage position and analyze the leakage characteristics. By extracting the signal strength and phase, the feature vectors including signal strength and phase are jointly analyzed to realize the all-round monitoring of the liquid leakage situation. Then, by defining a category label including leakage mode, leakage liquid type, and leakage volume for each feature vector, the feature vectors with category labels are used to train and construct a liquid leakage detection model, so that the liquid leakage detection model can detect the signal data set obtained in real time to accurately identify the leakage situation, leakage location, leakage mode, leakage liquid type, and leakage volume of the target object, thereby realizing the high-precision dynamic monitoring of the liquid leakage situation of the target object, having the advantages of strong real-time performance and wide application range, and can be widely applied in fields such as chemical engineering, environmental protection, and industrial safety. Among them, the leakage mode preferably includes internal leakage and external immersion of the target object; the leakage liquid type is applicable to any non-corrosive liquid; the leakage volume can be classified as a large amount, a small amount, or a normal range according to the actual situation.
[0026] Further, the RFID reader 1 sends a radio frequency signal to the RFID liquid-resistant tag 4 attached to the target object, and acquires the signal data backscattered by the RFID liquid-resistant tag 4 after being activated by the radio frequency signal, including: Based on the RFID liquid-resistant tags 4 pre-arranged at different positions on the target object, the RFID reader 1 sends a radio frequency signal to the RFID liquid-resistant tag 4 at a set frequency and constant power to activate the RFID liquid-resistant tag 4; When the RFID liquid-resistant tag 4 is activated by radio frequency, the RFID reader 1 collects in real time the signal data sets backscattered by each RFID liquid-resistant tag 4.
[0027] Through the implementation of the above embodiments of the liquid leakage detection method, by sending radio frequency signals to the RFID liquid-resistant tags 4 attached to different positions in the potential leakage area of the target object, it is used to activate the RFID liquid-resistant tags 4 and provide electromagnetic energy for them, enabling the RFID liquid-resistant tags 4 to reflect signals, so that the accurate liquid leakage situation can be monitored and obtained according to multiple positions in the potential leakage area of the target object. Among them, sending radio frequency signals at a set frequency helps the RFID liquid-resistant tags 4 to respond within a specific frequency range, thereby reducing interference and improving positioning accuracy. Since the radio frequency signals are sent in real time and the response of the RFID liquid-resistant tags 4 is also in real time, the liquid leakage of the target object can be monitored in real time, so as to respond quickly. And sending radio frequency signals at a constant power can ensure that the signals are evenly spread within a predetermined coverage range, reduce signal attenuation, and improve the reliability of detection.
[0028] Further, before the extracted feature vectors are stored in the database, there is also a method for preprocessing the feature vectors, including: According to the feature vectors containing signal strength and phase extracted from the sample data, the scale of the feature vectors is standardized and unified to obtain standardized feature data. The function expression of standardization is:
[0029] In the formula, is the standard value of the feature vector, representing the multiple of the standard deviation by which the value of the feature vector deviates from the mean, is the value of the feature vector, is the mean of the feature vector, is the standard deviation of the feature vector; The missing values of the standardized feature data are filled with the average value to obtain the preprocessed feature data. The function expression of average value filling is:
[0030] In the formula, is the average value of non-missing values, is the non-missing value of the i-th feature data, and n is the number of non-missing values; Judge whether there are outliers in the preprocessed feature data according to preset conditions. The function expression of the preset conditions is:
[0031] In the formula, k is the condition coefficient, which is used to determine whether the feature data is considered an outlier, that is, to define the distance between the feature data and the mean value, in units of standard deviation, and the preferred value is 2 or 3; If there are outliers in the preprocessed feature data, the feature data with outliers is preprocessed again.
[0032] Through the implementation of the above embodiments of the liquid leakage detection method, the scales of signal strength and phase can be unified, which can ensure that the importance of different feature vectors is fairly treated in the subsequent model training process, that is, it can prevent some feature vectors from having a disproportionate impact on model training due to their large magnitudes. Secondly, using the average value to fill the missing values in the feature data can reduce the loss of information in the feature data set, which helps to maintain the integrity and continuity of the feature data set. When there are outliers in the feature data set, by identifying and removing them, the detection accuracy of model training can be improved. Thus, the signal strength, phase, etc. are stored in the database in a structured form through data preprocessing, providing high-quality data input for the subsequent liquid leakage detection model. Preferably, cleaning, denoising and normalization processing of the feature vectors can also be considered.
[0033] Furthermore, a liquid leakage detection model is constructed according to the feature vectors with category labels defined in the database, including: A training set is established according to the preprocessed feature data. The function expression of the training set is:
[0034] In the formula, is the signal strength and phase after preprocessing of the n-th sample data, is the category label including the leakage mode, the type of leakage liquid and the leakage volume defined for the n-th sample data; Select the KNN algorithm to establish a basic classification model, and input the training set into the basic classification model for training to obtain a liquid leakage detection model; Select a sample data without a defined category label from the database, and input the sample data without a defined category label into the liquid leakage detection model for testing to update the model parameters of the liquid leakage detection model.
[0035] Through the implementation of the above embodiments of the liquid leakage detection method, the K-Nearest Neighbors (KNN) algorithm determines a new data point belonging to a certain category by measuring the distances between different feature values. That is, for sample data with undefined class labels, calculate its Euclidean distance from all sample data in the training set, and sort all the calculated distances in ascending order. Select K nearest neighbor points, that is, select the K samples with the smallest distances from the sorted distances, and set these samples as the K nearest neighbor points of the sample data with undefined class labels. Based on the selected K nearest neighbor points for classification decision-making, the detection category of the sample with undefined class labels can be selected by counting the occurrence times of each class label among the K nearest neighbors and choosing the class label with the most occurrence times.
[0036] Further, after inputting the signal data obtained in real time into the liquid leakage detection model, there is also a method for optimizing the liquid leakage detection model, including: Input the signal data obtained in real time into the liquid leakage detection model; If the liquid leakage detection model outputs an anomaly, extract the real-time feature vector containing signal intensity and phase from the signal data set collected in real time; Store the real-time feature vector in the database and define a class label for the real-time feature vector to update the database; Input the real-time feature vector with a defined class label into the liquid leakage detection model, update the model parameters of the liquid leakage detection model, and obtain an optimized liquid leakage detection model.
[0037] Through the implementation of the above embodiments of the liquid leakage detection method, by obtaining the signal data backscattered by the target object in real time, the real-time performance and response speed of liquid leakage detection can be improved. When the detection model outputs an anomaly, the liquid leakage detection model can automatically extract the real-time feature vector. By storing the real-time feature vector in the database and updating the class label, the system can continuously accumulate data and provide support for the continuous optimization of the model. By inputting the real-time feature vector with a defined class label into the model for training, the model parameters are updated, thereby improving the accuracy and reliability of the liquid leakage detection model. Furthermore, by real-time updating and optimizing the model, false alarms and missed detections can be reduced, and the detection accuracy and response speed of the liquid leakage detection model can be improved to adapt to changes in different environments and leakage conditions.
[0038] Further, the liquid leakage detection method also includes a method for leakage warning after the liquid leakage detection model outputs the liquid leakage detection result, including: Generate a liquid leakage detection report according to the liquid leakage detection result output by the liquid leakage detection model; In response to the determination of abnormal leakage in the liquid leakage detection report, a warning is triggered.
[0039] Through the implementation of the above embodiments of the liquid leakage detection method, the detection report can be used to record in detail the specific information of the liquid leakage, including key data such as the occurrence situation, location, leakage mode, liquid type, and leakage volume of the leakage. When abnormal leakage is detected, the system can trigger the warning mechanism in various ways, such as audible and visual warnings, visual alarms, or information emails and other warning notifications.
[0040] The present invention also discloses a detection system that adopts the above RFID-based liquid leakage detection method, characterized in that the detection system includes: A radio frequency signal processing module for sending a radio frequency signal to the RFID liquid-resistant tag 4 attached to the target object by using the RFID reader 1 and acquiring the signal data backscattered by the RFID liquid-resistant tag 4 after being activated by the radio frequency signal; A feature extraction module for selecting part of the acquired signal data as sample data, extracting feature vectors including signal strength and phase from each sample data, and storing the extracted feature vectors in the database; A tag definition module for defining category tags including leakage mode, leakage liquid type, and leakage volume for each feature vector in the database; A model detection module for constructing a liquid leakage detection model based on the feature vectors defined with category tags in the database, inputting the real-time acquired signal data into the liquid leakage detection model, and outputting a liquid leakage detection result including the leakage situation, leakage location, leakage mode, leakage liquid type, and leakage volume of the target object.
[0041] Furthermore, as shown in combination with Figure 2 and Figure 3 The radio frequency signal processing module is connected to a reading and writing device, and the reading and writing device includes a reading and writing unit and a detection unit. The reading and writing unit includes an RFID reader 1 and an antenna 2 electrically connected to the RFID reader 1. The detection unit includes a liquid absorption medium 3 and two RFID liquid-resistant tags 4. The liquid absorption medium 3 includes a first medium body 31 and a second medium body 32 integrally formed side by side, and the shapes of the first medium body 31 and the second medium body 32 are fitted to the surface to be detected of the target object; A partition layer 33 is provided between the first medium body 31 and the second medium body 32. One of the RFID liquid-resistant tags 4 is arranged inside the first medium body 31, and the other RFID liquid-resistant tag 4 is arranged on the outer side wall of the second medium body 32.
[0042] Through the implementation of the above detection system embodiments, its hardware part is composed of a radio frequency signal processing module, and software parts such as a feature extraction module, a tag definition module, and a model detection module are processed by a computing server for data and are displayed in real time through the host computer software 5. The radio frequency signal processing module is composed of a liquid absorption medium 3 and two RFID liquid-resistant tags 4. One of the RFID liquid-resistant tags 4 is arranged inside the first medium body 31, and the other RFID liquid-resistant tag 4 is arranged on the outer side wall of the second medium body 32 for obtaining multi-dimensional signal features. In addition, a partition layer 33 is added to the medium body between the two RFID liquid-resistant tags 4, which can be used to block the diffusion of liquid infiltration from one side to the other side, avoid the liquid affecting the signal judgment of the other RFID liquid-resistant tag 4 on the other side, ensure that the two RFID liquid-resistant tags 4 independently reflect the leakage state, and improve the detection accuracy and the reliability of judgment. Preferably, at least one RFID liquid-resistant tag 4 is respectively arranged on the first medium body 31 and the second medium body 32.
[0043] Preferably, the liquid absorption medium 3 is selected as a medium that matches the material and specifications of the target object, and is used to closely adhere to the areas where leakage may occur on the target object, such as joints, valve connections, or pipe joints. The liquid absorption medium 3 needs to ensure good fit with the container surface, and can be fixed by magnetic attraction, adhesive, or mechanical fixture. At the same time, the antenna direction of the RFID liquid-resistant tag 4 is adjusted to optimize the signal reflection effect. During the placement of the liquid absorption medium 3, the signal strength and reflection effect need to be tested to ensure the normal function of the radio frequency signal processing module and adapt to the liquid characteristics and environmental conditions.
[0044] According to the above RFID-based liquid leakage detection method and detection system, the present invention is further illustrated by specific embodiments: In a laboratory scenario, the liquid leakage state of a beaker is selected for detection. The radio frequency signal processing module is composed of double-layer gauze and two RFID liquid-resistant tags. One RFID liquid-resistant tag is embedded on the left side inside the gauze, and the other RFID liquid-resistant tag is attached to the outside on the right side. A partition layer is arranged between the two RFID liquid-resistant tags to prevent the liquid from infiltrating each other in their respective areas and thus affecting the accuracy of signal feature acquisition and judgment. During the detection process, an RFID reader and a 9dBi gain antenna are selected, and at a frequency of 920.625 MHz, a radio frequency signal is sent with a transmission power of 27 dBm to read the reflection signals of the two RFID liquid-resistant tags. The RFID reader is connected to the host computer software through a serial port, and information such as the collected signal strength and phase is transmitted to the host computer software in real time for data analysis and processing.
[0045] Among them, the preprocessed feature data is used to train the liquid leakage detection model, and the data sources include the data collected when water, oil, and milk are contained in beaker containers. The training set of the liquid leakage detection model is shown in Table 1, the training part data set table: Table 1 Training Part Data Set Table
[0046] Among them, the leakage methods are divided into internal leakage and external infiltration. Each method is divided into small amount, large amount, and no leakage according to the different leakage volumes.
[0047] The line chart of the change in the signal strength indicator (Received Signal Strength Indicator, RSSI) under different liquid leakage volumes is as Figures 4 - 6 shown. It can be seen from the figure that in the scenario of liquid leakage detection, there are three types of liquids: water, milk, and oil. Each liquid has three leakage methods: no leakage, internal leakage, and external infiltration. Among them, no leakage does not involve the judgment of leakage volume and classification; while internal leakage and external infiltration are further divided into three situations: small amount, large amount, and no leakage. Considering all possible situations, there are a total of 21 groups of liquid leakage states. The different leakage states are used as the output results of the liquid leakage detection model. When the RFID reader 1 reads the signal strength of the radio frequency signal processing module as -45 dBm, the output result of the liquid leakage detection model is: the liquid type is oil, belonging to external large amount infiltration; when the signal strength is -50 dBm, the output result of the liquid leakage detection model is: the liquid type is milk, belonging to internal small amount leakage.
[0048] The present invention also discloses a computer-readable storage medium, on which a computer program is stored. The computer program, when executed by a processor, implements the steps of the above-mentioned RFID-based liquid leakage detection method.
[0049] The present invention also discloses a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. The computer program, when executed by the processor, implements the steps of the above-mentioned RFID-based liquid leakage detection method.
[0050] The present invention is described with reference to the flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to specific embodiments. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processors of general-purpose computers, special-purpose computers, embedded processors, or other programmable data processing devices to generate a machine, such that the instructions executed by the processors of the computer or other programmable data processing devices produce means for implementing the functions specified in the flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or means for implementing the functions specified in multiple blocks.
[0051] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory produce a manufactured article including instruction means for implementing the functions specified in the flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or means for implementing the functions specified in multiple blocks.
[0052] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operational steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in the flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or means for implementing the functions specified in multiple blocks.
[0053] It should be understood that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Those skilled in the art can modify the technical solutions recorded in the above embodiments or perform equivalent replacements for some of the technical features; and all such modifications and replacements should fall within the protection scope of the present invention.
Claims
1. A liquid leakage detection method based on RFID, characterized in that: The RFID-based liquid leakage detection method comprises: An RFID reader is used to send a radio frequency signal to an RFID anti-liquid tag attached to a target object, and obtain signal data backscattered by the RFID anti-liquid tag after being activated by the radio frequency signal; Selecting a portion of the acquired signal data as sample data, extracting a feature vector including signal strength and phase from each of the sample data, and storing the extracted feature vector in a database; defining a category label including leakage mode, leakage liquid type and leakage volume for each feature vector in the database; A liquid leakage detection model is constructed according to the feature vector with category labels defined in the database, the signal data acquired in real time is input into the liquid leakage detection model, and a liquid leakage detection result including the leakage situation of the target object, the leakage location, the leakage mode, the leakage liquid type and the leakage volume is output.
2. The RFID-based liquid leakage detection method according to claim 1, characterized in that: The method of using an RFID reader to send a radio frequency signal to an RFID anti-liquid tag attached to a target object and obtaining signal data backscattered by the RFID anti-liquid tag after being activated by the radio frequency signal includes: Based on the RFID anti-liquid tags pre-arranged at different positions on the target object, the RFID reader sends a radio frequency signal to the RFID anti-liquid tag at a set frequency and constant power to activate the RFID anti-liquid tag; When the RFID anti-liquid tags are activated by radio frequency, the RFID reader-writer collects the signal data backscattered by each RFID anti-liquid tag in real time.
3. The RFID-based liquid leakage detection method according to claim 1, characterized in that: Before the extracted feature vector is stored in the database, a method for preprocessing the feature vector is also included, including: According to extracting the feature vector including the signal strength and the phase from the sample data, the scale of the feature vector is standardized to obtain standardized feature data, and the standardized function expression is: In the formula, is the standard value of the eigenvector, is the value of the eigenvector, is the mean of the eigenvectors, is the standard deviation of the eigenvector; The missing values of the standardized feature data are filled with the mean value to obtain the preprocessed feature data. The function expression of the mean value filling is: In the formula, is the mean of the non-missing values, is the non-missing value of the i-th feature data, and n is the number of non-missing values; According to the preset conditions, it is judged whether there are abnormal values in the preprocessed feature data. The function expression of the preset conditions is: In the formula, k is the conditional coefficient; If there are abnormal values in the preprocessed feature data, the feature data with the abnormal values are preprocessed again.
4. The RFID-based liquid leakage detection method according to claim 3, characterized in that: The step of constructing a liquid leakage detection model according to the feature vector having a category label defined in the database comprises: A training set is established based on the preprocessed feature data, and the function expression of the training set is: In the formula, is the signal strength and phase of the nth sample data after preprocessing, The category label defined for the nth sample data includes leakage mode, leakage liquid type and leakage volume; Selecting KNN algorithm to establish a basic classification model, and inputting the training set into the basic classification model for training to obtain the liquid leakage detection model; The sample data without a defined category label is selected from the database, and the sample data without a defined category label is input into the liquid leakage detection model for testing, so as to update the model parameters of the liquid leakage detection model.
5. The RFID-based liquid leakage detection method according to claim 1, characterized in that: After inputting the signal data acquired in real time into the liquid leakage detection model, a method for optimizing the liquid leakage detection model is also included, including: Inputting the signal data acquired in real time into the liquid leakage detection model; If the output of the liquid leakage detection model is abnormal, extracting a real-time feature vector including signal strength and phase from the signal data collected in real time; Storing the real-time feature vector in the database, and defining a category label for the real-time feature vector to update the database; The real-time feature vector defined with the category label is input into the liquid leakage detection model, and the model parameters of the liquid leakage detection model are updated to obtain the optimized liquid leakage detection model.
6. The RFID-based liquid leakage detection method according to claim 1, characterized in that: The liquid leakage detection method also includes a method for performing leakage warning after the liquid leakage detection model outputs the liquid leakage detection result, including: generating a liquid leakage detection report according to the liquid leakage detection result output by the liquid leakage detection model; In response to abnormal leakage being determined in the liquid leakage detection report, an early warning is triggered.
7. A detection system, using the RFID-based liquid leakage detection method according to any one of claims 1 to 6, characterized in that: The detection system comprises: A radio frequency signal processing module, used to use an RFID reader to send a radio frequency signal to an RFID anti-liquid tag attached to a target object, and obtain signal data backscattered by the RFID anti-liquid tag after being activated by the radio frequency signal; A feature extraction module, used to select a portion of the acquired signal data as sample data, extract a feature vector including signal strength and phase from each sample data, and store the extracted feature vector in a database; A label definition module, used to define a category label including leakage mode, leakage liquid type and leakage volume for each feature vector in the database; The model detection module is used to construct a liquid leakage detection model according to the feature vector with a category label defined in the database, input the signal data acquired in real time into the liquid leakage detection model, and output a liquid leakage detection result including the leakage situation of the target object, the leakage location, the leakage mode, the type of leaked liquid and the leakage volume.
8. The detection system according to claim 7, characterized in that: The radio frequency signal processing module is connected to a reading and writing device, the reading and writing device includes a reading and writing unit and a detection unit, the reading and writing unit includes an RFID reader and an antenna electrically connected to the RFID reader, the detection unit includes a liquid absorption medium and two RFID anti-liquid tags, the liquid absorption medium includes a first medium body and a second medium body integrally formed side by side, and the shapes of the first medium body and the second medium body are matched and attached to the surface to be detected of the target object; A partition layer is arranged between the first medium body and the second medium body, wherein one of the RFID liquid-resistant tags is arranged inside the first medium body, and the other RFID liquid-resistant tag is arranged on the outer side wall of the second medium body.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the RFID-based liquid leakage detection method according to any one of claims 1 to 6 are implemented.
10. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the RFID-based liquid leakage detection method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Liquid leakage nondestructive testing method based on RFID
CN118032239A
Hazardous chemical substance management cabinet based on RFID, biological recognition and state monitoring
CN217827214U
Industrial environment liquid leakage detection method and device based on double RFID tags
CN109580134A
Mobile scene liquid sensing method based on RFID
CN116933167A
Water leakage monitoring method for digital twinning system of coal mine shaft
CN119595192A