Method and system for non-invasive liquid detection

Through a simple combination of acoustic signal acquisition equipment and microphone speakers, non-invasive liquid detection is realized, solving the problems of expensive equipment, cumbersome detection and invasive detection in the prior art, and achieving high accuracy and simple liquid classification effect.

CN118817828BActive Publication Date: 2025-02-28HUNAN UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411288321.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2025-02-28
Estimated Expiration
2044-09-14

AI Technical Summary

Technical Problem

The existing liquid detection methods have problems such as expensive equipment, cumbersome testing steps, requiring professional operation, and invasive testing, resulting in waste of samples, and are especially unable to effectively detect liquids contained in metal containers.

Method used

Through a simple acoustic signal acquisition device, a combination of a microphone and a speaker is used to collect the detection signal after the acoustic signal passes through the container and the liquid, perform pre-processing and differential processing, obtain the differential amplitude signal of the liquid, and compare it with the preset characteristic database to determine the liquid category.

Benefits of technology

It realizes non-invasive liquid detection, simple equipment, accurate classification results, avoid sample waste, and is suitable for detecting liquids contained in metal containers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The present application provides a method and system for non-invasive liquid detection, including: collecting a first detection signal set through a first microphone and a second microphone, and collecting a second detection signal set through the first microphone and the second microphone; pre-processing the first detection signal set and the second detection signal set to obtain a first pure detection signal set and a second pure detection signal set; performing differential processing on the first pure detection signal set and the second pure detection signal set to obtain a differential amplitude signal of the liquid to be detected; obtaining the characteristics of the differential amplitude signal, and comparing the characteristics of the differential amplitude signal with a preset characteristic database, and determining the category of the liquid to be detected according to the comparison result. A high-accuracy liquid classification method is achieved through a simple acoustic signal acquisition device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of machine learning, and more particularly to methods and systems for non-invasive liquid detection. Background Art

[0002] In recent years, with the continuous development of science and technology, various research results on liquid detection have emerged in an endless stream, and liquid detection technology has been widely used in food safety, medical and health care, environmental protection and industrial production. In the field of food safety, industrial and commercial law enforcement personnel often need to conduct random inspections on beverages and foods sold on the market to detect whether the content of additives used meets national standards, crack down on illegal acts of abusing food additives, and thus establish a safe market environment. In the field of medical and health care, by testing the patient's body fluid composition, such as blood routine and urine routine tests, doctors can understand the patient's condition more comprehensively and accurately, so as to make more reasonable treatment plans. In the field of ecological and environmental protection, people need to regularly test the water quality components in rivers and lakes to determine whether the waters are polluted. In industrial production, by real-time monitoring of the composition, concentration and other parameters of the liquid during the production process, workers can adjust the operating conditions in a timely manner to ensure the consistency and quality of the products produced and prevent the production of defective products.

[0003] Currently, the commonly used liquid detection methods mainly include chemical analysis, mass spectrometry and radio frequency signal detection. The chemical analysis method requires the collection of samples in a professional laboratory for testing and analysis, and its detection cycle is long and the efficiency is low. The mass spectrometry method relies on expensive professional equipment such as mass spectrometers, and also needs to be operated in the laboratory. Moreover, both methods have the disadvantages of cumbersome detection steps and the need for professional personnel to operate, making it difficult to achieve convenient and efficient liquid detection. In addition, both methods are invasive detection, which can easily lead to waste of the tested samples. In contrast, the detection method based on radio frequency signals can achieve non-invasive detection of liquids. However, this method still requires expensive equipment, and is limited by the shielding effect of metal on electromagnetic waves, and cannot effectively detect liquids in metal containers. Summary of the invention

[0004] The main purpose of the embodiments of the present invention is to provide a method and system for non-invasive liquid detection, and to provide a technical solution with simple required equipment and accurate classification results. A high-accuracy liquid classification method is achieved through a simple acoustic wave signal acquisition device.

[0005] In a first aspect, a method for non-invasive liquid detection is provided, the method comprising:

[0006] A first detection signal set is collected by a first microphone and a second microphone after a sound wave signal sent from a speaker at a first position passes through a container and a liquid to be detected loaded in the container, and a second detection signal set is collected by the first microphone and the second microphone after the sound wave signal sent from the speaker at a second position passes through the container and the liquid to be detected, the first position is a position where a first distance and a second distance are the same, the second position is a position where the first distance and the second distance are different, the first distance is a distance between the speaker and the first microphone, the second distance is a distance between the speaker and the second microphone, and the first microphone and the second microphone are arranged at mirror positions with the container as a mirror surface;

[0007] Preprocessing the first detection signal set and the second detection signal set respectively to obtain a first clean detection signal set and a second clean detection signal set;

[0008] Performing differential processing on the first pure detection signal set and the second pure detection signal set to obtain a differential amplitude signal of the liquid to be detected;

[0009] The characteristics of the differential amplitude signal are acquired, and the characteristics of the differential amplitude signal are compared with a preset characteristic database, and the category of the liquid to be detected is determined according to the comparison result.

