Automated analysis of foam samples

By generating and segmenting time series images of foam samples, creating space-time diagrams and calculating their characteristic curves, the problem of low time resolution and difficult boundary segmentation of foam analysis in the existing technology is solved, and rapid and accurate analysis of foam samples is achieved.

CN118696334APending Publication Date: 2024-09-24TOTALENERGIES ONETECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202180105443.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2021-12-17
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing foam analysis methods rely on manual image collection and analysis, with low temporal resolution, and existing automated solutions have limitations in boundary segmentation and cannot be effectively applied to multiple foam types, especially where solvent and high contrast changes are limited. situation.

Method used

Create a space-time map image by generating a time series image set of a foam sample in a predetermined shrinkage direction and segment it into segments. Determine thresholds using pixel stacks, graphical features and learning models. Generate a curve representing the shrinkage characteristics of the foam sample. Calculate the half-life. and seepage velocity.

Benefits of technology

It achieves rapid and accurate analysis of the temporal evolution of foam samples, enables objective assessment of foam structural properties, processes large data sets, significantly improves analysis efficiency, and reduces the possibility of manual errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118696334A
    Figure CN118696334A
Patent Text Reader

Abstract

The present disclosure particularly relates to a computer-implemented method for analyzing the temporal evolution of a foam sample. The method includes providing a time series image set of a foam sample undergoing a constriction process in a predetermined constriction direction. The method further includes generating a spatiotemporal diagram image from the time series image set. The spatiotemporal diagram image represents the temporal evolution of the layout of the foam sample in a predetermined contraction direction. The method further includes segmenting the spatiotemporal diagram image into a set of segments. The method further includes creating one or more curves representing boundaries of the fragments. This forms an improved solution for analyzing foam samples.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer programs and systems, and more particularly, to a method, program, storage medium and system for analyzing the temporal evolution of a foam sample. Background Art

[0002] Foams are ubiquitous in a variety of applications. The physical and chemical properties of foams are of great interest in a variety of applications, from enhanced oil recovery and crude oil degassing to CO2 capture solvents, aeration of automotive engine lubricating oils, and more. Depending on the application, foam stability may be desired (as in exchangers), undesirable (as in gas stations), or unavoidable (as in separators), but it is good to understand it because it affects the system design. The physical and chemical properties of foams, especially stability, have a great impact on the application, and it is crucial to evaluate these properties.

[0003] Image analysis is one way to assess foam properties. However, image analysis is usually a manual process involving manual image acquisition. This process is tedious, time-consuming, error-prone and not reproducible. In addition, due to the manual nature of the acquisition work, the information extracted is very limited, as is the temporal resolution.

[0004] This manual approach can be further enhanced by acquiring images at different times of the foam life and then using commercial software tools for image analysis such as ImageJ. However, such manual approaches rely heavily on user intervention and provide only limited information. The temporal resolution of image acquisition is still limited to the limited number of images that can be acquired manually, and the temporal resolution of image analysis is also limited to the resolution of the manual analysis.

[0005] There are some automatic solutions now. However, the main challenge of these solutions is to classify the images into foam and non-foam regions on each image.

[0006] Some existing solutions are based on finding the highest derivative of the intensity / grayscale of the acquired image. This solution requires high contrast on the boundary between two regions and low contrast variations within each phase. However, foam is characterized by low contrast at the top boundary, especially near the end of life, so it is not feasible to apply such existing solutions to foam and non-foam areas.

[0007] Another solution available on the market is the Dynamic Foam Analyzer DFA100, provided by the Kruss package (instrument + software). However, this solution can only be applied to a relatively small number of foams, e.g. not to solvents such as those present in crude oil degassing. In addition, such systems have further limitations, such as requiring large volumes, temperature or frame rate limitations of the acquisition system. All these limitations may limit the overall length of the experiment or limit the number of samples that can be analyzed simultaneously.

[0008] In this context, there remains a need for an improved method for analyzing the temporal evolution of foam samples. Summary of the invention

[0009] Therefore, a computer-implemented method for analyzing the temporal evolution of a foam sample is provided. The method includes providing a set of time-series images of a foam sample undergoing a shrinkage process in a predetermined shrinkage direction. The method also includes generating a space-time graph image from the set of time-series images. The space-time graph image represents the temporal evolution of the layout of the foam sample in the predetermined shrinkage direction. The method also includes segmenting the space-time graph image into a set of segments. The method also includes creating one or more curves representing the boundaries of the segments.

[0010] The method may include one or more of the following:

[0011] The generating the space-time graph image may include:

[0012] determining, from each corresponding image of the set of time-series images, a pixel stack representing the configuration of the foam sample in the predetermined shrinkage direction; and

[0013] · laterally juxtaposing a plurality of said pixel stacks;

[0014] The determining each corresponding pixel stack may include: for each corresponding pixel of the pixel stack, averaging the pixels of the corresponding image in a direction perpendicular to the predetermined shrinking direction;

[0015] The segmentation may be based on one or more graphical features of the spatiotemporal graph image, including:

[0016] one or more pixel characteristics, such as intensity and / or gray level,

[0017] one or more local neighborhood features, such as texture, entropy, and / or standard deviation,

[0018] One or more patterns exist,

[0019] One or more connectivity criteria, and / or

[0020] one or more similarity criteria;

[0021] The segmentation may be, for at least one corresponding graphical feature, based on one or more thresholds of the corresponding graphical feature;

[0022] The method may include: determining at least one corresponding threshold value for the corresponding pixel feature by applying at least one of K-means clustering and Otsu's method;

[0023] The segmentation may include: applying a predetermined learning model, for example, to determine at least one corresponding threshold value of corresponding pixel features;

[0024] The determining the at least one corresponding threshold may include: applying the learning model to the graph;

[0025] The predetermined learning model may be a logistic regression model;

[0026] Providing the time series image set may include:

[0027] · placing the foam sample in front of a camera sensor; and

[0028] · capturing the set of time-series images with the camera sensor;

[0029] The capturing may be performed while illuminating the foam sample;

[0030] The method may further include:

[0031] · setting a region of interest on at least one image; and

[0032] · from each image, extracting a corresponding sub-image corresponding to the region of interest;

[0033] The spatiotemporal graph image is generated based on the sub-image;

[0034] The foam sample can be placed in a sampling tube having a bottom and an opening, the sampling tube is placed vertically with the bottom facing downward and the top facing upward, and the foam sample shrinks downward due to gravity;

[0035] The method may further comprise: displaying the created one or more curves on a graphical user interface, optionally, the one or more curves being superimposed on the generated space-time diagram image;

