Chemical layered liquid volume measurement method and device
By combining a light source array and an ultrasonic detection device, the system automatically determines the end of the reaction and the separation of chemical liquids, calculates the volume of each liquid layer, and solves the problem of low efficiency in calculating the volume of liquids in chemical experiments, thus achieving efficient and accurate volume calculation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- JIHUA LAB
- Filing Date
- 2025-11-17
- Publication Date
- 2026-06-19
AI Technical Summary
In existing chemical experiments, the calculation of the volume of layered liquids is inefficient, cumbersome, time-consuming, and easily affected by subjective factors, especially when calculations are performed frequently, which affects the experimental process and the accuracy of the data.
Using a light source array and ultrasonic detection device, the system automatically determines the end of the reaction and the stratification by emitting ultrasonic waves and irradiating light beams, combining echo information and transmitted light spot information, and calculates the thickness and volume of each liquid layer. Clustering algorithms are then used to group the light spots and perform comprehensive calculations.
It enables rapid, accurate, and automated calculation of the volume of chemically separated liquids, improving experimental efficiency and accuracy while reducing human error.
Smart Images

Figure CN121163616B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of detection technology, and more specifically, to a method and apparatus for calculating the volume of chemically separated liquids. Background Technology
[0002] In current chemical engineering experiments, it is often necessary to react different liquid substances in a square, transparent container. However, the reaction time is uncertain, and traditional methods usually rely on researchers to manually monitor the reaction vessel for extended periods to determine when the reaction has ended. After the reaction is complete, substances of different colors and densities will separate into distinct liquid layers over time. At this point, researchers need to extract the separated liquid mixture into different volume-scaled containers for volume measurement and data reading. These processes not only consume a significant amount of researchers' time but also require various experimental equipment, resulting in low experimental efficiency, and manual operation is prone to introducing errors.
[0003] Current technologies for calculating the volume of layered liquids after chemical reactions generally suffer from low efficiency, cumbersome operation, time-consuming and labor-intensive processes, and susceptibility to subjective factors. These problems are particularly pronounced in chemical production and scientific research experiments that require frequent volume calculations of layered liquids, severely restricting the experimental process and the accuracy of data acquisition. Therefore, how to achieve rapid, accurate, and automated volume calculation of different liquid layers in layered liquids after chemical reactions is a key technical problem that urgently needs to be solved in the field of chemical experimental analysis.
[0004] To address the aforementioned issues, existing technologies urgently need improvement. Summary of the Invention
[0005] The purpose of this application is to provide a method and apparatus for calculating the volume of layered liquids in chemical experiments, aiming to solve the problems of low efficiency, cumbersome operation, time and labor consumption, and susceptibility to subjective factors in the calculation of the volume of layered liquids in existing chemical experimental analysis.
[0006] In a first aspect, this application provides a method for calculating the volume of a chemically layered liquid. Based on a light source array and an ultrasonic detection device, the volume of each liquid layer of a chemically layered liquid in a square transparent container is calculated. The light source array includes multiple illumination light sources uniformly arranged in a vertical direction, and all of the illumination light sources are capable of emitting light beams in mutually parallel horizontal directions.
[0007] The method for calculating the volume of chemically layered liquids includes the following steps:
[0008] A1. Using an ultrasonic testing device, ultrasonic waves are emitted vertically from the bottom of a transparent container containing the reaction solution into the reaction solution, and the echo information is received;
[0009] A2. Irradiate a transparent container containing a reaction solution using a light source array and collect transmitted light spot information; the transmitted light spot information includes the color, size, and position of the transmitted light spot;
[0010] A3. Based on the echo information and the transmitted light spot information, determine whether the reaction solution has ended and separated into layers;
[0011] A4. After the reaction solution has finished reacting and separated into layers, the thickness of each liquid layer is determined based on the echo information, and the volume of each liquid layer is calculated and recorded as the first volume;
[0012] A5. After the reaction solution has finished reacting and separated into layers, the transmitted light spots are grouped based on the transmitted light spot information. The thickness of each liquid layer is determined according to the distribution height of each group of transmitted light spots, and the volume of each liquid layer is calculated and recorded as the second volume.
[0013] A6. Combining the first volume and the second volume, determine the volume calculation results of each liquid layer.
[0014] Preferably, step A2 includes:
[0015] A laser beam is intermittently emitted from a light source array to irradiate a transparent container containing a reaction solution, and information about the transmitted light spot is collected.
[0016] Preferably, step A3 includes:
[0017] A301. Analyze the stability of the echo information and the stability of the transmitted light spot information;
[0018] A302. If the duration for which the echo information remains stable and the duration for which the transmitted light spot information remains stable are both not less than a preset time threshold, then it is determined that the reaction solution has ended and separated into layers.
[0019] Preferably, step A4 includes:
[0020] A401. Identify the peaks of the echo information and extract the time interval between adjacent peaks;
[0021] A402. Calculate the thickness of each liquid layer based on the time interval and the speed of sound;
[0022] A403. Calculate the product of the thickness of each liquid layer and the bottom area of the inner cavity of the transparent container, and use it as the first volume of each liquid layer.
[0023] Preferably, step A5 includes:
[0024] A501. Compare the colors in the transmission spot information of each transmission spot with a preset reference color to identify the effective light spots from the transmission spots; the reference color is the standard color of the transmission spot formed after the emitted beam of the light source array passes through an empty transparent container; the effective light spot refers to the transmission spot formed after the emitted beam of the light source array passes through the reaction solution.
[0025] A502. A multi-dimensional data structure is formed using the color, size, and position of the transmitted light spot information for each effective light spot;
[0026] A503. Based on the multi-dimensional data structure of each effective light spot and the preset number of liquid layers, the effective light spots are clustered using a clustering algorithm to obtain multiple effective light spot clusters;
[0027] A504. Determine the thickness of the corresponding liquid layer based on the distribution height of each effective light spot cluster;
[0028] A505. Calculate the product of the thickness of each liquid layer and the bottom area of the inner cavity of the transparent container, and use it as the second volume of each liquid layer.
[0029] Optionally, in step A2, a light source array is used to irradiate the transparent container containing the reaction solution in a normal incident manner;
[0030] The position in the transmitted light spot information includes its height;
[0031] Step A502 includes:
[0032] A multi-dimensional data structure is formed using the color, size, and height of the transmitted light spot information for each effective light spot.
[0033] Optionally, in step A2, a light source array is used to irradiate the transparent container containing the reaction solution at a preset incident angle tilted on the horizontal plane.
[0034] The position of the transmitted light spot information includes its height and lateral position;
[0035] Step A502 includes:
[0036] A multi-dimensional data structure is formed by combining the color, size, height, and lateral position of the transmitted light spot information of each effective light spot.
[0037] Preferably, step A6 includes:
[0038] A601. Calculate the absolute deviation between the first volume and the second volume of each liquid layer;
[0039] A602. If the absolute value deviation of all liquid layers is not greater than a preset deviation threshold, then the average value of the first volume and the second volume of each liquid layer is calculated as the volume measurement result of that liquid layer;
[0040] A603. If the absolute value deviation of at least one liquid layer is greater than a preset deviation threshold, the first volume and the second volume are recalculated to calculate the volume measurement results of each liquid layer;
[0041] A604. If the number of times the first volume and the second volume are measured reaches a preset threshold, and the absolute value deviation of at least one liquid layer is still greater than a preset deviation threshold, an alarm message is issued.
[0042] Secondly, this application provides a chemical stratified liquid volume measurement device, including a host computer, a light source array, an ultrasonic detection device, and a light spot acquisition device;
[0043] The ultrasonic detection device is used to vertically emit ultrasonic waves from the bottom of the transparent container containing the reaction solution into the reaction solution, receive echo information, and send the echo information to the host computer.
[0044] The light source array includes multiple illumination light sources evenly arranged in a vertical direction. All of the illumination light sources are capable of emitting beams in mutually parallel horizontal directions to irradiate the transparent container containing the reaction solution.
[0045] The light spot acquisition device is used to acquire the light spot image formed by the transmission of light spot after the light beam passes through the transparent container containing the reaction solution, and send it to the host computer.
[0046] The host computer is used to execute:
[0047] The transmitted light spot information is obtained from the light spot image; the transmitted light spot information includes the color, size, and position of the transmitted light spot;
[0048] Based on the echo information and the transmitted light spot information, determine whether the reaction solution has ended and separated into layers;
[0049] After the reaction solution has completed and separated into layers, the thickness of each liquid layer is determined based on the echo information, and the volume of each liquid layer is calculated and recorded as the first volume.
[0050] After the reaction solution has completed and separated into layers, the transmitted light spots are grouped based on the transmitted light spot information. The thickness of each liquid layer is determined according to the distribution height of each group of transmitted light spots, and the volume of each liquid layer is calculated and denoted as the second volume.
[0051] By combining the first volume and the second volume, the volume calculation results of each liquid layer are determined.
[0052] Preferably, the light spot acquisition device includes a reflector, a screen, and a camera;
[0053] The reflector is used to reflect the transmitted light beam that has passed through the transparent container containing the reaction solution back to the screen, so as to form a transmitted light spot on the screen;
[0054] The camera is used to capture images of light spots on the screen and send them to the host computer.
[0055] Beneficial Effects: This application provides a method and apparatus for calculating the volume of chemically layered liquids. First, an ultrasonic detection device emits ultrasonic waves from the bottom of a container and receives the echo information. Simultaneously, a light source array irradiates the container and collects transmitted light spot information. Then, the stability of the echo and transmitted light spot information is used to determine whether the reaction has ended and the liquids have separated. After separation, the thickness of each liquid layer is calculated based on the ultrasonic echo and transmitted light spot information, and the first and second volumes are further calculated. Finally, the two volume calculation results are combined to determine the final volume calculation result. This innovative dual detection mechanism and automated processing effectively solves the problems of low efficiency, cumbersome operation, time-consuming and labor-intensive processes, and susceptibility to subjective factors in existing chemically layered liquid volume calculations, providing an efficient, accurate, and reliable volume calculation solution for chemical experimental analysis. Attached Figure Description
[0056] Figure 1 A flowchart of a method for calculating the volume of a chemically layered liquid provided in this application.
[0057] Figure 2 This is a schematic diagram of a chemical stratified liquid volume measurement device provided in this application.
[0058] Labeling Explanation: 1. Host computer; 2. Light source array; 201. Irradiation light source; 3. Ultrasonic detection device; 4. Light spot acquisition device; 401. Reflector; 402. Screen; 403. Camera; 90. Transparent container. Detailed Implementation
[0059] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0060] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0061] Please refer to Figure 1 This application discloses a method for calculating the volume of a chemically layered liquid in some embodiments. Based on a light source array and an ultrasonic detection device, the method calculates the volume of each liquid layer in a square transparent container. The light source array includes multiple illumination light sources that are uniformly arranged in the vertical direction, and all illumination light sources can emit light beams in mutually parallel horizontal directions.
[0062] The method for calculating the volume of chemically separated liquids includes the following steps:
[0063] A1. Using an ultrasonic testing device, ultrasonic waves are emitted vertically from the bottom of a transparent container containing the reaction solution into the reaction solution, and the echo information is received;
[0064] A2. Irradiate a transparent container containing the reaction solution using a light source array and collect information on the transmitted light spot; the transmitted light spot information includes the color, size, and position of the transmitted light spot;
[0065] A3. Based on the echo information and transmitted light spot information, determine whether the reaction solution has ended and separated into layers;
[0066] A4. After the reaction solution has finished reacting and separated into layers, the thickness of each liquid layer is determined based on the echo information, and the volume of each liquid layer is calculated and recorded as the first volume;
[0067] A5. After the reaction solution has finished reacting and separated into layers, the transmitted light spots are grouped based on the transmitted light spot information. The thickness of each liquid layer is determined according to the distribution height of the transmitted light spots in each group, and the volume of each liquid layer is calculated and denoted as the second volume.
[0068] A6. Combining the first and second volumes, determine the volume calculation results of each liquid layer.
[0069] Preferably, this method for calculating the volume of chemically separated liquids can be based on Figure 2 The device shown is for measuring the volume of chemically separated liquids.
[0070] This application combines ultrasonic and optical detection technologies to achieve automated and high-precision calculation of the volume of chemically layered liquids. It effectively solves the problems of low efficiency, large error, and time and labor consumption of traditional manual calculation, and significantly improves the efficiency and accuracy of chemical experimental analysis.
[0071] The "light source array" refers to a system composed of multiple vertically evenly arranged illumination light sources, whose function is to emit light beams into the reaction solution in the transparent container to acquire optical information. The "ultrasonic detection device" is a device capable of emitting and receiving ultrasonic waves, used to detect liquid stratification and thickness through acoustic principles. "Transmitted light spot information" refers to the data carried by the light spot formed after the light beam passes through the reaction solution, including its color, size, and position; this information is crucial for determining liquid stratification and calculating thickness. "Echo information" refers to the signal received by the ultrasonic detection device after the ultrasonic wave propagates in the liquid and is reflected at the interface; it contains depth information about the liquid layer interface. This method is mainly applied to the volume measurement of chemically layered liquids in square transparent containers, which are typically used for chemical reactions; their transparency allows light to pass through for optical detection.
[0072] Specifically, the method for calculating the volume of chemically separated liquids in this application includes the following main features:
[0073] First, in step A1, an ultrasonic testing device is used to vertically emit ultrasonic waves from the bottom of a transparent container containing the reaction solution into the solution, and the echo information is received. The ultrasonic testing device can employ a piezoelectric ceramic transducer, which converts electrical energy into ultrasonic waves and emits them into the liquid. When the ultrasonic waves encounter the interface between different liquid layers, they are reflected. The reflected waves are received by the same transducer or another receiving transducer, forming echo information. For example, a pulse-echo method can be used, emitting short pulse ultrasonic waves and then monitoring the arrival time and amplitude of the echoes.
[0074] Secondly, in step A2, a light source array is used to irradiate the transparent container containing the reaction solution, and the transmitted light spot information is collected. The light source array can consist of multiple LED light sources or laser diodes, which are uniformly arranged vertically and capable of emitting beams in mutually parallel horizontal directions. The transmitted light spot information can be collected by placing an image sensor (such as a CCD camera) on the other side of the container. This image sensor can capture the image of the light spot formed after the beam passes through the liquid and extract information such as the color, size, and position of the light spot.
[0075] Next, in step A3, based on the echo information and transmitted light spot information, it is determined whether the reaction solution has ended and separated into layers. For example, this can be determined by analyzing the stability of the echo signal; when the liquid layers stabilize, the waveform and time interval of the echo signal will tend to stabilize. Simultaneously, the transmitted light spot information will also exhibit a stable color, size, and positional distribution after the liquid layers stabilize. A time threshold can be set; if both the echo information and the transmitted light spot information remain stable within a certain period, it is determined that the reaction has ended and separated into layers.
[0076] Then, in step A4, after the reaction solution has completed and separated into layers, the thickness of each liquid layer is determined based on the echo information, and the volume of each liquid layer is calculated, denoted as the first volume. For example, by analyzing the time interval between different peaks in the echo signal and combining this with the propagation speed of ultrasound in the liquid, the thickness of each liquid layer can be calculated. Specifically, the propagation speed of ultrasound in different media is known. By measuring the time it takes for the ultrasound to travel from emission to reception and the reflected echo from a specific interface, the depth of that interface can be calculated, and thus the thickness of each liquid layer can be deduced. Multiplying the thickness of each liquid layer by the bottom area of the inner cavity of the transparent container yields the first volume of each liquid layer.
[0077] Simultaneously, in step A5, after the reaction solution has completed its reaction and separated into layers, the transmitted light spots are grouped based on the transmitted light spot information. The thickness of each liquid layer is determined according to the distribution height of each group of transmitted light spots, and this is used to calculate the volume of each liquid layer, denoted as the second volume. For example, the light spots can be grouped using clustering algorithms (such as the K-means algorithm) based on features such as color, size, and position. Since different liquid layers have different light absorption and scattering characteristics, the light spots passing through different liquid layers will exhibit different colors and sizes. By analyzing the distribution height of each group of light spots, the thickness of the corresponding liquid layer can be determined. Multiplying the thickness of each liquid layer by the bottom area of the inner cavity of the transparent container yields the second volume of each liquid layer.
[0078] Finally, in step A6, the first and second volumes are combined to determine the volume calculation results for each liquid layer. For example, the average of the first and second volumes can be calculated as the final calculation result. If the deviation between the two is too large, a recalculation or an alarm can be issued to ensure the accuracy of the calculation results.
[0079] This application presents a method for calculating the volume of chemically separated liquids. By combining ultrasonic and optical detection techniques, it achieves accurate volume measurement. In practice, the ultrasonic detection device first emits ultrasonic waves from the bottom of a transparent container, penetrating the reaction solution and receiving the echo information. This echo information contains depth data of the liquid layer interface. Simultaneously, a light source array illuminates the container; the beam passes through the reaction solution, forming transmitted light spots. A light spot acquisition device collects information such as the color, size, and position of these spots. After receiving the ultrasonic echo information and transmitted light spot information, the host computer first analyzes the stability of this information to determine whether the reaction solution has completed and stabilized into layers. Once the stratification is determined to be stable, the host computer uses both types of information to calculate the volume.
[0080] The core innovation of this application lies in the first-ever combination of ultrasonic and optical detection technologies, forming a dual-verification automated measurement mechanism. Ultrasonic detection accurately acquires depth information of the liquid layer interfaces, thereby calculating the thickness of each liquid layer and obtaining the first volume. Simultaneously, by irradiating the liquid with a light source array and collecting transmitted light spot information, the color, size, and position of the light spots are used for grouping and thickness calculation, yielding the second volume. These two independent measurement methods complement and verify each other, significantly improving the accuracy and reliability of the volume measurement results.
[0081] For example, in some cases, liquids may contain layers of similar color but with significant density differences. In such situations, optical detection may struggle to accurately distinguish them, while ultrasonic detection can clearly identify the interface through differences in acoustic impedance. Conversely, if the liquid layer significantly attenuates ultrasonic waves, resulting in unclear echo signals, optical detection can provide effective supplementary information through light spot characteristics. This dual verification mechanism effectively overcomes the limitations of single detection methods, ensuring high-precision calculations in complex chemical layered liquid environments.
[0082] Furthermore, this application automates the entire measurement process, eliminating the need for manual intervention, significantly improving experimental efficiency, reducing labor costs, and avoiding errors that may be introduced by manual operation. Through intelligent analysis of echo and transmitted light spot information by a host computer, it can not only automatically determine whether the reaction has ended and stratified, but also quickly and accurately perform volume calculations after stratification, comprehensively evaluate the results, and even issue alarms when anomalies occur. This automated and intelligent solution greatly promotes technological progress in the field of chemical experimental analysis, providing more efficient and accurate data support for chemical production and scientific research.
[0083] In actual operation, if the light source array continuously or for a long time irradiates the reaction solution, the temperature of the reaction solution may rise. This temperature rise will cause changes in the refractive index, absorptivity, and scattering characteristics of the reaction solution to the light beam, which in turn will cause drift in the collected transmitted light spot information, affecting the accuracy of subsequent volume calculations. This problem is particularly pronounced when the output beam of the light source array is a laser beam.
[0084] Therefore, in some implementations, step A2 includes:
[0085] A laser beam is intermittently emitted from a light source array to irradiate a transparent container containing a reaction solution, and information about the transmitted light spot is collected.
[0086] Specifically, the light source array is configured to emit beams in a discontinuous manner, meaning there is a certain time interval between the emitted beams. This intermittent emission can be understood as pulsed emission, where each pulse has a preset duration, and there is a preset pause time between two pulses. A laser beam refers to a beam with high directionality, high monochromaticity, and high brightness; its energy is concentrated, enabling it to clearly penetrate liquids and form light spots. By controlling the emission mode of the light source array, the energy irradiated onto the reaction solution can be effectively managed, thereby avoiding unnecessary temperature increases.
[0087] The present application's solution effectively controls the total and instantaneous energy irradiated onto the reaction solution by intermittently emitting laser beams from a light source array. This intermittent emission allows sufficient time for heat dissipation between irradiations, preventing continuous heat accumulation and thus avoiding an overall temperature rise in the solution. This stable temperature maintenance ensures that the physical and optical properties of the reaction solution (such as refractive index, absorptivity, and scattering characteristics) remain constant, guaranteeing that the color, size, and position of the transmitted light spot do not drift due to temperature changes.
[0088] Through the above technical solution, this application can effectively avoid the temperature rise of the reaction solution caused by light source irradiation, thereby eliminating the error caused by temperature drift in the transmitted light spot information. Therefore, the collected transmitted light spot information has higher stability and accuracy, providing a reliable data foundation for subsequent liquid stratification judgment and thickness calculation of each liquid layer, significantly improving the accuracy and reliability of the chemical stratified liquid volume measurement results.
[0089] In some implementations, step A3 includes:
[0090] A301. Analyze the stability of echo information and the stability of transmitted light spot information;
[0091] A302. If the duration for which the echo information remains stable and the duration for which the transmitted light spot information remains stable are both not less than the preset time threshold, then the reaction solution is determined to have ended and separated into layers.
[0092] The stability analysis of echo information refers to the continuous monitoring of characteristic parameters (e.g., peak position, amplitude, and frequency) of the echo signal received by the ultrasonic testing device to assess the changes in these parameters over a period of time. When these parameters remain within a preset first fluctuation range, the echo information is considered to be in a stable state. Similarly, the stability analysis of transmitted light spot information refers to the continuous monitoring of characteristic parameters (e.g., color, size, and position) of the transmitted light spot acquired by the light spot acquisition device to assess the changes in these parameters over a period of time. When these light spot characteristic parameters remain within a preset second fluctuation range, the transmitted light spot information is considered to be in a stable state. The preset time threshold can be understood as the shortest time required for the echo information and transmitted light spot information to remain stable before the system determines that the reaction solution has ended and separated into layers. Its purpose is to ensure that the observed stability is not an instantaneous phenomenon, but rather that the reaction solution has indeed reached a stable layered state. This time threshold can be empirically set or optimized through experiments based on specific chemical reaction characteristics, liquid viscosity, layering rate, and other factors.
[0093] This application's solution effectively addresses the ambiguity and inaccuracy inherent in traditional methods for determining layering states by introducing a dual-judgment mechanism for the stability of echo and transmitted light spot information. Specifically, when the reaction solution in a chemically layered liquid has not completely finished reacting or the layering process is still ongoing, its internal structure and interfaces continuously change. This is directly reflected in the ultrasonic echo signal and the transmitted light spot formed after the beam penetrates the liquid, manifesting as instability in the echo and transmitted light spot information. For example, the peak position or intensity of the echo may drift, and the color, size, or position of the transmitted light spot may also change. By analyzing the stability of these two types of information in step A301, the system can monitor the dynamic changes of the reaction solution in real time. Furthermore, step A302 sets a preset time threshold, requiring that both the echo and transmitted light spot information remain stable simultaneously and continuously before determining that the reaction solution has finished reacting and has layered. This dual and continuous stability judgment mechanism ensures that the system will only perform subsequent volume calculations when the internal structure of the liquid and the interfaces of each layer truly reach static equilibrium, i.e., when the reaction is completely finished and the layering is stable. This avoids errors that may result from calculations performed under unstable conditions, thus ensuring the accuracy of the calculation results.
[0094] Through the above technical solution, this application can significantly improve the accuracy and reliability of determining whether the reaction solution has ended and separated into layers. By employing dual stability assessment using echo information and transmitted light spot information, and introducing a duration threshold requirement, the system can effectively eliminate instantaneous fluctuations or incomplete separation, ensuring that volume calculation is only performed after the liquid layering state is truly stable. This avoids volume calculation errors caused by misjudging the layering state, thus providing a solid foundation for subsequent calculations of the first and second volumes, ultimately improving the overall accuracy and practicality of the entire chemical layered liquid volume calculation method.
[0095] In some implementations, step A4 includes:
[0096] A401. Identify the peaks of the echo information and extract the time interval between adjacent peaks;
[0097] A402. Calculate the thickness of each liquid layer based on the time interval and the speed of sound;
[0098] A403. Calculate the product of the thickness of each liquid layer and the bottom area of the inner cavity of the transparent container, and use it as the first volume of each liquid layer.
[0099] First, in step A401, ultrasonic waves are reflected as they pass through different media interfaces. These reflected waves are received by the ultrasonic detection device to form echo information. The peaks in the echo information typically correspond to the reflected signals generated at the interfaces between liquid layers or between a liquid layer and the bottom of a transparent container (e.g., the first peak corresponds to the reflected signal generated at the interface between the liquid layer and the bottom of the transparent container, and subsequent peaks correspond to the reflected signals at the top interfaces of each liquid layer). By analyzing these peaks, the time required for the ultrasonic wave to travel from emission to reception of a specific interface's reflected wave, as well as the time intervals between reflected waves from different interfaces, can be determined.
[0100] Secondly, in step A402, the propagation speed of ultrasound in the liquid medium is known or measurable. When ultrasound is reflected from one interface to the next and received, the increase in its propagation distance can be calculated by multiplying the speed of sound by the time interval between the corresponding wave crests. Since ultrasound propagates round trip, the actual thickness of the liquid layer is half the propagation distance increment. By extracting the time interval between adjacent wave crests, the thickness of the corresponding liquid layer can be accurately calculated.
[0101] Finally, in step A403, once the thickness of each liquid layer is determined, the volume of each liquid layer can be calculated using a simple geometric formula (volume = bottom area × height) by combining the known or pre-measured bottom area of the transparent container, and recorded as the first volume.
[0102] This application's solution utilizes the physical property of ultrasonic waves reflecting at the interfaces of different liquid layers to convert received echo information into quantifiable time interval data. These time intervals directly reflect the time required for the ultrasonic waves to travel round trip within each liquid layer. By combining this with known parameters of the sound velocity in the liquid medium, the actual thickness of each liquid layer can be accurately deduced. This measurement method based on physical propagation characteristics provides reliable thickness data for subsequent volume calculations.
[0103] The above technical solution enables non-contact, non-destructive thickness measurement of layered chemical liquids using ultrasonic testing devices. Based on the principle of sound wave propagation and reflection in different media, this method directly acquires the positional information of the liquid layer interfaces, thereby accurately calculating the thickness of each liquid layer. Combined with the bottom area of the transparent container's inner cavity, the precise initial volume of each liquid layer can be obtained, providing crucial physical measurement evidence for the comprehensive determination of subsequent volume calculations and improving the accuracy and reliability of the measurement.
[0104] It should be noted that in practical applications, the bottom edge of the inner cavity of the transparent container may have a rounded structure. In this case, after step A403, the first volume of the liquid layer to which the rounded structure is located (usually the bottommost liquid layer) needs to be corrected. For example, the corrected first volume can be obtained by subtracting the pre-calibrated volume error (which is the amount of reduction in the bottom volume of the transparent container caused by the presence of the rounded structure) from the first volume before correction.
[0105] In some implementations, step A5 includes:
[0106] A501. Compare the colors in the transmission spot information of each transmission spot with the preset reference colors to identify the effective spots from the transmission spots; the reference color is the standard color of the transmission spot formed after the emitted beam of the light source array passes through the empty transparent container; the effective spot refers to the transmission spot formed after the emitted beam of the light source array passes through the reaction solution.
[0107] A502. A multi-dimensional data structure is formed using the color, size, and position of the transmitted light spot information for each effective light spot;
[0108] A503. Based on the multi-dimensional data structure of each effective spot and the preset number of liquid layers, a clustering algorithm is used to cluster the effective spots to obtain multiple effective spot clusters;
[0109] A504. Determine the thickness of the corresponding liquid layer based on the distribution height of each effective light spot cluster;
[0110] A505. Calculate the product of the thickness of each liquid layer and the bottom area of the inner cavity of the transparent container, and use it as the second volume of each liquid layer.
[0111] Specifically, in step A501, it is first necessary to identify the effective light spots. An effective light spot refers to the transmitted light spot formed after the emitted light beam from the light source array passes through the reaction solution. To distinguish between effective light spots and ineffective light spots (e.g., transmitted light spots formed directly by the beam passing through the container wall), a reference color can be preset. This reference color can be the standard color of the transmitted light spot formed after the emitted light beam from the light source array passes through an empty transparent container. In actual operation, by comparing the color in the transmitted light spot information of each acquired transmitted light spot with the preset reference color, those transmitted light spots whose color changes due to passing through the reaction solution can be effectively identified and thus marked as effective light spots.
[0112] Further, in step A502, for each identified valid light spot, the color, size, and position of its transmitted light spot information are extracted and organized into a multi-dimensional data structure. This multi-dimensional data structure contains key features describing a single valid light spot, providing a data foundation for subsequent clustering analysis. The position information may include the height and lateral position of the light spot, depending on the incident method of the light source array and the configuration of the light spot acquisition device. For example, the multi-dimensional data structure can be represented as a feature vector: [color value, light spot diameter, position data].
[0113] Building upon this, in step A503, these valid light spots are clustered using a clustering algorithm. The purpose of the clustering algorithm is to group valid light spots with similar characteristics into one class, thereby forming multiple valid light spot clusters. During clustering, the multi-dimensional data structure of each valid light spot (i.e., color, size, and position) and the preset number of liquid layers (the number of liquid layers determines the number of cluster centers) can be comprehensively considered. For example, if it is known that the reaction solution is divided into three layers, the goal of the clustering algorithm can be set to form three light spot clusters. Commonly used clustering algorithms include K-means, DBSCAN, etc., and a suitable algorithm can be selected according to the actual application scenario and data characteristics.
[0114] Subsequently, in step A504, once multiple effective light spot clusters are formed, the thickness of the corresponding liquid layer can be determined based on the distribution height of each effective light spot cluster. Since the illumination sources of the light source array are uniformly arranged vertically and the beam is emitted horizontally, different liquid layers will cause the beam to form transmitted light spots with specific characteristics at different heights. By analyzing the height range of the light spots in each light spot cluster, the vertical distribution range of the liquid layer corresponding to that cluster in the transparent container can be inferred, and thus the thickness of the liquid layer can be calculated.
[0115] Finally, in step A505, once the thickness of each liquid layer is determined, the second volume of each liquid layer can be calculated by multiplying its thickness by the bottom area of the transparent container's inner cavity. The bottom area of the transparent container's inner cavity is a known parameter, and the volume of each liquid layer can be obtained through simple multiplication.
[0116] This application's solution achieves precise calculation of the volume of each layer in a chemically layered liquid by refining and analyzing the transmitted light spot. Specifically, firstly, by comparing the color of the transmitted light spot with a reference color, the effective light spot passing through the reaction solution can be accurately distinguished, avoiding interference from ineffective light spots in the calculation results. Subsequently, the color, size, and position information of the effective light spot are integrated into a multi-dimensional data structure, providing rich and comprehensive feature descriptions for subsequent cluster analysis. By using a clustering algorithm, light spots belonging to the same liquid layer can be automatically classified according to these multi-dimensional data structures, forming different light spot clusters, thereby effectively identifying the boundaries of different liquid layers. Finally, based on the distribution height of each light spot cluster, the actual thickness of each liquid layer can be accurately determined, and combined with the bottom area of the container's inner cavity, the second volume of each liquid layer can be calculated. This method fully utilizes the physical principle that the characteristics of the transmitted light spot (such as color, size, and position) change when a light beam passes through different media, and achieves the identification and thickness measurement of the layered liquid interface through data analysis.
[0117] The above technical solution provides a more refined and accurate method for determining liquid layer thickness based on transmitted light spot information. By introducing effective light spot identification, constructing a multi-dimensional data structure, and applying clustering algorithms, the transmitted light spots formed by different liquid layers can be effectively distinguished and classified, thereby improving the accuracy and reliability of liquid layer thickness determination based on optical methods. This method avoids the errors that may arise from judging based on a single feature, providing a more solid data foundation for subsequent volume calculations, and thus improving the overall accuracy of volume measurement for chemically layered liquids.
[0118] It should be noted that in practical applications, the bottom edge of the inner cavity of a transparent container may have a rounded structure. In this case, after step A505, the second volume of the liquid layer to which the rounded structure is located (usually the bottommost liquid layer) needs to be corrected. For example, the corrected second volume can be obtained by subtracting the pre-calibrated volume error from the second volume before correction.
[0119] In some possible implementations, in step A2, a light source array is used to irradiate the transparent container containing the reaction solution in a normal incident manner;
[0120] The position in the transmitted light spot information includes its height;
[0121] Step A502 includes:
[0122] A multi-dimensional data structure is formed using the color, size, and height of the transmitted light spot information for each effective light spot.
[0123] Specifically, normal incidence refers to the light beam emitted by the light source array incident on the container in a direction perpendicular to the sidewall of the transparent container. When the light source array illuminates the container in normal incidence, the change in the lateral position of the beam as it passes through different liquid layers is negligible. Therefore, under this illumination mode, the positional feature in the transmitted light spot information is mainly reflected in its height. Limiting the position of the transmitted light spot information to height can more accurately reflect the vertical distribution characteristics of the liquid layers. Thus, when constructing a multi-dimensional data structure, the color, size, and height of each effective light spot are used as its feature vector for subsequent cluster analysis. This data structure can effectively capture the influence of different liquid layers on the color and size of the light beam, and combined with its vertical distribution, provides an accurate data foundation for liquid layer identification and thickness calculation.
[0124] This application's solution optimizes the construction of a multi-dimensional data structure by illuminating a transparent container with normal incidence and limiting the positional feature of the transmitted light spot information to height. Because the light beam passes through the container with normal incidence, its horizontal deflection or displacement is minimized, making the lateral positional information of the transmitted light spot less critical for distinguishing vertically layered liquids. Therefore, incorporating only height as the positional dimension into the multi-dimensional data structure effectively simplifies the data model and reduces redundant information. This simplified data structure allows for a more focused approach when clustering effective light spots using clustering algorithms, prioritizing the color, size, and vertical distribution characteristics of the spots. This improves the efficiency and accuracy of the clustering algorithm, leading to more precise identification and thickness determination of each liquid layer.
[0125] By employing the above technical solution, when using normal incidence irradiation, unnecessary lateral positional information can be avoided in the multi-dimensional data structure, thus simplifying the data processing process. This optimization not only improves the efficiency of data processing but also, due to the simplification and focus of data features, enables the clustering algorithm to identify different liquid layers with higher accuracy, ultimately improving the precision of thickness measurement for each liquid layer and providing a more reliable foundation for subsequent volume calculations.
[0126] The above method does not fully utilize the characteristic that different liquid layers have different refractive indices for light beams. In addition, in order to improve measurement accuracy, the arrangement density of the illumination light sources in the light source array is set to be relatively large, and the size of the light spot obtained after the light beam is scattered may be large, which may lead to the overlap between adjacent light spots of adjacent liquid layers, thus affecting the accuracy of the measurement results.
[0127] Therefore, in some other possible implementations, in step A2, a light source array is used to irradiate the transparent container containing the reaction solution at a preset incident angle tilted on the horizontal plane.
[0128] The position in the transmitted light spot information includes both height and lateral position;
[0129] Step A502 includes:
[0130] A multi-dimensional data structure is formed by combining the color, size, height, and lateral position of the transmitted light spot information of each effective light spot.
[0131] Specifically, illuminating a transparent container with a light source array at a preset incident angle tilted on the horizontal plane means that the light beam emitted by the light source array is not perpendicular to the container wall, but rather forms a non-zero incident angle with the container wall in the horizontal direction. This preset incident angle can be set according to factors such as the actual application scenario, the properties of the liquid, and the container material. Its purpose is to ensure that the light beam produces an observable deflection in the horizontal direction due to the refraction effect when passing through the interface of different liquid layers.
[0132] The position information of the transmitted light spot includes not only its height but also its lateral position. Height refers to the vertical position of the transmitted light spot, while lateral position refers to its horizontal position. By simultaneously acquiring both the height and lateral position information of the light spot, the spatial distribution characteristics of the light spot can be described more comprehensively.
[0133] In practical applications, step A502 uses the color, size, height, and lateral position of the transmitted light spot information for each effective light spot to form a multi-dimensional data structure. This means that when constructing data for cluster analysis, in addition to color and size, the height and lateral position of the light spot are also considered as independent dimensions. This multi-dimensional data structure can provide the clustering algorithm with richer and more discriminative feature information, thereby improving the accuracy of the clustering results.
[0134] This application's solution utilizes a light source array to illuminate a transparent container at a preset incident angle tilted to the horizontal plane. As the light beam passes through the interfaces of liquid layers with different refractive indices, it refracts according to Snell's law, resulting in an observable shift in the horizontal position of the transmitted light spot. This tilted incident method introduces unique displacement characteristics into each liquid layer in the horizontal direction. Based on this, the positional dimension of the transmitted light spot information is expanded to include height and lateral position, forming a multi-dimensional data structure. This allows the clustering algorithm to fully utilize this additional horizontal positional information when grouping valid light spots. By comprehensively considering multiple dimensions such as color, size, height, and lateral position, the clustering algorithm can more accurately identify light spots belonging to the same liquid layer, thus avoiding misjudgments caused by insufficient information in a single dimension and improving the accuracy of determining the thickness of each liquid layer.
[0135] By employing the above-described technical solution and incorporating the lateral position information of the transmitted light spot using an obliquely incident light source, richer and more discriminative feature data can be obtained when grouping the transmitted light spots. This significantly enhances the clustering algorithm's ability to identify light spots in different liquid layers and improves grouping accuracy, especially when the liquid layer interface is not perfectly smooth or the liquid refractive index varies greatly, enabling it to more effectively capture subtle changes in the light spot. Therefore, this application can more accurately determine the thickness of each liquid layer, thereby improving the overall accuracy and reliability of chemical layered liquid volume measurement.
[0136] In practical applications, due to factors such as the complexity of the measurement environment, sensor errors, or changes in solution characteristics, there may be certain deviations between the first volume and the second volume. If these deviations are not effectively processed, direct integration may lead to a decrease in the accuracy and reliability of the final measurement results.
[0137] Therefore, in some implementations, step A6 includes:
[0138] A601. Calculate the absolute deviation between the first and second volumes of each liquid layer;
[0139] A602. If the absolute deviation of all liquid layers is not greater than the preset deviation threshold, then calculate the average of the first volume and the second volume of each liquid layer as the volume measurement result of that liquid layer.
[0140] A603. If the absolute value deviation of at least one liquid layer is greater than the preset deviation threshold, the first volume and the second volume shall be recalculated to calculate the volume measurement results of each liquid layer.
[0141] A604. If the number of times the first volume and the second volume are measured reaches a preset threshold, and there is still an absolute deviation of at least one liquid layer that is greater than a preset deviation threshold, an alarm message will be issued.
[0142] Specifically, in step A601, the absolute value deviation refers to the absolute value of the difference between two measurements, used to quantify the degree of numerical deviation between the first volume and the second volume. It can be obtained by subtracting the corresponding first volume from the second volume of each liquid layer and then taking the absolute value of the result.
[0143] In step A602, the preset deviation threshold is a configurable parameter used to define the acceptable range of measurement error. When the measurement deviations of all liquid layers are within this threshold, it indicates that the results of the two measurement methods have high consistency. In this case, calculating the average of the first and second volumes as the final measurement result is a common and effective fusion strategy, the purpose of which is to further smooth out random errors and improve the accuracy of the measurement results.
[0144] In practical applications, step A603 indicates that when a significant deviation exists, it suggests that the current measurement may be abnormal or have a large error, requiring remeasurement to obtain more reliable data. Recalculation may include repeating steps A1 to A5, or calibrating or checking the equipment before recalculation.
[0145] Furthermore, in step A604, a preset threshold is used to limit the number of repeated measurements to prevent infinite loops. If a consistent result cannot be obtained even after reaching this threshold, it indicates a potential systemic problem or serious malfunction. In this case, an alarm can be issued in the form of audible and visual signals, on-screen prompts, or remote notifications to remind operators to perform manual intervention or equipment maintenance.
[0146] This application's solution effectively addresses the accuracy and reliability issues that may arise from directly integrating two measurement results in the basic scheme by introducing a mechanism for judging and handling the deviation between the first and second volumes. Specifically, by calculating the absolute value deviation and comparing it with a preset deviation threshold, the consistency of the two measurement results can be quantitatively evaluated. When the deviation is within an acceptable range, averaging is used for fusion, leveraging the complementarity of the two independent measurement methods to further reduce random errors and improve the accuracy of the final measurement result. When the deviation exceeds the threshold, the system can identify potential measurement anomalies and attempt to eliminate these anomalies through recalculation, thereby avoiding the inclusion of erroneous data in the final result. Furthermore, setting a threshold for the number of calculations and an alarm mechanism allows the system to issue timely warnings when facing persistent or serious measurement problems, preventing the waste of resources due to repeated invalid measurements and prompting manual intervention to investigate the root cause, thus ensuring the robustness and safety of the entire volume measurement process.
[0147] Through the above technical solution, this application can significantly improve the accuracy and reliability of the volume calculation results for chemical stratified liquids. By performing deviation verification and intelligent processing on two independent measurement results, the limitations or error accumulation that may exist in a single measurement method are effectively avoided, ensuring the accuracy of the final volume calculation results. At the same time, the introduced retesting mechanism and alarm function enable the system to have self-correction and early warning capabilities in the face of abnormal situations, greatly enhancing the robustness and safety of the calculation process, reducing the risk of production accidents or resource waste caused by measurement errors, and thus providing more reliable data support for the precise control of chemical production processes.
[0148] refer to Figure 2 This application provides a chemical stratified liquid volume measurement device, including a host computer 1, a light source array 2, an ultrasonic detection device 3, and a light spot acquisition device 4;
[0149] The ultrasonic testing device 3 is used to vertically emit ultrasonic waves from the bottom of the transparent container 90 containing the reaction solution into the reaction solution, receive the echo information, and send the echo information to the host computer 1.
[0150] The light source array 2 includes multiple irradiation light sources 201 that are uniformly arranged in the vertical direction. All irradiation light sources 201 are able to emit beams in horizontal directions that are parallel to each other to irradiate the transparent container 90 containing the reaction solution.
[0151] The light spot acquisition device 4 is used to acquire the light spot image formed by the transmitted light spot after the light beam passes through the transparent container 90 containing the reaction solution, and send it to the host computer 1;
[0152] Host computer 1 is used to execute:
[0153] The transmitted light spot information is obtained from the light spot image; the transmitted light spot information includes the color, size, and position of the transmitted light spot;
[0154] Based on the echo information and transmitted light spot information, determine whether the reaction solution has ended and separated into layers (for details, please refer to step A3 above).
[0155] After the reaction solution has finished reacting and separated into layers, the thickness of each liquid layer is determined based on the echo information, and the volume of each liquid layer is calculated and recorded as the first volume (for details, please refer to step A4 above).
[0156] After the reaction solution has completed and separated into layers, the transmitted light spots are grouped based on the transmitted light spot information. The thickness of each liquid layer is determined according to the distribution height of each group of transmitted light spots, and the volume of each liquid layer is calculated and recorded as the second volume (for details, please refer to step A5 above).
[0157] By combining the first and second volumes, the volume calculation results of each liquid layer are determined (for details, please refer to step A6 above).
[0158] The ultrasonic testing device 3 can use commercially available ultrasonic sensor modules, such as piezoelectric ceramic transducers, which can convert electrical signals into ultrasonic pulses and emit them into the liquid. When the ultrasonic waves encounter the interface between different liquid layers, they are reflected, and the reflected waves are received by the same transducer or another receiving transducer. The received echo signals are processed and then transmitted to the host computer 1 via wired (e.g., USB, Ethernet) or wireless (e.g., Wi-Fi, Bluetooth) methods for further analysis.
[0159] Secondly, the light source array 2 can consist of multiple independent laser diodes or high-brightness LEDs. These light sources are precisely mounted on a bracket to ensure that they are uniformly distributed vertically and that the emitted beams are parallel to each other. The power supply and control of the light source array 2 can be achieved through a host computer 1 or an independent controller to ensure stable beam emission.
[0160] The host computer 1 can be an industrial control computer, an embedded system, or a high-performance PC, running specialized software programs. The host computer 1 performs image processing on the light spot image, for example, using algorithms such as edge detection, color recognition, and size measurement to extract information about the transmitted light spot, including its color, size, and position. The host computer 1 can also display the calculation process and results in real time on a monitor, and can further upload the data to the cloud or a remote server via a network interface.
[0161] In some implementations, see Figure 2 The light spot acquisition device 4 includes a reflector 401, a screen 402, and a camera 403;
[0162] The reflector 401 is used to reflect the transmitted light beam after passing through the transparent container 90 containing the reaction solution to the screen 402, so as to form a transmitted light spot on the screen 402.
[0163] Camera 403 is used to capture images of light spots on screen 402 and send them to host computer 1.
[0164] The reflector 401 is configured to receive the light beam transmitted from the transparent container 90 and reflect it onto the screen 402. Specifically, when the light beam emitted by the light source array 2 passes through the layered liquid in the transparent container 90, the transmitted light beam is reflected by the reflector 401 along its propagation path, changing its propagation direction so that it can be projected onto the screen 402. The arrangement of the reflector 401 makes the acquisition position of the light spot image more flexible and can adapt to different experimental layouts or space constraints.
[0165] The screen 402 is configured to receive the transmitted light beam reflected by the reflector 401 and form a clearly visible transmitted light spot on its surface. The screen 402 is typically made of a diffuse reflective material to ensure that the transmitted light spot is evenly distributed on its surface, avoiding local over-brightness or under-brightness caused by specular reflection, thus facilitating subsequent image acquisition.
[0166] Camera 403 is configured to image the transmitted light spot on screen 402, capturing information such as its color, size, and position to form a digitized light spot image. The captured light spot image is then transmitted to host computer 1 for further processing and analysis to obtain transmitted light spot information. The acquired light spot image data can be transmitted to host computer 1 via high-speed data cable (such as GigE Vision, USB 3.0) or wirelessly.
[0167] By combining the reflector 401 and the screen 402, the problems of space limitations or difficulties in optical path adjustment that may be faced by the direct acquisition method (i.e., directly setting a visual sensor on the side of the transparent container 90 facing away from the light source array 2 to acquire transmitted light spot information) can be effectively solved, ensuring the accuracy and integrity of the light spot image.
[0168] Through the above technical solution, the structure of the light spot acquisition device 4 is concretized, providing a clear and reliable method for acquiring transmitted light spot images. The use of the reflector 401 makes the optical path design more flexible and adaptable to different experimental environments; the screen 402 ensures the uniform display of the transmitted light spot, providing a good imaging target for the camera 403; the camera 403 is responsible for digitizing the light spot information and transmitting it to the host computer 1. Thus, transmitted light spot information can be acquired efficiently and accurately, providing a high-quality data foundation for subsequent liquid stratification judgment and volume calculation, and improving the practicality and adaptability of the entire calculation method.
[0169] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A method for measuring the volume of a layered chemical liquid, characterized by, Based on a light source array and an ultrasonic detection device, the volume of each liquid layer of a chemically separated liquid in a square transparent container is calculated. The light source array includes multiple irradiation light sources that are uniformly arranged in the vertical direction, and all of the irradiation light sources can emit light beams in mutually parallel horizontal directions. The method for calculating the volume of chemically layered liquids includes the following steps: A1. Using an ultrasonic testing device, ultrasonic waves are emitted vertically from the bottom of a transparent container containing the reaction solution into the reaction solution, and the echo information is received; A2. Irradiate a transparent container containing a reaction solution using a light source array and collect transmitted light spot information; the transmitted light spot information includes the color, size, and position of the transmitted light spot; A3. Based on the echo information and the transmitted light spot information, determine whether the reaction solution has ended and separated into layers; A4. After the reaction solution has finished reacting and separated into layers, the thickness of each liquid layer is determined based on the echo information, and the volume of each liquid layer is calculated and recorded as the first volume; A5. After the reaction solution has finished reacting and separated into layers, the transmitted light spots are grouped based on the transmitted light spot information. The thickness of each liquid layer is determined according to the distribution height of each group of transmitted light spots, and the volume of each liquid layer is calculated and recorded as the second volume. A6. Combining the first volume and the second volume, determine the volume calculation results of each liquid layer; Step A5 includes: A501. Compare the colors in the transmission spot information of each transmission spot with a preset reference color to identify the effective light spots from the transmission spots; the reference color is the standard color of the transmission spot formed after the emitted beam of the light source array passes through an empty transparent container; the effective light spot refers to the transmission spot formed after the emitted beam of the light source array passes through the reaction solution. A502. A multi-dimensional data structure is formed using the color, size, and position of the transmitted light spot information for each effective light spot; A503. Based on the multi-dimensional data structure of each effective light spot and the preset number of liquid layers, the effective light spots are clustered using a clustering algorithm to obtain multiple effective light spot clusters; A504. Determine the thickness of the corresponding liquid layer based on the distribution height of each effective light spot cluster; A505. Calculate the product of the thickness of each liquid layer and the bottom area of the inner cavity of the transparent container, and use it as the second volume of each liquid layer; In step A2, a light source array is used to irradiate a transparent container containing the reaction solution at a preset incident angle tilted on a horizontal plane. The position of the transmitted light spot information includes its height and lateral position; Step A502 includes: A multi-dimensional data structure is formed by combining the color, size, height, and lateral position of the transmitted light spot information of each effective light spot; Step A6 includes: A601. Calculate the absolute deviation between the first volume and the second volume of each liquid layer; A602. If the absolute value deviation of all liquid layers is not greater than a preset deviation threshold, then the average value of the first volume and the second volume of each liquid layer is calculated as the volume measurement result of that liquid layer; A603. If the absolute value deviation of at least one liquid layer is greater than a preset deviation threshold, the first volume and the second volume are recalculated to calculate the volume measurement results of each liquid layer; A604. If the number of times the first volume and the second volume are measured reaches a preset threshold, and the absolute value deviation of at least one liquid layer is still greater than a preset deviation threshold, an alarm message is issued.
2. The method of claim 1, wherein, Step A2 includes: A laser beam is intermittently emitted from a light source array to irradiate a transparent container containing a reaction solution, and information about the transmitted light spot is collected.
3. The method of claim 1, wherein, Step A3 includes: A301. Analyze the stability of the echo information and the stability of the transmitted light spot information; A302. If the duration for which the echo information remains stable and the duration for which the transmitted light spot information remains stable are both not less than a preset time threshold, then it is determined that the reaction solution has ended and separated into layers.
4. The method for calculating the volume of chemically separated liquids according to claim 1, characterized in that, Step A4 includes: A401. Identify the peaks of the echo information and extract the time interval between adjacent peaks; A402. Calculate the thickness of each liquid layer based on the time interval and the speed of sound; A403. Calculate the product of the thickness of each liquid layer and the bottom area of the inner cavity of the transparent container, and use it as the first volume of each liquid layer.
5. The method of claim 1, wherein, In step A2, a light source array is used to irradiate the transparent container containing the reaction solution in a normal incident manner; The position in the transmitted light spot information includes its height; Step A502 includes: A multi-dimensional data structure is formed using the color, size, and height of the transmitted light spot information for each effective light spot.
6. A chemical layered liquid volume measuring device, characterized by, Includes a host computer, a light source array, an ultrasonic detection device, and a light spot acquisition device; The ultrasonic detection device is used to vertically emit ultrasonic waves from the bottom of the transparent container containing the reaction solution into the reaction solution, receive echo information, and send the echo information to the host computer. The light source array includes multiple illumination light sources evenly arranged in a vertical direction. All of the illumination light sources are capable of emitting beams in mutually parallel horizontal directions to irradiate the transparent container containing the reaction solution. The light spot acquisition device is used to acquire the light spot image formed by the transmission of light spot after the light beam passes through the transparent container containing the reaction solution, and send it to the host computer. The host computer is used to execute: The transmitted light spot information is obtained from the light spot image; the transmitted light spot information includes the color, size, and position of the transmitted light spot; Based on the echo information and the transmitted light spot information, determine whether the reaction solution has ended and separated into layers; After the reaction solution has completed and separated into layers, the thickness of each liquid layer is determined based on the echo information, and the volume of each liquid layer is calculated and recorded as the first volume. After the reaction solution has completed and separated into layers, the transmitted light spots are grouped based on the transmitted light spot information. The thickness of each liquid layer is determined according to the distribution height of each group of transmitted light spots, and the volume of each liquid layer is calculated and denoted as the second volume. By combining the first volume and the second volume, the volume calculation results of each liquid layer are determined; After the reaction solution has completed and separated into layers, the host computer groups the transmitted light spots based on the transmitted light spot information. It then determines the thickness of each liquid layer based on the distribution height of each group of transmitted light spots, and uses this information to calculate the volume of each liquid layer, which is denoted as the second volume. The specific execution is as follows: A501. Compare the colors in the transmission spot information of each transmission spot with a preset reference color to identify the effective light spots from the transmission spots; the reference color is the standard color of the transmission spot formed after the emitted beam of the light source array passes through an empty transparent container; the effective light spot refers to the transmission spot formed after the emitted beam of the light source array passes through the reaction solution. A502. A multi-dimensional data structure is formed using the color, size, and position of the transmitted light spot information for each effective light spot; A503. Based on the multi-dimensional data structure of each effective light spot and the preset number of liquid layers, the effective light spots are clustered using a clustering algorithm to obtain multiple effective light spot clusters; A504. Determine the thickness of the corresponding liquid layer based on the distribution height of each effective light spot cluster; A505. Calculate the product of the thickness of each liquid layer and the bottom area of the inner cavity of the transparent container, and use it as the second volume of each liquid layer; When acquiring the light spot image, the light source array illuminates the transparent container containing the reaction solution at a preset incident angle tilted on the horizontal plane; The position of the transmitted light spot information includes its height and lateral position; Step A502 includes: A multi-dimensional data structure is formed by combining the color, size, height, and lateral position of the transmitted light spot information of each effective light spot; When the host computer combines the first volume and the second volume to determine the volume calculation results of each liquid layer, it executes the following: A601. Calculate the absolute deviation between the first volume and the second volume of each liquid layer; A602. If the absolute value deviation of all liquid layers is not greater than a preset deviation threshold, then the average value of the first volume and the second volume of each liquid layer is calculated as the volume measurement result of that liquid layer; A603. If the absolute value deviation of at least one liquid layer is greater than a preset deviation threshold, the first volume and the second volume are recalculated to calculate the volume measurement results of each liquid layer; A604. If the number of times the first volume and the second volume are measured reaches a preset threshold, and the absolute value deviation of at least one liquid layer is still greater than a preset deviation threshold, an alarm message is issued.
7. The chemical layered liquid volume measurement device of claim 6, wherein, The light spot acquisition device includes a reflector, a screen, and a camera; The reflector is used to reflect the transmitted light beam that has passed through the transparent container containing the reaction solution back to the screen, so as to form a transmitted light spot on the screen; The camera is used to capture images of light spots on the screen and send them to the host computer.
Citation Information
Patent Citations
Detection unit of laser radar, laser radar and detection method thereof
CN113447933A
Distance detection method, anti-interference laser radar system and measurement method
CN119024302A