[0010] In a possible implementation, the first detection signal set after the sound wave signal sent from the speaker at the first position passes through the container and the liquid to be detected loaded in the container is collected by the first microphone and the second microphone, and the second detection signal set after the sound wave signal sent from the speaker at the second position passes through the container and the liquid to be detected is collected by the first microphone and the second microphone, includes:

[0011] placing the speaker at the first position;

[0012] Start the speaker disposed at the first position, collect a first microphone signal formed after the sound wave signal passes through the liquid to be detected through the first microphone, and collect a second microphone signal formed after the sound wave signal passes through the liquid to be detected through the second microphone, the first microphone signal and the second microphone signal together forming the first detection signal set;

[0013] placing the speaker at the second position;

[0014] Start the speaker set at the second position, collect the third microphone signal formed after the sound wave signal passes through the liquid to be detected through the first microphone, and collect the fourth microphone signal formed after the sound wave signal passes through the liquid to be detected through the second microphone, the third microphone signal and the fourth microphone signal together form the second detection signal set.

[0015] In a possible implementation, preprocessing the first detection signal set and the second detection signal set to obtain a first clean detection signal set and a second clean detection signal set respectively includes:

[0016] Performing bandpass filtering on the first microphone signal, the second microphone signal, the third microphone signal and the fourth microphone signal through a bandpass filter to obtain a first filtered signal, a second filtered signal, a third filtered signal and a fourth filtered signal;

[0017] The first filtered signal, the second filtered signal, the third filtered signal and the fourth filtered signal are subjected to Fourier transform to obtain a first frequency domain signal, a second frequency domain signal, a third frequency domain signal and a fourth frequency domain signal, wherein the first pure detection signal set includes the first frequency domain signal and the second frequency domain signal, and the second pure detection signal set includes the third frequency domain signal and the fourth frequency domain signal.

[0018] In a possible implementation, performing differential processing on the first pure detection signal set and the second pure detection signal set to obtain the differential amplitude signal of the liquid to be detected includes:

[0019] Obtaining a first difference between the first frequency domain signal and the second frequency domain signal, and obtaining a second difference between the third frequency domain signal and the fourth frequency domain signal;

[0020] The first difference is differentiated from the second difference to obtain the differential amplitude signal.

[0021] In a second aspect, a system for non-invasive liquid detection is provided, the system comprising:

[0022] A detection signal acquisition module, used to acquire a first detection signal set after the sound wave signal sent by the speaker from the first position passes through the liquid to be detected, and to acquire a second detection signal set after the sound wave signal sent by the speaker from the second position passes through the liquid to be detected;

[0023] A clean detection signal set acquisition module, used to pre-process the first detection signal set and the second detection signal set to obtain a first clean detection signal set and a second clean detection signal set;

[0024] A differential amplitude signal acquisition module, used for performing differential processing on the first pure detection signal set and the second pure detection signal set to acquire a differential amplitude signal of the liquid to be detected;

[0025] The category determination module is used to obtain the characteristics of the differential amplitude signal, and compare the characteristics of the differential amplitude signal with a preset characteristic database, and determine the category of the liquid to be detected according to the comparison result.

[0026] In a possible implementation, the detection signal acquisition module includes:

[0027] A first position setting unit, used to set the speaker at the first position which is the same as the first microphone and the second microphone;

[0028] A first and second microphone signal collection unit, used to start a speaker arranged at the first position, collect a first microphone signal formed after the sound wave signal passes through the liquid to be detected through the first microphone, and collect a second microphone signal formed after the sound wave signal passes through the liquid to be detected through the second microphone, the first microphone signal and the second microphone signal together forming the first detection signal set;

[0029] A second position setting unit, configured to set the speaker at a second position different from positions of the first microphone and the second microphone;

[0030] The third and fourth microphone signal acquisition units are used to start the speaker set at the second position, and collect the third microphone signal formed after the sound wave signal passes through the liquid to be detected through the first microphone, and collect the fourth microphone signal formed after the sound wave signal passes through the liquid to be detected through the second microphone. The third microphone signal and the fourth microphone signal together form the second detection signal set.

[0031] In a possible implementation, the clean detection signal set acquisition module includes:

[0032] a filter signal acquisition unit, configured to perform bandpass filtering on the first microphone signal, the second microphone signal, the third microphone signal and the fourth microphone signal through a bandpass filter to acquire a first filter signal, a second filter signal, a third filter signal and a fourth filter signal;

[0033] A frequency domain signal acquisition unit is used to perform Fourier transform on the first filtered signal, the second filtered signal, the third filtered signal and the fourth filtered signal to obtain a first frequency domain signal, a second frequency domain signal, a third frequency domain signal and a fourth frequency domain signal, wherein the first pure detection signal set includes the first frequency domain signal and the second frequency domain signal, and the second pure detection signal set includes the third frequency domain signal and the fourth frequency domain signal.

[0034] In a possible implementation, the differential amplitude signal acquisition module includes:

