Introduction

Oil and gas industry comprises of three major components which are upstream, midstream and downstream sectors. Petroleum production system (PPS) is one of the important parts constituted within upstream performance (Su et al. 2018). PPS exposure is crucial to acquire better understanding on the fluid flow fundamentals along production system, likely to optimize well/ reservoir productivity and assessing performance of particularly well/ reservoir (Craig et al. 2018). For a single well system, primary elements constitute for PPS, reservoir, wellbore, tubular and related equipment and artificial lift equipment (Barbosa et al. 2019). Hydrocarbon constituents habitually located in the wellbore which is contained within reservoir, from wellbore to wellbore subjected to tubular equipment providing path flow for fluid to flow upward by means of artificial lift; eventually, separation takes place to separate oil, gas and water. Meanwhile, PPS has never run way from various problems, for examples, deposition of wax and asphaltenes, fine movement and plugging, corrosion due to CO2 and H2S, heavy metals and radioactive materials, sand production and formation damage (Zhang et al. 2019a, b). Emphasizing here on the formation damage problem has caused lots of aftermath effect. Formation damage refers to the reservoir impairment due to such activities like drilling, completion, production, injection, stimulation or well invention during any interval of well which eventually results in significant reduction in well productivity (Yuan and Wood 2018).

Meanwhile, according to the previous studies conducted by a group of researchers from PETRONAS Research Sdn. Bhd. (PRSB), nano-silica has been used as chemical flood to mitigate fines migration (Rohaida et al. 2019). According to the result, application of nano-silica has shown good improvement in avoiding continuous migration of dispersed particles. Hence, the interest to further studies on this nanoparticle has been extended into pore-scale visualization by using micromodel to understand more on this formation damage (fines migration) mechanism in 2D porous media. As extension from previous research by PRSB, the micromodel initially is flooded with/ without nano-silica to observe the attachment of fines migration onto pore walls after injecting 2.5% NaCI.

Since at the beginning, this research keens to focus particularly on fines migration, as one type of formation damage. Nevertheless, during the preliminary stage of micromodel experiment another type of formation damage, mutual precipitation of soluble salt, was discovered. This refers to any precipitation generated from soluble salts, whether from the use of salt mud systems or from formation water (Zhang et al. 2019a, b). The precipitation was discovered when 2.5% NaCI injected into micromodel (base case). Since the only fluid introduced into the system is NaCI, an assumption is made such that soluble salt precipitation might occur. Nevertheless, it is more unanimous to view the damage as generation of suspended solids adheres onto pore walls. The concern rises where suspended solids could be generated when brine is introduced. Formation water flow and water evaporation during brine injection can expedite formation of suspended solids (salt precipitates) with excessive loss of formation porosity and permeability, as correlated with reservoir physical properties. Since then, this research’s interest pays thorough attention to this damage. Hence, this research study is focusing on developing a method to quantify area of suspended solids in micromodel by using image analysis. If left untreated, the worst case can be blocked wells leading to permeability impairment. Since this is highly unwanted, focus on this study is crucial.

As to visualize suspended solids retention and attachment on the grain surfaces of porous media, micromodel is introduced. Micromodel, as pore-level visualization study, offers both quantification and qualification studies through 2D porous media (Yu et al. 2019). Pore-scale information is important for better understanding on the displacement process, imbibition and drainage. By utilizing this method, it promotes an enhancement to crucially study on the agglomeration mechanisms that may take place in a porous media. Instead, for further data analysis and interpretation on the images output executed from micromodel, comprehensive study through image analysis is complemented for this purpose. Suspended solid in reservoir is among formation damage that could lead to solid particles plugging and bridging within the pore throat of the well formation which then impedes to the fluid flow. Micromodel is utilized to visualize this phenomenon and analyzed thoroughly by image analysis method.

