Liquid separation identification method, system and equipment and storage medium
Through real-time image information processing and target detection technology, combined with YOLO and CNN feature comparison, the problem of poor liquid separation identification accuracy in chemical production is solved, and high-accuracy automatic liquid separation is achieved, avoiding false negatives and false alarms, and improving improve the safety and efficiency of chemical production.
Patent Information
- Application Number
- CN202410754916.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-06
AI Technical Summary
The existing liquid separation identification in chemical production has poor identification accuracy, leading to problems of omissions and false positives, and posing safety hazards.
By obtaining real-time image information of the reactor liquid level during the extraction process, feature extraction and target detection are performed, and image comparison is performed by combining the YOLO algorithm, hash features, sift features and CNN features to achieve accurate identification and control of the liquid separation process and avoid False positives and false negatives.
It improves the accuracy of liquid separation identification, realizes unsupervised automatic liquid separation, reduces time costs, is suitable for extraction scenarios of different reaction types, and basically does not require liquid separation data annotation and model training, ensuring the safety and efficiency of chemical production. sex.
Smart Images

Figure CN118609053A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of chemical industry, and in particular to a liquid separation identification method, system, equipment and storage medium. Background Art
[0002] In recent years, with the rapid development of AI technology, especially in the chemical industry, various chemical experiments have begun to move towards semi-automatic or fully automated control. The perfect combination of real-time monitoring of terminal equipment such as cameras and computer vision technology can effectively solve the extraction and separation of experiments and realize the automation of chemical experiments, which greatly improves the production efficiency of enterprises and ensures the personal safety of employees.
[0003] However, most of the existing chemical production is still in the manual operation and semi-automation stage, and is still far from the goal of full automation. The key problem lies in the variability of material extraction conditions, processes and reaction types in chemical production, especially large-scale production, hundreds of thousands of equipment are produced simultaneously every day, and each equipment has to undergo a variety of different material extractions. It is necessary to ensure both efficient production and safe production without failure. Therefore, the requirements for automated control are getting higher and higher.
[0004] At present, there are two ways to identify emulsified liquid in a liquid-dispensing sight glass, manual identification and immersion material sensor identification. Manual identification is easy to miss or misidentify due to the high speed of liquid flow and the need for a certain reaction time and operation time, resulting in unstable product quality. Immersion sensors have the disadvantages of short service life and high cost. In order to improve the above problems, researchers have invented many new devices and methods. For example, the invention patent with the authorization publication number CN112403036B provides a machine vision sight glass liquid-dispensing device and its use method. The method calculates the volume of the product liquid and the residual liquid in the first container, and then adjusts the height of the second container according to the volume, and then controls the valve according to the adjusted height, and uses the equal pressure in the two containers to achieve static control. This mechanical structure has the advantages of long service life and free and flexible operation. The utility model patent with the authorization publication number CN216367877U performs visual recognition or conductivity detection on the separated liquid flowing out of the reaction kettle liquid inlet; when the visual recognition parameter of the separated liquid is the color pigment ratio value of the preset fixed area or the conductivity parameter is the preset fixed value, the separated liquid discharge is completed and the liquid separation is completed, otherwise the liquid separation continues. The method monitors and detects the separated liquid in real time, can grasp the separation process in real time, and makes the liquid separation process automatic. The Chinese invention patent with the authorization publication number CN112546671 B reads the image of the liquid separation surface of the sight glass by non-contact machine vision, which is convenient for liquid separation identification and thus realizes continuous extraction; the liquid separation surface is obtained by multi-partition comparison and liquid separation surface identification algorithm analysis and processing, with high control accuracy and not easy to block; the liquid separation PID control algorithm is used to realize continuous automatic production of extraction production, with reliable performance and high safety. The utility model patent with the authorization publication number CN219149311 U discloses a plant extract extraction device, which relates to the technical field of plant extraction devices, introduces spectral analysis technology, and solves the problem that visual technology is difficult to overcome in extracting under shading conditions. Most of the above methods are based on visual technology to solve the relevant technical difficulties of the extraction process for a certain type of extraction device to achieve automated extraction. However, the above methods still have the problem of inaccurate recognition. Whether it is traditional mechanical control or the method based on machine vision liquid separation recognition, missed reports and false reports in chemical production will lead to safety hazards. Summary of the invention
[0005] In view of the problem that liquid separation identification in the prior art has poor recognition accuracy, resulting in missed reports and false reports in chemical production, the present invention provides a liquid separation recognition method, system, equipment and storage medium.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions:
[0007] The present invention provides a liquid separation identification method, comprising:
[0008] Obtain real-time image information of the liquid level of the reactor during the extraction process;
[0009] Extract features from the real-time image information of the reactor liquid surface, perform target detection, and obtain the reactor liquid surface image features and target detection results at each moment;
[0010] Compare the image features of the reactor liquid surface at this moment with the image features of the reactor liquid surface at the previous moment. If the similarity is ≥ the threshold and the target detection recognizes that a stratified interface appears on the reactor liquid surface, start liquid separation and track the position of the stratified interface.
[0011] When dispensing, obtain real-time image information of the liquid surface in the dispensing tube;
[0012] Extract features from the real-time image information of the liquid surface in the dispensing tube to obtain the image features of the liquid surface in the dispensing tube at each moment;
[0013] The image features of the liquid surface in the dispensing tube at this moment are compared with the image features of the liquid surface in the dispensing tube at the previous moment. If the similarity is less than the threshold, the dispensing is stopped; if the similarity is greater than or equal to the threshold and the position of the stratified interface in the reactor has not reached the target position, the dispensing is continued; if the similarity is greater than or equal to the threshold and the position of the stratified interface in the reactor has reached the target position, the dispensing is stopped.
[0014] Furthermore, when extracting features from the real-time image information of the reactor liquid surface and performing target detection, the interface of the middle layer after the extraction reaction is completed is taken as the target object, and target object identification and target position tracking are performed.
[0015] Furthermore, the YOLO algorithm is used to identify the target and track the target position.
[0016] Furthermore, the image features of the reactor liquid surface at this moment are compared with the image features of the reactor liquid surface at the previous moment. If the similarity is greater than the threshold, and the target detection identifies a stratified interface on the reactor liquid surface, liquid separation is started, and the method for tracking the position of the stratified interface is as follows:
[0017] Extract the hash features and sift features of the reactor liquid surface image at this moment;
[0018] Extract the hash features and SIFT features of the reactor liquid surface image at the previous moment;
[0019] Calculate hash similarity based on the hash features of the reactor liquid surface image at this moment and the hash features of the reactor liquid surface image at the previous moment;
[0020] Calculate the SIFT feature matching degree according to the SIFT features of the reactor liquid surface image at this moment and the SIFT features of the reactor liquid surface image at the previous moment;
[0021] If the hash similarity and SIFT feature matching are both ≥ the threshold, and the target detection identifies a stratified interface on the reactor liquid surface, liquid separation begins and the position of the stratified interface is tracked;
[0022] If both the hash similarity and the SIFT feature matching are less than the threshold, the extraction reaction continues;
[0023] If the hash similarity is less than the threshold or the SIFT feature matching is less than the threshold, the CNN features of the reactor liquid surface image at this moment and the CNN features of the reactor liquid surface image at the previous moment are extracted;
[0024] Calculate CNN similarity based on the CNN features of the reactor liquid surface image at this moment and the CNN features of the reactor liquid surface image at the previous moment;
[0025] If the CNN similarity is less than the threshold, the extraction reaction continues;
[0026] If the CNN similarity is ≥ the threshold, and the target detection identifies a stratified interface on the liquid surface of the reactor, liquid separation begins and the position of the stratified interface is tracked.
[0027] Furthermore, the image features of the liquid surface of the dispensing tube at this moment are compared with the image features of the liquid surface of the dispensing tube at the previous moment. If the similarity is less than the threshold, the dispensing is stopped; if the similarity is greater than or equal to the threshold, the position of the stratified interface in the reactor has not reached the target position, and the dispensing is continued; if the similarity is greater than or equal to the threshold, the position of the stratified interface in the reactor has reached the target position, and the method of stopping the dispensing is:
[0028] Extract the hash features and sift features of the liquid level image of the dispensing tube at this moment;
[0029] Extract the hash features and sift features of the liquid level image of the dispensing tube at the previous moment;
[0030] Calculate hash similarity based on the hash features of the liquid level image of the dispensing tube at this moment and the hash features of the liquid level image of the dispensing tube at the previous moment;
[0031] Calculate the SIFT feature matching degree based on the SIFT features of the liquid surface image of the dispensing tube at this moment and the SIFT features of the liquid surface image of the dispensing tube at the previous moment;
[0032] If both the hash similarity and the SIFT feature matching are less than the threshold, the separation is stopped;
[0033] If the hash similarity and SIFT feature matching are both ≥ the threshold, and the position of the stratified interface in the reactor has not reached the target position, the liquid separation will continue; if the position of the stratified interface in the reactor reaches the target position, the liquid separation will be stopped;
[0034] If the hash similarity is less than the threshold or the SIFT feature matching is less than the threshold, the CNN features of the liquid level image of the dispensing tube at this moment and the CNN features of the liquid level image of the dispensing tube at the previous moment are extracted;
[0035] Calculate the CNN similarity based on the CNN features of the liquid surface image of the dispensing tube at this moment and the CNN features of the liquid surface image of the dispensing tube at the previous moment;
[0036] If the CNN similarity is ≥ the threshold, the position of the stratified interface in the reactor has not reached the target position, and the liquid separation will continue; if the position of the stratified interface in the reactor reaches the target position, the liquid separation will be stopped;
[0037] If the CNN similarity is less than the threshold, the separation is stopped.
[0038] Preferably, a Pre-trained Model plus Fine-tuning is used to extract CNN features of the image.
[0039] Preferably, the hash similarity is ahash similarity, dhash similarity or phash similarity.
[0040] A liquid separation identification method system, comprising:
[0041] Reactor real-time image information acquisition module: used to obtain real-time image information of the reactor liquid surface during the extraction process;
[0042] Layered interface target detection module: used to extract features from the real-time image information of the reactor liquid surface and perform target detection;
[0043] Liquid separation and stratification interface position tracking module: used for target detection. When a stratification interface is detected on the liquid surface of the reactor, liquid separation starts and the position of the stratification interface is tracked.
[0044] The module for acquiring real-time image information of the liquid level in the dispensing tube is used to acquire real-time image information of the liquid level in the dispensing tube during dispensing;
[0045] Image information feature extraction module: used to extract features from the real-time image information of the liquid surface of the dispensing tube, and obtain the image features of the liquid surface of the dispensing tube at each moment;
[0046] Image feature comparison module: used to compare the image features of the liquid surface in the dispensing tube at this moment with the image features of the liquid surface in the dispensing tube at the previous moment. If the similarity is less than the threshold, the dispensing is stopped; if the similarity is greater than or equal to the threshold and the position of the stratified interface in the reactor has not reached the target position, the dispensing is continued; if the similarity is greater than or equal to the threshold but the stratified liquid surface in the reactor has reached the target position, the dispensing is stopped.
[0047] A terminal device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0048] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0049] Compared with the prior art, the present invention has the following beneficial effects:
[0050] The present invention provides a liquid separation identification method, which obtains real-time image information of the liquid surface of the reactor during the extraction process; extracts features of the real-time image information of the liquid surface of the reactor, and performs target detection to obtain the image features of the liquid surface of the reactor at each moment and the target detection results; and judges the completion of the extraction reaction by comparing the image features and the target detection results, and performs liquid separation according to the completion of the extraction reaction; when separating the liquid, extracts features of the liquid surface of the liquid separation tube to obtain the image features of the liquid surface of the liquid separation tube at each moment; and judges whether the liquid separation is completed according to the image feature comparison results of the previous and next moments and the position of the reactor layer interface, thereby realizing liquid separation identification. The method combines the image comparison method based on visual image recognition and the target detection method to realize effective liquid separation identification, which can solve the problems of inaccurate liquid separation identification, false alarms, and missed alarms in the extraction scenes of different substances and reaction types in chemical production, realizes unsupervised automatic liquid separation, basically does not need to perform liquid separation data labeling and model training, has low time cost, is suitable for liquid separation identification after extraction of any reaction type, has high liquid separation identification accuracy and flexible response.
[0051] The YOLO (You Only Look Once) algorithm is used to identify and track targets. The technology is highly mature and runs fast, which can meet the recognition and tracking needs of real-time systems.
[0052] By extracting the hash features and SIFT features of the reactor or dispensing tube liquid surface images at this moment and the previous moment; by calculating the hash similarity between this moment and the previous moment, matching the global pixel features; by calculating the SIFT feature matching between this moment and the previous moment, matching the local feature points, and using the hash similarity and SIFT feature matching as the first layer matching to improve the recognition accuracy, when one of the hash similarity and SIFT feature matching is ≥ the threshold, the Convolutional Neural Networks (CNN) similarity calculation is introduced, and the CNN similarity is used as the second layer matching to further improve the matching accuracy.
[0053] The invention provides a liquid separation recognition method system. By setting a reactor real-time image information acquisition module, a layered interface target detection module, a liquid separation and layered interface position tracking module, a liquid separation tube liquid surface real-time image information acquisition module, an image information feature extraction module and an image feature comparison module, the system can realize the acquisition of real-time image information of the reactor liquid surface during the extraction process; feature extraction is performed on the real-time image information of the reactor liquid surface, and target detection is performed to obtain the reactor liquid surface image features and target detection results at each moment; and the completion of the extraction reaction is judged by comparing the image features and the target detection results, and liquid separation is performed according to the completion of the extraction reaction; when liquid separation, feature extraction is performed on the liquid separation tube liquid surface real-time image information to obtain the liquid separation tube liquid surface image features at each moment; and whether the liquid separation process is completed is judged according to the image feature comparison results at previous and next moments and the reactor layered interface position, thereby realizing unsupervised automatic recognition and automatic liquid separation, and the system structure is simple and easy to operate.
[0054] The present invention also provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program. The device has a simple structure, low modification cost, and small resource occupation.
[0055] A computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the above method when executed by a processor. The storage medium has good portability and strong versatility. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 The figure is a schematic diagram of the steps of a liquid separation and identification method of the present invention.
[0057] Figure 2 The present invention is a flow chart of a liquid separation identification method.
[0058] Figure 3 The data processing flow chart of a liquid separation identification method of the present invention.
[0059] Figure 4 It is a layered interface position diagram of the reactor of the present invention.
[0060] Figure 5 This is a flow chart of the target detection of a reactor according to the present invention.
[0061] Figure 6 This is a time series diagram of the dispensing tube in the acid extraction and dispensing scenario.
[0062] Figure 7 This is a time series diagram of the liquid separation tube in the alkaline extraction liquid separation scenario.
[0063] Figure 8 This is a time series diagram of the liquid separation tube in the alkaline extraction liquid separation scenario.
[0064] Fig. 9 A liquid separation recognition system structure of the present invention is intended DETAILED DESCRIPTION
[0065] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0066] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0067] The present invention is further described in detail below in conjunction with specific embodiments, which are intended to explain the present invention rather than to limit it.
[0068] See also Figures 1 to 5 The present invention discloses a liquid separation identification method, comprising:
[0069] S1: Obtaining real-time image information of the liquid surface of the reactor during the extraction process: the reactor can be equipped with a camera for real-time image acquisition;
[0070] S2: Feature extraction of real-time image information of the reactor liquid surface, and target detection, to obtain the image features of the reactor liquid surface and target detection results at each moment: Feature extraction of real-time image information of the reactor liquid surface, including the first-layer matching of traditional image grayscale texture feature extraction, based on hash algorithms (hash algorithms, hash) type algorithms, such as the hash value (Average Hash, ahash) calculated based on the average color of the image, the hash value (Difference Hash, dhash) calculated based on the difference between adjacent pixels, and the extraction of corresponding features of the perceptual hash value (Perceptual Hash, phash) based on discrete cosine transform; also includes machine vision image local feature extraction, Scale-Invariant Feature Transform (SIFT) algorithm to detect and describe local features in the image, SIFT feature extraction; and the second-layer matching of deep learning convolutional neural network image feature extraction, pre-trained model (pre-trained model) plus fine-tuning (fine-tune) extraction;
[0071] YOLO (You Only Look Once), a commonly used algorithm in target detection algorithms, is an object recognition and positioning algorithm based on deep neural networks. Its biggest feature is that it runs very fast and can be used in real-time systems.
[0072] S3: Compare the image features of the reactor liquid surface at this moment with the image features of the reactor liquid surface at the previous moment. If the similarity is ≥ the threshold value, and the target detection recognizes that a stratified interface appears on the reactor liquid surface, start liquid separation and track the position of the stratified interface: that is, when the upper and lower interfaces in the reactor are clear and a phase interface is formed after the refractive index of light is regularly offset, a stratified interface appears. The stratified interface is identified by target detection and tracked as a target.
[0073] Extract the hash features and sift features of the reactor liquid surface image at this moment;
[0074] Extract the hash features and SIFT features of the reactor liquid surface image at the previous moment;
[0075] Calculate the hash similarity based on the hash features of the reactor liquid surface image at this moment and the hash features of the reactor liquid surface image at the previous moment; that is, extract the hash features of the current image, then compare the bit difference between the hash value of the current image and the hash value of the image k seconds ago, count the number of XORs of the two sets of hash values equal to 1, and finally divide by the total number of hash features to calculate the hash similarity of the two images;
[0076] According to the SIFT features of the reactor liquid surface image at this moment and the SIFT features of the reactor liquid surface image at the previous moment, the SIFT feature matching degree is calculated; that is, the distance between feature points is calculated by Euclidean distance, the matching point information is obtained, and then the matching points are filtered and screened by ratio test, and finally the ratio of the number of filtered matching points to all feature points is counted as the feature matching degree of the two images;
[0077] If the hash similarity and SIFT feature matching are both ≥ the threshold, and the target detection identifies a stratified interface on the reactor liquid surface, liquid separation begins and the position of the stratified interface is tracked;
[0078] If both the hash similarity and the SIFT feature matching are less than the threshold, the extraction reaction continues;
[0079] If the hash similarity is less than the threshold or the SIFT feature matching is less than the threshold, the CNN features of the reactor liquid surface image at this moment and the CNN features of the reactor liquid surface image at the previous moment are extracted; that is, the high-dimensional features of the image are extracted through the convolutional neural network, vectorized, and the cosine similarity of the feature vector is calculated.
[0080] Calculate CNN similarity based on the CNN features of the reactor liquid surface image at this moment and the CNN features of the reactor liquid surface image at the previous moment;
[0081] If the CNN similarity is less than the threshold, the extraction reaction continues;
[0082] If the CNN similarity is ≥ the threshold, and the target detection identifies a stratified interface on the liquid surface of the reactor, liquid separation begins and the position of the stratified interface is tracked.
[0083] Target detection means focusing on a specific object target, and requires obtaining the category information and location information of this target at the same time. Compared with classification, detection gives an understanding of the foreground and background of the image. We need to separate the target of interest from the background and determine the description category and location of this target, which is usually represented by the coordinates of a rectangular detection box. Therefore, for the target detection of the reactor, the intermediate layer interface that appears after the reactor is left to stand and stratify can be regarded as the target object, and the target object such as the stratification interface can be identified and tracked.
[0084] S4: during liquid dispensing, obtaining real-time image information of the liquid surface in the dispensing tube: a camera may be set in the dispensing tube to obtain real-time image information;
[0085] S5: extracting features from the real-time image information of the liquid surface of the dispensing tube to obtain the image features of the liquid surface of the dispensing tube at each moment; extracting the real-time image information of the dispensing tube in the above manner;
[0086] S6: Compare the image features of the liquid surface of the dispensing tube at this moment with the image features of the liquid surface of the dispensing tube at the previous moment. If the similarity is less than the threshold, stop dispensing; if the similarity is greater than or equal to the threshold, the position of the stratified interface in the reactor has not reached the target position, then continue dispensing; if the similarity is greater than or equal to the threshold, the position of the stratified interface in the reactor has reached the target position, then stop dispensing:
[0087] Extract the hash features and sift features of the liquid level image of the dispensing tube at this moment;
[0088] Extract the hash features and sift features of the liquid level image of the dispensing tube at the previous moment;
[0089] Calculate hash similarity based on the hash features of the liquid level image of the dispensing tube at this moment and the hash features of the liquid level image of the dispensing tube at the previous moment;
[0090] Calculate the SIFT feature matching degree based on the SIFT features of the liquid surface image of the dispensing tube at this moment and the SIFT features of the liquid surface image of the dispensing tube at the previous moment;
[0091] If both the hash similarity and the SIFT feature matching are less than the threshold, the separation is stopped;
[0092] If the hash similarity and SIFT feature matching are both ≥ the threshold, and the position of the stratified interface in the reactor has not reached the target position, the liquid separation will continue; if the position of the stratified interface in the reactor reaches the target position, the liquid separation will be stopped;
[0093] If the hash similarity is less than the threshold or the SIFT feature matching is less than the threshold, the CNN features of the liquid level image of the dispensing tube at this moment and the CNN features of the liquid level image of the dispensing tube at the previous moment are extracted;
[0094] Calculate the CNN similarity based on the CNN features of the liquid surface image of the dispensing tube at this moment and the CNN features of the liquid surface image of the dispensing tube at the previous moment;
[0095] If the CNN similarity is ≥ the threshold value, and the position of the stratified interface in the reactor has not reached the target position, the liquid separation continues; if the position of the stratified interface in the reactor reaches the target position, the liquid separation is stopped;
[0096] If the CNN similarity is less than the threshold, the separation is stopped.
[0097] It should be noted that the threshold value can be set according to the requirements of liquid separation accuracy. Generally, a smaller threshold value, such as 0.5, is set to ensure recognition accuracy.
[0098] See also Figures 6 to 8, taking the acid, alkali and water liquid separation scenario as an example, the above method is further explained. It should be noted that this method is not limited to the acid, alkali and water liquid separation scenario, but is also applicable to other reactant extraction and liquid separation scenarios.
[0099] First, extract the hash features and sift features of the image at the previous moment in the reactor, and then extract the hash features and sift features of the corresponding image after an interval of ts. Calculate the hash similarity and sift feature matching based on the hash features and sift features of the two extracted images, and compare them with the corresponding thresholds. When the hash similarity and sift matching are both less than the threshold, continue the extraction reaction. When one of the hash similarity and sift feature matching is greater than the threshold, extract the convolutional neural network features of the two images and calculate the similarity of the CNN convolution features. Voting is performed based on the calculated hash similarity, sift feature matching, and CNN similarity. When two of the similarities are greater than the threshold, it proves that the image changes are small. At this time, the target detection model is used to detect whether there is stratification. If there is stratification, it proves that the stratification is completed and liquid separation is performed;
[0100] During the liquid separation process, the target detection model is used to detect whether the layered interface reaches the bottom of the reactor, i.e., the target position. If it reaches the bottom, and the CNN similarity and hash similarity of the image extracted from the liquid separation tube at a certain moment and the previous moment, or the CNN similarity and SIFT feature matching are both less than the threshold, the liquid separation is stopped.
[0101] See also Figure 6 ,
[0102] When performing the separation of the acid extraction reaction, the color of the image in the separation tube begins to change at 20 seconds as the acid concentration decreases. If the calculated similarity between the image at 19 seconds and the image at 21 seconds is less than the threshold, the separation is stopped and the acid extraction reaction separation is completed.
[0103] See also Figure 7 When performing the separation of the alkaline extraction reaction, the image in the separation tube changes color suddenly at 68 seconds, gradually changing from light yellow to gray. At this time, if the similarity between the calculated 68-second image and the image at the previous moment is less than the threshold, the separation is stopped and the alkaline extraction reaction separation is completed.
[0104] See also Figure 8 When the water extraction reaction is being separated, the image in the separation tube changes color suddenly at 43s and gradually turns gray. At this time, the calculated similarity between the 43s image and the 41s image is less than the threshold, so the separation is stopped and the water extraction reaction separation is completed.
[0105] See also Fig. 9 , a liquid separation identification method system, characterized by comprising:
[0106] Reactor real-time image information acquisition module: used to obtain real-time image information of the reactor liquid surface during the extraction process;
[0107] Layered interface target detection module: used to extract features from the real-time image information of the reactor liquid surface and perform target detection;
[0108] Liquid separation and stratification interface position tracking module: used for target detection to start liquid separation and track the position of the stratification interface when a stratification interface appears on the liquid surface of the reactor;
[0109] The module for acquiring real-time image information of the liquid level in the dispensing tube is used to acquire real-time image information of the liquid level in the dispensing tube during dispensing;
[0110] Image information feature extraction module: used to extract features from the real-time image information of the liquid surface of the dispensing tube, and obtain the image features of the liquid surface of the dispensing tube at each moment;
[0111] Image feature comparison module: used to compare the image features of the liquid surface in the dispensing tube at this moment with the image features of the liquid surface in the dispensing tube at the previous moment. If the similarity is less than the threshold, the dispensing is stopped; if the similarity is greater than or equal to the threshold and the position of the stratified interface in the reactor has not reached the target position, the dispensing is continued; if the similarity is greater than or equal to the threshold but the stratified liquid surface in the reactor has reached the target position, the dispensing is stopped.
[0112] The present invention provides a terminal device including: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor executes the computer program, the functions of the modules / units in the above-mentioned device embodiments are implemented.
[0113] The computer program may be divided into one or more modules / units, and the one or more modules / units are stored in the memory and executed by the processor to accomplish the present invention.
[0114] The terminal device may be a computing device such as a desktop computer, a notebook, a palmtop computer, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.
[0115] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0116] The memory may be used to store the computer programs and / or modules, and the processor implements various functions of the terminal device by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory.
[0117] If the module / unit integrated in the terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0118] In summary, the present invention provides a liquid separation recognition method, system, equipment and storage medium. The method is based on a liquid separation recognition model of a traditional image feature and a deep learning image feature similarity method and a target detection liquid separation recognition model of a visual image; a liquid separation recognition model integration strategy based on a target detection method and an image similarity method realizes the recognition, tracking, comparison and liquid separation control of the layered interface in the extraction process; the image feature similarity method adopted by the present invention is an unsupervised method with mature technology and no need for separate training models for the extraction of any reactants, thus saving time and cost, and having high recognition accuracy and sensitive control response, thus avoiding safety hazards caused by false alarms and missed alarms, and is an advanced technology for intelligent liquid separation, laying the foundation for the industrialization of unmanned experiments.
[0119] The above description is only a preferred embodiment of the present invention and is not intended to impose any limitation on the technical solution of the present invention. Those skilled in the art should understand that, without departing from the spirit and principles of the present invention, the technical solution can also be subjected to several simple modifications and substitutions, and these modifications and substitutions are also within the scope of protection covered by the claims.
Claims
1. A liquid separation identification method, characterized in that: include: Obtain real-time image information of the liquid level of the reactor during the extraction process; Extract features from the real-time image information of the reactor liquid surface, perform target detection, and obtain the reactor liquid surface image features and target detection results at each moment; Compare the image features of the reactor liquid surface at this moment with the image features of the reactor liquid surface at the previous moment. If the similarity is ≥ the threshold and the target detection recognizes that a stratified interface appears on the reactor liquid surface, start liquid separation and track the position of the stratified interface. When dispensing, obtain real-time image information of the liquid surface in the dispensing tube; Extract features from the real-time image information of the liquid surface in the dispensing tube to obtain the image features of the liquid surface in the dispensing tube at each moment; The image features of the liquid surface in the dispensing tube at this moment are compared with the image features of the liquid surface in the dispensing tube at the previous moment. If the similarity is less than the threshold, the dispensing is stopped; if the similarity is greater than or equal to the threshold and the position of the stratified interface in the reactor has not reached the target position, the dispensing is continued; if the similarity is greater than or equal to the threshold and the position of the stratified interface in the reactor has reached the target position, the dispensing is stopped.
2. The liquid separation identification method according to claim 1, characterized in that: When extracting features from the real-time image information of the reactor liquid surface and performing target detection, the interface of the middle layer after the extraction reaction is completed is taken as the target object, and target object recognition and target position tracking are performed.
3. The liquid separation identification method according to claim 2, characterized in that: The YOLO algorithm is used to identify the target and track the target position.
4. The liquid separation identification method according to claim 1, characterized in that: The image features of the reactor liquid surface at this moment are compared with the image features of the reactor liquid surface at the previous moment. If the similarity is greater than the threshold, and the target detection recognizes that a stratified interface appears on the reactor liquid surface, liquid separation is started, and the method for tracking the position of the stratified interface is as follows: Extract the hash features and sift features of the reactor liquid surface image at this moment; Extract the hash features and SIFT features of the reactor liquid surface image at the previous moment; Calculate hash similarity based on the hash features of the reactor liquid surface image at this moment and the hash features of the reactor liquid surface image at the previous moment; Calculate the SIFT feature matching degree according to the SIFT features of the reactor liquid surface image at this moment and the SIFT features of the reactor liquid surface image at the previous moment; If the hash similarity and SIFT feature matching are both ≥ the threshold, and the target detection identifies a stratified interface on the reactor liquid surface, liquid separation begins and the position of the stratified interface is tracked; If both the hash similarity and the SIFT feature matching are less than the threshold, the extraction reaction continues; If the hash similarity is less than the threshold or the SIFT feature matching is less than the threshold, the CNN features of the reactor liquid surface image at this moment and the CNN features of the reactor liquid surface image at the previous moment are extracted; Calculate CNN similarity based on the CNN features of the reactor liquid surface image at this moment and the CNN features of the reactor liquid surface image at the previous moment; If the CNN similarity is less than the threshold, the extraction reaction continues; If the CNN similarity is ≥ the threshold, and the target detection identifies a stratified interface on the liquid surface of the reactor, liquid separation begins and the position of the stratified interface is tracked.
5. The liquid separation identification method according to claim 1, characterized in that: The image features of the liquid surface of the dispensing tube at this moment are compared with the image features of the liquid surface of the dispensing tube at the previous moment. If the similarity is less than the threshold, the dispensing is stopped; if the similarity is greater than or equal to the threshold, the position of the stratified interface in the reactor has not reached the target position, and the dispensing is continued; if the similarity is greater than or equal to the threshold, the position of the stratified interface in the reactor has reached the target position, and the method of stopping the dispensing is: Extract the hash features and sift features of the liquid level image of the dispensing tube at this moment; Extract the hash features and sift features of the liquid level image of the dispensing tube at the previous moment; Calculate hash similarity based on the hash features of the liquid level image of the dispensing tube at this moment and the hash features of the liquid level image of the dispensing tube at the previous moment; Calculate the SIFT feature matching degree based on the SIFT features of the liquid surface image of the dispensing tube at this moment and the SIFT features of the liquid surface image of the dispensing tube at the previous moment; If both the hash similarity and the SIFT feature matching are less than the threshold, the separation is stopped; If the hash similarity and SIFT feature matching are both ≥ the threshold, and the position of the stratified interface in the reactor has not reached the target position, the liquid separation will continue; if the position of the stratified interface in the reactor reaches the target position, the liquid separation will be stopped; If the hash similarity is less than the threshold or the SIFT feature matching is less than the threshold, the CNN features of the liquid level image of the dispensing tube at this moment and the CNN features of the liquid level image of the dispensing tube at the previous moment are extracted; Calculate the CNN similarity based on the CNN features of the liquid surface image of the dispensing tube at this moment and the CNN features of the liquid surface image of the dispensing tube at the previous moment; If the CNN similarity is ≥ the threshold, the position of the stratified interface in the reactor has not reached the target position, and the liquid separation will continue; if the position of the stratified interface in the reactor reaches the target position, the liquid separation will be stopped; If the CNN similarity is less than the threshold, the separation is stopped.
6. The liquid separation identification method according to claim 4 or 5, characterized in that: Pre-trained Model plus Fine-tuning is used to extract CNN features of the image.
7. The liquid separation identification method according to claim 1, characterized in that: The hash similarity is ahash similarity, dhash similarity or phash similarity.
8. A liquid separation identification method system, characterized in that: include: Reactor real-time image information acquisition module: used to obtain real-time image information of the reactor liquid surface during the extraction process; Layered interface target detection module: used to extract features from the real-time image information of the reactor liquid surface and perform target detection; Liquid separation and stratification interface position tracking module: used for target detection. When a stratification interface is detected on the liquid surface of the reactor, liquid separation starts and the position of the stratification interface is tracked. The module for acquiring real-time image information of the liquid level in the dispensing tube is used to acquire real-time image information of the liquid level in the dispensing tube during dispensing; Image information feature extraction module: used to extract features from the real-time image information of the liquid surface of the dispensing tube, and obtain the image features of the liquid surface of the dispensing tube at each moment; Image feature comparison module: used to compare the image features of the liquid surface in the dispensing tube at this moment with the image features of the liquid surface in the dispensing tube at the previous moment. If the similarity is less than the threshold, the dispensing is stopped; if the similarity is greater than or equal to the threshold and the position of the stratified interface in the reactor has not reached the target position, the dispensing is continued; if the similarity is greater than or equal to the threshold but the stratified liquid surface in the reactor has reached the target position, the dispensing is stopped.
9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
A machine vision mirror liquid dispensing device and its use method
CN112403036B
A continuous extraction control device and method based on machine vision-based liquid separation recognition
CN112546671B
Liquid separation integrated device
CN216367877U
Plant extract extraction device
CN219149311U
Cited By
Pesticide detection and analysis method based on liquid chromatography-tandem mass spectrometry
CN120233027A
Self-adaptive liquid separation identification method based on unsupervised learning
CN120544099A
An adaptive liquid recognition method based on unsupervised learning
CN120544099B
