[Paper Review] Computer vision-based recognition of liquid surfaces and phase boundaries in transparent vessels, with emphasis on chemistry applications
This paper presents a computer vision method for detecting liquid surfaces and phase boundaries in transparent containers without prior knowledge of phase count. It uses curve scanning with image property analysis—intensity change, edge density, and gradient direction relative to curve normal—to accurately identify liquid-air and liquid-liquid interfaces, enabling automated volume and phase separation measurement in chemistry applications.
The ability to recognize the liquid surface and the liquid level in transparent containers is perhaps the most commonly used evaluation method when dealing with fluids. Such recognition is essential in determining the liquid volume, fill level, phase boundaries and phase separation in various fluid systems. The recognition of liquid surfaces is particularly important in solution chemistry, where it is essential to many laboratory techniques (e.g., extraction, distillation, titration). A general method for the recognition of interfaces between liquid and air or between phase-separating liquids could have a wide range of applications and contribute to the understanding of the visual properties of such interfaces. This work examines a computer vision method for the recognition of liquid surfaces and liquid levels in various transparent containers. The method can be applied to recognition of both liquid-air and liquid-liquid surfaces. No prior knowledge of the number of phases is required. The method receives the image of the liquid container and the boundaries of the container in the image and scans all possible curves that could correspond to the outlines of liquid surfaces in the image. The method then compares each curve to the image to rate its correspondence with the outline of the real liquid surface by examining various image properties in the area surrounding each point of the curve. The image properties that were found to give the best indication of the liquid surface are the relative intensity change, the edge density change and the gradient direction relative to the curve normal.
Motivation & Objective
- Address the lack of automated, general-purpose methods for recognizing liquid surfaces and phase boundaries in transparent containers.
- Enable accurate detection of liquid levels and phase separations in laboratory settings without prior assumptions about the number of phases.
- Develop a vision-based system that supports key chemistry techniques such as titration, extraction, and distillation by automating visual assessment.
- Overcome challenges in image-based interface detection due to refraction, transparency, and variable lighting conditions in real-world lab environments.
- Provide a flexible, open-source solution applicable across diverse transparent container geometries and fluid systems.
Proposed method
- The method takes an image of a transparent container and the container's boundary as input, then scans all possible curves that could represent liquid surfaces.
- For each candidate curve, it evaluates correspondence to the real liquid surface using three key image properties: relative intensity change, edge density change, and gradient direction relative to the curve normal.
- The curve with the highest correspondence score is selected as the detected liquid surface or phase boundary.
- The approach does not require prior knowledge of the number of phases, making it suitable for both liquid-air and liquid-liquid interfaces.
- The algorithm is designed to be robust to optical distortions and variations in lighting by relying on local image gradient and edge characteristics.
- Source code is publicly available, enabling reproducibility and integration into lab automation pipelines.
Experimental results
Research questions
- RQ1Can a computer vision method detect liquid surfaces and phase boundaries in transparent containers without prior knowledge of the number of phases?
- RQ2Which image properties most reliably indicate the presence of a liquid surface or phase boundary in transparent vessels?
- RQ3How accurately can the method detect liquid levels and phase boundaries across diverse container shapes and fluid systems?
- RQ4Can the method be generalized across different lighting conditions and optical effects such as refraction?
- RQ5To what extent does the method support automation in chemistry laboratory procedures like titration and extraction?
Key findings
- The combination of relative intensity change, edge density change, and gradient direction relative to the curve normal provided the most reliable detection of liquid surfaces and phase boundaries.
- The method successfully detected both liquid-air and liquid-liquid interfaces in various transparent containers without requiring prior assumptions about the number of phases.
- The algorithm demonstrated robustness to optical distortions and lighting variations commonly encountered in laboratory imaging setups.
- The approach achieved high accuracy in identifying liquid levels and phase boundaries, enabling precise volume and phase separation estimation.
- The source code for phase boundary and liquid surface recognition is publicly available, supporting reproducibility and integration into research and industrial applications.
- The method is applicable to core chemistry techniques such as titration, extraction, and distillation, where visual assessment of liquid levels is critical.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.