# Image Acquisition and Parameter Calculations for Optimization of the Automatic Identification of Terpenes in a Combined Laser Thin Film Extract

Theodore Guié Toa Bi, Wognin Vangah, Alico Nango Jérôme, Sié Ouattara, Alain Clement

► To cite this version:

Theodore Guié Toa Bi, Wognin Vangah, Alico Nango Jérôme, Sié Ouattara, Alain Clement. Image Acquisition and Parameter Calculations for Optimization of the Automatic Identification of Terpenes in a Combined Laser Thin Film Extract. Advances in Materials Physics and Chemistry, 2022, 12 (06), pp.141-154. 10.4236/ampc.2022.126010. hal-03993988

HAL Id: hal-03993988

https://univ-angers.hal.science/hal-03993988

Submitted on 17 Feb 2023

HAL is a multi-disciplinary open access
archive for the deposit and dissemination of sci-
entific research documents, whether they are pub-
lished or not. The documents may come from
teaching and research institutions in France or
abroad, or from public or private research centers.

L'archive ouverte pluridisciplinaire HAL, est
destinée au dépôt et à la diffusion de documents
scientifiques de niveau recherche, publiés ou non,
émanant des établissements d'enseignement et de
recherche français ou étrangers, des laboratoires
publics ou privés.

<figure><img src="image_1.png" /></figure>

Distributed under a Creative Commons Attribution 4.0 International License
# Image Acquisition and Parameter Calculations for Optimization of the Automatic Identification of Terpenes in a Combined Laser Thin Film Extract

Theodore Guié Toa Bi<fnref n="1" />,<fnref n="2" />, Wognin Vangah<fnref n="2" />, Alico Nango Jérôme<fnref n="2" />, Sié Ouattara<fnref n="2" />, Alain Clement<fnref n="3" />

Email: toabiguietheo@yahoo.fr

**How to cite this paper:** Bi, T.G.T., Vangah, W., Jérôme, A.N., Ouattara, S. and Clement, A. (2022) Image Acquisition and Parameter Calculations for Optimization of the Automatic Identification of Terpenes in a Combined Laser Thin Film Extract. *Advances in Materials Physics and Chemistry*, **12**, 141-154.

https://doi.org/10.4236/ampc.2022.126010

Received: May 5, 2022

Accepted: June 19, 2022

Published: June 22, 2022

Copyright © 2022 by author(s) and
Scientific Research Publishing Inc.
This work is licensed under the Creative
Commons Attribution International
License (CC BY 4.0).

http://creativecommons.org/licenses/by/4.0/

<figure><img src="image_2.png" /></figure>

Open Access

## Abstract

In this work, we propose an original approach to the thin-layer identification of secondary metabolites (terpenes) based on the acquisition of multicomponent images integrating terpenes to be identified. Its principle consists initially of segmentation by region of each component of the image based on the attribute tuples or colors of each region of the digital image. Then we proceeded to the calculations of region parameters such as standard deviation, entropy, average pixel color, eccentricity from an algorithm on the matlab software. These values allowed us to build a database. Finally, we built an algorithm for identifying secondary metabolites (terpenes) on the basis of these data. The relevance of our method of identifying or recognizing terpenes has been demonstrated compared to other methods, such as the one based on the calculation of frontal ratios which cannot discriminate between two terpenes having the same frontal ratio. The robustness of our method with respect to the identification of linalool, limonene was tested.

## Keywords

Thin Film, Terpenes, Segmentation, Entropy

## 1. Introduction

In African countries and particularly in Ivory Coast, traditional medicine has become the only source of affordable and accessible care, especially for the

<footnote n="1">¹UFR Science and Technology, University of Man, Man, Ivory Coast</footnote>

<footnote n="2">²Laboratory of Communication and Information Science and Technology (LSTCI), National Polytechnic Institute Houphouët Boigny, Yamoussoukro, Côte d'Ivoire</footnote>

<footnote n="3">³University Institute of Technology of Angers (IUT), Angers, France</footnote>
poorest patients [1]. This medicine mainly uses therapies made from the leaves of plants. A study by Kadja *et al.* showed that these leaves contain thousands of secondary metabolites including terpenes responsible for improving men's health. This is why, as part of the scientific development of this medicine and in order to provide it with assistance, researchers in the field of natural substances are directing their research towards the identification of secondary metabolites, in particular terpenes contained in the leaves of plants using a thin layer method [2]. However, this identification is done manually in a slow and laborious way [3].