[0036] The method may further comprise: calculating a half-life and / or a percolation rate of said foam sample from said one or more curves, and optionally displaying a graphical representation of said half-life and / or said percolation rate;

[0037] Calculating the half-life and / or permeation rate from the one or more curves may include: determining a weighted sum of the one or more curves; and / or

[0038] The foam sample can be one of the following:

[0039] Non-aqueous foams, such as:

[0040] o foam induced by optional decompression in a separator, said foam comprising, for example, separate pockets of hydrocarbons such as crude oil and dissolved natural gas,

[0041] o Gas treatment column foam, for example, comprising compartmentalized gas pockets of polyethylene glycol dimethyl ether and H2S and / or compartmentalized gas pockets of CO2,

[0042] o Optionally a vehicle lubricant foam in an electric vehicle transmission, for example, comprising a compartmentalized bag of mineral oil-based lubricant and air, or

[0043] o optionally fuel foam in a petrol station; or

[0044] Water-based foams, such as:

[0045] o Enhanced Oil Recovery (EOR) foams, such as compartmentalized gas pockets of CO2, compartmentalized gas pockets of nitrogen, compartmentalized gas pockets of natural gas and / or compartmentalized gas pockets of air, or

[0046] o Gas treatment column foam, for example, including amine-based solvents and separated gas pockets of CO2 and / or separated gas pockets of H2S.

[0047] A computer program comprising instructions for performing the method is also provided.

[0048] A computer-readable storage medium is also provided, on which the computer program is recorded.

[0049] There is also provided a system comprising a processor coupled to a memory having the computer program recorded thereon. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Non-limiting examples will now be described with reference to the accompanying drawings, in which:

[0051] Figure 1 a flow chart showing an example of the method;

[0052] Figure 2 An example of the system is shown;

[0053] Figure 3 and 4 An example of an image of a foam sample is shown;

[0054] Figure 5An example of a GUI for performing the method is shown;

[0055] Figure 6 shows an example of a pixel stack that can be calculated from a mean grayscale distribution;

[0056] Figure 7 and 8 An example of a space-time graph image is shown;

[0057] Fig. 9 An example of a segmented spatiotemporal graph image is shown with a user interface for manually adjusting the threshold of the segmentation;

[0058] Fig.10 shows an example of a curve representing a boundary of a segment;

[0059] Fig.11 An example of calculating half-life from a curve is shown;

[0060] Fig.12 and 13 showing an example of training data for learning a model for determining at least one predetermined threshold for segmentation; and

[0061] Figures 14 to 18 Different examples of segmentation of a space-time graph image are shown. DETAILED DESCRIPTION

[0062] refer to Figure 1 A flowchart is provided, which proposes a computer-implemented method for analyzing the time evolution of a foam sample. The method includes step S10, providing a time series image set of the foam sample undergoing a shrinkage process in a predetermined shrinkage direction. The method also includes step S20, generating a space-time graph image from the time series image set. The space-time graph image represents the time evolution of the layout of the foam sample in the predetermined shrinkage direction. The method also includes step S30, dividing the space-time graph image into a set of segments. The method also includes step S40, creating one or more curves. The one or more curves represent the boundaries of multiple segments.

[0063] Such a method improves the analysis of the time evolution of foam samples. In fact, the time series image set forms a sequential image set, each element of which (also called a "snapshot") captures the dynamics of the foam at a given moment, in particular the current state of its contraction. The method then collects the time series image set into a single image, the spatiotemporal image. The spatiotemporal image captures the entire process, so that its image processing allows to perform a time evolution analysis. In particular, the segmentation of the spatiotemporal image graphically identifies the regions where the contraction dynamics of the foam present a consistency. Therefore, the boundaries of the segments directly inform the contraction characteristics of the foam. Thus, each constructed curve enables an objective assessment of the evolution of the foam subjected to the contraction process. Therefore, the method allows an objective assessment of how the structural properties of the foam change over time, which cannot be assessed from a single snapshot. Moreover, the method provides a fast and accurate method for assessing the structural properties of the foam on large data sets. In fact, the method processes a time series image set containing a plurality of (e.g. at least one hundred, one thousand and then ten thousand or more) images in a single process. Experiments show that processing the entire data set may take only a few minutes, while manual processing of the images usually takes many hours and may be prone to manual sampling errors.

[0064] The method is computer-implemented. This means that the steps (or substantially all steps) of the method are performed by at least one computer or any similar system. Therefore, the steps of the method are performed by a computer, which may be fully automatic or semi-automatic. In an example, the triggering of at least some steps of the method may be performed by user-computer interaction. The required level of user-computer interaction may depend on the foreseen level of automation and be balanced with the need to achieve user wishes. In an example, the level may be user-defined and / or predefined. In an example, providing step S10 may be performed by user interaction, such as by a user manipulating a foam sample and a camera with a sensor to capture a time series image set and / or (e.g., then) retrieving a time series image set (e.g., from a local or remote memory), and generating step S20, segmenting step S30, and creating step S40 may be fully automatically performed (e.g., after the user starts the software function).

[0065] A typical example of a computer implementation of the method is to perform the method using a system suitable for this purpose. The system may include a processor and a graphical user interface (GUI) coupled to a memory, on which is recorded a computer program containing instructions for performing the method. The memory may also store the provided time series image set. The memory is any hardware suitable for such storage, and may include several physically distinct parts (e.g. one for the program and possibly one for the provided time series image set).

[0066] Figure 2An example of a system is shown, where the system is a client computer system, such as a user's workstation.

[0067] The client computer of this example includes a central processing unit (CPU) 1010, which is connected to an internal communication bus (BUS) 1000, and a random access memory (RAM) 1070 is also connected to the BUS. The client computer is also equipped with a graphics processing unit (GPU) 1110, which is associated with a video RAM 1100 connected to the BUS. The video RAM 1100 is also known in the art as a frame buffer. A mass storage device controller 1020 manages access to a mass storage device (such as a hard disk 1030). Mass storage devices suitable for tangibly embodying computer program instructions and data include all forms of non-volatile memory, including, for example, semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks such as internal hard disks and removable disks; magneto-optical disks. Any of the above can be supplemented or incorporated into a specially designed application-specific integrated circuit (ASIC). A network adapter 1050 manages access to a network 1060. The client computer may also include a tactile device 1090, such as a cursor control device, a keyboard, and the like. The cursor control device is used in the client computer to allow the user to selectively position the cursor at any desired location on the display 1080. In addition, the cursor control device allows the user to select various commands and input control signals. The cursor control device includes a plurality of signal generating devices for inputting control signals to the system. Typically, the cursor control device may be a mouse, and the buttons of the mouse are used to generate the signals. Alternatively or additionally, the client computer system may include a sensitive board and / or a sensitive screen.

