Abstract:
Process and system for identifying and quantifying helminth eggs in water, sludge, biosolid and/or excreta samples among others, from images comprising filtering the images with an anisotropic filter maintaining the borders of the images, obtaining filtered images; filtering the filtered images applying Laplacian of Gaussian detecting changes in the filtered images, and obtaining binarized images; separating the binarized images by means of a filtered distance field Watershed filter, obtaining the images; filtering the images eliminating objects by perimeter compactness, considering the size of the objects in the images filtered again and separating the differences to avoid false positives, obtaining images with identified objects; characterizing the objects identified in the images segmenting the objects by means of gray profiles; and classifying the characterized objects according to a statistic classifier for identifying and quantifying different species of helminth eggs.

Description:
FIELD OF THE INVENTION 
       [0001]    Present invention refers to a process and system for identifying and quantifying helminth eggs in environmental samples, and more particularly to the automatic identification and quantification of helminth eggs present in wastewater, sludge, biosolids, soil, and/or excreta, among other samples, from microscopy images generated in the laboratory. 
       BACKGROUND 
       [0002]    The reusing of wastewater in agriculture is an extensive practice, whose benefits are multiple given that a large amount of first use water volumes are saved, agricultural production costs are slashed by decreasing the use of artificial fertilizers, lowering contamination to superficial bodies of water (such as rivers, dams and lakes) by avoiding spilling into them large amounts of volumes of treated wastewater without attempting to notably increase crop yield. However, the use of wastewater also represents a health risk, mainly given the content of different pathogenic organisms. Many of these are capable of surviving sufficient amount of time in wastewater, crops and/or soil enabling their transmission to humans either directly or indirectly. Among these organisms are found helminth eggs, parasites commonly known as intestinal worms, whose real risk of infection to product consumers, as well as to agricultural workers and their families, is highly dangerous, given their wide persistence in the environment and their low dosage of infectiousness. 
         [0003]    It is important to point out that, traditionally, the biological quality of water has been measured through a bacterial group called fecal coliforms, a group which does not ensure the inactivation or elimination of other types of parasites, which also have their origin in the excretions of infected individuals; so that they are not reliable indicators of the presence of helminth eggs in the contaminated water, excreta or sludge; nor of their behavior during the treatment processes of these. Given this, since 1989 the World Health Organization (WHO) proposed a limit to control the amount of wastewater which is used for spraying, and in 2006 endorsed the importance of controlling helminth eggs in the environment. However, in various world forums, the difficulty of applying these criteria from the World Health Organization has been recognized, given the existence of areas with high helminth egg content, where it is practically impossible to use rentable treatment methods and to the variety of analytical techniques applied to quantify them. To this latter difficulty, we can also add the small numbers of qualified personnel who can identify helminth eggs under the microscope, which constricts the reliability of the results by being subject to a high degree of subjectivity due to the intervention of human interpretation during the analysis, whose central step consists in visually identifying the pathogenic structures. 
         [0004]    Generally, the identification of helminth eggs has been resolved in two ways. The first being through specialized personnel, who undertake the identifying and quantifying of helminth eggs in the laboratory. The second form is through image classifier methods and systems, such as the one presently being proposed. 
         [0005]    The advancements in algorithms for the processing and recognition of digital images, applied in various scientific fields, present the possibility of employing said tools for the development of a simple system for automatic identification and qualification of different helminth egg genera. The present process and system represents a reliable and objective alternative for the counting of these pathogenic organisms, and the immediate application in multiple environmental studies, at the same time easing the analysis work and taking this benefit to environmental monitoring installations which do not have the benefit of an expert in said identification and qualification. 
         [0006]    Within prior art, it can be noted that in the international arena, there exist similar attempts to those in present invention for the detecting and quantifying of helminth eggs. However, the applicability of said programs in environmental samples has not been clearly shown. 
         [0007]    For example, Yang et al in Yang Y. S., Park D. K., Kim H. C., Choi M-H and Chai J-Y. (2001) Automatic identification of human helminth eggs on microscopic fecal specimens using digital image processing and an artificial neural network,  IEEE Transactions on Biomedical Engineering.  48(6):718-730, found an 84% detection rate in the differentiation of seven different species of eggs, exclusively using feces; so that this segmentation, upon applying three classification features, ends up being inadequate as regards water samples, given that optimal thresholding is not achieved when the eggs to be identified are found surrounded by various objects which are not. 
         [0008]    In 2008 Dogantekin et al., en Dogantekin E., Yilmaz M., Dogantekin A., Avci E. and Sengur A. (2008). A robust technique based on invariant moments—ANFIS for recognition of human parasite eggs in microscopic images,  Expert Systems with Applications.  35:728-738, they worked on the differentiation of 15 helminth egg species and one protozoan ( Giardia Lamblia ), for which images were taken from the University of Kansas Parasitological Laboratory internet site, achieving a 93% rate yield. Said images thus obtained, are poor representatives of real water samples, given that the periphery of the eggs presented in said images is free from other types of particles, which implies poor representation of the conditions in environmental samples. 
         [0009]    In the same way, Acvi y Varol (2009), in Acvi D. and Varol A. (2009)—An expert diagnosis system for classification of human parasite eggs based on multi-class SVM,  Expert Systems with Applications.  36:43-48, by developing a system using photographs from the same website, achieved good results in the classification rate. However, both this type of work as that of Dogantekin et al (2008), were based on the validation of their systems in a parasitological atlas, whose images do not necessarily present the recognition features and difficulties as can be seen in samples of wastewater, sludge, biosolids, soil and/or excreta. 
         [0010]    Sauvola and Pietikainen (2000) undertake a local binarization method for the segmentation of objects when a large change in the level of gray in a specific section of the image exists, which allows for separating objects which are deep in the image with improved results. 
         [0011]    Additionally, the above cited works use a different classification methodology form the process and system herein proposed, given that, one of the differences found between prior art and present invention, is that prior art bases its identification and quantification of images in a Multi Class Support Vector Machine (MCSV), while present invention proposes and uses three k neighbor classifiers, two of which are based on texture descriptors (LPBs) and one with morphologic and gray level features, using the Mahalonobis metric. 
         [0012]    In so far as that which concerns the methodology for undertaking the binarization of the image, prior art seeks to develop the following: a) the gray level threshold, so that in the event that the image is found surrounded by other objects, such as is the case with different qualities of water samples, as well as sludge, biosolids and/or excreta, among others, segmentation errors could be produced, b) the characterization of each egg species, taking reference parameters such as area, perimeter, first Hue invariant moment, entropy, mean gray level, and c) a classifier which is trained in the above mentioned features. 
         [0013]    The proposed process and system includes filters and protocols not only to be able to differentiate between species of helminth eggs, but also to be able to differentiate the latter from any other types of objects which are present in the sample, which grants versatility to the identification and quantification in the water, sludge, biosolids and/or excreta samples, among others. 
         [0014]    The methodology of image processing proposed in the present invention versus that used in segmentation techniques through which the specific processes for the detection of objects of interest within the image to be processed were developed, with the following basic steps: image acquisition, conversion to gray scale, anisotropic filtering for decreasing noise, binarization using a threshold of Laplacian of Gaussian, binarization of the image using local threshold (Sauvola), binarization intersection, object separation by, application of morphologic filter, obtaining the features of the object and deciding if it is an egg or not: if it is, identifying the species, verifying the results by means of texture histograms and final label image display. 
         [0015]    In the particular case of helminth eggs, the application of the techniques of present invention for developing an automatic process and system for detection and quantification of said eggs in a fast and reliable manner, allows for differentiating from other types of microscopic structures, thereby avoiding over-counting, which is the main problem with traditional identification and quantification techniques, especially in high particle content matrixes such as is the case in wastewater. 
       BRIEF DESCRIPTION 
       [0016]    The identification and quantification process and system of present invention, may use different qualities of water, as well as sludge, biosolids and/or excreta, among others, focusing on the automatic identification and quantification of helminth eggs, by using image processing techniques, such as filtering, binarization and morphologic operations, among others. There are a great variety of applications which a system such as the one described by present invention may have on a national and international level, where on a day to day basis the obligatoriness of quantifying helminth eggs in various matrixes ends up being a difficult process, given the lack of qualified personnel as well as the real economic facilities of an identification and quantification system, which in addition to being simple and inexpensive, whose cost of 70 USD is decreased to less than 10 USD per sample, allows improving the speed and precision of the analysis which contributes to the surveillance of quality and safe reusable practices of the water resources. 
         [0017]    The structure of the system is based on the acquisition or capturing of images, using techniques to improve visual appearance of the images, segmentation (division) of images in significant regions or areas and the obtaining of geometric features for the identification and quantification of the objects in the image. The system works by carrying out the following sequence parts:
       Image acquisition;   Conversion to gray scale;   Anisotropic diffusion filtering to decrease noise and preserve borders;   Binarization by means of a threshold of Laplacian of Gaussian;   Image binarization by means of the Sauvola method;   Fusion of binarizations;   Separation of objects by Watershed algorithm;   Application of morphologic filter;   Obtaining the features of the object;   Classification;   Result verification by means of texture histograms and morphologic features;   Final image label display.       
 
         [0030]    Said process and system has as an objective the automatic identification and quantification for different genders of helminth eggs, for different qualities of water, sludge, biosolids, soils and/or excreta, among others. In addition to the above objective, the objective of providing the counting of these pathogenic organisms in a more reliable and more precise manner, for immediate application in multiple environmental studies, at the same time easing the analysis work and carrying out this benefit to environmental monitoring installations which do not have an expert in said identification and quantification. 
         [0031]    Another objective of the present invention is that of eliminating any type of structure which is different than the helminth eggs genera, and thereby minimizing a possible identification error and therefore a quantification error. Thus, the use of the process and system of the present invention allows carrying out the automatic identification and quantification for different genera and species of helminth eggs in water samples, by means of an algorithm design which generates a processing of microscopy images. 
         [0032]    Another objective of the process and system of present invention is on the first instance, modifying or processing the images in such a way that it becomes simpler for the system to detect objects with similar features to those of the helminth eggs and obtaining a satisfactory classification for each one of the detected structures. 
         [0033]    Roughly, the sample is taken with the help of a micropipette; the desired volume to be analyzed is placed on the object carrier or another complement for observing under the microscope (Doncaster disk, Sedwick-Rafter camera or Mac master camera), and afterwards the microscope is focused unto the dry weak objective (10×) and the image is captured on the computer, where it is immediately processed by the process and system of present invention. 
         [0034]    Within the first step of the process and system of the present invention, the image acquisition, wastewater samples are observed under a microscope and using a standardized illumination microscopy, images are gathered which are digitalized to later be processed. 
         [0035]    Within the second step of the process and system of the present invention, the conversion to gray scales, it is typical that the gathered images be found in a color format, so that it is necessary to process them to convert them into gray scale. 
         [0036]    Within the third step of the process and system of the present invention, the anisotropic filtering, once the images in gray scale are gathered it becomes necessary to normalize the illumination in each one of them. Afterwards, an anisotropic filtering is applied which allows the image to be modified in such a way that it is easier to locate the outlines. 
         [0037]    Within the fourth step of the process and system of the present invention, the Laplacian of Gaussian is applied in order to detect borders and a local threshold using the Sauvola method. 
         [0038]    Within the fifth step of the process and system of the present invention, the pixels which coincide both in the image gathered by using the Laplacian of Gaussian and the local threshold of the Sauvola method are considered as part of the binarized integration. 
         [0039]    Within the sixth step of the process and system of the present invention, the Watershed algorithm with filtered distance field, all the objects possibly connected in the image are located and separated from each other. 
         [0040]    Within the seventh step of the process and system of the present invention, the morphologic filtration, based on the perimeter compactness and the existing relation between the major and minor axis, all objects which are found outside of the medium ±2 standard deviation range of the egg distribution, will be considered as non eggs and will not be considered in the classification process. 
         [0041]    Within the eighth step of the process and system of the present invention, the classification algorithm for identified and labeled objects, three k neighbor classifiers were used using the Mahalanobis metric. One of the morphological features and the gray level and two based on LBP texture descriptors. 
         [0042]    Within the last step of the process and system of the present invention, the verification of results, it is ensured that only those objects which are found within the threshold both in the shape, the gray level as well as the texture for the assigned species will be considered as eggs. 
         [0043]    Thus, one of the advantages of the proposed system is that it includes filters and algorithms, not only to be able to differentiate between helminth egg species but also to be able to differentiate these latter from any other type of objects present in the sample, which grants versatility to the identification and quantification of these parasites in water, sludge, biosolids and/or excreta samples, among others. 
     
    
     
       BRIEF DESCRIPTION OF THE FIGURES 
         [0044]    The particular features and advantages of the invention as well as other embodiments of the invention shall become apparent in the following description read together with the attached figures: 
           [0045]      FIG. 1  shows a flow diagram of the system and process of present invention. 
           [0046]      FIG. 2  shows a flow diagram of the system and process of the image acquisition step. 
           [0047]      FIG. 3  shows a flow diagram of the system and process of the gray scale conversion step. 
           [0048]      FIG. 4  shows a flow diagram of the system and process of the anisotropic filtering step. 
           [0049]      FIG. 5  shows a flow diagram of the system and process of the binarization. 
           [0050]      FIG. 6  shows a flow diagram of the system and process of the Watershed algorithm with filtered distance field step. 
           [0051]      FIG. 7  shows a flow diagram of the system and process of the morphologic filtering step. 
           [0052]      FIG. 8  shows a flow diagram of the system and process of the gathering of the features of the identified objects. 
           [0053]      FIG. 9  shows a flow diagram of the system and process of the classification and validation. 
           [0054]      FIG. 10  shows an original image in color acquired by the system and process of the present invention. 
           [0055]      FIG. 11 ( a   1 ) shows a sample of a helminth egg species identified by the automatic system as fertile  Ascaris lumbricoides.    
           [0056]      FIG. 11 ( a   2 ) shows a sample of a helminth egg species identified by the automatic system as fertile  Ascaris lumbricoides.    
           [0057]      FIG. 11 ( a   3 ) shows a sample of a helminth egg species identified by the automatic system as infertile  Ascaris lumbricoides.    
           [0058]      FIG. 11( b )  shows a sample of a helminth egg species identified by the automatic system as  Toxocari canis.    
           [0059]      FIG. 11( c )  shows a sample of a helminth egg species identified by the automatic system as  Trichuris trichiura.    
           [0060]      FIG. 11( d )  shows a sample of a helminth egg species identified by the automatic system as  Hymenolepis diminuta.    
           [0061]      FIG. 11 ( e )  shows a sample of a helminth egg species identified by the automatic system as  Hymenolepis nana.    
           [0062]      FIG. 11( f )  shows a sample of a helminth egg species identified by the automatic system as  Taenia solium.    
           [0063]      FIG. 11( g )  shows a sample of a helminth egg species identified by the automatic system as  Schistosoma mansoni.    
           [0064]      FIG. 11( h )  shows a sample of a helminth egg species identified by the automatic system as  Ancylostoma duodenale  and  Necator americanus  (Hookworms). 
           [0065]      FIG. 11( i )  shows a sample of a helminth egg species identified by the automatic system as  Fasciola hepatica  and  Fasciolopsis buski  (Liver fluke). 
           [0066]      FIG. 12  shows an acquired original image converted into gray levels. 
           [0067]      FIG. 13  shows an image filtered with an anisotropic filter. 
           [0068]      FIG. 14  shows the binarization of the image by means of the Laplacian of Gaussian threshold. 
           [0069]      FIG. 15  shows the binarization of the image by means of the Sauvola method. 
           [0070]      FIG. 16  shows the final binarization of the image having fused the two prior binarizations. 
           [0071]      FIG. 17  shows the resulting image after having separated the objects by Watershed algorithm. 
           [0072]      FIG. 18( a )  shows the determining of the features of the objects, such as the eccentricity of an ellipse used to characterize the images. 
           [0073]      FIG. 18( b )  shows a comparative of the eccentricity in different species of helminth eggs. 
           [0074]      FIG. 19  shows the resulting image after the morphologic filtering. 
           [0075]      FIG. 20  shows the average LBP8 for each of the egg species. 
           [0076]      FIG. 21  shows the LBP8 histogram comparison for validation. 
           [0077]      FIG. 22  shows the validation and labeling of the species. 
       
    
    
     DETAILED DESCRIPTION OF THE INVENTION 
       [0078]    The main process/system is formed by various processes, such as can be seen in  FIG. 1  as well as  FIGS. 2 through 10 , the first of them consists in the acquiring of training images, with different types of helminth eggs, the photograph files consisted in a total of 720 images, including 11 helminth egg species selected for the study ( FIGS. 11 a     1  through  11   a   2 ), fertile  Ascaris lumbricoides , ( FIG. 11 a     3 ) infertile  Ascaris lumbricoides , ( FIG. 11 b   )  Toxocara canis , ( FIG. 11 c   )  Trichuris trichiura , ( FIG. 11 d   )  Hymenolepis diminuta , ( FIG. 11 e   )  Hymenolepis nana , ( FIG. 11 f   )  Taenia solium , ( FIG. 11 g   )  Schistosoma mansoni , ( FIG. 11 h   )  Ancylostoma duodenale  and  Necator americanus  (Hookworms), ( FIG. 11 i   )  Fasciola hepatica, Fasciolopsis buski  (Liver fluke). 50% was used as a set of data for training, while the other 50% was used to carry out the validation of the system. 
         [0079]    The images acquired are in full color so that it is necessary to convert each one of them into gray scale, such as can be seen in  FIG. 3 , normalizing the illumination of the images to obtain even greater similarity amongst them. To normalize the images, it is necessary to process them with a series of filters. However, it is clear to a person skilled in the art that the image may be acquired on a gray scale, so that the conversion step from colors into gray scale could be optional. 
         [0080]    The first filter is an anisotropic filter and afterwards the images resulting from two types of binarization are applied, the first is the Laplacian of Gaussian and the second is a local Sauvola threshold. After that, the final binarization results of the intersection of the former two processes, to later apply a Watershed algorithm with a filtered distance field for separating objects. To these binarized images, a morphologic filter is applied to eliminate out of size objects or out of size relation. For the remaining objects, the features are calculated in shape, gray level as well as in texture to be used by the classifier. It was determined that an object belongs to a certain egg species in function of the summation of votes given by the three classifiers. The results are validated by means of texture histograms. The final labeled image is then displayed. 
         [0081]    The flow diagram of the process/system consists in a general manner with a determined number of structural elements. Given that as the number and type of structures to be identified increases, the complexity of the system and the processing resources required for the image also increase accordingly, the automated system for detection fed by an image bank statistically representative of the variations in each class of structures to be differentiated, thereby creating a database for the training of the process/system itself, along with a modular topology process which allows for recognizing specific parts of the image of each structure, and where each module is specialized in concrete sections of the image. 
         [0082]    Therefore, a sequence of steps is outlined below. 
         [0083]    The image is obtained, such as can be seen in  FIG. 10 , preparing a Sedgwick-Rafter chamber containing the problem sample with it or with the eggs in question, and placing it on the viewing slide of an optical microscope. The structure in question is focused with the selected objective (10×) of the optical microscope, and the image is captured by means of a coupled camera achieving a digital image, said image having the possibility of being either in color or on a gray scale; in the present example the image was captured in color. 
         [0084]    Afterwards it is turned into a gray scale; this process allows converting the pixel average of the basic color components to pixels on the gray scale but maintaining the luminosity of the image, such as can be seen in  FIG. 4 . 
         [0085]    Afterwards, the anisotropic filter is applied, which allows improving the texture of the surface of an object through the average value of each pixel with regards to its neighbors. In this case the manner in which the inside of the objects is seen is improved, that is, it filters the borders, removes the noise preserving the details of the border of the object applying an anisotropic diffusion filter ( FIG. 5 ). This method uses the gradient of the image to decrease the noise and preserves the borders of the objects. An instantaneous variation coefficient serves as a detector for the borders on the images with noise. The function presents some high values on the borders or in high contrast areas, while it presents lower values in the homogeneous areas. 
         [0086]    The detection of objects by means of filtered image binarization was undertaken by means of merging two segmentation algorithms: border detection by means of Laplacian of Gaussian: 
         [0000]    
       
         
           
             
               
                 
                   
                     LoG 
                      
                     
                       ( 
                       
                         x 
                         , 
                         y 
                       
                       ) 
                     
                   
                   = 
                   
                     
                       - 
                       
                         
                           1 
                           
                             π 
                              
                             
                                 
                             
                              
                             
                               σ 
                               4 
                             
                           
                         
                          
                         
                           [ 
                           
                             1 
                             - 
                             
                               
                                 
                                   x 
                                   2 
                                 
                                 + 
                                 
                                   y 
                                   2 
                                 
                               
                               
                                 2 
                                  
                                 
                                     
                                 
                                  
                                 
                                   σ 
                                   2 
                                 
                               
                             
                           
                           ] 
                         
                       
                     
                      
                     
                        
                       
                         - 
                         
                           
                             
                               x 
                               2 
                             
                             + 
                             
                               y 
                               2 
                             
                           
                           
                             2 
                              
                             
                                 
                             
                              
                             
                               σ 
                               2 
                             
                           
                         
                       
                     
                   
                 
               
               
                 
                   ( 
                   1 
                   ) 
                 
               
             
           
         
       
     
         [0087]    and a local threshold which uses the Sauvola method (Sauvola and Pietikainen, 2000). In this method, the threshold t (x, y) is calculated using the average m (x, y) and the standard deviation s (x, y) of the gray pixel levels within a size window n×n centered on the pixel (x, y): 
         [0000]    
       
         
           
             
               
                 
                   
                     t 
                      
                     
                       ( 
                       
                         x 
                         , 
                         y 
                       
                       ) 
                     
                   
                   = 
                   
                     
                       m 
                        
                       
                         ( 
                         
                           x 
                           , 
                           y 
                         
                         ) 
                       
                     
                      
                     
                       [ 
                       
                         1 
                         + 
                         
                           k 
                            
                           
                             ( 
                             
                               
                                 
                                   s 
                                    
                                   
                                     ( 
                                     
                                       x 
                                       , 
                                       y 
                                     
                                     ) 
                                   
                                 
                                 R 
                               
                               - 
                               1 
                             
                             ) 
                           
                         
                       
                       ] 
                     
                   
                 
               
               
                 
                   ( 
                   2 
                   ) 
                 
               
             
           
         
       
     
         [0088]    where R is the maximum value of the standard deviation (R=128 for an image in gray scale), k is a parameter which takes positive values between 0.2 and 0.5. One example is shown in  FIG. 6 . 
         [0089]    Finally, the pixels which coincide both with the image obtained by means of the Laplacian of Gaussian as well as the local Sauvola threshold will be considered as part of the binarized image ( FIGS. 13 and 14 ). 
         [0090]    Said fused binarization is afterwards processed by means of the Watershed algorithm, which in Spanish is known as a water division line, which is a technique for separation of connected objects. Intuitively, the technique may consider an image on a gray scale such as the topographic image of a terrestrial relief; wherein each pixel is associated as a “height” value of its corresponding gray level. In this sense, one could think that the gray intensities with greater broadness correspond to plains or mountains whereas those intensities with smaller values correspond to valleys and rivers. The technique additionally incorporates a flooding of the valleys process, from the lowest height values (local minimum values, which constitute flooding basins surrounded by mountain chains), up to the tallest height levels. The low gray intensity areas are also known as basins, through which the water will flow and will flood all the topography of the image; that is, the water will flow in each of the identified basins. The flooding process will continue until the contiguous basins join together, forming union lines which will represent the borders of homogeneous regions and which constitute the result of the separation of objects ( FIG. 16 ). 
         [0091]    A segmentation is undertaken which allows extracting the borders of the regions existing in the image, according to its mathematical morphology; in such a way that they can be arranged by gray levels allowing improvement in the efficiency of the procedure. The step consists of detecting the areas where it is possible to find eggs, whose approximate size is determined by means of a Watershed algorithm (with a transformed filtered distance), which is useful when within the sample the objects are surrounded by debris, making it difficult to detect them through more simple codes such as threshold. 
         [0092]    Afterwards, the image must be processed by perimeter compactness (the relation between the area and the perimeter) as well as by the existing relation between the greater and lesser axis ( FIGS. 18 a  and 18 b   ). All objects which are found outside the average range ±2 standard deviations of the egg distribution, shall be considered as non eggs and will not be considered for the classification process ( FIG. 19 ). 
         [0093]    The following process consists in obtaining the features and the labeling of the different objects which the system detected. To determine which class the objects belong to which probably are eggs, three k neighbor classifiers were used based on the Mahalanobis distance. One of morphological features and gray level and two based on the descriptions of LBP textures. 
         [0094]    The class of the object will be determined as a function of a species to which the closest neighbors belong to: five neighbors with classic features, three with the closest texture (LBP4) and three with distant texture (LBP8). 
         [0095]    The characteristics which are taken into account regarding the features which are used in the sorting are detailed below:
       Shape: area, perimeter, circularity metric, greater and lesser axis, relation between the axis and the first Hu invariant moment.   Gray levels of the pixels: average, standard deviation, kurtosis, entropy and relation to shape of object.  FIG. 20  shows an example of the histograms generated by the LBPs texture descriptors.       
 
         [0098]    Finally, after having classified the object a verification step was added to ensure that only those objects which are found within the threshold in so far as shape, gray levels as well as texture for the assigned species will be considered as eggs. 
         [0099]    The metrics used for the validation of the LBP8 texture are the correlation coefficient 
         [0000]    
       
         
           
             
               
                 
                   
                     Corr 
                     coef 
                   
                   = 
                   
                     
                       
                         n 
                          
                         
                             
                         
                          
                         
                           Σ 
                            
                           
                             ( 
                             
                               
                                 LBP 
                                 class 
                               
                                
                               
                                 LBP 
                                 obj 
                               
                             
                             ) 
                           
                         
                       
                       - 
                       
                         
                           Σ 
                            
                           
                             ( 
                             
                               LBP 
                               class 
                             
                             ) 
                           
                         
                          
                         
                           Σ 
                            
                           
                             ( 
                             
                               LBP 
                               obj 
                             
                             ) 
                           
                         
                       
                     
                     
                       
                         
                           [ 
                           
                             
                               n 
                                
                               
                                   
                               
                                
                               Σ 
                                
                               
                                   
                               
                                
                               
                                 
                                   LBP 
                                   class 
                                 
                                 2 
                               
                             
                             - 
                             
                               
                                 ( 
                                 
                                   LBP 
                                   class 
                                 
                                 ) 
                               
                               2 
                             
                           
                           ] 
                         
                          
                         
                           [ 
                           
                             
                               n 
                                
                               
                                   
                               
                                
                               Σ 
                                
                               
                                   
                               
                                
                               
                                 
                                   LBP 
                                   obj 
                                 
                                 2 
                               
                             
                             - 
                             
                               
                                 ( 
                                 
                                   LBP 
                                   obj 
                                 
                                 ) 
                               
                               2 
                             
                           
                           ] 
                         
                       
                     
                   
                 
               
               
                 
                   ( 
                   3 
                   ) 
                 
               
             
           
         
       
     
         [0100]    Where: LBP class  is the average LBP8 histogram of the proposed class. 
         [0101]    LBP obj  is the LBP8 histogram of the object to be evaluated. 
         [0102]    N=25, number of elements in the histogram 
         [0103]    If the correlation coefficient is lower than the threshold of each class, the object shall be considered garbage. 
         [0104]    The second feature for texture validation is a normalization of the Euclidian distance between the average LBP8 histogram of the proposed class and that of the object. 
         [0000]    
       
         
           
             
               
                 
                   
                     Dist 
                     norm 
                   
                   = 
                   
                     
                       
                         
                           
                             Σ 
                             
                               i 
                               = 
                               1 
                             
                             n 
                           
                            
                           
                             ( 
                             
                               
                                 LBP 
                                 
                                   class 
                                   i 
                                 
                               
                               - 
                               
                                 LBP 
                                 
                                   obj 
                                   i 
                                 
                               
                             
                             ) 
                           
                         
                         2 
                       
                     
                     
                       μ 
                       LBP 
                     
                   
                 
               
               
                 
                   ( 
                   4 
                   ) 
                 
               
             
           
         
       
     
         [0105]    Where μ LBP  is the average value of the LBP class  ( FIG. 21 ). 
         [0106]    One of the advantages of the proposed system is that it includes filters and algorithms, not only to differentiate between helminth egg species, but also to be able to differentiate these latter from any other type of objects present in various types of samples (water, soils, excreta and sludge) which grants its versatility for the identification of these parasites in environmental samples.  FIG. 22  shows the final labeling of the objects. 
         [0107]    An embodiment of the inventive methods is a computer readable means (or a digital storage or data carrier means) which comprises, registering in itself, any of the embodiments of the method herein described. 
         [0108]    Another embodiment is the capability to implement the present method like a cloud computing implementation 
         [0109]    In some embodiments a logical programmable device can be used to undertake some or all of the functions of the methods described in present document. In some embodiments, the logical device can cooperate with a microprocessor and a memory to undertake one of the methods herein described. Generally, the methods are preferably undertaken by an apparatus of a physical element. 
         [0110]    Even though the invention has been described in terms of several specific embodiments, the persons skilled in the art would recognize that the invention may be undertaken with alterations within the scope of present invention as described in present document.