The challenge facing experts in the identification of thin-film compounds is to make it faster through several methods including the one based on the frontal ratio of thin-film compounds [3]. However, the work of Datté *et al.*, 2008 presented two different terpenes but with the same frontal relationship. One of the terpenes corresponds to limonenes and the other to pinenes. This work shows that it is not reliable to recognize compounds only from frontal ratios.

In order to overcome these shortcomings, it is therefore necessary to resort to other methods based on digital image processing.

Image processing is a feature of signal processing, the objective of which is the transformation of digital images, with the aim of improving their quality and/or extracting information from them. In the field of digital image processing, segmentation plays a major role. It consists in extracting image primitives, either of contour type or of region type [4]. These primitives are used to perform pattern recognition, matching, compression, etc. Classification segmentation consists of partitioning a set of vector attribute pixels into k disjoint classes. Each class groups pixels with characteristics as similar as possible [5]. Indeed, the pixels of a region having an average value per channel in RGB greater than a certain value (threshold) $T_1$ and less than a second value $T_2$ are classified as object recognition pixels which can be used for the identification of the secondary metabolite.

The approach to the automatic identification of secondary metabolites (terpenes) that we propose in this article, based on segmentation by digital image regions incorporating the terpenes to be identified, is an extension of the automatic identification of secondary metabolites. It is based on image acquisition, sampling and quantization of images using Dirac's two-dimensional comb.

Parameters such as the average pixel color on each channel, color entropy on each channel, standard deviation, equivalent distance, etc. different regions are calculated. The values obtained are stored and constitute a database. From this database, an algorithm is developed and executed on Matlab version 2016 software [6], thus enabling the identification to be carried out automatically and quickly.

For the understanding of this work, the document is organized as follows: in Section 1, we present photochemical screening and image acquisition integrating terpenes, scanning, filtering these images and calculating parameters, then in Section 2 we present the results of the different parameters calculated on the channels, finally in Section 3, a theoretical and experimental validation of our
approach is presented. We conclude with some prospects for future work.

## 2. Materials and Methods

### 2.1. Material

#### 2.1.1. Chemical Reagents and Apparatus

All chemicals used are of analytical grade. The solvents and reagents used were purchased commercially from Polychimie (Ivory Coast). For the separation of secondary metabolites on a thin layer, we made use of chromatoplates (thin layers) in silica gel 60 F254 on an aluminum support.

The different devices used for our analysis are as follows:

* A RETSCH brand electric grinder, type SM 100;

* A Sartorius brand scale (Germany);

* A Burchi RII rotary evaporator;

* A magnetic stirrer;

* A UV-Visible spectrophotometer;

* A camera;

* ✓ Spatial resolution: 2448 × 3264 (8 M pixels);

* ✓ Tonal resolution: 24 bit (color);

* ✓ Color space: RGB;

* ✓ Camera model: Infinix;

* ✓ Focal: F/2;

* ✓ Exposure time: 1/13 seconds;

* ✓ ISO sensitivity: ISO-864;

* ✓ Focal length: 4 mm;

* ✓ Image format: JPG image;

* UV lamp (366 nm, 254 nm).

#### 2.1.2. Plant Material

The plant organs, mainly composed of leaves, were all harvested from the forest relic at Nangui Abrogoua University in Côte d'Ivoire (Figure 1).

The plant species were identified in accordance with the herbaria available at the Center National de Floristique (CNF).

### 2.2. Methods

#### 2.2.1. Selective Extraction of Secondary Metabolites

The hydromethanolic extracts of the different leaves were treated with 3 × 20 ml of hexane, chloroform, ethyl acetate and n-butanol, respectively. The different organic fractions were concentrated under reduced pressure on a rotary evaporator and then stored in the refrigerator. Thus, for each crude extract, selective extracts are obtained distributed as follows: hexanes, chloroforms, ethyl acetates and n-butanolics which were used for the phytochemical screening.

#### 2.2.2. Photochemical Screening, Image Acquisition and Digitization

The photochemical screening was carried out according to the analytical procedures described in the works of [7] and [8].
Drops of each selective extract are applied using a capillary on the points (01 cm from each other) of the baseline drawn 1 cm from the bottom of the thin layers (silicage 60 F254).

The deposits are left to dry for a moment before introducing the thin layers into the chromatography tank containing the migration solvent. After migration and drying with a hair dryer, the chrotograms are revealed with reagents specific to the desired phytochemical groups, then visualized in the visible light and then under a UV lamp at 366 nm (Figure 2). The different developing systems used are:

* Hexane/AcOEt (20:4; v/v) for the hexane fractions;

* CHCl₃/AcOEt/hexane (10:10:5; v/v/v) for the chloroform fractions;

* AcOEt/CH₃OH/H₂O/CHCl₃ (18:2.4:2.1:6; v/v/v/v) for the ethyl acetate fractions.

We used, to improve the image quality, the relation [9]:

$$IT_{XY\lambda} = \frac{S_{XY\lambda} - B_{XY\lambda}}{R_{XY\lambda} - B_{XY\lambda}} \quad (1)$$

* $S_{xy\lambda}$ is the capture of the image transmitted by the sample on the plate;

* $R_{xy\lambda}$ is the capture of the image of the empty plate; so-called reference measurement;

* $B_{xy\lambda}$ is the capture of the image by obstructing the passage of light: a measure known as background noise.

<figure><img src="image_3.png" /><figcaption>Figure 1. (a) Ageratum conyzoides Linn, (b) Leaves of Morinda lucida (L.), (c) Leaves of alchornea.</figcaption></figure>

<figure><img src="image_4.png" /><figcaption>Figure 2. Schematic drawing of thin layer image acquisition.</figcaption></figure>
Scanning is performed using Dirac's two-dimensional comb- $\sum_m \sum_n \delta(x, y)$ and the relation of intensity is given the relation [9]:

$$I_e(m, n) = I(x, y) \cdot \sum_m \sum_n \delta(x - m\Delta x, y - n\Delta y) \quad (2)$$

$I_e(m, n)$: Intensity associated with the pixel $(m, n)$ and quantized over a number of bits $q$;

$\Delta X$: Step sampling in the direction $X$;

$\Delta Y$: Step sampling in the direction $Y$;

$\sum_i \sum_j \delta(x - m\Delta x, y - n\Delta y)$: Dirac comb 2D.

<figure><img src="image_5.png" /></figure>

### 2.2.3. Improvement of Segmented Regions and Filtering

$f$ is the image to filter (or enhance) and $g$ the spatial filter, we have the relation [10] [11]:

$$f(x, y) * g(x, y) = F^{-1} \left\{ F(f(x, y)) \cdot F(g(x, y)) \right\} \quad (3)$$

$G$ is the filter transfer function. Since the digital image is essentially discrete (pixels and grayscale), we have presented the filter in the discrete case. On each digital image, we did not do a global convolution but a local transformation based on the neighborhood of a point $(x, y)$ (Figure 3).

Image enhancement was also achieved through the median filter. In Figure 4 we present the original image and the improved image.

## 3. Results and Discussions

### 3.1. Acquisition of Images on the Thin Film

For each extract, we obtained digital images on the thin layers. Figure 5 shows some of the images obtained.

### 3.2. Parameter Calculations

Figures 6-8 illustrate the segmentations of the different spots of the images used. Finally, we have created a database with the values of the parameters of each task (region). The spots corresponding to terpenes previously are identified by the manual identification technique based on the developers.

We segmented each spot of the images in Figure 5, we then calculated the average color, standard deviation, color entropy using the algorithms encoded in the Matlab 2016 version run under Microsoft Windows 10 pro on a PC based on Intel i3.
<figure><img src="image_6.png" /><figcaption>Figure 3. Local convolution of the digital image.</figcaption></figure>

<figure><img src="image_7.png" /><figcaption>Figure 4. (a) Original image (b) improved image.</figcaption></figure>

<figure><img src="image_8.png" /><figcaption>Figure 5. (a) Chromatogram under UV at 366 nm, (b) UV chromatogram at 366 nm of hexan extracts.</figcaption></figure>

<figure><img src="image_9.png" /><figcaption>Figure 6. Size under image (spot).</figcaption></figure>

## Average pixel color

Each spot on the thin film is a digital grayscale image and an array of values. Each cell of this array, which stores a value, is a pixel. By noting n the number of lines and p the number of columns in the image, we thus manipulate an array of
$n \times p$ pixels. **Figure 6**, left, shows a visualization of a square table with $n = p = 240$, which represents $240 \times 240 = 57,600$ pixels. For an image, we can therefore calculate the average color $I_e$ of pixels characterizing this image.

Algorithm (a) below calculates the average pixel color of the spots (Figure 7).