Several quantification research on micromodel embedded with image analysis have been conducted previously. Studies conducted by researchers from Memorial University of Newfoundland, Canada, reported that implementation of micromodel has provided a good opportunity to explore on the multiphase fluid flow within the pore channel and fluid transport mechanisms (Mahmoodi et al. 2018). The variable of interest such as fluid saturation and other morphological features is quantified through a visual outcome executed from micromodel experiment which is then subject to further image processing/ analysis studies available in LabVIEW. Furthermore, expertise from China University of Mining & Technology, China, has also extended the scope studies on micromodel embedded with image analysis performance by focusing on the impacts of pore-scale characteristics on the coupled supercritical CO2 dissolution and water flow in micromodel channel (Chang, Zhou, Kneafsey, Oostrom, & Ju, 2019). An image processing approach, ImageJ, is introduced to visualize and quantify the dynamic dissolution process in micromodel. Another study published by Journal of Petroleum Science and Engineering, focusing on the pore-scale swelling behavior of clays in pore channel, has concluded that the effective porosity in micromodel during low salinity water (LSW) flooding effectively can be quantified through comprehensive image processing, MATLAB Image Processing Toolbox (Sharifipour et al. 2019). Thus, this research will explore on severity of damage thickness in 2D micromodel executed from extensive image analysis to fill the research gaps, as part of novelty.

Methodology

Comprehensive study through image analysis is conducted for the purpose of data analysis and interpretation on the executed images. Image analysis is a computer-based process of recognizing attributes (image recognition) and extracting quantitative information from images (Mahmoodi et al. 2018). It is a morphometric technique used to acquire quantitative data from digital images using analysis software that segments pixels in a digital image based on color or intensity (RGB, grayscale). The process commences with the input of an image and over with the output of numerical data (Khorshidian et al. 2018). Simply, it means input image is modified by one or more mathematical algorithms to generate output image that is enhanced in several way prior further analysis.

There are many different techniques used in automatically analyzing images. Examples of image analysis techniques include: geometric operations, neighborhood and block operations, linear filtering and filter design, transform, image analysis and enhancement, binary image operations and region of interest operations (Yang 2019). Further data analysis and interpretation on the micromodel output image will utilize these 3 methods from overall image analysis: image analysis and enhancement, binary image (BW) operations and region of interest (ROI) operations. Firstly, image analysis and enhancement comprise of two important processes which is segmentation and thresholding. Segmentation is the first step in image analysis, a process of partitioning a digital image into multiple segments (sets of pixels) and clustering pixels into salient image (Shen and Maa 2016). Image segmentation techniques can be divided into three groups which are edge based, region based and pixel based. Focus on pixel based, having thresholding and clustering elements. Another important process is thresholding, run after segmentation process completed. Thresholding is a technique for partitioning image directly into region based on intensity value and property of these value (Liu et al. 2017).

Instead, the image analysis process is highly dependent on the color profile which needs the image conversion from RGB to grayscale and then binary image (BW). After the first method (image analysis and enhancement), then move to binary image (BW) operation. For further reference on the color profile conversion (RGB—grayscale—binary), RGB stands for Red, Green, Blue. Each color pixel is made up of these 3 colors (Xiao et al. 2018). The intensity of this color profile is from 0 to 255; for example, pure red pixel is (255,0,0). Grayscale intensity contains 256 colors (0–255), and it is a combination of RGB intensity in a specified ratio. 0 indicates black, 1 until 254 represent gray intensity and 255 is white (Belati and Cajaiba 2018). Binary image contains only black (0) and white (1) colors. For grayscale change to binary, grayscale intensity profile 0–127 turns to black (1) while 128–255 would switch to white (1), simultaneously (Hernández et al. 2018). Finally, the 3rd method (region of interest operation) from image analysis is conducted to quantify the image accordingly from the BW output. Figure 1 indicates the flow chart for the process and assumption made for further data analysis interpretation.

Fig. 1
figure 1

Process flow chart and assumption

Materials

Chemical used for preparing synthetic brine (formation water) is 2.5% of NaCI from Sigma-Aldrich. Brine was injected with a syringe pump (Chemyx Stailess Stell Syringe Fusion) while pressure difference was recorded through pressure transducer (Nexus 3000 Chemyx Inc.).

The main part of micromodel setup is the micromodel chip fabricated from glass which consists of microfluidic channels and pore network. Micromodel chip was retrieved from Micronit, with topological structure defined as physical rock. Total chip dimension was 45 × 15 mm, with microfluidic network region of 20 × 10 mm (Fig. 2).