[0035] A difference acquisition unit, configured to acquire a first difference between the first frequency domain signal and the second frequency domain signal, and acquire a second difference between the third frequency domain signal and the fourth frequency domain signal;

[0036] The differential amplitude signal acquisition unit is used to differentiate the first difference from the second difference to acquire the differential amplitude signal.

[0037] In a third aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for non-invasive liquid detection as provided in the first aspect is implemented.

[0038] In a fourth aspect, a non-transitory computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the method for non-invasive liquid detection as provided in the first aspect is implemented.

[0039] In the present application, a technical solution is provided which requires simple equipment and has accurate classification results. A liquid classification method with high accuracy is achieved through a simple acoustic wave signal acquisition device. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.

[0041] Figure 1 A flowchart of a method for non-invasive liquid detection provided by one embodiment of the present invention;

[0042] Figure 2 A flow chart of a method for non-invasive liquid detection provided by another embodiment of the present invention;

[0043] Figure 3 A schematic diagram of a loudspeaker in different positions provided by an embodiment of the present invention;

[0044] Figure 4 A flow chart of a method for non-invasive liquid detection provided by another embodiment of the present invention;

[0045] Figure 5 A flow chart of a method for non-invasive liquid detection provided by another embodiment of the present invention;

[0046] Figure 6 A structural diagram of a system for non-invasive liquid detection provided by one embodiment of the present invention;

[0047] Figure 7 A structural diagram of a non-invasive liquid detection system provided by another embodiment of the present invention;

[0048] Figure 8 A structural diagram of a non-invasive liquid detection system provided by another embodiment of the present invention;

[0049] Fig. 9 A structural diagram of a non-invasive liquid detection system provided by another embodiment of the present invention;

[0050] Fig.10 A schematic diagram of the physical structure of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0051] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar modules or modules with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present invention.

[0052] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, modules and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, modules, components and / or groups thereof. It should be understood that when we refer to a module as being "connected" or "coupled" to another module, it may be directly connected or coupled to the other modules, or there may be intermediate modules. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any modules and all combinations of one or more associated listed items.

[0053] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation method of the present application will be further described in detail below with reference to the accompanying drawings.

[0054] The technical solution of the present application and how to solve the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0055] like Figure 1 FIG. 1 is a flow chart of a method for non-invasive liquid detection provided by an embodiment of the present invention, wherein the method comprises:

[0056] Step S101, collecting a first detection signal set after a sound wave signal sent from a speaker at a first position passes through a container and a liquid to be detected loaded in the container through a first microphone and collecting a second detection signal set after the sound wave signal sent from the speaker at a second position passes through the container and the liquid to be detected through the first microphone and the second microphone, wherein the first position is a position where a first distance and a second distance are the same, and the second position is a position where the first distance and the second distance are different, the first distance is a distance between the speaker and the first microphone, and the second distance is a distance between the speaker and the second microphone, and the first microphone and the second microphone are arranged at mirror positions with the container as a mirror surface;

[0057] Step S102, preprocessing the first detection signal set and the second detection signal set to obtain a first clean detection signal set and a second clean detection signal set;

[0058] Step S103, performing differential processing on the first pure detection signal set and the second pure detection signal set to obtain a differential amplitude signal of the liquid to be detected;

[0059] Step S104, acquiring the characteristics of the differential amplitude signal, and comparing the characteristics of the differential amplitude signal with a preset characteristic database, and determining the category of the liquid to be detected according to the comparison result.

[0060] In the embodiment of the present invention, a sound-generating device (such as a speaker) is set at a first position and generates a sound wave signal. After the sound wave signal passes through the loading container and the liquid to be detected in the loading container, a first detection signal set is generated. The first detection signal set is acquired by a sound-receiving device (such as a microphone) set at a corresponding position. Similarly, a sound-generating device is set at a second position and generates a sound wave signal. After the sound wave signal passes through the loading container and the liquid to be detected in the loading container, a second detection signal set is generated. The second detection signal set is acquired by a sound-receiving device set at a corresponding position.

[0061] Since the first detection signal set and the second detection signal set obtained contain many interference signals, the accuracy of the detection results is low if they are directly used for liquid detection. Therefore, it is necessary to preprocess the first detection signal set and the second detection signal set to remove the interference signals and obtain the first pure detection signal set and the second pure detection signal set.

[0062] By performing differential processing on the obtained first pure detection signal set and the second pure detection signal set, the differential amplitude signal of the liquid to be detected can be obtained.

[0063] The characteristics of the differential amplitude signal are obtained and compared with a pre-set characteristic database, which stores the characteristics corresponding to the differential amplitude signals of various liquids obtained through the above process. The characteristics of the differential amplitude signal of the liquid to be detected are input into the characteristic database to obtain the corresponding liquid category.

[0064] Wherein, the step of obtaining the characteristic of the differential amplitude signal includes:

[0065] The Transformer feature extraction module is subjected to machine learning, and the features of the differential amplitude signal are extracted by completing the machine learning Transformer feature extraction module.