<figure><img src="image_10.png" /><figcaption>**Figure 7.** (a), (b) Segmentation of spots under UV 366 nm corresponding to families of molecules (a'), (b') Segmented spots of molecule families.</figcaption></figure>

<figure><img src="image_11.png" /></figure>
<figure><img src="image_12.png" /><figcaption>Figure 8. (a) Average color as a function of the molecules of the fractions; (b) Standard deviation as a function of the molecules of the fractions; (c) Color entropy as a function of the molecules of the fractions.</figcaption></figure>

b=imshow (im1);
im2=rgb2gray (im1);
h=imfreehand;
bw=createMask (h, b);
figure,imshow (bw);
ht=regionprops (bw, im2, 'MeanIntensity');
at=ht.MeanIntensity.

■ Standard deviation (std)

The standard deviation is given by the relation [12]:

$$
S = \left( \frac{1}{n-1} \sum_{i=1}^{n} (x_i - \bar{x})^2 \right)^{\frac{1}{2}} \quad (4)
$$

Algorithm (b) below calculates the standard deviation of the spots (Figure 7).

b=imshow (im3);
im2=rgb2gray (im3);
h=imfreehand;
bw=createMask (h,b);
figure,imshow (bw);
ht=regionprops (bw, im2, 'PixelValues');
ap=ht.PixelValues;
s=std (double(ap)).

■ Entropy

The entropy is given by the relation [13]:

$$
H(X) = - \sum_{i=1}^{n} P_i \log P_i \qquad (5)
$$

Algorithm (c) below calculates the average pixel color of the spots (Figure 7).

b=imshow (im4);
im2=rgb2gray (im4);
h=imfreehand;
bw=createMask (h, b);
figure,imshow (bw);
ht=regionprops (bw, im2, 'PixelValues');
ap=ht/PixelValues;
E=entropy (ap).

### 3.3. Parameter Values

For a stain on the thin layer, we identify the corresponding terpene by the traditional method using developers and for this stain parameters are calculated constituting a database and corresponding to this terpene. The parameter values for the terpenes are given in Tables 1-4.

In order to show whether the properties of a molecule (terpene) are the same for the different fractions, we have represented the values of the properties according to the molecules. Figures 8(a)-(c) represent the average pixel color of the terpenes of the four fractions, the standard deviation of the four fractions, and the color entropy of the molecules of the four fractions, respectively.

<table><caption>Table 1. Parameter values of the terpenes of the hexane fraction.</caption><thead><tr><th>Parameters</th><th>Canals</th><th>Pinene</th><th>Myrcene</th><th>Limonene</th><th>Linalool</th></tr></thead><tbody><tr><td rowspan="3">Mean color</td><td>Red (R)</td><td>[115.70; 115.90]</td><td>[121.88; 122.71]</td><td>[121.78; 121.92]</td><td>[186.04; 187.10]</td></tr><tr><td>Green (G)</td><td>[113.81; 113.84]</td><td>[154.31; 154.41]</td><td>[114.31; 114.41]</td><td>[124.50; 124.60]</td></tr><tr><td>Blue (B)</td><td>[212.98; 213.21]</td><td>[233.81; 233.84]</td><td>[223.98; 224.07]</td><td>[205.74; 205.84]</td></tr><tr><td rowspan="3">Entropy</td><td>Red (R)</td><td>[2.04; 2.11]</td><td>[3.11; 3.61]</td><td>[2.11; 2.31]</td><td>[1.50; 1.60]</td></tr><tr><td>Green (G)</td><td>[2.88; 2.90]</td><td>[2.11; 2.20]</td><td>[1.11; 1.20]</td><td>[2.00; 2.11]</td></tr><tr><td>Blue (B)</td><td>[3.12; 3.14]</td><td>[2.91; 2.93]</td><td>[3.27; 3.65]</td><td>[1.13; 1.52]</td></tr><tr><td rowspan="3">Standard deviation</td><td>Red (R)</td><td>[0.47; 0.60]</td><td>[1.53; 1.70]</td><td>[3.87; 3.90]</td><td>[4.01; 4.03]</td></tr><tr><td>Green (G)</td><td>[3.44; 3.60]</td><td>[2.78; 2.90]</td><td>[2.10; 2.11]</td><td>[4.04; 4.10]</td></tr><tr><td>Blue (B)</td><td>[2.84; 2.94]</td><td>[2.45; 2.65]</td><td>[1.62; 1.65]</td><td>[1.74; 1.87]</td></tr></tbody></table>