Fig. 2
figure 2

6 regions of interest (ROI) of a micromodel

Connected to micromodel chip is the microscope. NIS-Elements AR microscope was used for imaging the suspended solids; then, the captured images were recorded in computer control image analysis (HP Z440 Xeon) and further interpretation through image analysis.

Further data analysis and interpretation on executed images were done utilizing processing toolbox, MATLAB Image Processing Toolbox and ImageJ. These tools are used for the image analysis purpose (Fig. 3).

Fig. 3
figure 3

A section of micromodel representing physical rocks

Characterization of micromodel

Six regions of interest (ROI) have been identified at inlet, middle and outlet site in a newly micromodel. These specified ROIs were used for further studies. The micromodel is further characterized on their physical properties, pore & grain size and porosity. The images are taken by using NIS-Element AR microscope at 2 × resolution.

Micromodel: pore and grain size

The pore and grain size of micromodel is summarized in three groups, categorized as fine, medium and coarse as referred in Table 1. These data have been determined by using Annotations & Measurements tool on NIS Element AR microscope software-embedded computer control image analysis. The pore and grain size output indicates the overall ROIs studies.

Table 1 Micromodel: pore and grain size

Micromodel: porosity

Further characterization is implemented to determine the porosity for each ROI. This is done by using computational method utilize MATLAB and ImageJ software. Initially, captured image is in RGB and needs further image conversion into grayscale then binary image (RGB⟶grayscale⟶binary image) which is done in ImageJ for this conversion purpose. In ImageJ, the RGB image is converted into RGB stack type which literally makes the image become grayscale that has only black to white intensity color (0–255). Next, stack to binary conversion using Huang method that give black and white image (0 and 1). The output from intensity color range more to dark and light area would shift to black (0) and white (1) simultaneously. Wand tool is selected to fill the grain space with white color while black color denotes to pore space; then, the overall binary image is inverted which gives grain and pore space into black and white eventually. The sequence of the conversion process is referred in Fig. 4.

Fig. 4
figure 4

Sequence of image conversion from (i) RGB image to (ii) grayscale image, and finally to (iii) Binary image

Binary image can provide information on available pore space, well connectivity and flow path. The output in Fig. 4 (binary image) is then transferred into MATLAB for porosity determination purpose. Height and width of the binary image are input in MATLAB to give overall area. Then, MATLAB algorithms are generated to execute the black and white space area. Hence, calculated porosity is displayed and determined. The MATLAB algorithms used for this purpose are imread, bwmorph, imshow, sum and sprintf to read image, morphology purpose, display image, sum up for black/white area and display calculated porosity. The porosity for each ROI is referred in Table 2.

Table 2 Micromodel: porosity

Micromodel: brine injection

40 ml of 2.5% NaCl is injected at 0.1 ml/min into the micromodel. Shortly thereafter, formation of suspended solids is identified and can be seen attached on the grain surface. The executed images are captured at specified ROIs and are referred in Fig. 5.

Fig. 5
figure 5

Brine injection

Results and discussion

Segmentation process of suspended solids

The captured image from NIS-Element AR microscope is input into MATLAB Image Processing Toolbox. Then, RGB image is thresholded using code from the colorThresholder App that finally exhibits createMask (RGB) form. The color space and minimum/ maximum values for each channel of the color space were set in the App and give result in a binary mask BW and a composite image maskedRGBImage. Figure 6 shows the sequence process. Initially, RGB image is converted to chosen color space, and then, define the thresholds (min/ max) based on histogram settings. Next, mask is created based on chosen histogram thresholds that finally exhibit output. Shortly thereafter, invert mask is applied. The output maskedRGBimage been initialized based on input image and background pixels is set results as in Fig. 6. This process (invert mask) will make the RGB image and BW on maskedRGBimage to emerge as BW image and RGB on InvertMask-image (Table 3).

Fig. 6
figure 6

1st segmentation process

Table 3 Binary image output of group T50, M45 and B05