[0068] The computer program may include computer executable instructions including means for causing the above-mentioned system to perform the method. The program may be recorded on any data storage medium, including the memory of the system. The program may, for example, be implemented in a digital electronic circuit, or in computer hardware, firmware, software, or a combination thereof. The program may be implemented as a device, such as a product tangibly embodied in a machine-readable storage device, for execution by a programmable processor. The method steps may be performed by a programmable processor executing an instruction program to perform the functions of the method by operating on input data and generating output. The processor may thus be programmable and coupled to receive data and instructions from a data storage system, at least one input device, and at least one output device, and to transmit data and instructions to them. The application may be implemented in a high-level procedural object-oriented programming language, or, if desired, in an assembly language or a machine language. In any case, the language may be a compiled language or an interpreted language. The program may be a complete installer or an updater. The application of the program on the system may in any case result in instructions for executing the method. The computer program may alternatively be stored and executed on a server in a cloud computing environment, which communicates with one or more clients via a network. In this case, the processing unit executes the instructions contained in the program, resulting in the method being performed in a cloud computing environment.

[0069] A foam is an aggregation or accumulation of gas pockets, each trapped within a thin film of liquid that separates the gas pockets. Foam may form on the surface of a liquid, but may be sampled and detached from the liquid. In contrast to a liquid with gas bubbles, a foam has a greater ratio of gas volume to liquid volume (i.e., liquid within the foam, i.e., not counting any liquid present below the foam). The foam sample provided at S20 may, for example, exhibit a value of this ratio higher than 1.5 or 2, or even 10 or 100 (e.g., corresponding to wet foam and dry foam, respectively).

[0070] The foam sample may be, for example, a non-aqueous foam. The non-aqueous foam may be a decompression-induced foam. Such a decompression-induced foam may, for example, appear in (and be sampled from) a separator. For example, the separator may include hydrocarbons, such as crude oil and / or dissolved natural gas. The non-aqueous foam may alternatively be a gas processing column foam. The film of the foam may include, for example, selexol, separated pockets of H2S and / or separated pockets of CO2. The non-aqueous foam may alternatively be a lubricant foam, for example, a foam generated in an electric vehicle gearbox. The film of the foam may, for example, include a mineral oil-based lubricant, separated pockets of air. The non-aqueous foam may alternatively be a fuel foam. Alternatively, the foam may be a foam in a gas station.

[0071] The foam sample may alternatively be an aqueous foam. For example, the aqueous foam may be an enhanced oil recovery (EOR) foam. The EOR foam may include, for example, carbon dioxide (CO2) gas pockets, nitrogen gas pockets, natural gas gas pockets and / or air gas pockets. The aqueous foam may alternatively be a gas treatment column foam, for example, a membrane including an amine-based solvent, a separated gas pocket of CO2 and / or a separated gas pocket of H2S.

[0072] Depending on the application, foam stability may be desired (as in exchangers, or in EOR), or undesirable (as in gas stations), or unavoidable (as in separators), but it is good to understand because it affects system design.

[0073] A "time series set" refers to a sequential collection of images ordered in time (i.e., in chronological order). The time series image set may include timestamps and / or date information (e.g., including date and / or time) for at least some (e.g., all) of the images, or may not have this precise information. In the latter case, a data structure forming the time series image set may be arranged to retrieve the order between images, or the time series image set may include a sorting index for each image. In any case, the images in the time series may be separated by a uniform amount of time, or may be separated by a non-uniform amount of time. Step S20 of generating a spatiotemporal graph image may be based on the ordering between images in the time series. Optionally, step S20 of generating a spatiotemporal graph image may also be based on the exact time of at least some (e.g., all) of the images, when this information is available or retrievable, for example, when the images can be obtained from a video stream. However, it has been found that the method still produces usable results even if bias is introduced due to the inability to accurately determine the date of the image.

[0074] Step S10 providing the time series image set may comprise placing the foam sample in front of the camera sensor (i.e. in the capture field of the camera sensor) and capturing the time series image set with the camera sensor. The capturing may be performed fully automatically, for example after being initiated by a user and / or until stopped by a user. Alternatively, providing step S10 may comprise retrieving the time series image set that has been acquired in this manner from a (e.g. local or remote) memory. The images of the time series set provided and / or fed to step S20 may be raw images captured by the camera, or may be pre-processed images (e.g. all converted to grayscale images).

[0075] The time series image set may include any type of image capable of representing the evolution of foam contraction over time, providing the time series image set may include placing a foam sample in front of a sensor, including images captured in the visible spectrum and / or images captured in the invisible spectrum, such as grayscale images, color images (e.g., RGB images), X-ray images, and / or infrared images. The camera may be a video camera, and the images of the time series set include (e.g., RGB or grayscale) frames of a video stream acquired from the camera. In this case, the time series set may additionally include a timestamp, which may indicate the date and time of acquisition of each image.

