Method for detecting and characterizing plastic particles by image processing
A method using U-Net and ResNet neural networks for automated microplastic detection and characterization in environmental samples addresses the complexity and impracticality of existing methods, enabling efficient and accurate detection without specialized equipment or expert intervention.
Patent Information
- Application Number
- FR2022009791
- Authority / Receiving Office
- FR · FR
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-09-27
- Publication Date
- 2024-10-04
- Estimated Expiration
- 2042-09-27
AI Technical Summary
Existing methods for detecting and characterizing microplastics in environmental samples are complex, require specialized equipment, and often need expert intervention, making them impractical for in situ use and inefficient due to the need for sample preparation and limited learning capabilities of existing neural networks.
A method utilizing two convolutional neural networks (U-Net for semantic segmentation and ResNet for categorization) trained on a learning base to automatically detect and characterize microplastics in environmental samples without prior preparation, using any camera, including a smartphone, and providing characteristics like class, size, and color.
Enables efficient, automated, and reliable detection and characterization of microplastics in various environments, reducing the need for specialized equipment and expert intervention, and improving detection accuracy through redundant image acquisition and network interaction.
Smart Images

Figure 00000024_0000 
Figure 00000025_0000
Abstract
Description
Title of the invention: Method for detecting and characterizing plastic particles by image processing Technical field
[0001] The present invention relates to the field of monitoring plastic waste present in the environment, such as in a marine, river or lake environment, but also in soils or sediments.
[0002] More specifically, the present invention makes it possible to detect and characterize plastic particles present in a sample of any medium.
[0003] The use of plastics (polymer-based materials) has been growing in global industry for many years. Today, traces of these polymers are found almost everywhere on Earth, particularly in soils, rivers, seas and oceans. They constitute an increasingly significant source of pollution.
[0004] Furthermore, these plastics can end up in the environment in a microscopic form invisible to the human eye but still generate significant pollution for flora and fauna.
[0005] In addition, these plastics can transform in the environment, by physical or chemical phenomena and thus create compounds that are called "neoformed", that is to say, existing only through the presence of polymers in the environment.
[0006] According to some classifications, microplastics are particles of any type of polymer and of sizes less than 5 mm, while mesoplastics have particle sizes between 5 mm and 25 mm. Due to their small size and high buoyancy, meso- and microplastics can be easily transported by water flows or even by the wind, and are found in all types of environments, including soils, waterways, sediments and also at sea.
[0007] Today, the characterization of the marine, river or lake environment, but also the characterization of soils and sediments is important to assess the current level of pollution by plastics, but also to enable the evaluation of the evolution of this pollution over time. Prior art
[0008] The following documents will be cited during the description: - He K., Zhang X., Ren S., Sun J., 2016. Deep Residual Leaming for image Récognition. In 2016 IEEE Conférence on Computer Vision and Pattern Récognition (CVPR), Las Vegas, NV, USA, 2016 pp. 770-778. - Lorenzo-Navarro, Javier; Castrillon-Santana, Modesto; Santesarti, Enrico; Marsico, Maria de; Martinez, Ico; Raymond, Eugenio et al. (2020) SMACC: A System for Microplastics Automatic Counting and Classification. In : IEEE Access, vol. 8, p. 25249-25261. - Ronneberger O., Fischer P., Brox T., (2015) U-net: Convolutional networks for biomédical image segmentation, in: Medical Image Computing and Computer-Assisted Intervention (MICCAI), Vol. 9351 of LNCS, Springer, 2015, pp. 234-241. - Gauci, Adam; Deidun, Alan; Montebello, John; Abela, John; Galgani, François (2019) Automating the characterisation of beach microplastics through the application of image analyses. In: Océan & Coastal Management, vol. 182, p. 104950. - Cowger W.; Gray A.; DeFrond S.H.C.H.; Deshpande A.D.; Hemabessiere L.; Lee E.; Mill L.; Munno K.; Ossmann B.E.; Pittroff M.; Rochman C.; Sarau G.; Tarby S.; Primpke S. Critical review of processing and classification techniques for images and spectra in microplastic research. Appl. Spec-troscopy Spectrosc, 74 (2020), pp. 989-1010. - Massarelli, C.; Campanale, C.; Uricchio, V.C. (2021) A Handy Open-Source Application Based on Computer Vision and Machine Learning Algorithms to Count and Classify Microplastics. In : Water, vol. 13, n° 15, p. 2104. - Lumia R., Shapiro L., Zuniga O., A new connected components algorithm for virtual memory computers, Computer Vision, Graphics, and Image Processing, Volume 22, Issue 2, 1983, Pages 287-300, ISSN 0734-189X. - Baubet B., Girleanu M., Gay AS, Taleb AL, Moreaud M., Wahl F., Delattre V., Devers E., Hugon A., Ersen O., Afanasier P., Raybeaud P.. Quantitative 2D morphology-selectivity relationship of CoMoS nano-layers: a combined HR HAADF-STEM and DFT study, ACS Catalysis 6, p. 1081-92 (2016). - Gerigny O., Brun M., Tomasino C., Le Moigne M., Lacroix C., Kerambrun L., Galgani F., 2018. Evaluation of descriptor 10 “Marine litter” in metropolitan France. Scientific report for the 2018 evaluation under the MSFD. IFREMER-CEDRE report.
[0009] Methods for characterizing plastics and polymers are known that can be used to identify the presence of plastics and polymers in a natural environment such as sand or rock, such as, for example, thermal extraction-desorption analyses coupled with gas chromatography and mass spectrometry, pyrolysis coupled with gas chromatography, mass spectrometry or Raman spectroscopy. However, these methods are relatively complex to implement, in particular because they require equipment specific, often not transportable in situ, and what is more, to be used by experts.
[0010] In particular, patent application FR 21 / 05123 A1 (filing number) is known, which relates to a method for characterizing the presence and / or quantifying at least one polymer in a porous medium, by means of quantities of hydrocarbon compounds and / or CO and / or CO2 measured during a heating sequence under an inert atmosphere followed by a heating sequence under an oxidizing atmosphere. This method is rapid and precise, but requires high-tech measuring means (in particular a programmable pyrolysis oven and associated flame ionization and infrared sensors), which are not accessible to the general public and cannot be used at the site where the sample of porous medium comprising microplastics is taken.
[0011] In the environmental field, work using artificial intelligence methods is increasingly developing to identify and classify macroplastics in rivers, on the surface of oceans, and on beaches. However, the problem of detecting and characterizing macroplastics (such as a plastic bottle or bag) is not similar to that of microplastics because microplastics are most often fragmented and no longer have their usual form. Their size is then comparable, or even smaller, than that of the texture of the natural environment (for example, comparable in size to grains of sand), which makes their detection more difficult. In addition, it is also necessary to quantify certain properties of microplastics (volume, weight, etc.) which are not directly accessible by the sole application of classification algorithms.
[0012] In the field of microplastics, there are far fewer studies. Indeed, the quantification of microplastics in the environment is still a costly task in terms of time and resources, because it requires (i) a sampling phase, (ii) preparation and separation of plastics from the environmental matrix, (iii) identification (visual, chemical or physical) and (iv) quantification (number, weight, type). There are several studies based on the analysis of images obtained with sophisticated devices (Fourier Transform Infrared Spectroscopy (FTIR), Scanning Electron Microscopy (SEM), holographic approach, etc.). Methods based on photographic image analyses are also known, implementing simple image segmentation (for example based on a histogram) to extract shape and dimension parameters of microplastics, as for example described in the documents (Gauci et al., 2019; Cowger et al., 2020). More recently, more sophisticated methods based on machine learning have emerged, as described for example in the document (Massarelli et al., 2021). These are based on supervised or unsupervised classification methods, drawing on al . K-Nearest Neighbor algorithms to classify microplastics. In these approaches, microplastics are all previously separated from the mineral matrix by the operator. Thus, the algorithms do not detect every microplastic in a mineral matrix.
[0013] We are particularly familiar with the document (Lorenzo-Navarro et al., 2020) which concerns a system and a method for automatic counting and classification of microplastic waste. More specifically, in one of these embodiments, this document describes an analysis carried out using artificial intelligence of the convolutional neural network type from images of a sample containing exclusively microplastics. In other words, in this approach, the images are acquired on previously prepared samples, where the plastics have been separated from the other elements, in this case from the mineral matrix (case of sampling on a beach). Since the analyzed particle is a plastic, there is therefore no problem of detection in relation to other particles present. Furthermore, the images of the plastic waste are obtained using a scanner, used both in transparent mode and in reflective mode.The transparency image is used to implement an image segmentation method, from which contours are defined around each microplastic particle. After alignment between the two images, the contours obtained on the transparency image are used to delineate the plastic particles on the reflection image. A VGG-16 neural network is used to analyze the delineations on the reflection image. This type of network consists of a succession of 3x3 convolutional layers and a max pooling operation, ending with a fully connected layer and an activation function. The depth of this type of network remains limited, with training becoming increasingly complex and inefficient as the depth increases, particularly due to problems related to gradient vanishing.Furthermore, this document describes a method based on an analysis of a sample containing only microplastics (which must therefore necessarily be prepared) from two types of images (in transparency and in reflection) of this sample obtained by a particular device (a scanner), not usable in situ, and after a particular processing (a segmentation of the transparency images) of one of the images, before executing a particular neural network (VGG-16) on the reflection image delimited by means of the segmented transparency image, this neural network requiring a very extensive learning base.
[0014] The present invention makes it possible to overcome these drawbacks. In particular, the present invention relates to a method for the automatic detection and characterization of plastic particles present in any medium. More specifically, the method according to the invention does not require preparation of the sample taken in situ, in particular a method for separating plastic particles from other constituents of the environment. In addition, the present invention can be implemented from images of the sample taken by any photographic device, including a camera of a mobile phone. In other words, the method according to the invention does not require the implementation of specific equipment, requiring an expert, and the images can be taken in situ. Finally, once the photographic images have been taken, the method according to the invention can be implemented in a fully automated manner, without human interaction, thanks to the chaining of two particular convolutional neural networks. In addition, the two convolutional neural networks of the method according to the invention allow effective learning, even on a restricted learning base. Summary of the invention
[0015] The present invention relates to a method for detecting and determining at least one characteristic of plastic particles present in a sample of a medium, said medium being able to be any, said at least one characteristic corresponding to a class of plastic defined according to a predefined classification.
[0016] The method according to the invention is characterized in that at least the following steps are carried out:
[0017] a) By means of a learning base comprising a plurality of learning images of samples of said medium comprising plastic particles, the plastic particles having been previously detected on said learning images and at least one class of plastic having been assigned to each plastic particle detected on said learning images, a model is constructed for detecting and determining at least one characteristic of plastic particles present in a sample of a medium from an image of the sample of the medium by applying at least the following sub-steps:
[0018] i) a convolutional neural network is trained allowing semantic segmentation on said learning base;
[0019] ii) a convolutional neural network is trained allowing categorization from thumbnails on said learning base;
[0020] b) At least one image of said sample of said medium comprising said plastic particles is acquired by means of a photographic device;
[0021] c) For each image of said sample of said medium comprising said plastic particles acquired in step b), said model is applied to detect and determine at least one characteristic of plastic particles present in a sample of a medium constructed in step a) in the following manner:
[0022] I) said convolutional neural network is applied allowing a segmentation se mantic trained in step a) on said image of said sample of said medium to obtain a segmented image of said image of said sample of said medium, said plastic particles are detected from said segmented image, and a plurality of contours surrounding each of said plastic particles detected on said segmented image are determined;
[0023] II) said convolutional neural network allowing categorization from an image trained in step a) is applied to a plurality of image files of said image of said sample of said medium, said image files being delimited from said plurality of contours determined on said segmented image, and at least said plastic class is determined for each of said plastic particles included in said image files.
[0024] According to an implementation of the invention, said convolutional neural network allowing semantic segmentation can correspond to the convolutional neural network U-Net.
[0025] According to an implementation of the invention, said convolutional neural network allowing categorization from an image may correspond to the convolutional neural network ResNet.
[0026] According to an implementation of the invention, from said segmented image, it is also possible to determine the number and / or the surface area and / or the perimeter and / or the average diameter and / or the aspect ratio of said plastic particles.
[0027] According to an implementation of the invention, the color of said plastic particles can also be determined at the end of step c) II), a plastic color having also been assigned to each plastic particle detected on said training images of said training base to which said convolutional neural network is applied, allowing categorization from a thumbnail image.
[0028] According to an implementation of the invention, during step b), the location of the acquisition of said image can be geolocated.
[0029] According to an implementation of the invention, prior to step a), said learning base can be constructed in the following manner:
[0030] - learning images of samples of a medium comprising plastic particles, using a camera;
[0031] - on each of said training images, each of said particles is surrounded of plastic by means of a predefined geometric shape;
[0032] - then we associate with each predefined geometric shape of each of said plastic particles at least one class of plastic particles.
[0033] Furthermore, the invention relates to a computer program product downloadable from a communications network and / or recorded on a computer-readable medium and / or executable by a processor, comprising code instructions program for implementing at least steps a) and c) of the method as described above, when said program is executed on a computer.
[0034] Other characteristics and advantages of the method according to the invention will appear on reading the following description of non-limiting examples of embodiment, with reference to the appended figures described below. List of figures [Fig 1]
[0035] [Fig.l] shows, for purely illustrative purposes, an example image of a sample of sand comprising plastic particles. [Fig 2]
[0036] [Fig.2] presents a segmented image obtained following the application of a convolutional neural network allowing semantic segmentation according to an implementation mode of the invention, applied to the image of [Fig.l]. Description of the embodiments
[0037] The present invention relates to a method for detecting and characterizing plastic particles present in a sample of a medium. More specifically, the method according to the invention makes it possible at least to detect and determine the plastic class of the plastic particles present in the medium in question.
[0038] The method according to the invention can also make it possible to determine, in a non-limiting manner, the average diameter and / or the perimeter and / or the surface area and / or the number and / or the color and / or the aspect ratio and / or the shape parameters of the plastic particles present in the sample of the medium considered.
[0039] The medium according to the invention is arbitrary, and may correspond, without limitation, to an aqueous solution (for example, a sample of sea water, a river, a lake), an unconsolidated solid matrix (for example, sand taken from a beach, or a sample of soil or sediment), or even a gas (such as air). There is no need to prepare the sample of the medium. Thus, the medium may comprise other constituents than plastic particles.
[0040] Preferably, the plastic particles correspond to microplastics and / or mesoplastics. By microplastics is meant any particle comprising one or more polymers and being less than 5 mm in size. By mesoplastics is meant any particle comprising one or more polymers and being between 5 mm and 25 mm in size. By class (or type, or category) of plastic is meant the class to which the microplastic particle belongs according to a predefined classification. In the field of meso- and microplastics, it is conventional to use the classification called “MasterList DCSMM” described in the document (Gerigny et al., 2018) and which consists of classifying meso- and microplastic waste into depending on their shape, nature and condition. This classification includes the classes described in Table 1, organized according to so-called “TSG_ML” codes, to which are associated a succinct description of a type of microplastic (GPI meaning “industrial plastic granules” and which is an equivalent to the “Pellet” terminology used in other classifications, and EPS meaning “expanded polystyrene”) and a material.
[0041] [Tables 1] TSG_ML Code Description Material G103 Rounded fragments <5mm Plastic G104 Subrounded fragments <5mm Plastic G105 Angular fragments <5mm Plastic G106 Subangular fragments <5mm Plastic G107 Cylindrical GPI <5mm Plastic G108 Discoidal GPI <5mm Plastic G109 Flat GPI <5mm Plastic G110 Ovoid GPI <5mm Plastic GUI Spheroidal GPI <5mm Plastic G113 Fibers <5mm Plastic G114 Films <5mm Plastic G115 Foamed plastic <5mm Plastic G116 Granules <5mm Plastic G117 EPS <5mm Plastic G217 Other (glass, metal, tar) <5mm Not identified
[0042] A more generic classification is also known, which includes the following five classes: foam, fiber, pellet, fragment, film. In general, classifications of types of plastic are in the process of being harmonized at European and international level.
[0043] The method according to the invention comprises the following main steps:
[0044] A) Construction of a model to detect and determine at least one characteristic plastic particle characteristics from at least one image of a sample of the medium comprising plastic particles
[0045] B) Acquisition of at least one image of a sample of the medium comprising plastic particles
[0046] C) Application of the model constructed to detect and determine at least one characteristic of the plastic particles from an image of a sample of the medium comprising plastic particles
[0047] Step A) can be carried out only once, and beforehand. In other words, once the model for detecting and determining at least one characteristic of the plastic particles in an image of a medium is constructed, this model can be applied one or more times, for distinct images of the medium (for example obtained with different optical filters) or for other media (provided that the model is adapted to these other media, or in other words that it has been trained for these other media). In other words, if it is desired to detect and characterize the plastic particles of different images of the same medium or of different media, steps B and C can be repeated, the model being able to be constructed only once.
[0048] The steps of the method according to the invention are detailed below.
[0049] A) Construction of a model for detecting and determining at least one characteristic of plastic particles from at least one image of a sample comprising plastic particles
[0050] During this step, a model is constructed to detect and determine at least one characteristic of the plastic particles from at least one image of a sample of the medium comprising plastic particles.
[0051] The model according to the invention consists of at least two convolutional neural networks (CNN), more precisely a first network corresponding to a convolutional neural network allowing semantic segmentation, and a second network corresponding to a convolutional neural network allowing categorization from thumbnails, these first and second networks having been trained on a learning basis during the present step. As will be described below in step C) of application of the model constructed in the present step A), the second network exploits one of the results of the first network. Thus the two networks of the model according to the invention interact with each other.
[0052] By convolutional neural network enabling semantic segmentation, we mean a convolutional neural network that allows each pixel of an image to be labeled with a class. Preferably, the U-net type network is used as a convolutional neural network enabling semantic segmentation. This network is for example described in the document (Ronneberger et al., 2015). The U-net network is a two-part network including a contraction step and an expansion step. The contraction path follows the typical architecture of a convolutional network with the repeated application of two 3x3 convolutions, each followed by a rectified linear unit (ReLU) and a “max pooling” operation (subsampling by maximum value) with a step size of 2. At each layer, the number of channels is doubled, the first having 64 channels. The expansion path consists of an oversampling (because it is a transposed convolution), followed by a 2x2 convolution halving the number of channels, then a concatenation of the similar-level layer of the contraction path, and finally two 3x3 convolutions, each followed by a ReLU. At the final layer, a 1x1 convolution is used to map each 64-feature vector to the desired number of classes. The network has 5 layers. Applied to images of a sample of a medium containing microplastic particles and as will be discussed below, this convolutional neural network can detect and localize microplastic particles in the medium.
[0053] By convolutional neural network allowing categorization from thumbnails, we mean a convolutional neural network allowing to detect one or more objects in an image (localization in contours, defined by the coordinates of the contours) and to determine a probability of belonging to a category of the object or objects contained in the contour. Preferably, the ResNet type network can be used as a convolutional neural network allowing categorization from thumbnails. This type of network is a robust evolution of the previously mentioned networks, by reducing the problems of disappearance of the gradient ("vanishing gradient" in English). The blocks of such networks comprise parallel paths at each layer which add the undersampled input information to the result of the neural layer. This type of network is for example described in the document (He et al., 2015).
[0054] The model of the method according to the invention is trained on a learning basis, the learning basis being formed by a plurality of learning images of learning samples of the medium comprising plastic particles, the plastic particles having been previously detected on the learning images and at least one class of plastic having been assigned to each plastic particle detected on these learning images. Advantageously, other characteristics of the plastic particles present in the learning images may have been identified, such as the size and / or the surface area and / or the number and / or the color and / or shape parameters of the plastic particles.
[0055] Very preferably, the learning base may consist of images of learning samples of the medium comprising plastic particles acquired as described in step B) below. Advantageously, the learning base comprises at least 10 learning images, preferably at least 20, very preferably at least 50 learning images. It is clear that the learning base may comprise images of other types of medium than the medium of interest.
[0056] According to one implementation of the invention, the method according to the invention may comprise a prior step of constructing the learning base. This is a step well known to those skilled in the art.
[0057] During this preliminary step, a plurality of images of the medium comprising plastic particles are acquired using a camera. Preferably, at least 10 training images are acquired, preferably at least 20, very preferably at least 50 training images. It is clear that the training base may include images of other types of medium than the medium of interest.
[0058] Then, on each of the training images, each plastic particle is surrounded by means of a predefined geometric shape. The predefined geometric shape delimits portions of the training images which comprise a plastic particle. Preferably, the same predefined geometric shape can be used for all the plastic particles, and only the dimensions of the predefined geometric shape vary from one geometric shape to another depending on the dimensions of the plastic particles. According to one embodiment, the predefined geometric shape can be chosen from a square, a rectangle, an ellipse, a polygon, a circle, or any similar shape. The geometric shape associated with a plastic particle can be described by its coordinates within a reference frame associated with the image.
[0059] Then, during this preliminary step of constructing the learning base, at least one class of plastic particles is associated with each predefined geometric shape of each learning image. In other words, the class of the plastic particle surrounded by the geometric shape (for example a foam, a fiber, a pellet, a fragment, etc.) is identified according to the predefined classification, and the class of the identified plastic particle is associated with the predefined geometric shape.
[0060] According to an implementation of the invention, from the pre-existing learning base or constructed in a prior step as described above, it is possible to train: - The convolutional neural network allowing semantic segmentation based on learning; and - The convolutional neural network allowing categorization from thumbnails on the learning basis.
[0061] According to an implementation of the invention, the training of one and / or the other of the convolutional neural networks can be improved according to the following methods:
[0062] - prior enrichment of the learning base by stirring the samples learning, especially when they are placed in a suitable container (sieve, transparent glass, petri dish, etc.), and acquisition of a training image after each agitation; and / or
[0063] - enrichment of the learning base by classic methods in processing image for convolutional networks (rotation, translation, deformations, brightness transformation, noise addition, etc.)
[0064] - cutting the training images into boxes (or even into patches) is re partially covering according to a random pattern, of the same dimension adapted to the size of the element to be detected, preferably, two to ten times the size of the element, for example around fifty pixels wide for objects to be detected of five to ten pixels. Then the two convolutional neural networks according to the invention are trained on the patches formed. In particular, the segmentation can be predicted on a complete image by reconstruction from the boxes with an average of the predictions.
[0065] Thus, at the end of this step, a model is obtained for detecting and determining at least one characteristic of plastic particles present in a sample of a medium from an image of the sample of the medium.
[0066] B) Acquisition of at least one image of a sample of the medium comprising plastic particles
[0067] During this step, at least one image of the sample of the medium comprising the plastic particles is acquired using a photographic device.
[0068] The photographic apparatus according to the invention may or may not be a digital apparatus. According to one implementation of the invention, when the photographic apparatus is not a digital apparatus, the images of the method according to the invention may be obtained by means of digitizing the photographs taken by the photographic apparatus. According to one implementation of the invention, when the photographic apparatus is a digital apparatus, it may for example be integrated into a smartphone. The photographic apparatus may also be carried on board a remote-controlled drone or on a remote-controlled marine or submarine vessel or on a remote-controlled terrestrial robot. The acquisition of the images of the method according to the invention therefore does not require expensive equipment and / or the implementation of which requires an expert: any photographic apparatus is sufficient, possibly supplemented by digitizing means.The equipment required for implementing the method according to the invention is therefore accessible to everyone, including monitoring bodies, public services and the state, and even to individuals, which can allow more frequent and regular monitoring of plastic pollution at a site.
[0069] Advantageously, the images of the sample of the medium are color images (or RGB images). This makes it possible to better distinguish the plastic particles from other constituents of the medium (such as grains of sand, for example), but also to be able to determine characteristics of the plastic particles in a more reliable, especially the color).
[0070] Advantageously, a plurality of images of the medium comprising the plastic particles are acquired by means of a photographic device from different (shooting) angles. For example, at least two, preferably at least three, very preferably five photographic images of the sample of the medium comprising the plastic particles can be acquired from different angles. This makes it possible to improve the redundancy of information and therefore to reduce the uncertainty about the characteristics of the plastic particles ultimately determined. Possibly cumulatively, when the sample is placed in a container, the container comprising the plastic particles can be shaken before taking a new image, so that these particles are arranged in a different configuration.This latter mode is particularly advantageous when the medium is composed of an unconsolidated matrix (for example sediments or grains of sand), in order to better distinguish plastic particles from other constituents of the medium. But in all cases, this improves the redundancy of information, and therefore the reliability of the detection and characterization of plastic particles.
[0071] Advantageously, the place where each image is acquired can be geolocated (or georeferenced). As a result, each image is positioned in space (in three dimensions), which makes it possible to place the characteristics of the identified plastic particles in a geographical space. This can be achieved simply, for example by means of a GPS, possibly integrated into a mobile phone or on board a drone if these means are used for the shots.
[0072] According to one implementation, during the shooting of at least one image, the sample of the medium comprising the plastic particles can be illuminated by means of a light source in a range of wavelengths distinct from the visible, such as for example in the UV (ultraviolet) or the IR (infrared). This increases the redundancy of information, and therefore the reliability of the detection and characterization of the plastic particles. According to an implementation which can be optionally combined with the previous one, at least one of the photographic images can be taken by means of a photographic device comprising a filter, such as for example a color filter, a filter in the UV or a filter in the IR. Advantageously, several colored filters can be used to acquire several images of the sample of the medium comprising the plastic particles.Again, such a configuration makes it possible to increase the redundancy of information relating to the same sample, and therefore the reliability of the detection and characterization of plastic particles.
[0073] Preferably, each of the photographic images is associated with information relating to the dimensions of the sample of the medium considered. The di The dimensions of the sample can be measured before the images are acquired, or they can already be known (for example, if the sample is placed in a container of known dimensions), or a standard (an object of known dimensions, for example) can be placed near or on the sample when the camera takes pictures. This information is useful for characterizing the dimensions of the plastic particles.
[0074] C) Application of the model to detect and determine at least one characteristic of the plastic particles from at least one image of a sample of the medium comprising plastic particles
[0075] During this step, the model is applied to detect and determine at least one characteristic of plastic particles present in the sample of the medium of the plastic particles constructed in step A). This step is applied for each image of the medium acquired in step B)
[0076] More precisely, during this step, for each image of the medium acquired in step B):
[0077] I) the convolutional neural network allowing semantic segmentation trained in step B) is applied to the image of the sample of the medium to obtain a segmented image of the image of the sample of said medium. Then, the plastic particles are detected from the segmented image, and a plurality of contours surrounding each of the plastic particles detected on the segmented image are determined;
[0078] II) the convolutional neural network allowing categorization from an image trained in step B) is applied to a plurality of image images of the image of the sample of the medium, the image images being delimited from the plurality of contours determined on the segmented image. Then at least the plastic class is determined for each of the plastic particles included in the image images.
[0079] Sub-steps I) and II) are detailed below:
[0080] I) Application of the convolutional neural network allowing semantic segmentation
[0081] Thus, for each image of the sample acquired in the previous step, the first convolutional neural network (allowing semantic segmentation) is applied to the image considered, and a segmented image is obtained for this image. Generally speaking, a convolutional neural network allowing semantic segmentation provides a grayscale image in which each pixel corresponds to a probability of belonging to a class. A segmentation of the image can be determined by applying a threshold to this grayscale image, the threshold being between 0 and 1, for example 0.5.
[0082] Then for the segmented image obtained for the image of the middle sample considered, a plurality of contours are determined, each encompassing a plastic particle. According to one implementation of the invention, the contours can be of any shape and can be chosen from a square, a rectangle, an ellipse, a polygon, a circle, or any similar shape. A contour associated with a plastic particle can be described by its coordinates.
[0083] According to one implementation of the invention, the plurality of contours each encompassing a plastic particle can be determined by means of an algorithm for detecting the connected components of an image. Generally speaking, connectivity is a notion of topology which formalizes the concept of a “one-piece object”. An object is said to be connected if it is made of a single “piece”. Otherwise, each of the pieces is a connected component of the object studied. In the field of detecting objects in an image, an algorithm for detecting connected components can consist of scanning an image by assigning a class to each connected component of the image. The contours then correspond to the limit coordinates of the pixels belonging to the same class. This is an operation well known to those skilled in the art. For example, the algorithm for detecting the connected components of an image described in the document (Lumia et al., 1983) can be used.According to an implementation of the invention, rectangular-shaped contours can be determined from the minimum and maximum abscissas and ordinates of the identified connected components.
[0084] At the end of sub-step I), a plurality of contours are therefore obtained encompassing each of the plastic particles of a segmented image obtained for an image of the sample of the medium. In other words, during this sub-step, the plastic particles in the image of the sample of the medium considered have been detected, and even located.
[0085] According to an implementation of the invention, it is also possible, at the end of sub-step I), to determine the number of plastic particles contained in the sample, for example by counting the number of determined contours.
[0086] According to another implementation of the invention, it is further possible, at the end of sub-step I), to determine characteristics relating to the morphology of the particles, such as for example their shape (for example by determining shape parameters such as the major axis and the minor axis of the particles) and / or their surface area and / or their perimeter and / or the average diameter and / or the aspect ratio, by standard image processing tools as described in the document (Baubet et al., 2016). The surface area of a plastic particle can be obtained by counting the total number of pixels contained in the contour associated with this particle. The perimeter can be determined by counting the number of pixels of the contour. The average diameter can be estimated by the average length between the center of inertia and all the pixels of the contour. The ratio aspect ratio can be obtained by the ratio between the maximum and minimum length between the center of inertia and the contour pixels.
[0087] II) Application of the convolutional neural network allowing categorization from thumbnails
[0088] According to the invention, from the plurality of contours determined for a segmented image of a given image of the sample of the medium, a plurality of thumbnails of this image of the sample of the medium are delimited. The term thumbnail is a term commonly used in the field of image processing and means "portion of an image". Thus, during this sub-step, it is simply a matter, for an image of the sample of the medium, of delimiting portions of this image whose limits correspond to the limits of the contours which were determined in sub-step I) on the segmented image of the image considered. In other words, to delimit thumbnails of an image, the contours determined on the segmented image are transferred to this image.
[0089] Then according to the invention, the convolutional neural network allowing a categorization from thumbnails is applied to the plurality of thumbnails of the image of the sample of the medium thus delimited. The application of this second convolutional neural network makes it possible to determine at least one probability of belonging to a plastic class for each of the plastic particles contained in the image considered. It is clear that the plastic classes thus determined are part of the plastic classes of the classification (for example the “MasterList DCSMM” classification) used for the construction of the learning base.According to an implementation of the invention, it is possible to determine the plastic class of a plastic particle contained in the considered image of the sample of the medium by choosing the class having the highest probability of belonging following the application of the convolutional neural network allowing categorization from thumbnails.
[0090] According to an implementation of the invention, when applying the convolutional neural network allowing categorization from thumbnails on the plurality of thumbnails of the image of the sample of the medium, it is also possible to determine a category corresponding to the color of the microplastic particles. In other words, during step II), it is possible to determine the color of the plastic particles, in addition to their class. As for the plastic class, the application of the second convolutional neural network makes it possible to determine at least one probability of belonging to a plastic color for each of the plastic particles contained in the image considered. It is possible to determine the plastic color of a plastic particle contained in the image considered of the sample of the medium by choosing the color having the probability of belonging the higher after applying the convolutional neural network allowing categorization from thumbnails. It is clear that the plastic colors thus determined are part of the plastic color categories of the classification (for example the "MasterList DCSMM" classification) used for the construction of the learning base. Alternatively, we can define subcategories of the category corresponding to the plastic class, these subcategories being a function of the color. For example, we can create the following categories including subcategories: red fragment, blue fragment, green fragment, black fragment, and do the same thing for the other plastic classes.After applying the convolutional neural network allowing categorization from thumbnails, we can determine the class and color of plastic of a plastic particle contained in the considered image of the sample of the environment by choosing the pair (class of plastic, color) having the highest probability of belonging.
[0091] According to the invention, sub-steps I) and II) are applied for each image of the sample of the medium acquired during step B).
[0092] When several images of the same sample have been acquired during step B) and sub-steps I) and II) have been applied to each of these images, it is possible to determine: - the plastic classes of the plastic particles present in the sample of the environment by carrying out, for each class, an average (weighted or not) of the probabilities of belonging to the plastic class determined for each image independently; and / or - the number of plastic particles present in the sample of the medium by taking the average (weighted or not) of the number of plastic particles determined for each image independently. Advantageously, one can take the integer part closest to this average; and / or - the surface area of plastic particles present in the sample of the medium by making, after a classification of the surfaces determined for each image independently, an average (weighted or not) of the surfaces of the plastic particles determined for each class; this same approach can be applied for the average diameter and / or the perimeter, and / or the aspect ratio.
[0093] The averages described below can be weighted according to different criteria, for example the quality (resolution) of the image. The use of several images makes it possible to reduce the uncertainty on each determined characteristic.
[0094] Thus, the data necessary for implementing the method according to the invention do not require prior preparation of the sample of the medium, and can be acquired in situ, quickly and without the need for expertise, by means of a simple photographic camera. Finally, the method according to the invention can be implemented in a fully automated manner, without human interaction, thanks to the chaining of two convolutional neural networks previously trained on a learning basis. Since the results of the method according to the invention can be obtained in a simpler and less operator-dependent manner than in the prior art, the method according to the invention can be easily deployed on a large scale, for example for environmental monitoring networks, such as the OSPAR network. Examples
[0095] The characteristics and advantages of the method according to the invention will appear more clearly on reading the application example below.
[0096] A sample of sand containing microplastic waste was taken from a beach. Seven images of this sample were acquired using a commercial mobile phone camera, from different viewing angles and / or after different agitations of the sample from the environment. [Fig.l] shows, for purely illustrative purposes, an example of images (here shown in black and white, for reproduction purposes) taken for this sample. Sand grains G and microplastic waste P (dotted outlines added for better readability) can be distinguished in this image. The sample shown in this image has a known dimension of 7.4 cm x 7.4 cm.
[0097] The model according to the invention was constructed by training on a learning basis of the following two convolutional neural networks: - a U-net network as a convolutional neural network enabling semantic segmentation; - a Resnet network as a convolutional neural network allowing categorization from thumbnails.
[0098] The learning base consists of 50 learning images of sand samples from different beaches representing a wide variety of granulometry from fine sands to gravels, and including microplastic particles, these particles having been (manually) previously detected and categorized according to the aforementioned generic classification (5 classes). Furthermore, their color and surface area were also estimated by a user.
[0099] Once constructed, the model is applied to the images of the sand sample of interest. [Fig.2] shows the segmented image associated with the image of [Fig.l], and obtained at the end of step BI) described above. This segmented image shows eight objects noted p0 to p8, identified as microplastic waste by the U-Net network trained on the learning base described above.
[0100] Table 2 shows the characteristics of microplastic waste determined for each of the nine microplastic wastes p0 to p8 detected in the segmented image of [Fig.2]. More precisely, the characteristics of each microplastic waste determined by the application of the model according to the invention are: - the plastic class: this characteristic is determined at the end of step B.II), and corresponds to the class of plastic particles with the highest probability of belonging; - the surface: this characteristic is determined at the end of step BI), by counting the total number of pixels contained in the outline associated with this particle; - color: this characteristic is determined at the end of step B.II), and corresponds to the color of plastic particles with the highest probability of belonging.
[0101] [Tables2] Particles Category Color Surface (mm2) pO Green Fragment 7.7 Pi Red Film 37.0 p2 Pellet Indeterminate 7.9 p3 Pink Fragment 5.6 p4 Red Foam 25.7 p5 White Pellet 9.3 p6 Green Fiber 12.1 P7 Black Pellet 16.4 p8 Blue Fragment 6.8
[0102] The characteristics determined by the method according to the invention were compared with a manual interpretation of the image, carried out by a user. The characteristics are completely consistent.
[0103] Thus, the method according to the invention allows reliable detection and characterization of plastic particles, even when the medium in which these particles are present is complex (here grains of sand of different granulometry and color). The method according to the invention therefore presents a simplicity of implementation: it does not require prior preparation of the sample of the medium, nor heavy equipment, which moreover may require expertise. Finally, both the detection and the characterization can be implemented in a fully automated manner, without human interaction, thanks to the chaining of two convolutional neural networks previously trained on a learning basis, which allows a less complex result. subjective and above all independent of the user's level of expertise.
Claims
Claims
1. Method for detecting and determining at least one characteristic of plastic particles present in a sample of a medium, said medium being an unconsolidated solid matrix, said at least one characteristic corresponding to a class of plastic defined according to a predefined classification, characterized in that at least the following steps are carried out: a) By means of a learning base comprising a plurality of learning images of samples of said medium comprising plastic particles, the plastic particles having been previously detected on said learning images and at least one class of plastic having been assigned to each plastic particle detected on said learning images, a model is constructed for detecting and determining at least one characteristic of plastic particles present in a sample of a medium from an image of the sample of the medium by applying at least the following sub-steps: i) a convolutional neural network is trained allowing semantic segmentation on said learning base; ii) a convolutional neural network is trained to enable categorization from thumbnails on said learning base; b) at least one image of said sample of said medium comprising said plastic particles is acquired by means of a photographic device; c) For each image of said sample of said medium comprising said plastic particles acquired in step b), said model is applied to detect and determine at least one characteristic of plastic particles present in a sample of a medium constructed in step a) in the following manner: I) said convolutional neural network allowing semantic segmentation trained in step a) is applied to said image of said sample of said medium to obtain a segmented image of said image of said sample of said medium, said plastic particles are detected from said segmented image, and a plurality of contours surrounding each of said plastic particles detected on said segmented image are determined; II) we apply said convolutional neural network allowing a cate- gorization from an image trained in step a) on a plurality of imagettes of said image of said sample of said medium, said imagettes being delimited from said plurality of contours determined on said segmented image, and at least said class of plastic is determined for each of said plastic particles included in said imagettes.
2. The method of claim 1 wherein said convolutional neural network for semantic segmentation corresponds to the U-Net convolutional neural network.
3. Method according to one of the preceding claims, in which said convolutional neural network allowing categorization from an image corresponds to the convolutional neural network ResNet.
4. Method according to one of the preceding claims, in which, from said segmented image, the number and / or the surface area and / or the perimeter and / or the average diameter and / or the aspect ratio of said plastic particles are further determined.
5. Method according to one of the preceding claims, in which the color of said plastic particles is further determined at the end of step c) II), a plastic color having been further attributed to each plastic particle detected on said training images of said training base to which said convolutional neural network is applied, allowing categorization from a thumbnail image.
6. Method according to one of the preceding claims, in which, during step b), the location of the acquisition of the image is geolocated.
7. Method according to one of the preceding claims, prior to step a), said learning base is constructed in the following manner: - learning images of samples of a medium comprising plastic particles are acquired, using a photographic device; - on each of said learning images, each of said plastic particles is surrounded by a predefined geometric shape; - then at least one class of plastic particles is associated with each predefined geometric shape of each of said plastic particles.
8. Computer program product downloadable from a network communication and / or recorded on a computer-readable and / or processor-executable medium, comprising program code instructions for implementing at least steps a) and c) of the method according to one of the preceding claims, when said program is executed on a computer.