[0066] In an embodiment of the present invention, a first detection signal set is collected after the sound wave signal sent by the speaker from the first position passes through the liquid to be detected, and a second detection signal set is collected after the sound wave signal sent by the speaker from the second position passes through the liquid to be detected; the first detection signal set and the second detection signal set are preprocessed respectively to obtain a first pure detection signal set and a second pure detection signal set; the first pure detection signal set and the second pure detection signal set are differentially processed to obtain a differential amplitude signal of the liquid to be detected; the feature of the differential amplitude signal is obtained, and the feature of the differential amplitude signal is compared with a preset feature database, and the category of the liquid to be detected is determined according to the comparison result. A technical solution is provided with simple required equipment and accurate classification results, and a high-accuracy liquid classification method is realized through a simple sound wave signal collection device.

[0067] like Figure 2 The flowchart of the non-invasive liquid detection method provided by another embodiment of the present invention is shown, wherein the first microphone and the second microphone collect a first detection signal set after the sound wave signal sent by the speaker from the first position passes through the container and the liquid to be detected loaded in the container, and the first microphone and the second microphone collect a second detection signal set after the sound wave signal sent by the speaker from the second position passes through the container and the liquid to be detected, including:

[0068] Step S201, setting the speaker at the first position;

[0069] Step S202, starting the speaker disposed at the first position, collecting a first microphone signal formed after the sound wave signal passes through the liquid to be detected through the first microphone, and collecting a second microphone signal formed after the sound wave signal passes through the liquid to be detected through the second microphone, the first microphone signal and the second microphone signal together forming the first detection signal set;

[0070] Step S203, setting the speaker at the second position;

[0071] Step S204, start the speaker set at the second position, collect the third microphone signal formed after the sound wave signal passes through the liquid to be detected through the first microphone, and collect the fourth microphone signal formed after the sound wave signal passes through the liquid to be detected through the second microphone, the third microphone signal and the fourth microphone signal together form the second detection signal set.

[0072] See also Figure 3 Schematic diagram of a speaker in a first position and a second position. When the speaker is set at the first position, the distance from the first microphone and the second microphone is the same. At this time, after the sound wave signal generated by the speaker passes through the container and the liquid to be detected, the first microphone and the second microphone receive the first microphone signal and the second microphone signal respectively. When the speaker is set at the second position, the distance from the first microphone and the second microphone is different. At this time, after the sound wave signal generated by the speaker passes through the container and the liquid to be detected, the first microphone and the second microphone receive the third microphone signal and the fourth microphone signal respectively.

[0073] like Figure 4 The flowchart of the non-invasive liquid detection method according to another embodiment of the present invention is shown, wherein the preprocessing of the first detection signal set and the second detection signal set to obtain the first pure detection signal set and the second pure detection signal set respectively includes:

[0074] Step S401, performing bandpass filtering on the first microphone signal, the second microphone signal, the third microphone signal and the fourth microphone signal through a bandpass filter to obtain a first filtered signal, a second filtered signal, a third filtered signal and a fourth filtered signal;

[0075] Step S402, performing Fourier transform on the first filtered signal, the second filtered signal, the third filtered signal and the fourth filtered signal to obtain a first frequency domain signal, a second frequency domain signal, a third frequency domain signal and a fourth frequency domain signal, the first pure detection signal set includes the first frequency domain signal and the second frequency domain signal, and the second pure detection signal set includes the third frequency domain signal and the fourth frequency domain signal.

[0076] In an embodiment of the present invention, a bandpass filter can perform bandpass filtering on the first filter signal, the second filter signal, the third filter signal, and the fourth filter signal to remove environmental noise during signal acquisition and accurately extract signal components within a preset frequency range. The first frequency domain signal, the second frequency domain signal, the third frequency domain signal, and the fourth frequency domain signal that have been accurately extracted are converted into corresponding frequency domain expressions through Fourier transform, so as to facilitate the subsequent steps to extract signal features through frequency domain expressions.

[0077] like Figure 5 The flowchart of the non-invasive liquid detection method provided by another embodiment of the present invention is shown, wherein the first pure detection signal set and the second pure detection signal set are differentially processed to obtain the differential amplitude signal of the liquid to be detected, including:

[0078] Step S501, obtaining a first difference between the first frequency domain signal and the second frequency domain signal, and obtaining a second difference between the third frequency domain signal and the fourth frequency domain signal;

[0079] Step S502: Differentiate the first difference from the second difference to obtain the differential amplitude signal.

[0080] In the embodiment of the present invention, the differential processing can eliminate the influence caused by the different frequency responses of the speaker and the microphone, and can eliminate the influence of different containers on the detection results.

[0081] The signal collected by the microphone can be expressed as: ,in, is the frequency domain representation of the signal received by the microphone, is the frequency domain representation of the sound wave signal sent by the speaker, is the frequency response of the loudspeaker, is the frequency response of the microphone, is the frequency response of the liquid, is the effect of the container material on the signal when the signal passes through the container, It represents the additional influence caused by the different thickness of the container walls on both sides and the position error caused by the artificial installation of speakers and microphones. It is random and different in each test.