[0076] The foam sample undergoes a shrinkage process in a predetermined shrinkage direction. A "shrinkage process" (or "collapse" process) refers to any process in which the foam sample shrinks (i.e. becomes smaller or more compact) over time. Thus, the foam sample shrinks continuously and monotonically over time in the predetermined shrinkage direction. The origin of the shrinkage is the drainage of the liquid film, and the eventual rupture of the liquid film. The foam sample may shrink downward due to gravity. Thus, the predetermined shrinkage direction may be the direction of gravity (i.e., the vertical direction in the Earth's reference frame). The time series image set graphically represents this shrinkage process.

[0077] The foam sample can be contained in any container (e.g. a vessel or container), such as a (e.g. longitudinal) sampling tube. The sampling tube can have a bottom and an opening. The bottom can thus contain the liquid part of the foam sample, while the opening can allow the foam to be in contact with the environment. The sampling tube can be placed vertically, with the bottom facing downwards and the top facing upwards. The foam sample may shrink downwards due to gravity, whereby the predetermined shrinkage direction is from the opening to the bottom downwards. The container can be adapted to the type of camera sensor used to capture the image. For example, if a visible light sensor is involved, the container can be transparent, e.g. a transparent tube.

[0078] The capturing may be performed while illuminating (i.e., lighting) the foam sample, e.g., with a light source (of any type). For example, in each image, the foam sample may be either backlit or frontlit, optionally backlit in all images or frontlit in all images. The foam sample may be positioned between the camera sensor and the light source, or the light source may be positioned on the same side as the camera sensor, e.g., with the foam sample positioned in front of both. The position of the light source may result in frontlit foam or backlit foam, such that the foam sample can be positioned between the light source and the sensor or in front of both, such that the camera sensor captures the reflected light.

[0079] As part of pre-processing to form and provide the time series image set of step S10, or as post-processing of the time series image set provided in step S10 to perform the generation step S20, the method may include setting a region of interest in at least one given captured image, such as the first captured image. A given image may or may not be included in the time series image set (the given image may, for example, be the first image in the time series). The method may then include extracting, from each captured image, a corresponding sub-image (i.e., a portion of the initial image) corresponding to the region of interest. A spatiotemporal graph image may then be generated based on the sub-images in step S20 (i.e., discarding unretained portions of the captured image, i.e., portions outside the region of interest). Such a restriction on the region of interest allows discarding partitions of the image that do not provide information about shrinkage, thereby improving accuracy by focusing the segmentation step S30 on the relevant regions.

[0080] In particular, the foam sample can be in a fixed position relative to the camera sensor (e.g., the camera sensor and the foam sample container are both fixed) throughout the process of the camera sensor capturing images, so that the region of interest captures the same portion of the contracted foam sample. Limiting the region of interest thus allows the time series images to be normalized and made more comparable, so that the spatiotemporal image conveys more accurate information for accurate performance of the segmentation step S30.

[0081] The region of interest may be a 2D boundary (e.g., a bounding box, such as a rectangle) that encompasses a portion of the foam sample. At least in at least one given captured image, optionally in all captured images (and thus all images of the time series), the region of interest may encompass a portion of the entire height of the foam sample (i.e., the region from one end of the foam to the other end of the foam relative to the shrinking direction, such as from the bottom of the foam to the top of the foam when the shrinking direction is vertical). For example, the foam sample may be located on a liquid surface in the time series images, and the region of interest may encompass a portion of the entire height of the foam sample that is in contact with the liquid surface.

[0082] The region of interest may be set manually (e.g., via a graphical user interface) or fully automated, such as by a region of interest algorithm that sets a bounding box on the foam sample. For example, the method may set the size of the bounding box (manually or fully automatically) and position it to surround the foam sample. In another example, only the size of the bounding box may be set manually, while the position of the bounding box may be set automatically.

[0083] The spatiotemporal graph image is an image representing the temporal evolution of the layout of the foam sample in a predetermined contraction direction. The layout represents the spatial arrangement of the foam sample along the predetermined contraction direction. The layout can be defined by one or more spatial occupancy characteristics related to the foam, including, for example, the local density of the foam (the number of air pockets per unit volume) and / or the foam presence (corresponding to the length of the foam sample - e.g., height) and / or the liquid phase volume fraction along the predetermined contraction (e.g., vertical) direction. As the foam sample undergoes a contraction process, the foam thereby occupies less and less space and / or becomes less dense, and the layout changes continuously and monotonically over the image of the time series set. Therefore, the spatiotemporal graph image represents a continuous and monotonous change in the layout of the foam sample over time.

[0084] The space-time map image may be a 2D image, with time represented on one axis (e.g., the horizontal axis) and a predetermined contraction (e.g., vertical) direction represented on another axis (e.g., the vertical axis), wherein each pixel represents one or more spatial occupancy characteristic values ​​of the foam, such as the local density and / or liquid volume fraction of the foam. The space-time map image may, for example, be a grayscale image, wherein the grayscale level of each pixel represents the local foam density (e.g., from a grayscale value of 0 representing the maximum density of the foam and its liquid volume fraction to a grayscale value of 1 representing the absence of any foam).

[0085] For example, each pixel (j, y) of the spatio-temporal map image, where j represents the abscissa and y represents the ordinate, may represent the value of one or more spatial occupancy characteristics, such as the value of foam density, at coordinate y (e.g., height y) along a predetermined contraction (e.g., vertical) direction, which is clearly visible in an image of the time series set (e.g., the jth image in the case of a uniform time series) captured at the time corresponding to j. The generating step S20 may include calculating the value of the pixel (j, y) based on a single pixel value at the same coordinate y in image j, or calculating the value of the pixel (j, y) based on the average value of all pixel values ​​at the same coordinate y in image j. The images of the time series set may have the same properties as the spatio-temporal map images, so that the calculation may include retrieving pixel values ​​in image j or averaging pixel values ​​in image j. For example, two images of the time series set may be grayscale images, so that retrieving the image or averaging the pixel values ​​of the image both directly produces grayscale values. Alternatively, the images of the time series set may have different properties from the spatio-temporal map images, so that the calculation may include pre-processing before retrieval / averaging or post-processing after retrieval / averaging. Due to the averaging, the spatiotemporal image consists of an average distribution and accurately tells the state of the foam at a certain time. Averaging eliminates outliers that may cause incorrect segment boundaries of the spatiotemporal image. Thus, the curve created in step S40 is smoother and provides more accurate information about the shrinkage process.

[0086] In a particularly efficient example, the time series set provided in step S10 may consist of J (e.g., grayscale) images, all of which are from or have all undergone the above-described region of interest extraction. Step S20 may thus receive J images representing the same size X*Y. In such a case, the value of each pixel (y, j) of the spatiotemporal image, where j ranges from 1 to J and y ranges from 1 to Y, for example, may be equal to the average of the values ​​of all pixels (x, y) of image j, where x ranges from 1 to X, i.e., the average of the yth row of image j, with or without pre-processing or post-processing (e.g., if the spatiotemporal image is also a grayscale image, it is not pre-processed or post-processed).

[0087] Alternative ways in which such a result might be achieved are now discussed.

[0088] Generating step S20 may include, from each corresponding image of the time series image set, determining a pixel stack. For each image of the time series image set, the pixel stack represents the layout of the foam sample in the predetermined contraction direction. In other words, the pixel stack is a linear and continuous arrangement of pixels. The pixel stack may be straight, for example in the direction of the contraction direction (e.g. vertically, particularly when the predetermined direction is the direction of gravity). Generating step S20 may also include juxtaposing these pixel stacks laterally.

[0089] For example, the method may juxtapose the pixel stacks of the first image of the time series by first setting them (by convention) to a column of pixels (e.g., perpendicular to the standard x-axis) in the first left column of pixels (e.g., relative to the standard x-axis of the graph) of the spatiotemporal map image. The method may then juxtapose by stacking the pixel stacks of the images in the time series laterally (towards the rightmost direction of the x-axis of the graph) in the order in which the associated timestamps are set. In this way, the spatiotemporal map image can represent the temporal evolution of the layout in the temporal order in which the images are found in the time series. Thus, one or more curves are created that follow the continuous and monotonic changes of the pixel stacks corresponding to the contraction process experienced by the foam sample (e.g., in terms of the volume and / or density of a large number of air pockets in the foam sample).

[0090] Determining each pixel stack (the pixel stack of each corresponding image in the time series) can include averaging the pixels of the corresponding image in a direction perpendicular to a predetermined contraction direction. That is, the method can sum the values of a set of pixels in a direction perpendicular to the contraction direction and divide the sum by the number of pixels in the set. For example, if the predetermined contraction direction is the standard y-axis of each image (including X pixels), the method can average one or more pixels (including Y pixels) on the standard x-axis. Thus, the method can create a pixel stack of length Y, where each entry y, where 0 < y ≤ Y, is the average of k pixels (where 0 < k ≤ X) at the position y of the vertical coordinate axis along the x-axis. The method can also select one or more vertical pixel columns for each image. The method can determine the pixel stack as another column, where each entry is the average of the pixels of the corresponding entry in the vertical pixel column. For example, the method can calculate a region of interest from the image. Thus, the method can determine the pixel stack from this region of interest.

[0091] The segmentation step S30 includes segmenting the spatio-temporal map image into different and non-overlapping pixel sets (i.e., segments), for example covering at least a part (e.g., all) of the spatio-temporal map image, with each segment presenting graphical consistency. The method can determine each segment based on one or more graphical features of the spatio-temporal map image, for example, based on a single graphical feature, to perform quickly and robustly. Thus, each segment represents a pixel region presenting a certain graphical consistency related to one or more graphical features. Experience shows that the consistency of the graphical features in the spatio-temporal map image is related to the liquid phase volume fraction and / or density of the foam sample along the set of time series images. The segments of the spatio-temporal map image thus form regions representing certain aspects of the contraction process.

[0092] For at least one corresponding graphical feature, the segmentation can be based on one or more (e.g., exactly two) thresholds of the corresponding graphical feature. For example, the corresponding image feature can be a single feature, or each graphical feature that defines such one or more thresholds. In other words, based on the comparison of the value of the corresponding graphical feature of the corresponding pixel or pixel subset with one or more thresholds, the corresponding pixel or pixel subset is assigned to the corresponding segment. One or more thresholds (e.g., exactly two) define a range of two or more (e.g., exactly three) values. Then it may be required that the pixel or pixel subset presents a value of at least one corresponding graphical feature falling within the same range in order to be assigned to the same segment.

[0093] That is, the method can determine segments based on one or more thresholds for each attribute of one or more pixel regions belonging to the spatiotemporal graph image, each corresponding attribute being associated with the temporal evolution of the foam sample along the set of time series images. Thus, the method can divide the spatiotemporal graph image into segments representing the temporal evolution. For example, the method can determine the thresholds (and perform segmentation based on the thresholds) so as to extract the contraction behavior of the foam sample along the set of time series images from the curves created by the segments.

[0094] The one or more graphical features may include one or more pixel features. "Pixel features" refers to the properties of each individual pixel belonging to the spatiotemporal image. For example, the pixel features may include the intensity of each pixel. Thus, the segmentation may form segments including groups of pixels based on one or more intensity thresholds. Additionally or alternatively, the pixel features may include the grayscale of each pixel. Thus, the segmentation may form segments including groups of pixels based on one or more grayscale thresholds.

[0095] The one or more graphical features may also include one or more local neighborhood features. A "neighborhood feature" refers to a property of each pixel in a group that is also related to neighboring pixels. In an example, the one or more local features may include texture.

[0096] In an example, one or more local features may include entropy of a group of pixels. Entropy is a statistical measure of randomness that encodes the texture pattern of the spatiotemporal image relative to the randomness information encoded in the subset of pixels. In practice, low entropy (e.g., zero entropy) means that the subset of pixels has low randomness and thus less detail. As the randomness among adjacent pixels within the corresponding subset increases, the value of entropy also increases. The method may assign the corresponding subset of pixels to the corresponding fragment based on a comparison of the entropy value of the corresponding subset of pixels with one or more thresholds. One or more thresholds define two or more entropy ranges. Then, a given subset of pixels may be required to present entropy values ​​that fall within the same range in order to be assigned to the same fragment.

[0097] Additionally or alternatively, one or more local features may include standard deviation. Standard deviation is a probability measure of the discreteness of a pixel feature (e.g., grayscale or intensity) in a pixel neighborhood. In fact, a low standard deviation (e.g., a standard deviation of zero) means that the pixel feature values ​​of a given neighborhood are closer to the mean value (in a probabilistic sense), while a high standard deviation means that the pixel feature values ​​are away from the mean value (i.e., dispersed). The method may assign a corresponding pixel subset to a corresponding fragment based on a comparison of the value of the standard deviation for a corresponding pixel subset with one or more threshold values. One or more threshold values ​​define two or more standard deviation ranges. Then a given pixel subset may be required to present a standard deviation value that falls within the same range to be assigned to the same fragment. Additionally or alternatively, one or more graphic features may also include one or more pattern presences. Segmentation may thus create fragments based on detecting the presence of one or more patterns.

[0098] For example, low gray (eg, dark) and low texture may correspond to wet foam; medium gray and high texture may correspond to dry foam; and high gray (light) and low texture may correspond to no foam.

[0099] Additionally or alternatively, one or more graphical features may include one or more connectivity criteria. Segmentation may thus create segments based on linked paths of pixels that satisfy corresponding degrees of connectivity for pixels with similar characteristics. The corresponding degrees of connectivity may be calculated based on paths formed by pixels. In other words, for a certain value m, if there is a path of m pixels that have similar characteristics to each other and to two pixels, then the two pixels may be connected by this path of m pixels.

[0100] Additionally or alternatively, one or more graphical features may include one or more similarity criteria. Segmentation may thus create segments based on one or more pixels in a neighborhood that satisfy a comparison with respect to a corresponding similarity criterion through a corresponding similarity metric. The corresponding similarity metric may be a real-valued function applied to the neighborhood pixels. The value of the similarity metric may increase as the similarity increases. The method may assign corresponding subsets of pixels to corresponding segments based on a comparison of similarity values ​​of the corresponding subsets of pixels with one or more thresholds. The method may segment an image using graphical shearing according to one or more similarity criteria.

[0101] These examples of performing segmentation in step S30 result in the method obtaining accurate information on the temporal evolution of the foam sample along the set of time series images. In practice, segmentation is performed on the spatiotemporal graph image. The spatiotemporal graph image represents the temporal evolution of the layout of the foam sample. Thus, the spatiotemporal graph image contains groups of pixels representing the contraction process of the foam along the set of time series images. The temporal evolution of the spatiotemporal graph image may be very complex and therefore cannot be directly interpreted. However, segmentation extracts information based on graphical features, which are properties of the pixels of the spatiotemporal graph image, in particular properties related to the temporal evolution. Thus, segmentation obtains well-defined pixel areas that provide an accurate analysis of the temporal evolution of the foam sample.

[0102] In an example, the method includes determining at least one corresponding threshold value of the corresponding pixel feature by applying at least one of K-means clustering and Otsu's method. K-means clustering and Otsu's method are fast and efficient methods for automatically thresholding an image. Thus, the method performs segmentation very efficiently. Alternatively, the method can perform manual threshold determination or setting for grayscale.

[0103] The segmentation step S30 may include applying a predetermined learning model. The method may determine at least one corresponding threshold value of the corresponding pixel feature using the predetermined learning model. The method may thus take the spatiotemporal graph image as input and output at least one corresponding threshold value of the pixel feature. The learning model may be pre-trained or trained based on a data set. For example, the training may include providing a data set comprising spatiotemporal graph images, each spatiotemporal graph image being associated with one or more threshold values ​​of the corresponding pixel feature (so-called "reference true" data), each spatiotemporal graph image and its associated reference true data forming a corresponding so-called "training sample" or "(training) example". The provided data set may be formed at different times, at different locations, using different systems and / or by different persons or entities. Thus, the data set provides training examples so that the predetermined learning model learns to automatically predict the threshold value. It is known from the field of machine learning itself that the provided data set affects the learning speed and training quality of the learning model, i.e., the accuracy of the trained learning model in estimating at least one predetermined threshold value. The data set may consist of a total amount of data depending on the expected training quality. This amount may be higher than 100, 1000, or 10,000 elements.

[0104] Determining at least one corresponding threshold value may comprise applying the learning model (after being trained) to the graph, in other words, after training the learning model, the learning model outputs at least one predetermined threshold value. This results in a particularly efficient procedure, since the learning model determines the at least one corresponding threshold value using the data set on which the learning model was trained.

[0105] The predetermined learning model may be a logistic regression model. The logistic regression model may use a logistic function whose values ​​have been adjusted to the values ​​of the graph feature values ​​provided in the data set. In other words, the training performs model fitting by parameterizing the logistic function to the provided data. The logistic regression model is a computationally efficient learning model that can be applied to various spatiotemporal graph images because it fits the provided data.

[0106] The method creates one or more curves in step S40. Each curve represents a corresponding boundary, which is located between at least one (e.g., exactly one) first segment and at least one (e.g., exactly one) second segment. In other words, each curve locates a boundary of a segment in the image, thereby defining the segment. The creating step S40 may include fitting the boundaries of the determined segment with one or more predetermined functions with adjustable parameters, including, for example, a polynomial function.

[0107] The method may also include displaying the created one or more curves on a graphical user interface (GUI). The GUI may thus provide a user with a visual representation of the one or more curves so that the user can make a qualitative assessment of the temporal evolution of the foam sample. Optionally, the one or more curves may be superimposed on the generated space-time graph image. Thus, the temporal evolution information of the foam sample and all information included in the space-time graph image are presented to the user. The user may thus compare the curves with the space-time graph image to make a qualitative assessment of the temporal evolution of the space-time graph image.

[0108] The method may also include calculating (e.g., fully automatically) a half-life of the foam sample from the one or more curves. The half-life is the time required for the volume of the sample foam to decrease to half of its initial value. The half-life is calculated from the one or more curves, which extract information about the configuration decay of the sample foam during the shrinkage process. For example, the half-life can be calculated from a single curve (i.e., a curve selected from the one or more curves), or from a weighted sum of the one or more curves.

[0109] Additionally or alternatively, the method may include calculating (e.g., fully automatically) the seepage velocity of the foam sample from one or more curves. The seepage velocity may be calculated from the derivative of the decay of one or more curves. For example, the method may calculate the derivative from a single curve or from a weighted sum of one or more curves. The derivative may be calculated analytically after fitting the curve with an analytical expression. Alternatively, the derivative may be calculated according to a discrete definition of the derivative. For example, the curve may be a function h on a domain t. The curve may thus be represented by a pair of values ​​(t i ,h i ) is parameterized. This method can be based on the numerical difference function Compute the derivative of a curve.

[0110] Optionally, the method may display a graphical representation of the half-life and / or percolation rate. Thus, an improved graphical representation is presented to the user, which allows the user to make a qualitative assessment of the temporal evolution of the foam sample.

[0111] In an example, calculating the half-life and / or seepage rate from one or more curves includes determining (e.g., fully automatically) a weighted sum of one or more curves. That is, the method can obtain another curve consisting of a weighted sum of one or more curves. The method can calculate the half-life and / or seepage rate from the other curve. This allows rapid analysis of foams present in several domains, showing their long-term behavior in various applications and industrial fields, ranging from enhanced oil recovery, crude oil degassing, to solvents for CO2 capture and aeration of lubricants in automobile engines, etc. For example, the half-life indicates the stability of the foam, while the seepage rate indicates the moisture content of the foam. Thus, a user is provided with a fast and accurate method to evaluate, in a specific environment, the physical and / or chemical properties related to the stability and moisture content of the foam.

[0112] In the case of threshold segmentation as described above, the segmentation step S30 may produce fragments of layers forming the spatiotemporal image. In such a case, the curves created in step S40 may be stacked up and separate the layers. Calculation of the half-life and / or percolation rate may, in such a case, be performed based on a single curve, which may be the middle curve of the wet foam or the top curve of the dry foam (i.e. not the bottom curve, which may represent only the bottom boundary of the foam sample). Alternatively, the calculation may be performed on the height difference between the middle curve and the bottom curve and / or the height difference between the top curve and the bottom curve.

[0113] As a result of the analysis, the method may include adjusting the parameters of the foam (e.g., adjusting the composition of the foam or the composition of the liquid from which the foam is generated), producing a foam sample with the adjusted parameters, and repeating the method to perform a new analysis on the sample of the modified foam. The method may thus be repeated several times, each time improving the desired behavior of the foam, such as increasing the half-life of the foam (for applications requiring stable foam) or decreasing the half-life of the foam (for applications requiring non-persistent foam).

[0114] Reference now Figures 3 to 18 Let’s discuss the implementation of this method.

[0115] Figure 3 and 4 Figure 2 shows experimental tests of the method performed. In both setups, a visible light camera was placed in front of a transparent sampling tube containing the foam sample. Figure 3 In the experimental scheme, the sampling tube is placed between the visible light camera and the light source. Figure 4In the experiment, the experimental protocol placed the sampling tube in front of both the visible light camera and the light source. The experiment then captured several snapshots of the foam sample as a time series image set. These snapshots were taken at different times over many hours of the experiment. Therefore, the time series image set is a window into the experiment.

[0116] Figure 3 Several sample snapshots taken during experiment 300 are shown. The snapshots taken for experiment 300 were taken under backlighting and captured with a visible light sensor. Snapshot 310 is a snapshot of the foam sample under visible light at the beginning of the experiment. Snapshots 320 through 340 are taken from the same foam sample, but are taken at subsequent times after the first snapshot 310. The snapshots illustrate the shrinkage of the foam sample over time; in particular, snapshot 340 shows that the foam has decayed considerably from its initial configuration.

[0117] Figure 4 Another experiment 400 is shown, where the snapshots were taken under front lighting. Snapshot 410 is a snapshot of the foam sample under visible light at the beginning of the experiment. Snapshots 420 to 440 are taken from the same foam sample, taken at subsequent times after the first snapshot 410. This experiment also shows the shrinkage of the foam sample over time.

[0118] Figure 5 is a screenshot showing a graphical user interface (GUI). Such a GUI can be used to collect snapshots and display them to the user. The user can define parameters for generating a spatiotemporal image through window 510. The user can manually specify a bounding box 520 and then specify its height in millimeters (with "height in millimeters" indicated in the box). The system can convert pixel heights to metric distance units. The GUI can be configured, for example, to let the user specify the tube in which to set the bounding box, for example, the second tube from the left to the right of the image). The system can optionally let the user specify the polarity of the image as black and white or reverse polarity.