According to Fig. 7, BW images indicate agglomerate suspended solids have been segmented using Color Thresholder HSV method. The minimum/ maximum values for each channel of the color space are defined based on histogram settings and result in a binary mask BW with composite image maskedRGBImage. These findings denote that optimization of segmentation process is important in order to execute suspended solids from the input image. As the image analysis particularly on segmentation process is complete, prolonged analysis will be initialized on thresholding process.

Fig. 7
figure 7

1st segmentation

Thresholding process of suspended solids

1st Thresholding Process

The 1st stage of thresholding process will be utilizing ImageJ for image processing purpose. The ‘maskedRGBImage’ from segmentation process is input into ImageJ; then, the image is adjusted for Color Threshold. On the Threshold Color folder, the information filled for the thresholding method, threshold color and color space are default, white and HSB (hue, saturation, brightness). Applying this will directly invert binary mask BW from black to white while maintaining the segmented region in RGB image, as shown in Fig. 8. The purpose of this process is to enhance the visualization and emergence of suspended solids in their ROIs. This is achieved by applying multiband thresholding. This is typically done in order to separate “object” or foreground pixels from background pixels to aid in image processing. Color images can also be threshold. One approach is to designate a separate threshold for each of the RGB components of the image and then combine them with an AND operation. Thus, the HSL, HSV and HSB color models are more often used (Pham et al. 2007).

Fig. 8
figure 8

1st thresholding process

2nd Thresholding Process

The 2nd stage of thresholding process involves conversion of image from RGB to grayscale to binary, as referred in Fig. 9. This is done by using MATLAB Image Processing Toolbox using code rgb2gray and im2bw. This step is crucial to provide validity on which image needed to prioritize for finalization stage which is quantification of suspended solids. During rgb2gray process (RGB to grayscale), merge of red, green, and blue color is converted into intensity range color from black to white. During im2bw process (grayscale to binary), black and white intensity color is converted to black and white color. Grayscale intensity below than 128 would shift to black and greater than 128 shifts to white. This conversion (im2bw) method brings significant reduction in suspended solids on the output binary image. From naked eye, estimated around 30–40% could diminish using this method. Hence, for further stage involving quantification of suspended solids will utilize rgb2gray method that gives grayscale image as output (0–255). As reference, 255 refers to white and 0–254 refers to solid intensity level.

Fig. 9
figure 9

2nd thresholding process (image conversion)

The overall output of grayscale image is presented in Fig. 10.

Fig. 10
figure 10

rgb2gray process (grayscale image as output)

Quantification of suspended solids

The quantification process of suspended solids commenced after thorough image analysis; segmentation and thresholding process is complete. This is done by using MATLAB Image Processing Toolbox. The suspended solids are quantified in the form of area (µm2) invaded in the specified ROIs. In order to quantify the area of invaded region, the input grayscale image is used for this purpose. Acknowledge that grayscale image would come in the form of intensity black to white color, from 0 to 255, where 0 = black, 1 to 254 = black to white intensity level and 255 = white, overall, with 256 BW color (uint8 bit = 256). The grayscale image is further analyzed accordingly by using their grayscale index (0–255).

Furthermore, there are 3 types of groups used defined as T50, M45 and B05 for quantification purpose. As reference, T50 indicates to intensity color from dark gray to medium light (0 until 126), M45 denotes to intensity color from medium to light ray (127 until 241) and B05 refers to intensity color from light to very light gray (242 until 254). Since the micromodel is in 2D figure, the depth is unknown, let be the depth = Y (assume Y = 100% total depth). For detail, as the intensity index given is 0 (black), it means the whole 2D space is invaded by salt precipitation, literally invaded depth, Y = 100%, while as if the intensity index is 255 (white), it refers none of the salt precipitation invades that region which means invaded depth, Y = 0%.

Group T50 indicates to part of suspended solids that will invade the 2D space (depth) beyond 50% from actual micromodel depth, from 0 until 126 (0.5Y until 1Y). For better understanding, having 126 indexes means that probably there is high feasibility that the suspended solids depth = 0.5Y while 0 index approximately 1Y has been invaded. Similarly, group M45 (0.05Y until 0.5Y) and B05 (0Y until 0.05Y) refer to part of suspended solids categorized in their own Y. The groups (T50, M45 and B05) refer to the severity of the invasion in 2D pore space. For example, having much T50 would likely lead to severe permeability impairment since the pore space depth could be blocked by suspended solids almost > 50% height from the overall depth.