[0082] When the loudspeaker is set at the first position, the first frequency domain signal and the second frequency domain signal received by the first microphone and the second microphone are:

[0083]

[0084] By differentiating the first frequency domain signal and the second frequency domain signal, the first difference can be obtained:

[0085]

[0086] When the loudspeaker is set at the second position, the third frequency domain signal and the fourth frequency domain signal received by the first microphone and the second microphone are:

[0087]

[0088] By differentiating the third frequency domain signal and the fourth frequency domain signal, the second difference can be obtained:

[0089]

[0090] Differentiating the first difference and the second difference again, we can get:

[0091]

[0092] in, It means that when the distances between the speaker and the first microphone and the second microphone are different, the amplitude-frequency responses of the received signal are different due to the different propagation distances of the sound signal in the liquid, which characterizes the situation in which the sound signal is affected by the liquid during the propagation process.

[0093] like Figure 6 FIG. 1 is a structural diagram of a non-invasive liquid detection system provided by an embodiment of the present invention, wherein the system comprises:

[0094] The detection signal acquisition module 601 is used to collect a first detection signal set after the sound wave signal sent from the speaker at a first position passes through a container and a liquid to be detected loaded in the container through a first microphone and a second microphone, and to collect a second detection signal set after the sound wave signal sent from the speaker at a second position passes through the container and the liquid to be detected through the first microphone and the second microphone, wherein the first position is a position where a first distance and a second distance are the same, and the second position is a position where the first distance and the second distance are different, the first distance is a distance between the speaker and the first microphone, and the second distance is a distance between the speaker and the second microphone, and the first microphone and the second microphone are arranged at a mirror position with the container as a mirror surface;

[0095] A clean detection signal set acquisition module 602, configured to pre-process the first detection signal set and the second detection signal set to acquire a first clean detection signal set and a second clean detection signal set;

[0096] A differential amplitude signal acquisition module 603 is used to perform differential processing on the first pure detection signal set and the second pure detection signal set to acquire a differential amplitude signal of the liquid to be detected;

[0097] The category determination module 604 is used to obtain the characteristics of the differential amplitude signal, and compare the characteristics of the differential amplitude signal with a preset characteristic database, and determine the category of the liquid to be detected according to the comparison result.

[0098] In the embodiment of the present invention, a sound-generating device (such as a speaker) is set at a first position and generates a sound wave signal. After the sound wave signal passes through the loading container and the liquid to be detected in the loading container, a first detection signal set is generated. The first detection signal set is acquired by a sound-receiving device (such as a microphone) set at a corresponding position. Similarly, a sound-generating device is set at a second position and generates a sound wave signal. After the sound wave signal passes through the loading container and the liquid to be detected in the loading container, a second detection signal set is generated. The second detection signal set is acquired by a sound-receiving device set at a corresponding position.

[0099] Since the first detection signal set and the second detection signal set obtained contain many interference signals, the accuracy of the detection results is low if they are directly used for liquid detection. Therefore, it is necessary to preprocess the first detection signal set and the second detection signal set to remove the interference signals and obtain the first pure detection signal set and the second pure detection signal set.

[0100] By performing differential processing on the obtained first pure detection signal set and the second pure detection signal set, the differential amplitude signal of the liquid to be detected can be obtained.

[0101] The characteristics of the differential amplitude signal are obtained and compared with a pre-set characteristic database, which stores the characteristics corresponding to the differential amplitude signals of various liquids obtained through the above process. The characteristics of the differential amplitude signal of the liquid to be detected are input into the characteristic database to obtain the corresponding liquid category.

[0102] Wherein, the step of obtaining the characteristic of the differential amplitude signal includes:

[0103] The Transformer feature extraction module is subjected to machine learning, and the features of the differential amplitude signal are extracted by completing the machine learning Transformer feature extraction module.

[0104] In an embodiment of the present invention, a first detection signal set after a sound wave signal sent from a speaker at a first position passes through a container and a liquid to be detected loaded in the container is collected by a first microphone and a second microphone, and a second detection signal set after the sound wave signal sent from the speaker at a second position passes through the container and the liquid to be detected is collected by the first microphone and the second microphone, the first position is a position where the first distance and the second distance are the same, the second position is a position where the first distance and the second distance are different, the first distance is the distance between the speaker and the first microphone, the second distance is the distance between the speaker and the second microphone, and the first microphone and the second microphone are set at a mirror position with the container as a mirror surface; the first pure detection signal set and the second pure detection signal set are differentially processed to obtain a differential amplitude signal of the liquid to be detected; the feature of the differential amplitude signal is obtained, and the feature of the differential amplitude signal is compared with a preset feature database, and the category of the liquid to be detected is determined according to the comparison result. A technical solution with simple required equipment and accurate classification results is provided, and a high-accuracy liquid classification method is realized through a simple sound wave signal collection device.