[0119] To generate the spatiotemporal image, the method can determine a pixel stack representing the layout of the foam sample for each image. The pixel stack can be calculated from the average grayscale distribution of the image. In standard (x,y) coordinates, the average grayscale distribution of the (vertical) y coordinate can be mathematically represented by the following formula: G(y,j) =<G(x,y,j)> x , where j is the index of the image in the time series image set,<G(x,y,j)> x is the average grayscale of all x pixels with the same y coordinate.

[0120] Figure 6 An example of such an average grayscale distribution is shown in Figure 1, where the grayscale values ​​are normalized to the real interval [0,1]. Figure 6, the grayscale value 610 varies nearly monotonically within the foam region.

[0121] The same process is performed for all images indexed in the time series image set. The spatiotemporal image corresponds to a matrix where all the calculated average grayscale distributions are stacked together. For example, the matrix can be represented as a matrix A with entries A y,j =G(y,j).

[0122] Figure 7 A single image computed from the entries of the matrix is ​​shown. The space-time graph image 700 allows observing the temporal evolution of the foam layout along an observation window captured by snapshots in the time series set. The user can already perform some preliminary qualitative analysis using the space-time graph image 700. For example, the user can identify the overall height of the foam and the internal dynamics of wet and dry foam, which are not always visually separable on a single snapshot. The computation of the space-time graph image 700 is very efficient; in a tested implementation (coded in MATLAB), the time required to compute the space-time graph image from approximately 500 images was approximately 60 seconds.