<table><caption>Table 2. Parameter values of the terpenes of the chloroform fraction.</caption><thead><tr><th>Parameters</th><th>Canals</th><th>Pinene</th><th>Myrcene</th><th>Limonene</th><th>Linalool</th></tr></thead><tbody><tr><td rowspan="3">Mean Color</td><td>Red (R)</td><td>[125.60; 125.80]</td><td>[122.88; 123.71]</td><td>[121.78; 121.82]</td><td>[176.04; 177.10]</td></tr><tr><td>Green (G)</td><td>[114.81; 114.84]</td><td>[164.31; 164.41]</td><td>[113.31; 113.41]</td><td>[144.50; 144.60]</td></tr><tr><td>Blue (B)</td><td>[202.98; 203.21]</td><td>[234.81; 234.84]</td><td>[221.98; 221.07]</td><td>[206.74; 206.84]</td></tr><tr><td rowspan="3">Entropy</td><td>Red (R)</td><td>[2.04; 2.11]</td><td>[3.11; 3.61]</td><td>[2.11; 2.31]</td><td>[1.50; 1.60]</td></tr><tr><td>Green (G)</td><td>[2.88; 2.91]</td><td>[2.11; 2.20]</td><td>[1.11; 1.20]</td><td>[2.00; 2.11]</td></tr><tr><td>Blue (B)</td><td>[3.11; 3.14]</td><td>[2.91; 2.93]</td><td>[3.27; 3.65]</td><td>[1.13; 1.52]</td></tr><tr><td rowspan="3">Standard deviation</td><td>Rouge (r)</td><td>[0.47; 0.60]</td><td>[1.57; 1.70]</td><td>[3.87; 3.90]</td><td>[4.01; 4.03]</td></tr><tr><td>Vert (v)</td><td>[3.47; 3.60]</td><td>[2.88; 2.90]</td><td>[2.00; 2.11]</td><td>[4.04; 4.10]</td></tr><tr><td>Bleu (b)</td><td>[2.74; 2.84]</td><td>[2.45; 2.65]</td><td>[1.62; 1.65]</td><td>[1.74; 1.87]</td></tr></tbody></table>
<table><caption>**Table 3.** Parameter values of the terpenes of the ethyl acetate fraction.</caption><thead><tr><th>Parameters</th><th>Canals</th><th>Pinene</th><th>Myrcene</th><th>Limonene</th><th>Linalool</th></tr></thead><tbody><tr><td rowspan="3">Mean color</td><td>Red (R)</td><td>[125.70; 125.90]</td><td>[121.88; 122.71]</td><td>[121.78; 121.92]</td><td>[186.04; 187.10]</td></tr><tr><td>Green (G)</td><td>[113.81; 113.84]</td><td>[154.31; 154.41]</td><td>[114.31; 114.41]</td><td>[124.50; 124.60]</td></tr><tr><td>Blue (B)</td><td>[212.98; 213.21]</td><td>[234.81; 234.84]</td><td>[223.98; 224.07]</td><td>[205.74; 205.84]</td></tr><tr><td rowspan="3">Entropy</td><td>Red (R)</td><td>[2.14; 2.18]</td><td>[3.19; 3.69]</td><td>[2.12; 2.31]</td><td>[1.50; 1.60]</td></tr><tr><td>Green (G)</td><td>[2.87; 2.93]</td><td>[2.13; 2.20]</td><td>[1.11; 1.20]</td><td>[2.00; 2.11]</td></tr><tr><td>Blue (B)</td><td>[3.11; 3.14]</td><td>[2.91; 2.93]</td><td>[3.27; 3.65]</td><td>[1.13; 1.52]</td></tr><tr><td rowspan="3">Standard deviation</td><td>Red (R)</td><td>[0.47; 0.60]</td><td>[1.57; 1.70]</td><td>[3.87; 3.90]</td><td>[4.01; 4.03]</td></tr><tr><td>Green (G)</td><td>[3.47; 3.60]</td><td>[2.88; 2.90]</td><td>[2.00; 2.11]</td><td>[4.04; 4.10]</td></tr><tr><td>Blue (B)</td><td>[2.54; 2.84]</td><td>[2.32; 2.36]</td><td>[1.78; 1.79]</td><td>[1.71; 1.80]</td></tr></tbody></table>