Table 4 presents the images for each ROIs accordingly with their categorized group, T50, M45 and B05. Each grayscale image is executed into these 3 categorized groups; then, executed image will be inverted into BW image to exhibit the suspended solids and background images in white and black color. The given output (from T50, M45 and B05) is further discussed on their specified ROIs with respect to suspended solids invasion. As mentioned earlier, the micromodel has been finalized into 6 ROIs from the inlet, middle and outlet location. There are known as ROI1 (top-inlet), ROI2 (top-middle), ROI3 (top-outlet), ROI4 (bottom-inlet), ROI5 (bottom-middle) and ROI6 (bottom-outlet). For further reference, detailed properties of executed images from NIS-Element AR microscope having dimensions 1608 × 1608 pixels and in relation with SI unit are 3.67 μm/px. Initially, area of image is in pixel2 and needs to convert into μm2 with given correlation conversion.

Table 4 Quantification area of group T50, M45 and B05

The first discussion will be focusing on the quantification area on the group T50 (dark gray to medium light, 0 until 126 intensity). As fluids enter the micromodel, they invade the top and bottom region, simultaneously. When looking at the invasion region on the top site from ROI1, ROI2 and ROI3 (inlet to outlet), the invasion area of T50 becomes less from 8.18 × 104, 5.75 × 104, 2.82 × 104 μm2. The trend also shows the same declination of invasion area on bottom site from ROI4, ROI5 and ROI6 (inlet to outlet), 1.25 × 105, 4.69 × 104, 3.99 × 104 μm2. For both top and bottom regions, as suspended solids migrate from the inlet to outlet, approximately about 48.85% and 59.02% are likely to attach and adhere at the inlet ROIs (ROI1 and ROI4) while 16.83% and 18.85% would attach at the outlet ROIs (ROI3 and ROI6). Furthermore, according to the results, it indicates that much sedimentation occurred at the bottom site in comparison with top site. Suspended solids attached to the pore surfaces are highly related with attractive–repulsive forces applied on it. High sedimentation is discovered at the inlet since this location is prone to get attracted with suspended solids, at first invasion. Over time, attractive forces present at front grains are not adequate to provide firm attachment on the surface, yet part of suspended solids could adhere on it while the remnant would naturally migrate to the other site available for attraction forces for them to adhere on. This phenomenon results in retention of suspended solids from one location to others as they migrate from inlet to outlet, respectively. Instead, due to the topological structure of micromodel physical rock seems high; likely fluids path flow tends to migrate at bottom region and then invades top side, resulting in high sedimentation discovered at bottom the most.

On the other hand, the trend for group M45 does not show significant different from T50. Focusing on the top-side region from ROI1, ROI2 and ROI3, the invasion area for M45 slightly declines from inlet to outlet, indicating 7.66 × 105, 3.64 × 105, 2.7 × 105 μm2. Similarly, declination trend is also finalized at the bottom side of micromodel from the inlet to outlet (ROI4, ROI5 and ROI6) gives result of 5.27 × 105, 2.7 × 105, 1.93 × 105 μm2. Furthermore, based on the result it indicates that there is no part of B05 sedimentation. Literally, mild thickness of suspended solid which is below than 5% is unlikely to occur.