[0123] Figure 8 The horizontal position 810 of the spatiotemporal image is shown, indexed as j, which corresponds to the average grayscale distribution 820G(y,j).

[0124] We now discuss the segmentation of the computed spatiotemporal graph image.

[0125] The method can determine different regions on the spatiotemporal graph image to provide an accurate quantitative analysis of the foam sample. The system can determine different regions on the spatiotemporal graph image. These regions can be associated with the background of the graph (which may correspond to liquid or air in the environment), wet foam and / or dry foam. The determination can be performed by image segmentation techniques. Image segmentation techniques can be based on similarity analysis, texture, connectivity, grayscale, graph clipping, local or global, etc.

[0126] Segmentation may allow some degree of user interaction to determine the segments, or may be performed fully automatically.

[0127] Segmentation can be performed by any method, such as: 1) fixed thresholding (i.e., the same threshold can be arbitrarily fixed), 2) user-adjusted thresholding (user-adjusted thresholding), 3) masking, where the threshold is calculated from a user-specified region, 4) another masking, where the masking is determined based on connectivity with user-defined points in the spatiotemporal graph image, 5) similarity-based graph clipping, 6) texture-based segmentation (e.g., using entropy and local standard deviation), 7) intensity / grayscale thresholding using Otsu's method, K-means clustering, 8) thresholding by a machine learning model, where the classified segmentation map image is input into the machine learning model to automate the segmentation, and the segmentation is based on a pre-trained model, and / or, 9) neural network-based segmentation. In the tested implementation, a particularly ergonomic user-adjusted thresholding was implemented and coded in MATLAB.