<table><caption>**Table 4.** Parameter values of the terpenes of the n-butanol fraction.</caption><thead><tr><th>Parameters</th><th>Canals</th><th>Pinene</th><th>Myrcene</th><th>Limonene</th><th>Linalool</th></tr></thead><tbody><tr><td rowspan="3">Mean color</td><td>Red (R)</td><td>[135.20; 136.40]</td><td>[120.88; 121.71]</td><td>[121.78; 121.92]</td><td>[176.04; 177.10]</td></tr><tr><td>Green (G)</td><td>[111.81; 112.84]</td><td>[144.31; 154.41]</td><td>[115.31; 116.41]</td><td>[127.50; 128.60]</td></tr><tr><td>Blue (B)</td><td>[212.98; 213.21]</td><td>[233.81; 233.84]</td><td>[223.98; 224.07]</td><td>[205.74; 205.84]</td></tr><tr><td rowspan="3">Entropy</td><td>Red (R)</td><td>[2.14; 2.19]</td><td>[3.14; 3.61]</td><td>[2.17; 2.38]</td><td>[1.52; 1.61]</td></tr><tr><td>Green (G)</td><td>[2.81; 2.93]</td><td>[2.11; 2.20]</td><td>[1.11; 1.20]</td><td>[2.00; 2.11]</td></tr><tr><td>Blue (B)</td><td>[3.11; 3.14]</td><td>[2.95; 2.98]</td><td>[3.27; 3.65]</td><td>[1.13; 1.52]</td></tr><tr><td rowspan="3">Standard deviation</td><td>Red (R)</td><td>[0.47; 0.60]</td><td>[1.57; 1.70]</td><td>[3.88; 3.97]</td><td>[4.01; 4.03]</td></tr><tr><td>Green (G)</td><td>[3.47; 3.60]</td><td>[2.48; 2.49]</td><td>[2.04; 2.19]</td><td>[4.44; 4.87]</td></tr><tr><td>Blue (B)</td><td>[2.77; 2.88]</td><td>[2.44; 2.63]</td><td>[1.61; 1.67]</td><td>[1.74; 1.87]</td></tr></tbody></table>

From the different values of the parameters of the four (04) fractions, that is to say the hexane, chloroform, ethyl acetate and n-butanol fractions shown in **Tables 1-4** we have obtained curves. **Figure 8(a)** corresponds to the representation of the average color of the spots resulting from these four fractions as a function of the molecules. This figure allows us to affirm that the value of the mean color does not depend on the fraction, the curves of the fractions being almost superimposed. **Figure 8(b)** corresponds to the representation of the standard deviation of the spots resulting from these four fractions showing the similarity between the values of the standard deviation, the curves being almost coincident. The same observation is made in **Figure 8(c)** corresponding to the representation of entropy as a function of molecules. **Figures 8(a)-(c)** allow us to show that the identification of the molecules corresponding to the spots does not depend on the fraction.

The different representations show a quasi-superposition of the different curves of the hexane fraction, chloroform fraction, ethyl acetate fraction and n-butanol fraction. The gap between the different curves is reduced compared to
the gap between the curves when we isolate the spots by considering the actual contours of the spots.

The results allow us to conclude that if the isolation is done closer to the center of the spots, the values of the properties are practically identical for the different fractions. Thus the spots incorporating the terpenes will have the same parameter values if we isolate the spots closer to the center of it.

### 3.4. Development of the Identification Program

For the different fractions, the parameters have the same values, so this allows us to develop the identification program below (Figure 9).

We verified the presence of terpenes, in particular linalool, in the hexane fraction of the leaves of Solenostemon monostachyus.

The manual thin-layer identification protocol being the same, we segmented the different spots on the thin layer (Figure 10). We then calculated the various parameters including color entropy (Entropy), standard deviation (std) and average pixel color (MeanIntensity). We obtained the results shown in Table 4.

These values correspond to terpenes in the database.

The distance used to recognize objects in the image is the Euclidean distance, defined for two vectors $X = (x_1, \dots, x_n)$ and $Y = (y_1, \dots, y_n)$ de $\mathbb{R}_n$ by the relation [14]:

$$d(X, Y) = \sqrt{\sum_{i=1}^{n} (x_i - y_i)^2} \qquad (6)$$

which has values in $\mathbb{R}$, $\mathbb{Q}$ or $\mathbb{Z}$ and are called respectively real, rational or discrete distances. The normalized value of the Euclidean distance is given by the relation [14]:

<figure><img src="image_13.png" /><figcaption>Figure 9. Molecular identification program.</figcaption></figure>
<figure><img src="image_14.png" /><figcaption>Figure 10. (a): Segmentation of the first task, (b) second task, (c) third task, (d) fourth task, (e) fifth task; (a’): First segmented spot, (b’) second segmented spot, (c’) third segmented spot, (d’) fourth segmented spot, (e’) fifth segmented spot.</figcaption></figure>

$$d(x, y) = \sqrt{\sum_{i=1}^{n} \left( \frac{x_i - y_i}{x_i + y_i} \right)^2} \quad (7)$$

allowing decisions to be made from the coordinates of vectors in a database.

The values of the average color of the pixels, the standard deviation of each component, the entropy per color component of the four fractions of the compounds are given in Table 5.

Table 5 confirms the presence of pinenes, limonenes, linalool, terpenes, in the leaves of Solenostemon monostachyus. For example we have the values of the average color ($at_R$ = 91.20; $at_G$ = 114.5; $at_B$ = 213.21), of standard deviation ($s_R$ = 1.58; $s_G$ = 3.52; $s_B$ = 2.62), of entropy ($H_R$ = 2.51; $H_G$ = 2.14; $H_B$ = 2.47) which correspond to the values of the parameters of Linalool. Values ($at_R$ = 74.14; $at_G$ = 87.21; $at_B$ = 75.89), of entropy ($H_R$ = 6.08; $H_G$ = 4.12; $H_B$ = 4.80). These values identify the Pipenes in the leaves of Solenostemon monostachyus. These terpenes have already been identified by the traditional method with the same plant in the work of [15]. These results thus show the reliability and robustness of our identification approach and its simplicity in its implementation.

## 3.5. Discussion

The automated identification of thin-layer terpenes that we performed on digital images allowed us to identify a few molecules present in a hexane, chloroform, ethyl acetate and n-butanol extract. However, values of the average color ($at_R$ = 87.01; $at_G$ = 41.05; $at_B$ = 54.01) do not match the values for terpenes in the database. This could be explained on the one hand by the noise due to stray lights during the acquisition of the images, on the other hand to the limit of our database which does not contain enough molecules, it will therefore be necessary to enrich this database to take into account several molecules (terpenes).
<table><caption>Table 5. Values of the leaf segmentation parameters of Solenostemon monostachyus.</caption><thead><tr><th colspan="3">Mean Color (at)</th><th colspan="3">Standard Deviation (s)</th><th colspan="3">Color Entropy (H)</th><th rowspan="2">Terpene</th></tr><tr><th>R</th><th>G</th><th>B</th><th>R</th><th>G</th><th>B</th><th>R</th><th>G</th><th>B</th></tr></thead><tbody><tr><td>87.01</td><td>41.05</td><td>54.01</td><td>6.47</td><td>3.58</td><td>4.11</td><td>8.74</td><td>3.46</td><td>5.08</td><td>?</td></tr><tr><td>91.20</td><td>114.5</td><td>213.21</td><td>1.58</td><td>3.52</td><td>2.62</td><td>2.51</td><td>2.14</td><td>2.47</td><td>Linalool</td></tr><tr><td>100.04</td><td>42.41</td><td>81.47</td><td>9.52</td><td>10.4</td><td>0.35</td><td>8.12</td><td>4.63</td><td>1.42</td><td>Limonenes</td></tr><tr><td>106.21</td><td>32.05</td><td>81.36</td><td>14.56</td><td>47.23</td><td>2.80</td><td>5.45</td><td>1.95</td><td>1.67</td><td>?</td></tr><tr><td>104.04</td><td>65.47</td><td>56.27</td><td>45.71</td><td>23.74</td><td>2.45</td><td>1.36</td><td>5.25</td><td>4.04</td><td>Pinenes</td></tr><tr><td>115.31</td><td>112.42</td><td>202.56</td><td>0.54</td><td>3.59</td><td>2.81</td><td>1.17</td><td>2.81</td><td>3.12</td><td>Myrcenae</td></tr><tr><td>74.14</td><td>87.21</td><td>75.89</td><td>59.54</td><td>13.54</td><td>12.58</td><td>6.08</td><td>4.12</td><td>3.80</td><td>?</td></tr></tbody></table>

## 4. Conclusions

We have presented a new technique for identifying terpenes on a thin film based on image segmentation and the calculation of segmentation parameters such as color entropy, standard deviation and average pixel color. Our method shows quite satisfactory results were compared with the results of the manual technique made from the developers and the UV lamp 366 nm and 254 nm. The results of this comparison showed a similarity between the terpenes obtained. This shows the reliability and robustness of our technique.