[0105] like Figure 7 FIG. 6 is a structural diagram of a non-invasive liquid detection system provided by another embodiment of the present invention. The detection signal acquisition module 601 includes:

[0106] A first position setting unit 701, configured to set the speaker at the first position;

[0107] The first and second microphone signal collection unit 702 is used to start the speaker set at the first position, collect the first microphone signal formed after the sound wave signal passes through the liquid to be detected through the first microphone, and collect the second microphone signal formed after the sound wave signal passes through the liquid to be detected through the second microphone, and the first microphone signal and the second microphone signal together form the first detection signal set;

[0108] A second position setting unit 703, configured to set the speaker at the second position;

[0109] The third and fourth microphone signal acquisition unit 704 is used to start the speaker set at the second position, and to collect the third microphone signal formed after the sound wave signal passes through the liquid to be detected through the first microphone, and to collect the fourth microphone signal formed after the sound wave signal passes through the liquid to be detected through the second microphone. The third microphone signal and the fourth microphone signal together form the second detection signal set.

[0110] Specifically, when the speaker is set at the first position, the distance from the first microphone and the second microphone is the same. At this time, after the sound wave signal generated by the speaker passes through the container and the liquid to be detected, the first microphone and the second microphone receive the first microphone signal and the second microphone signal respectively. When the speaker is set at the second position, the distance from the first microphone and the second microphone is different. At this time, after the sound wave signal generated by the speaker passes through the container and the liquid to be detected, the first microphone and the second microphone receive the third microphone signal and the fourth microphone signal respectively.

[0111] like Figure 8 FIG. 6 is a structural diagram of a non-invasive liquid detection system provided by another embodiment of the present invention. The clean detection signal set acquisition module 602 includes:

[0112] A filtered signal acquisition unit 801 is used to perform bandpass filtering on the first microphone signal, the second microphone signal, the third microphone signal and the fourth microphone signal through a bandpass filter to obtain a first filtered signal, a second filtered signal, a third filtered signal and a fourth filtered signal;

[0113] The frequency domain signal acquisition unit 802 is used to perform Fourier transform on the first filtered signal, the second filtered signal, the third filtered signal and the fourth filtered signal to obtain a first frequency domain signal, a second frequency domain signal, a third frequency domain signal and a fourth frequency domain signal, the first pure detection signal set includes the first frequency domain signal and the second frequency domain signal, and the second pure detection signal set includes the third frequency domain signal and the fourth frequency domain signal.

[0114] In an embodiment of the present invention, a bandpass filter can perform bandpass filtering on the first filter signal, the second filter signal, the third filter signal, and the fourth filter signal to remove environmental noise during signal acquisition and accurately extract signal components within a preset frequency range. The first frequency domain signal, the second frequency domain signal, the third frequency domain signal, and the fourth frequency domain signal that have been accurately extracted are converted into corresponding frequency domain expressions through Fourier transform, so as to facilitate the subsequent steps to extract signal features through frequency domain expressions.

[0115] like Fig. 9 FIG. 6 is a structural diagram of a non-invasive liquid detection system provided by another embodiment of the present invention. The differential amplitude signal acquisition module 603 includes:

[0116] A difference acquisition unit 901 is used to acquire a first difference between the first frequency domain signal and the second frequency domain signal, and to acquire a second difference between the third frequency domain signal and the fourth frequency domain signal;

[0117] The differential amplitude signal acquisition unit 902 is used to differentiate the first difference and the second difference to acquire the differential amplitude signal.

[0118] In the embodiment of the present invention, the differential processing can eliminate the influence caused by the different frequency responses of the speaker and the microphone, and can eliminate the influence of different containers on the detection results.

[0119] The signal collected by the microphone can be expressed as: ,in, is the frequency domain representation of the signal received by the microphone, is the frequency domain representation of the sound wave signal sent by the speaker, is the frequency response of the loudspeaker, is the frequency response of the microphone, is the frequency response of the liquid, is the effect of the container material on the signal when the signal passes through the container, It represents the additional influence caused by the different thickness of the container walls on both sides and the position error caused by the artificial installation of speakers and microphones. It is random and different in each test.

[0120] When the loudspeaker is set at the first position, the first frequency domain signal and the second frequency domain signal received by the first microphone and the second microphone are:

[0121]

[0122] By differentiating the first frequency domain signal and the second frequency domain signal, the first difference can be obtained:

[0123]

[0124] When the loudspeaker is set at the second position, the third frequency domain signal and the fourth frequency domain signal received by the first microphone and the second microphone are:

[0125]

[0126] By differentiating the third frequency domain signal and the fourth frequency domain signal, the second difference can be obtained:

[0127]

[0128] Differentiating the first difference and the second difference again, we can get:

[0129]

[0130] in, It means that when the distances between the speaker and the first microphone and the second microphone are different, the amplitude-frequency responses of the received signal are different due to the different propagation distances of the sound signal in the liquid, which characterizes the situation in which the sound signal is affected by the liquid during the propagation process.