[0128] Fig. 9 Screen shots of implementations of such threshold processing adjusted by the user are shown. User-adjusted threshold processing is implemented in the form of a pop-up window 900 in the GUI. The pop-up window displays a spatiotemporal graph image 910 with a background segment 9010 and a spatiotemporal graph image 930 with a wet foam segment 9310. The segment corresponding to dry foam will be defined by pixels that do not belong to the above two segments. The user can use sliders 920 and 940 to process the pixel intensity of the spatiotemporal graph image 910 to adjust the threshold for calculating the segment. The resulting segment corresponds to the wet foam segment 9310 and the background segment 9320. Thus, the graphical user interface is able to dynamically adjust the high / low threshold using the sliders 920 and 940. The segment superimposed in the spatiotemporal graph image is optionally presented to the user. This implementation is a reasonable compromise for fully automated threshold processing.

[0129] Fig.10 Curves determined from the calculated line segments are shown and superimposed on the corresponding space-time map image. Curves 1010, 1020, and 1030 are obtained using edge detection techniques. These curves can be used to determine properties such as half-life and percolation rate.

[0130] Fig.11 The life calculations for the experiments using dry and wet foams are shown. The average half-life for the dry foam was calculated to be approximately 22 ± 4 hours. The percolation rate (not shown) can be calculated by calculating the derivative of the height vs. time curve. The half-life is defined as t: where H0 is the difference between the upper and lower interfaces at t = 0. In the example, the half-life is calculated as the difference is the minimum. It can also be found by curve fitting and / or curve interpolation and / or curve extrapolation.