In our next work, it will be a question of designing an electronic device coupled to a computer allowing to automatically calculating the color entropy, the average color of the pixels and the standard deviation of each spot in order to identify the terpenes.

## Conflicts of Interest

The authors declare no conflicts of interest regarding the publication of this paper.

## References

[1] Muthu, C., Aymar, M., Raja, N. and Ignacimuthu, S. (2006) Medicinal Plants Used by Traditional Healers in Kancheepuran District of Tamil Nadu, India. *Journal of Enthnobiological and Ethnomedicine*, 2, Article No. 43.
https://doi.org/10.1186/1746-4269-2-43

[2] Mamyrbékova-Békro, J.A., PIRAT, J.-L., Békro, Y.-A., Sommerer, N., Meudec, A.V. E. (2014) Identification of Phenolic Compounds Extracted from Two Plants of the Ivorian Pharmacopoeia. *Journal of the Chemical Society*, 38, 57-63.

[3] Djanohoun, E. and Aké-Assi, L. (1979) Contribution to the Census of Medicinal Plants in Côte d'Ivoire. Department of Scientific Research, National Floristic Center, Abidjan, Ivory Coast, 359.

[4] Maragos, P. and Schafer, R. (1990) Morphological Systems for Multidimensional Signal Processing. *Proceeding of the IEEE*, 78, 690-710.
https://doi.org/10.1109/5.54808

[5] Micusik, B. and Hanbury, A. (2005) Steerable Semi-Automatic Segmentation of
Textured Images. In: Kalviainen, H., Parkkinen, J. and Kaarna, A., Eds., *Scandinavian Conference on Image Analysis (SCIA)*, Vol 3540, Springer, Berlin, Heidelberg. https://doi.org/10.1007/11499145_5

[6] Derivaux, S., Lefèvre, S., Wemmert, C. and Korczak, J.J. (2007) Segmentation by Watershed Based on Textural Knowledge. *GRETSI Symposium on Signal and Image Processing*, Troyes, France, September 2010, Vol 31, 2364-2374.

[7] Adeneye, A.A. (1991) Composition of Seed Oils of Gmelina Gmelina-Arborea and Teak Tectona-Grandis. *Pakistan Journal of Scientific and Industrial Research*, **34**, 359-363.

[8] Ibrahim, T., Adetuyi, F. and Ajala, L. (2012) Phytochemical Screening and Antibacterial Activity of *Sida acuta* and *Euphorbia hirta*. *Journal of Applied Phytotechnology in Environment Sanitation*, **1**, 113-119.

[9] Olivier, K., Bagui, I. and William, Y. (2014) Etude de l'effet de l'amodiaquine sur les globules rouges infectés par le paludisme dans les images multispectrales. *Afrique Science*, **10**, 36-44. http://www.afriquescience.info

[10] Mumford, D. and Shah, J. (1989) Optimal Approximations by Piecewise Smooth Functions and Associated Variational Problems. *Communications on Pure and Applied Mathematics*, **42**, 577-685. https://doi.org/10.1002/cpa.3160420503

[11] Aubert, G. and Vese, L. (1997) A Variational Method in Image Recovery. *SIAM Journal on Numerical Analysis*, **34**, 1948-1979.
https://doi.org/10.1137/S003614299529230X

[12] Nagele, P. (2003) Misuse of Standard Error of the Mean (SEM) When Reporting Variability of a Sample. A Critical Evaluation of Four Anaesthesia Journals. *British Journal of Anaesthesia*, **90**, 514-516. https://doi.org/10.1093/bja/aeg087

[13] Lievin, M. (2000) Analyse entropico-logarithmique de sequences video couleur. Application à la segmentation markoviennenet au suivi de visages parlants. PhD Thesis, National Polytechnic Institute, Grenoble, France.

[14] Sirovich, L. and Kirby, M. (1987) Low-Dimensional Procedure for the Characteri-Zation of Human Face. *Journal of Optical Society of America*, **4**, 519-524.
https://doi.org/10.1364/JOSAA.4.000519

[15] Claassen, F.W. and Van der Klift, E.J.C. (2009) Recent Developments in the Rapid Analysis of Plants and Tracking Their Bioactive Constituents. *Phytochemistry Reviews*, **8**, 387-399. https://doi.org/10.1007/s11101-009-9125-9