[0131] Fig.10 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.10 As shown, the electronic device may include: a processor (processor) 1001, a communication interface (Communications Interface) 1002, a memory (memory) 1003 and a communication bus 1004, wherein the processor, the communication interface and the memory communicate with each other via the communication bus. The processor can call the logic instructions in the memory to execute the method of non-invasive liquid detection, which includes: collecting a first detection signal set after the sound wave signal sent by the speaker from a first position passes through the container and the liquid to be detected loaded in the container through the first microphone and the second microphone, and collecting a second detection signal set after the sound wave signal sent by the speaker from a second position passes through the container and the liquid to be detected through the first microphone and the second microphone, the first position is a position where the first distance and the second distance are the same, the second position is a position where the first distance and the second distance are different, the first distance is the distance between the speaker and the first microphone, the second distance is the distance between the speaker and the second microphone, and the first microphone and the second microphone are set at a mirror position with the container as a mirror surface; pre-processing the first detection signal set and the second detection signal set respectively to obtain a first pure detection signal set and a second pure detection signal set; performing differential processing on the first pure detection signal set and the second pure detection signal set to obtain a differential amplitude signal of the liquid to be detected; obtaining a feature of the differential amplitude signal, and comparing the feature of the differential amplitude signal with a preset feature database, and determining the category of the liquid to be detected according to the comparison result.

[0132] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program code.

[0133] On the other hand, an embodiment of the present invention further provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the non-invasive liquid detection method provided by the above-mentioned method embodiments, the method comprising: collecting a first detection signal set after a sound wave signal sent from a speaker at a first position passes through a container and a liquid to be detected loaded in the container through a first microphone and a second microphone, and collecting a second detection signal set after the sound wave signal sent from the speaker at a second position passes through the container and the liquid to be detected through the first microphone and the second microphone, the first position being a position where the first distance and the second distance are the same, The second position is a position where the first distance and the second distance are different, the first distance is the distance between the speaker and the first microphone, the second distance is the distance between the speaker and the second microphone, and the first microphone and the second microphone are arranged at mirror positions with the container as a mirror surface; the first detection signal set and the second detection signal set are preprocessed respectively to obtain a first pure detection signal set and a second pure detection signal set; the first pure detection signal set and the second pure detection signal set are differentially processed to obtain a differential amplitude signal of the liquid to be detected; the characteristics of the differential amplitude signal are obtained, and the characteristics of the differential amplitude signal are compared with a preset feature database, and the category of the liquid to be detected is determined according to the comparison result.

[0134] On the other hand, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the method for non-invasive liquid detection provided in the above-mentioned embodiments, the method comprising: collecting, by a first microphone and a second microphone, a first detection signal set of a sound wave signal sent from a speaker from a first position after passing through a container and a liquid to be detected loaded in the container, and collecting, by the first microphone and the second microphone, a second detection signal set of a sound wave signal sent from the speaker from a second position after passing through the container and the liquid to be detected, the first position being a position where a first distance and a second distance are the same, and the second position being a position where the first distance and the second distance are not the first detection signal set and the second detection signal set are respectively pre-processed to obtain a first pure detection signal set and a second pure detection signal set; the first pure detection signal set and the second pure detection signal set are differentially processed to obtain a differential amplitude signal of the liquid to be detected; the characteristics of the differential amplitude signal are obtained, and the characteristics of the differential amplitude signal are compared with a preset characteristic database, and the category of the liquid to be detected is determined according to the comparison result.

[0135] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0136] The above is only a partial implementation of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for non-invasive liquid detection, characterized in that: The method comprises: A first detection signal set is collected by a first microphone and a second microphone after a sound wave signal sent from a speaker at a first position passes through a container and a liquid to be detected loaded in the container, and a second detection signal set is collected by the first microphone and the second microphone after the sound wave signal sent from the speaker at a second position passes through the container and the liquid to be detected, the first position is a position where a first distance and a second distance are the same, the second position is a position where the first distance and the second distance are different, the first distance is a distance between the speaker and the first microphone, the second distance is a distance between the speaker and the second microphone, and the first microphone and the second microphone are arranged at mirror positions with the container as a mirror surface; Preprocessing the first detection signal set and the second detection signal set respectively to obtain a first pure detection signal set and a second pure detection signal set; wherein, band-pass filtering is performed on the first microphone signal, the second microphone signal, the third microphone signal and the fourth microphone signal through a band-pass filter to obtain a first filtered signal, a second filtered signal, a third filtered signal and a fourth filtered signal; Fourier transform is performed on the first filtered signal, the second filtered signal, the third filtered signal and the fourth filtered signal to obtain a first frequency domain signal, a second frequency domain signal, a third frequency domain signal and a fourth frequency domain signal; Performing differential processing on the first pure detection signal set and the second pure detection signal set to obtain the differential amplitude signal of the liquid to be detected; wherein a first difference between the first frequency domain signal and the second frequency domain signal is obtained, and a second difference between the third frequency domain signal and the fourth frequency domain signal is obtained; performing differential processing on the first difference and the second difference to obtain the differential amplitude signal; The characteristics of the differential amplitude signal are acquired, and the characteristics of the differential amplitude signal are compared with a preset characteristic database, and the category of the liquid to be detected is determined according to the comparison result.