[0131] For the three tubes containing the foam samples, the manual method requires more than 2 hours. In this manual method, the half-life can also be found manually, as shown in the example above. However, the half-life is an approximation and has errors due to discrete sampling. In contrast, the method only takes more than 60 seconds to calculate the spatiotemporal image of a single tube, so it takes about 3 minutes for 3 tubes. The calculation is finally done either by averaging the curves of several experiments (e.g. Fig.11 The curves were then calculated from the spatiotemporal images (not shown). The complete data analysis for each experiment thus took approximately 5 minutes.

[0132] Fig.12 An example of data that can be used to train a classification machine learning model is shown. Indeed, experimental data can be collected to train a machine learning model. The data shows the number of pixels versus grayscale intensity, showing areas of wet foam 1210, areas of dry foam 1220, or areas of background 1230. These areas can be manually classified and then used to train a learning model. Fig.13 The same data is shown in different representations and can be used to train a logistic regression model.

[0133] The method can be applied in a variety of fields, ranging from enhanced oil recovery, crude oil degassing, to solvents for CO2 capture, automotive engine lubricant aeration, etc. In fact, the method is not coupled to a specific collection system.

[0134] Additionally, the method is able to handle systems with low contrast and more than two phases, such as those using back and front illumination. The method is highly lateral.

[0135] Alternative solutions to segmentation are now discussed.

[0136] The above implementation uses a user-adjusted threshold to perform segmentation. This is because this tested implementation achieves a reasonable compromise between automation of the method, accuracy of the results, and user intervention. Nevertheless, the method can use a fully automated approach to perform segmentation.

[0137] Fig.14 An example of a spatiotemporal image being passed through a Canny filter is shown. The Canny filter detects boundaries. This allows texture analysis (e.g. using local standard deviation or entropy) to be used on the Canny filtered image to find areas with more boundaries. This enables fully automatic segmentation.

[0138] Fig.15 It is also shown that the local entropy can be used to Fig.14 The Canny filtered image is further segmented before calculating the curve.

[0139] Fig.16 Another example of fragments obtained by Otsu's method with ten thresholds is shown.

[0140] Fig.17 Segmentation using a local entropy filter that favors horizontal patterns is shown.

[0141] Fig.18 Segmentation using local standard deviation analysis is shown.

Claims

1. A computer-implemented method for analyzing the time evolution of a foam sample, the method comprising: Providing a time series image set of the foam sample undergoing a shrinkage process in a predetermined shrinkage direction; generating, from the set of time series images, a space-time map image representing the temporal evolution of the layout of the foam sample in the predetermined shrinkage direction; · segmenting the space-time graph image into a set of segments; and • Create one or more curves representing the boundaries of the segment.

2. The method according to claim 1, wherein: The generating the space-time graph image comprises: determining, from each corresponding image of the set of time-series images, a pixel stack representing the configuration of the foam sample in the predetermined shrinkage direction; and - Laterally juxtapose the pixel stacks.

3. The method according to claim 2, wherein: The determining each corresponding pixel stack comprises: for each corresponding pixel of the pixel stack, averaging the pixels of the corresponding image in a direction perpendicular to the predetermined shrinking direction.

4. The method according to any one of claims 1 to 3, wherein: The segmentation is based on one or more graphical features of the spatiotemporal graph image, the features comprising: one or more pixel characteristics, such as intensity and / or gray level, one or more local neighborhood features, such as texture, entropy, and / or standard deviation, One or more patterns exist, One or more connectivity criteria, and / or One or more similarity criteria.

5. The method according to claim 4, wherein: The segmentation is, for at least one corresponding graphical feature, based on one or more thresholds of the corresponding graphical feature.

6. The method according to claim 4 or 5, wherein: The method includes determining at least one corresponding threshold value for corresponding pixel features by applying at least one of K-means clustering and Otsu's method.

7. The method according to any one of claims 4 to 6, wherein: The segmentation comprises applying a predetermined learning model, for example, to determine at least one respective threshold value of respective pixel features.

8. The method according to claim 7, wherein: The determining of the at least one corresponding threshold comprises applying the learned model to the spatiotemporal graph image.

9. The method according to claims 7 to 8, wherein: The predetermined learning model is a logistic regression model.

10. The method according to any one of claims 1 to 9, wherein: Providing the time series image set comprises: · placing the foam sample in front of a camera sensor; and • Capturing the set of time-series images with the camera sensor.

11. The method according to claim 10, wherein: The capturing is performed while illuminating the foam sample.

12. The method according to any one of claims 1 to 11, wherein: The method further includes: · setting a region of interest on at least one image; and · from each image, extracting a corresponding sub-image corresponding to the region of interest; The space-time graph image is generated based on the sub-image.

13. The method according to any one of claims 1 to 12, wherein: The foam sample is contained in a sampling tube having a bottom and an opening. The sampling tube is placed vertically with the bottom facing downward and the top facing upward. The foam sample shrinks downward due to gravity.

14. The method according to any one of claims 1 to 13, further comprising: The created one or more curves are displayed on a graphical user interface, and optionally, the one or more curves are superimposed on the generated space-time diagram image.

15. The method according to any one of claims 1 to 14, wherein: The method further includes: From the one or more curves, calculating the half-life and / or percolation rate of the foam sample; and Optionally, a graphical representation of said half-life and / or said permeation rate is displayed.

16. The method according to claim 15, wherein: From the one or more curves, calculating the half-life and / or permeation rate comprises: A weighted sum of the one or more curves is determined.

17. The method according to any one of claims 1 to 16, wherein: The foam sample is one of the following: Non-aqueous foams, such as: o foam induced by optional decompression in a separator, said foam comprising, for example, separate pockets of hydrocarbons such as crude oil and dissolved natural gas, o Gas treatment column foam, for example, comprising compartmentalized gas pockets of polyethylene glycol dimethyl ether and H2S and / or compartmentalized gas pockets of CO2, o Optionally a vehicle lubricant foam in an electric vehicle transmission, for example, comprising a compartmentalized air pocket of a mineral oil-based lubricant and air, or o optionally fuel foam in a petrol station; or Water-based foams, such as: o Enhanced Oil Recovery (EOR) foams, such as compartmentalized gas pockets of CO2, compartmentalized gas pockets of nitrogen, compartmentalized gas pockets of natural gas and / or compartmentalized gas pockets of air, or o Gas treatment column foam, for example, including amine-based solvents and separated gas pockets of CO2 and / or separated gas pockets of H2S.

18. A computer program comprising instructions for performing the method according to any one of claims 1 to 17.

19. A computer-readable storage medium having recorded thereon the computer program according to claim 18.

20. A system comprising a processor coupled to a memory having recorded thereon the computer program of claim 18.

Citation Information

Patent Citations

  • Theoretical measurement method for expansivity and half-life period of foamed asphalt

    CN101701902A

  • Method for detecting the closing time of the injector using an artificial neural network and method for controlling the injector using the same

    DE102020115840A1

  • Apparatus for automatically diagnosing emphysema

    US20130165811A1

  • Use of rock inhibitors for promoting sinonasal epithelial cell repair

    US20200101056A1

  • Method for manufacturing electronic component

    WO2020158381A1