From the overall output (T50 and M45), it indicates that by time suspended solids invaded the pore region, most likely the inlet part will experience high adherence of these particles and become less at the outlet part. Suspended solids remain attached to pore walls when there are enough electrostatic and van der Waals forces. The effects of the intermolecular forces on the stability of disperse systems can be described in terms of the forces between the colloidal particles determined by the summation of the intermolecular forces over many molecules (Paden 2016). Two main interacting forces in affecting colloid systems are van de Waals attractive forces and electrostatic repulsive forces. Attractive forces tend to destabilize colloids, whereas repulsive forces generally impart stability. van de Waals is originated from the dipole–dipole interactions, while their attractive force increases more and more rapidly as the molecule approach (Adrian Parsegian 2005). On the other hand, oppositely charged ions are preferentially attracted toward the surface, and ions of the same charge tend to be repelled away. The combination of the charged surface and the unequal distribution of cation and anion near the surface is called the electrical double layer (Moya 2015). As repulsive forces exceed attractive force, they detached from pore surfaces. As suspended solids enter the micromodel, the inlet part is exposed initially with them which literally causes attachment on grain walls. At time when the available attractive forces could not attract, much suspended solids adhere on their surfaces and hence will limit the attachment at front site and begin to migrate onwards. Instead, when compared accumulated suspended solids at both top and bottom regions in terms of invasion area of group T50 and M45, top side gains much invaded region of group M45 while T50 at bottom site. There is feasibility of pore restriction and channel that drive to this outcome since factors like available pore space, pore space connectivity and tortuosity index might affect simultaneously.

Besides that, by referring to Table 4 it indicates that high accumulation of suspended solids area under group M45 is discovered at all ROIs (ROI1 until ROI6) comparing with group T50 and B05. Output images prove that as seen M45 area is scattering throughout the space. In terms of scattering index, M45 possesses the highest scattering index followed by T50 and B05. All the output (quantification area of T50, M45 and B05) acquired is crucial for determination and thorough understanding of afterward permeability/porosity that has been severely affected and performance of chemical injection to cause solid attachment/detachment. In comparison for their severity of thickness in 2D micromodel (ROI1 until ROI6), sedimentation area for group B05 is negligible while M45 recorded the highest remark. Throughout 6 ROIs, if such sedimentation of suspended solids occurs, 80.83%—90.54% would fall under group M45 which means the severity of thickness in 2D micromodel is below or equal to 50% from the overall depth. Basically, further interpretation could be done to enhance the current 2D visualization into 3D by utilizing ImageJ, Interactive 3D Surface Plot. As referred in Fig. 11, ROI1 images are processed using ImageJ; subsequently, create 3D image. Merge suspended solids groups of T50, M45 and B05 seen clearly. From the 2D observation, 7.66 × 105 and 8.18 × 104 μm2 of M45 and T50 have invaded from the overall porous area, 1.75 × 107 μm2, clearly about 4.84% invasion by both M45 and T50. From 3D perspective, even though the invasion area is seemingly smaller, the actual thickness of this solid film layer is relatively dense which is above quarter from the overall pore thickness. Thus, clear understanding on solid attachment and findings on permeability impairment could be directly obtained simultaneously.

Fig. 11
figure 11

2D to 3D visualization

Conclusion and recommendation

In a nutshell, this research study has provided an enhancement for the formation damage scope in enhanced oil recovery which is the detailed quantification method of suspended solids in porous media (micromodel) utilizing an image analysis. Also, it provides the basic knowledge on image analysis that can be implemented to maximize the executed information from the analysis and minimize the magnitude or error. On the other hand, the research output has successfully quantified the suspended solids being attached at specified 6 ROIs. First, finding indicates that there is high accumulation of suspended solids area at the inlet part (ROI1 and ROI4) compared to outlet (ROI3 and ROI6) which is due to site-constraint, inlet site prone to expose initially more rather than outlet. Second, output indicates high suspended solids of group M45 occurred at top site (ROI, ROI2, ROI3) while T50 at bottom part (ROI4, ROI5, ROI6) which is due to topological structure of the physical rock that might affect the path flow and well connectivity. Third, suspended solids under group M45 indicate the highest scattering index and suspension area in comparison with T50 and B05. This is because their suspension volume/ mass is relatively well dispersed which makes them invade large space area in a nick of time. Hence, through 2D porous media visualization using micromodel (image analysis) has gain firm understanding on suspended solids in pore scale. A limitation of image analysis is that it often required assumption to be made and only provides measurements of relative changes to the object of interest. An improvement that can be implemented to improve the current 2D pore scale visualization study is by generating the 3D performance using computation fluid dynamic (CFD) simulation tool, whereby it can produce quantitative predictions of fluid flow phenomena in relation with generation of suspended solids.