2. The method according to claim 1, characterized in that The method collects a first detection signal set after the sound wave signal sent from the speaker at the first position passes through the container and the liquid to be detected loaded in the container by using the first microphone and the second microphone, and collects a second detection signal set after the sound wave signal sent from the speaker at the second position passes through the container and the liquid to be detected by using the first microphone and the second microphone, including: placing the speaker at the first position; Start the speaker disposed at the first position, collect a first microphone signal formed after the sound wave signal passes through the liquid to be detected through the first microphone, and collect a second microphone signal formed after the sound wave signal passes through the liquid to be detected through the second microphone, the first microphone signal and the second microphone signal together forming the first detection signal set; placing the speaker at the second position; Start the speaker set at the second position, collect the third microphone signal formed after the sound wave signal passes through the liquid to be detected through the first microphone, and collect the fourth microphone signal formed after the sound wave signal passes through the liquid to be detected through the second microphone, the third microphone signal and the fourth microphone signal together form the second detection signal set.

3. The method according to claim 2, characterized in that The first clean detection signal set includes a first frequency domain signal and a second frequency domain signal, and the second clean detection signal set includes a third frequency domain signal and a fourth frequency domain signal.

4. A non-invasive liquid detection system, characterized in that: The system comprises: a detection signal acquisition module, used for acquiring, through a first microphone and a second microphone, a first detection signal set after a sound wave signal sent from a speaker at a first position passes through a container and a liquid to be detected loaded in the container, and for acquiring, through the first microphone and the second microphone, a second detection signal set after the sound wave signal sent from the speaker at a second position passes through the container and the liquid to be detected, wherein the first position is a position where a first distance and a second distance are the same, and the second position is a position where the first distance and the second distance are different, the first distance is a distance between the speaker and the first microphone, and the second distance is a distance between the speaker and the second microphone, and the first microphone and the second microphone are arranged at a mirror image position with the container as a mirror surface; A clean detection signal set acquisition module, used to pre-process the first detection signal set and the second detection signal set to obtain a first clean detection signal set and a second clean detection signal set; The pure detection signal set acquisition module includes: a filter signal acquisition unit, which is used to perform band-pass filtering on the first microphone signal, the second microphone signal, the third microphone signal and the fourth microphone signal through a band-pass filter to obtain a first filtered signal, a second filtered signal, a third filtered signal and a fourth filtered signal; a frequency domain signal acquisition unit, which is used to perform Fourier transform on the first filtered signal, the second filtered signal, the third filtered signal and the fourth filtered signal to obtain a first frequency domain signal, a second frequency domain signal, a third frequency domain signal and a fourth frequency domain signal; A differential amplitude signal acquisition module, used for performing differential processing on the first pure detection signal set and the second pure detection signal set to acquire a differential amplitude signal of the liquid to be detected; The differential amplitude signal acquisition module includes: a differential acquisition unit, used to acquire a first difference between the first frequency domain signal and the second frequency domain signal, and to acquire a second difference between the third frequency domain signal and the fourth frequency domain signal; a differential amplitude signal acquisition unit, used to differentiate the first difference from the second difference to acquire the differential amplitude signal; The category determination module is used to obtain the characteristics of the differential amplitude signal, and compare the characteristics of the differential amplitude signal with a preset characteristic database, and determine the category of the liquid to be detected according to the comparison result.

5. The system according to claim 4, characterized in that The detection signal acquisition module comprises: A first position setting unit, used to set the speaker at the first position; A first and second microphone signal collection unit, used to start a speaker arranged at the first position, collect a first microphone signal formed after the sound wave signal passes through the liquid to be detected through the first microphone, and collect a second microphone signal formed after the sound wave signal passes through the liquid to be detected through the second microphone, the first microphone signal and the second microphone signal together forming the first detection signal set; A second position setting unit, used to set the speaker at the second position; The third and fourth microphone signal acquisition units are used to start the speaker set at the second position, and collect the third microphone signal formed after the sound wave signal passes through the liquid to be detected through the first microphone, and collect the fourth microphone signal formed after the sound wave signal passes through the liquid to be detected through the second microphone. The third microphone signal and the fourth microphone signal together form the second detection signal set.

6. The system according to claim 5, characterized in that The first clean detection signal set includes a first frequency domain signal and a second frequency domain signal, and the second clean detection signal set includes a third frequency domain signal and a fourth frequency domain signal.

7. An electronic 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 method for non-invasive liquid detection according to claim 1 is implemented.

8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for non-invasive liquid detection according to any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Non-contact continuous mobile nondestructive testing method based on air acceleration

    CN107764897A

  • State detection method and system, electronic device and storage medium

    CN116558733A