Method for characterizing a defect in a pipeline
The method employs machine learning to automate pipe defect characterization, addressing inefficiencies in current inspection methods by providing precise and standardized defect identification and classification, thereby enhancing inspection efficiency and reducing training requirements.
Patent Information
- Application Number
- PCT/EP2024/054486
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-22
- Filing Date
- 2024-02-22
- Publication Date
- 2024-08-29
AI Technical Summary
Current methods for inspecting sanitation network pipes are inefficient due to high operator time requirements, disparities in defect coding, and the need for extensive training, with existing automated solutions lacking real-time and detailed defect characterization capabilities.
A computer-implemented method using machine learning models to generate probabilities of defect classes from images, select classes based on thresholds, and provide additional specification labels for precise defect characterization, enabling automated and standardized defect identification and classification.
Facilitates automatic and precise characterization of pipe defects, reducing operator variability and training time, while enabling real-time analysis and improved maintenance planning.
Smart Images

Figure EP2024054486_29082024_PF_FP_ABST
Abstract
Description
[0001] METHOD FOR CHARACTERIZING A PIPELINE DEFECT
[0002] Field of invention
[0003] The invention relates to the field of pipelines, in particular the field of pipelines in collective sanitation networks. The invention also relates to the field of structures accommodating or allowing the circulation of fluids, in particular water towers, heating or cooling networks. The invention relates to the field of maintenance of said sanitation networks. More specifically, the invention relates to the field of inspection of said pipelines, in particular the field of detection and identification of defects within said pipelines. The invention also relates to the field of automation of detection and identification of pipeline defects. Finally, the invention relates to the field of automated recognition of defects or observations on pipeline images.
[0004] State of the art
[0005] There is a need to inspect sewerage system pipes to detect defects in them. Such defects are mainly due to wear and clogging of these pipes.
[0006] In Europe, the ISO EN-13508-2 standard is commonly used to classify pipeline defects. This standard defines a system for coding pipeline defects in the form of trigrams. For networks and collectors, the standard includes a total of 36 different trigrams, each corresponding to a specific type of defect or a specific observation in the pipeline.
[0007] Typically, pipelines are inspected by television using remote-controlled robots. Such a robot typically has wheels and a motor to move within the pipeline, a camera to take images of the pipeline's interior, and an umbilical cable that allows the robot to communicate with a control interface used by an operator outside the pipeline.
[0008] During the inspection, the operator controls the robot's progress. The interface has a screen that displays images from the robot's camera in real time. When the operator detects a defect on the internal wall of the pipe, he stops the robot's movement and rotates the camera to position it in the best position to take a picture of the detected defect.
[0009] During this inspection, the operator then assigns a code to the fault detected according to the ISO EN-13508-2 standard. Such inspections make it possible to determine the condition of the pipeline network and plan maintenance actions for it.
[0010] Such a process, although effective, nevertheless requires a lot of inspection time from operators. In addition, there are disparities, for the same detected defect, in the code assigned by the operator. The results of inspection operations are therefore not always the same depending on the operators who carry out the inspection. Finally, training novice inspectors is long and costly, to achieve the required level of quality in the inspection.
[0011] Some so-called inspectable pipelines, i.e. those generally having a nominal diameter greater than 1600 millimetres, are generally inspected directly by an operator who manipulates a camera and photographs the parts of the pipelines which concern points of interest such as defects or observations to be recorded.
[0012] There are state-of-the-art solutions that aim to enable automated detection of pipeline defects. Some of these solutions offer systems that allow the pipeline to be reconstructed from a video taken inside it by a robot for the purpose of detecting defects on the video. Such solutions allow for a posteriori analysis of the pipeline by an operator who will be able to identify the defects present on the pipeline. Such systems do not allow for real-time and automatic inspection of the pipeline.
[0013] Some of these solutions use artificial intelligence to perform this detection. Such systems do not allow for the classification of detected defects, or only allow for a superficial classification of a limited number of types of pipeline defects. Such systems do not allow for more specific characterization of a defect, i.e., for assigning an additional level of characterization to the type of defect detected.
[0014] There are also systems that allow for good defect classification. These systems require data export to a third-party system to process the data and perform the classification. Such systems do not allow for real-time analysis of the pipeline, as they require video of the entire pipeline to be taken, before it is exported to the cloud in order to conduct the analysis on the video. These systems therefore pose operability problems in a field pipeline inspection context.
[0015] One aim of the invention is to remedy the aforementioned drawbacks of existing solutions and systems.
[0016] Summary of the invention
[0017] To this end, the invention relates to a computer-implemented method for characterizing a pipeline defect which comprises the steps of:
[0018] Generation of a plurality of probabilities of presence of a plurality of first classes of defect on a first image of the interior of a pipeline from a first trained labeling learning function, said first learning function implementing a machine learning model trained from a set of images each comprising a plurality of first labels characterizing at least one defect;
[0019] Comparison for each first class of defect of the value of the probability with a threshold characteristic of each first class of defect;
[0020] Selection of each first class of defect for which the estimated probability is greater than the threshold value associated with said class;
[0021] Selecting for at least one first selected defect class, at least one second specification class from a plurality of second specification classes, on the first image, from a second specification learning function; and
[0022] Generation of at least one label characteristic of each first class of defect and each second class of selected specification. The method according to the invention advantageously allows the identification and characterization, on an image of a pipeline, of at least one defect of the pipeline. The method according to the invention allows the classification of this defect and its labeling automatically. The method according to the invention also allows a second level of classification to be defined from the first class of the selected defect. This additional specification allows better characterization and a level of detail and precision not available in the systems of the prior art.
[0023] The method according to the invention also allows automation and standardization in the characterization of pipeline defects. Finally, the method according to the invention makes it possible to facilitate the training of new operators by allowing a proposal for characterizing defects.
[0024] According to one aspect, the invention relates to a method in which a plurality of first labels are generated, each first label preferably being displayed on a display with its probability of presence.
[0025] According to one embodiment, the second specification learning function is trained, said second specification learning function implementing a machine learning model trained from the set of images each comprising a plurality of second labels characterizing at least one specification class.
[0026] According to one embodiment, the second specification learning function selects the second specification class based on a predefined rule making it possible to associate said second specification class with the first class of defects.
[0027] According to one embodiment, the method further comprises a step of selecting a specific subclass of a second specification class, said step of selecting a specific subclass comprising the steps of:
[0028] • Selection of at least one rule within a rule base based on the value of the first label, each rule defining an association between a characteristic value of said first image and a second predefined label of a specific subclass; and
[0029] • Generation of data comprising the value of the first label and the value of the second label. According to one embodiment, the characteristic value of the first image is its first label.
[0030] According to one embodiment, the characteristic value of the first image is generated from an image processing algorithm applied to the first image.
[0031] According to one embodiment, the method comprises a step of receiving data associated with the first image, said data being acquired by means of a user interface, said data being recorded in a memory so as to be associated with the characteristic value of the first image, said data being compared to a plurality of attribute values associated with each first label, said comparison resulting in the exclusion of at least one first label from the list of first labels generated when the value of an attribute of said excluded first label is greater than or less than a given threshold.
[0032] According to one embodiment, the data associated with the first image is modeled in at least one discrete symbol in a natural language and normalized within a third label attached to the first label and / or to the second label comprising a plurality of discrete symbols in a natural language, said modeling and said normalization allowing relearning of the first trained labeling learning function and / or of the second trained specification learning function.
[0033] According to one embodiment, a plurality of first labels is generated, each first label being displayed on a graphical interface of a display, the graphical interface comprising a component for validating the presence of each first label displayed by an operator and a component for entering a new first label making it possible to correct the value of a first label displayed, significant data of the number of differences between the defects identified by the method of the invention and the defects identified by the operators on the same images being calculated.
[0034] According to one embodiment, the exceeding, by the significant data of the number of differences between the defects identified by the method of the invention and the defects identified by the operators, of a characteristic performance threshold, results in the retraining of the machine learning model of the first learning function and / or of the machine learning model of the second learning function. According to one embodiment, the modification of the first label by an operator comprises an analysis of the number of symbols of the label having changed, an analysis of the position of the symbol in the label having changed and the type of the at least one symbol which has been modified, said analysis making it possible to generate an action of retraining at least one model of a second learning function.
[0035] According to one embodiment, the method comprises, before the generation step, the steps of:
[0036] • Reception of at least one raw image of the interior of a pipeline;
[0037] • Resizing the image to obtain a resized image;
[0038] • Normalization processing of the hue, saturation and / or brightness of the resized image to obtain the first image.
[0039] According to one embodiment, the first trained labeling learning function and / or the second trained classification learning function is trained from a trained convolutional neural network comprising a plurality of layers, at least one of the layers of which is retrained from the set of images each comprising a plurality of first labels characterizing at least one defect.
[0040] According to one embodiment, the pre-existing convolutional neural network used for training the first trained labeling learning function and / or for the second trained specification learning function is a network of the MobileNet, ResNet, EfficientNet, TRansformeur or DenseNet type.
[0041] According to one embodiment, the set of images comprising the plurality of first labels is increased by adding a second set of images resulting from the geometric and / or photometric transformation of at least a portion of the set of images comprising the plurality of first labels.
[0042] According to one embodiment, a loss function quantifying a deviation between predictions of the first learning function and the first labels is a function of one of the following types:
[0043] • Binary cross entropy,
[0044] • Weighted cross-entropy,
[0045] • soft F1 -score or dice loss,
[0046] • macro soft F1 -score, or double macro soft F1 -score.
[0047] According to one embodiment, the method further comprises a step of displaying each first label on a user interface.
[0048] The invention also relates to a system for characterizing a pipeline defect, the system comprising:
[0049] • A pipeline exploration device comprising at least one optical sensor;
[0050] • A user interface configured to display in real time a data stream from the optical sensor of the pipeline exploration device, the system being configured to implement the method according to the invention.
[0051] Brief description of the figures
[0052] Other characteristics and advantages of the invention will emerge on reading the detailed description which follows, with reference to the appended figures, which illustrate:
[0053] Figure 1: a flowchart illustrating a method for characterizing a fault in a pipeline according to one embodiment of the invention;
[0054] Figure 2: a flowchart illustrating the processing of a raw image according to one embodiment of the invention;
[0055] Figure 3: a flowchart illustrating the step of selecting a rule in a rule base according to one embodiment of the invention; and
[0056] Figure 4: a block diagram illustrating the operation of a system according to one embodiment of the invention.
[0057] Description of the invention
[0058] Figure 1 represents a flowchart illustrating a method for characterizing a pipeline surface defect according to one embodiment of the invention.
[0059] In the following description, a pipeline will be used to refer to any element, for example of a sanitation system, which allows fluids to be transported, more particularly water evacuated by said sanitation system. Pipes are generally closed tubular elements, which may include connections between several tubular elements. The section of the pipes is generally circular. Also included in the scope of a pipeline are structures receiving or allowing the circulation of fluids, in particular water towers, heating or cooling networks.
[0060] A pipeline defect, or pipeline surface defect, is understood to mean any singularity of the pipeline surface, any deterioration or alteration of the surface condition of the interior of a pipeline that is observable. More precisely, these defects are characteristics visible from the interior of the pipeline. The pipeline defect may be, for example and without limitation, a crack in the interior surface of said pipeline, a connection with another pipeline, an obstructing element deposited on the internal surface of said pipeline, an alteration of the internal surface of the pipeline, corrosion of the internal surface of the pipeline.
[0061] The method according to the invention aims to characterize a detected defect in the pipeline to determine what type of defect it is.
[0062] The method according to the invention comprises a step of generating GEN1 a plurality of probability of presence PROB1 of a plurality of first classes of defects DEFI on a first image IM1 of the interior of a pipeline from a first trained labeling learning function FONC1. The first trained labeling learning function FONC1 implements a machine learning model trained from a set of images each comprising a plurality of first labels characterizing at least one defect.
[0063] This generation step GEN1 uses a first image IM1 of the interior of a pipe. Advantageously, the image of the interior of a pipe is a selected image, because it includes the presence on the pipe and in the field of the image of at least one defect. The first trained labeling learning function FONC1 analyzes the first image IM1 to generate a probability of presence PROB1 of a first defect class DEFI on the first image IM1. In other words, the first learning function FONC1 determines the probability that at least one defect belonging to the first defect class is present on said first image IM1. During this generation step GEN1 of the plurality of probabilities PROB1, a probability of presence is preferably generated for each existing first defect class DEFI. Thus, for each first defect class DEFI, there is a probability of presence on the first image IM1.The set of these presence probabilities PROB1 forms the plurality of presence probabilities. The first trained labeling learning function FONC1 is a function that gives a probability of presence of a first class of defect from the first image IM1. In other words, the first learning function analyzes the first image IM1 and provides the plurality of presence probabilities PROB1. The first trained labeling learning function FONC1 implements a model resulting from training undergone by the function. The first learning function FONC1 is trained from a set of images. This set of images includes images of the interior of a pipe. Each image is associated with a label characterizing a pipe defect. In other words, the first learning function FONC1 is obtained from supervised learning based on a set of labeled images.
[0064] The method according to the invention then comprises a step of comparing the value of the presence probabilities PROB1 with a threshold value which is specific to each first class of defect DEF1. In other words, for each first class of defect DEFI for which the first learning function FONC1 provides a probability of presence PROB1, said probability is compared with the threshold associated with said first class of defect DEF1. Thus, it is possible to have different thresholds depending on the types of first singularity DEFI which make up the plurality of first classes of defect DEFI.
[0065] The method according to the invention then comprises a step SEL1 of selecting first classes of faults DEF1. The first classes of faults DEFI selected are the first classes of fault whose associated probability of presence PROB1 is greater than the characteristic threshold of said class of fault DEF1. In other words, the method selects a set of first classes of faults DEFI for which the probability of presence PROB1 is sufficiently high. This step therefore allows the establishment of a list of types of faults corresponding to the first classes of faults DEFI selected. The method according to the invention then comprises a step SEL2 of selecting at least one first class of fault DEFI selected previously from at least one second class of specification SPE2. The second class of specification SPE2 corresponds to an additional level of classification of the fault of the pipeline compared to the first class of fault DEF1.The second specification class SPE2 is selected from a set of second specification classes SPE2 that are characteristic of the first defect class DEFI that was previously selected. In other words, the selection SEL2 of the second specification class SPE2 is made based on the first defect class(es) that were previously selected. The selection of the second specification class is performed by a second specification learning function FONC2.
[0066] According to one embodiment, the second learning function of specification FONC2 implements a trained machine learning model. The machine learning model is trained from a set of images comprising a plurality of second labels which each correspond to at least one second class of specification SPE2.
[0067] The method then comprises a step GEN2 of generating at least one label LAB1 characteristic of each first DEFI defect class and each selected second SPE2 specification class. In other words, the method makes it possible to generate a label LAB1 which specifies a pair of a first DEFI defect class and a second SPE2 specification class. In this way, the method allows automatic generation, from an image of a pipeline comprising a defect, of a label making it possible to classify this defect according to two specification levels. Advantageously, the method according to the invention also makes it possible to generate several labels when several different defects are present on the first IM1 image of the interior of the pipeline.
[0068] Image processing
[0069] According to one embodiment, the method according to the invention comprises a step of receiving a raw IMBR image of the interior of a pipe. The raw IMBR image is preferably acquired by a pipe exploration device 20 which is preferably equipped with an image capture device or optical sensor 22. We will return later to the description of these devices. Figure 2 is a flowchart illustrating the different steps of processing the raw IMBR image.
[0070] The raw IMBR image, which corresponds to a shot of the inside of a pipe, is therefore received during this step of the method. The raw IMBR image comprises a set of pixels that allow a representation of the inside of the pipe. Preferably, the raw IMBR image comprises one or more walls of the pipe in its field of view. The raw IMBR image can be taken so as to represent substantially from the front a wall of the pipe. According to one embodiment, the raw IMBR image comprises a representation that is inclined relative to a wall of the pipe. According to one embodiment, the raw IMBR image is an image of a portion of pipe. The portion of pipe on the raw IMBR image preferably comprises at least one pipe defect or a pipe surface defect. The raw IMBR image therefore represents at least one defect of the pipe.According to one embodiment, the pipeline portion of the raw IMBR image comprises several defects.
[0071] According to one embodiment, the method then comprises a step of resizing RED of the raw image IMBR to obtain a resized image IMRED. The resizing step may comprise converting the raw image into a format that will be easier to process by the various learning functions implemented by the method. For example, during resizing, the pixel resolution of the image may be changed to be a standard resolution. Preferably, the standard resolution corresponds to a resolution of the images that were used for training the first trained labeling learning function FONC1. This arrangement makes it possible to increase the efficiency of the function and to increase the accuracy of the presence probabilities PROB1 generated by it.According to one embodiment, the standard resolution is the resolution of the images that were used for training the second trained specification learning function FONC2. This arrangement makes it possible to increase the reliability of the selection made by the second learning function FONC2. According to one embodiment, the images used for training the first learning function FONC1 and for training the second learning function FONC2 have the same definition, which is the same as the definition of the resized image IMRED. In this way, the same resized image IMRED makes it possible to obtain optimized results with the first learning function FONC1 and with the second learning function FONC2.
[0072] According to one embodiment, the step of resizing the raw IMBR image comprises a step of truncation of the image. This step makes it possible to remove from the image one or more parts thereof, for example parts which would not be relevant for the analysis thereof by the learning functions FONC1, FONC2. For example, the truncation of the raw IMBR image allows the removal of a side band thereof. This arrangement is particularly advantageous when the channeling defect(s) are not present on a part of the image, or when the latter is not well centered. The truncation also makes it possible to modify, for example to reduce, the resolution of the raw IMBR image. This arrangement also makes it possible to obtain the standard resolution.
[0073] According to one embodiment, the step of resizing the raw IMBR image comprises a step of geometric transformation of the image. For example, the geometric transformation of the image may comprise a step of rotating the raw IMBR image. This rotation of the raw image advantageously makes it possible to place the image in an optimal angular orientation for its processing by the first learning function FONC1 and by the second learning function FONC2. For example, this rotation makes it possible to replace the image so that its orientation is consistent with the orientation of the pipe in which the image is taken. Indeed, if the optics of the shooting device are oriented obliquely relative to the vertical, a rotation of the image makes it possible to obtain a resized image which is oriented along a vertical axis.
[0074] According to one embodiment, the image undergoes a TRAIT processing step for normalizing the light intensity. By TRAIT processing step for normalizing the light intensity, we mean a step during which the contrast of the image is adjusted to allow better processing subsequently by the different learning functions. According to one embodiment, the TRAIT processing step for normalizing the light intensity comprises a step for clipping high intensities. According to one embodiment, the TRAIT processing step for normalizing the light intensity comprises a step for adjusting the saturation of the image. The adjustment of the saturation may comprise a decrease in the saturation or an increase in the saturation. According to one embodiment, the TRAIT processing step for normalizing the light intensity comprises a step for increasing the light intensity.According to one embodiment, the TRAIT processing step for normalizing the light intensity comprises a step of analyzing the image making it possible to deduce the processing to be carried out on the image to normalize it.
[0075] Multi-label classification
[0076] According to one embodiment, the first trained labeling learning function FONC1 takes as input a first image IM1 of the inside of a pipe. As seen previously, this first image IM1 can come from a raw image IMBR which is directly obtained by the imaging device. According to one embodiment, the first learning function directly processes the raw image IMBR of the pipe as input.
[0077] The first trained labeling learning function takes as input an image selected by an operator who triggers the capture of the raw IMBR image. Preferably, the first image includes at least one singularity or pipeline defect. Thus, the first trained labeling learning function FONC1 only has to identify the defect(s) present on the image.
[0078] The first trained labeling learning function FONC1 generates a set of first presence probabilities PROB1 of first defect classes DEFI on the first image IM1. In other words, the first trained labeling learning function FONC1 tests, for all the types of defects that exist in a classification, the probability of their presence on the first image IM1. Thus, this first trained labeling learning function takes as input the first image IM1 and gives as output a plurality of presence probabilities PROB1 , each presence probability PROB1 being associated with a specific defect class DEFI in the set of defect classes. To do this, the first trained labeling learning function implements an estimation method based on an analysis of the first image IM1.
[0079] According to one embodiment, the first trained labeling learning function FONC1 comprises a neural network architecture. According to one embodiment, the first trained labeling learning function comprises a multi-layer neural network. According to one embodiment, the first trained labeling learning function FONC1 comprises a convolutional neural network. According to one embodiment, the first trained labeling learning function FONC1 comprises a Transformer-type neural network.
[0080] The first trained labeling learning function FONC1 was trained prior to implementing the method. According to one embodiment, the training of the first trained labeling learning function FONC1 comprises supervised training. During training, a training image base is used. The training image base comprises a plurality of images, which are preferably images of the interior of pipes, which comprise defects. Each image used for training comprises a label which has preferably been assigned by an operator to the singularity(ies) present on the image. The label comprises at least one item of information on the first class(es) of DEFI defect present on the image. According to one embodiment, the training image base comprises at least 1000 labeled images of the interior of pipes.According to one embodiment, the training image base comprises at least 10,000 labeled pipe interior images. According to one embodiment, the training image base comprises at least 100,000 labeled pipe interior images. According to one embodiment, the training image base comprises at least 500,000 labeled pipe interior images. According to one embodiment, the training image base comprises at least 1,000,000 labeled pipe interior images.
[0081] According to one embodiment, the images of the training image database are raw IMBR images that have undergone at least one RED resizing step as described above. According to one embodiment, the raw IMBR images have additionally or alternatively undergone an image truncation step. According to one embodiment, the raw IMBR images have additionally or alternatively undergone a geometric image transformation step as described above. According to one embodiment, the images have undergone a TRAIT processing step of normalizing the light intensity as described above. In this way, the image may have undergone a brightness adjustment step, a contrast adjustment step, a brightness clipping step, and / or a saturation adjustment step.All these steps make it possible to obtain a set of training images of the learning function which is homogeneous and therefore allows better training of the function. According to one embodiment, the TRAIT processing step of normalizing the light intensity comprises a step of analyzing the image making it possible to deduce the processing to be carried out on the image to normalize it.
[0082] According to one embodiment, the number of images in the training image database is increased using data augmentation techniques. According to one embodiment, the training image database is increased by adding images from said database that have undergone geometric transformations. According to one embodiment, the geometric transformations include rotations of the images in the image database. Each image that has undergone a rotation is added to the training image database. According to one embodiment, the training image database is increased by performing processing on the colors present in the images. More specifically, color modification processing includes, but is not limited to, processing the saturation of the images, the brightness of the images, or the contrast of the images. The images thus processed are reincorporated into the training image database in addition to the unprocessed base images.In this way, the number of images in the training image database is increased with images having defects and color characteristics different from the initial images in the database. This arrangement makes it possible to increase the training efficiency of the learning function.
[0083] According to one embodiment, the first trained labeling learning function FONC1 is trained using a transfer learning method. A transfer learning method makes it possible to use an image recognition model pre-trained on third-party image recognition problems as a starting point for training the first trained labeling learning function FONC1. The third-party pre-training images of the first learning function comprise images that are not from pipelines. According to one example, the third-party images comprise images of faces, images of everyday objects and / or images of animals or living beings. The pre-trained model is re-trained using the training image base previously described.According to one embodiment, the pre-trained model is trained on recognition of images that are not images of the interior of pipes. According to one embodiment, the pre-trained model is a convolutional neural network. According to one embodiment, the pre-trained model is a convolutional neural network of the "MobileNet", "ResNet", "EfficientNet" or "DenseNet" type. According to one embodiment, the pre-trained model is a "Transformer" type model. According to one embodiment, the pre-trained model is a model as described previously which comprises at least one "Dense" type layer. According to one embodiment, the pre-trained model comprises several additional "Dense" type layers. According to one embodiment, the pre-trained model is re-trained by re-training only a portion of the layers of the neural network on the basis of training images.
[0084] According to one embodiment, the first trained labeling learning function FONC1 is trained using a hybrid model that assembles a convolutional architecture and a recurrent architecture in a single neural network. Such a training mode makes it possible to better exploit the correlations between the different defects that are present on the same first image IM1.
[0085] According to one embodiment, the first learning function at least one model. According to one embodiment, the first learning function uses at least two different models. According to one example, the learning function uses a first model for the generation GEN1 of the presence probabilities PROB1 and a second model to also perform a generation GEN1 of the presence probabilities PROB1. According to one example, the probability that will be used during the comparison step COMP with the threshold is an average of the probability PROB1 generated by the first model and the probability PROB1 generated by the second model. According to one example, the probability used during the comparison step COMP is a weighted average of the probability generated by the first model and the probability generated by the second model.For example, the weighting assigned to the probability PROB1 of the first model is 0.8 and that assigned to the probability PROB1 of the second model is 0.2. This arrangement is particularly advantageous for taking advantage of better identification by one model rather than another. According to one embodiment, the weighting of the average is only used for the generation of the probability PROB1 relating to a first predetermined DEFI default class. This arrangement makes it possible to take advantage of the identification performance of a model for a given DEFI default class. According to one embodiment, several different weightings are used for several first DEF1 default classes.In this way, the weighting of a model is higher for the first DEFI fault classes for which its identification performance is better and can be lowered for the first DEFI fault classes for which the identification performance is lower.
[0086] According to one embodiment, the first trained labeling learning function FONC1 also provides location information for the defect(s) identified on the first image IM1. Such information may subsequently be provided to an operator to assist him in the pipeline inspection process. According to one embodiment, the location information is associated with the first image IM1. According to one embodiment, the location information comprises angular location information for the defect. This angular information preferably comprises angle information relative to a vertical line. The information preferably comprises an indication of the time location of the singularity. According to one embodiment, the location of the defect(s) on the image is based on an artificial intelligence explainability algorithm.Such an algorithm uses the decision process of the first trained labeling learning function FONC1 to derive information relating to the defects. For example, the angular location or time location of the defect(s) is determined by using an activation map of the first trained labeling learning function FONC1. According to this example, such a map provides the pixels of the first image IM1 on which the decision of the first learning function FONC1 is based. In this way, the defects are located on the first image IM1. The angular location or time location of the image can therefore be determined. Additionally or alternatively, the spatial location of the defect(s) is also determined. According to one embodiment, the first trained labeling learning function directly provides the location information.According to one embodiment, the first trained labeling learning function FONC1 has been trained, at least partially, from images comprising labels comprising defect location information. Thus, the first learning function, in addition to providing probabilities PROB1 of defect presence, also provides at least one defect location information. This location information comprises, for example, time location information, angular location information, and / or spatial location information.
[0087] According to one embodiment, the first learning function FONC1 is adjusted using a loss function. In other words, parameters of the first learning function and / or the response of the first learning function FONC1 are adjusted using the loss function. A loss function is a function quantifying the difference between the predictions of the model and the actual observations of the dataset used during training. According to one embodiment, the loss function used is a binary cross-entropy type function. According to one embodiment, the loss function used is a weighted cross-entropy type function. Advantageously, the loss function makes it possible to take into account an imbalance in the training image database. For example, a defect class may only be represented by a small number of images in the image database compared to the other defect classes.In this case, a weight can be assigned to such images in order to make them weigh more in the training of the first learning function FONC1. This arrangement makes it possible to make the learning function FONC1 capable of detecting a DEFI defect class which is underrepresented in the training image base, and which might otherwise not be detected. A weighted binary cross-entropy type loss function makes it possible to implement this arrangement. According to one embodiment, the loss function used is a soft F1-score type or “dice loss” type function, generally named thus according to an English language term. According to one embodiment, the loss function used is a macro soft F1-score type or double macro soft F1-score type function. According to one embodiment, the loss function takes into account at least one identification performance indicator.According to one embodiment, the loss function makes it possible to choose one or more performance indicators and to reduce or increase the influence of said indicators on the loss function.
[0088] The comparison step COMP is performed for each first defect class DEF1. Indeed, the first learning function FONC1 generates a set of presence probabilities PROB1, each corresponding to a first defect class DEF1. Each value of the presence probability is compared with a threshold value that is specific to the said first defect class DEFI in question. Each threshold value is adjusted according to the interest or not of having false detections or missed defects. For example, for a given first defect class, it may be desirable to avoid missing the type of defect associated with the first defect class DEFI in question, because this singularity corresponds to a critical pipeline defect. In this case, the detection threshold is deliberately set quite low, to prevent the classifier from missing a defect of this type. Such an identification mode can generate false positives.Conversely, for easily identifiable defects, a higher, i.e. stricter, threshold is used. In this way, an operator performing subsequent image inspection is prevented from being overwhelmed by a large number of defects and false detections.
[0089] Advantageously, the threshold used for a given DEFI defect class is adapted to the recurrence of said DEFI defect class in the training image base of the first learning function FONC1. Advantageously, the threshold relating to at least one DEFI defect class is set as a function of the performance of identifying the type of defect relating to said DEFI defect class during the supervised training of the first learning function FONC1. In other words, the threshold is set for each DEFI defect class as a function of the performance of identifying said DEFI defect class during the training of the first learning function FONC1. According to one embodiment, the threshold relating to at least one DEFI defect class is set as a function of feedback from users and / or operators using the method according to the invention.Such feedback allows the threshold to be adjusted based on the proportion of false positives identified by increasing the threshold when many false positives are detected. Similarly, the threshold may be lowered if for a first defect class DEFI , said defect is not identified several times. According to one embodiment, the thresholds are set at 0.4. According to this embodiment, when the probability of presence PROB1 associated with the first defect class DEFI is greater than 40%, then said defect class is selected during the selection step SEL1. According to one example, the threshold associated with a first defect class DEFI corresponding to a crack in the pipeline is lowered relative to the threshold of the other first defect classes DEFI . For example, this threshold is lowered to 0.3 or 0.2.Such a lowering of the threshold associated with the crack-related class is advantageous, as it increases the identification of this DEFI defect class to ensure that it is detected.
[0090] According to one embodiment, the characteristic threshold of at least one first fault class DEFI is adaptive. For example, the threshold is adapted during successive uses of the method according to a success rate of the identification of the first fault class DEF1. The success rate may for example be determined according to user feedback. According to one embodiment, the characteristic threshold is defined according to at least one probability of presence PROB1 of a first fault class DEF1. For example, the characteristic threshold may be equal to the value of the highest probability of presence PROB1 of all the fault classes for which a probability of presence is calculated. According to one example, a single fault class DEFI is selected from among the fault classes DEFI for which a probability of presence PROB1 is calculated.According to this example, only the DEFI defect class with the highest probability of presence PROB1 is selected. According to one embodiment, the characteristic threshold of at least one DEFI defect class is defined from a third learning function FONC3. According to one embodiment, the third learning function FONC3 is trained from a set of labeled pipeline images. According to one example, the characteristic threshold of at least one DEFI defect class is adapted according to data measured on the first image. For example, the threshold can be adapted according to brightness data measured on the first image. This adaptation makes it possible to adapt the threshold according to the performance of the first learning function FONC1 on the identification according to the measured data.
[0091] According to one embodiment, the method comprises five first classes of DEFI defects. According to one embodiment, the method comprises ten first classes of DEF1 defects. According to one embodiment, the method comprises fifteen first classes of DEF1 defects. Preferably, the method comprises twenty-one first classes of DEFI defects. These classes of defects correspond to types of pipeline defects as described in the European standard EN-13508.
[0092] According to one embodiment, the method relates to a set of first DEFI defect classes that assess a pipeline defect. Among the first DEFI defect classes available in the method, we find for example a crack in the pipeline, a rupture of the pipeline, a penetrating connection, a defective connection. We also find the visible seals, the assembly displacements, the roots visible on an image. We also find the presence of deposits in the pipeline, which may be adherent or not, the presence of an earth ingress, a connection or a curvature of the collector. This list of defects observed forming the different first DEFI defect classes is non-limiting and can be supplemented by any defect that it will appear relevant to identify to the person skilled in the art.
[0093] Multiclass classification
[0094] The method according to the invention comprises a step of selecting SEL2 for at least a first class of DEFI defects selected previously, from at least a second class of specification SPE2.
[0095] Each first class of defects does not necessarily include a second SPE2 specification class. Thus, the step SEL2 of selecting a second SPE2 specification class may or may not include the selection of a second SPE2 specification class. Each second SPE2 specification class includes a specification of the label corresponding to the first DEFI defect class selected. In other words, the first DEFI defect class corresponds to a first level of specification of the defect, and the second specification class provides a second level of analysis concerning said defect. In this way, a second SPE2 specification class is specific to the first DEFI defect class in question. According to one embodiment, for the first defect class corresponding to pipe connections, the available second SPE2 specification classes include the type of connection among seven types of connections available.According to one example, the available connection types are the connections of the breeches type, the cored saddle type, the chiseled saddle type, the cored direct tapping type, the chiseled direct tapping type, the unknown connection type, and the other type. According to one embodiment, the unknown connection type is determined when the second learning function FONC2 does not detect one of the other connection types. Advantageously, several second specification classes can be associated with the same first fault class DEFI to generate the first label LAB1. For example, in the case of the first fault class corresponding to the connection, a second specification class SPE2 relating to the location of the connection can be determined.For example, we can have a second SPE2 specification class relating to the placement of the connection on the left of the pipe, a second SPE2 specification class relating to the placement of the connection on the right of the pipe. We can also have a second SPE2 specification class relating to the time positioning of the connection in the pipe, for example a connection positioned at 10 o'clock or a connection positioned at 2 o'clock.
[0096] According to an example, in the first defect class DEFI corresponding to the assembly displacement, a second specification class SPE2 relates to the type of assembly displacement. For example, three second specification classes SPE2 are available from which the second specification learning function FONC2 selects the class relating to the defect present on the first image IM1. According to an example, the second specification classes SPE2 available for the assembly displacement are longitudinal displacement, decentering and deviation.
[0097] According to an example, in the first defect class DEFI corresponding to the presence of roots, a second specification class SPE2 is relative to the type of root present on the image. For example, three second specification classes SPE2 are available from which the second specification learning function FONC2 selects the class relative to the defect present on the first image IM1. These three second specification classes SPE2 are the presence of rootlets, the presence of a large root, or the presence of a complex set of roots.
[0098] The selection step SEL2 of the second specification class uses a second trained specification learning function FONC2. According to one embodiment, the second trained specification learning function FONC2 uses the first image IM1 as input. According to one embodiment, the second specification learning function FONC2 determines, from an analysis of the first image IM1, the second specification class SPE2 corresponding to the defect for which the first defect class DEFI was determined.
[0099] According to one embodiment, the second trained specification learning function FONC2 comprises a neural network architecture. According to one embodiment, the second trained specification learning function FONC2 comprises a multi-layer neural network. According to one embodiment, the second trained specification learning function FONC2 comprises a convolutional neural network. According to one embodiment, the second trained specification learning function FONC2 comprises a Transformer-type neural network.
[0100] The second trained specification learning function FONC2 has been trained previously to the implementation of the method. According to one embodiment, the training of the second trained specification learning function FONC2 comprises supervised training. During the training, a training image base of the second specification learning function SPE2 is used. The training image base of the second learning function FONC2 comprises a plurality of images, which are preferably images of the interior of pipes, which comprise labeled defects. Advantageously, each defect of the training base of the second learning function FONC2 belongs to the same first defect class DEF1. In this way, the second learning function FONC2 is trained on a basis allowing it to carry out the specification of a given defect from among the first defect classes DEFI.
[0101] According to one embodiment, the method comprises several second trained specification learning functions FONC2. Each second trained specification learning function FONC2 corresponds to a first defect class DEF1. In other words, each time the method uses a second trained specification learning function SPE2, it relates to the defect class DEFI that has been selected.
[0102] Each second trained specification learning function FONC2 is trained using a specific image database. The specific training image database includes a set of labeled images comprising a defect of the first DEFI defect class to which the second SPE2 specification class is relative. The image labels include information specific to the first DEFI defect class and the second SPE2 specification class that is present on the images in question.
[0103] The specification label of each image used for training has preferably been assigned by an operator to the defect(s) present on the image. The specification label comprises information on the second specification class(es) SPE1 present on the image. According to one embodiment, the specific training image base comprises at least 10 labeled images of the interior of the pipe. According to one embodiment, the specific training image base comprises at least 50 labeled images of the interior of the pipe. According to one embodiment, the specific training image base comprises at least 100 labeled images of the interior of the pipe. According to one embodiment, the training image base comprises at least 1000 labeled images of the interior of the pipe. According to one embodiment, the training image base comprises at least 10000 labeled images of the interior of the pipe.According to one embodiment, the specific training image base of the second trained specification learning function FONC2 is the same base as the training image base of the first trained labeling learning function FONC1.
[0104] According to one embodiment, the images of the specific training image base of the second learning function FONC2 are a subset of the training image base of the first learning function FONC1. According to this embodiment, only the images of the training image base of the first learning function having as label the first defect class DEFI to which the second specification class SPE2 relates are used in the specific training image base. In this way, the second learning function of specification FONC2 is trained from images which each comprise one or more defects of the first defect class DEFI which it is sought to assign a specification class SPE2. This arrangement makes it possible to improve the training of the second learning function of specification FONC2 by a better selection of the training images.
[0105] According to one embodiment, the images of the specific training image base are raw IMBR images that have undergone at least one RED resizing step as described above. According to one embodiment, the raw IMBR images have additionally or alternatively undergone an image truncation step. According to one embodiment, the raw IMBR images have additionally or alternatively undergone a geometric image transformation step as described above. According to one embodiment, the images have undergone a TRAIT processing step of normalizing the light intensity as described above. In this way, the image may have undergone a brightness adjustment step, a contrast adjustment step, a brightness clipping step, and / or a saturation adjustment step.All these steps make it possible to obtain a set of training images specific to the second learning function of specification SPE2 which is homogeneous and therefore allows better training of the function. According to one embodiment, the TRAIT processing step for normalizing the light intensity comprises a step of analyzing the image making it possible to deduce the processing to be carried out on the image to normalize it. According to one embodiment, the number of images in the specific training image base of the second learning function FONC2 is increased using data augmentation techniques. This arrangement is particularly advantageous when the specific training image base is a subset of the training image base of the first learning function, because it makes it possible to increase a smaller number of images in the base.According to one embodiment, the specific training image base is augmented by adding thereto images from said base that have undergone geometric transformations. According to one embodiment, the geometric transformations comprise rotations of the images from the specific training image base. Each image that has undergone a rotation is added to the specific training image base. According to one embodiment, the specific training image base is augmented by performing processing on the colors present in the images. More specifically, color modification processing includes, but is not limited to, processing of the saturation of the images, the brightness of the images, or the contrast of the images. The images thus processed are reincorporated into the specific training image base in addition to the unprocessed base images.In this way, the number of images in the specific training image base is increased with images having defects and color characteristics different from the initial images in the base. This arrangement makes it possible to increase the training efficiency of the learning function.
[0106] According to one embodiment, the second trained specification learning function FONC2 is trained using a transfer learning method. A transfer learning method makes it possible to use a pre-trained image recognition model on image recognition problems as a starting point for training the second trained specification learning function FONC2. The pre-trained model is re-trained using the specific training image base previously described. According to one embodiment, the pre-trained model is trained on the recognition of images that are not images of the interior of pipes. According to one embodiment, the pre-trained model is a convolutional neural network. According to one embodiment, the pre-trained model is a convolutional neural network of the MobileNet, ResNet, EfficientNet or DenseNet type.According to one embodiment, the pre-trained model is a Transformer-type neural network.
[0107] According to one embodiment, the pre-trained model is re-trained by re-training only a portion of the layers of the neural network based on specific training images.
[0108] According to one embodiment, the second trained specification learning function FONC2 is trained using a hybrid model that assembles a convolutional architecture and a recurrent architecture in a single neural network. Such a training mode makes it possible to better exploit the correlations between the different defects that are present on the same first image IM1.
[0109] According to one embodiment, the second specification learning function FONC2 selects the second specification class SPE2 according to a predefined rule. According to one example, the predefined rule makes it possible to associate a second specification class SPE2 with a first defect class. This association can be carried out automatically. This arrangement is particularly advantageous when a second specification class SPE2 represents a large majority of the cases associated with a first defect class DEF1. According to one example, the predefined rule associated with the second learning function FONC2 makes it possible to modify the first defect class DEFI previously selected.
[0110] Business rules
[0111] According to one embodiment, the method comprises a step of selecting SEL3 a specific subclass SPE3 of the second specification class SPE2 selected. Figure 3 is a flowchart illustrating the selection of a rule in a rule base REGI. The rule base can be stored in a memory of the equipment used or in a remote memory accessible from a data network. The specific subclass SPE3 represents a third level of description of the pipeline fault which is identified on the first image IM1. The step of selecting SEL3 the specific subclass SPE3 advantageously comprises a step of selecting SEL4 at least one rule within a rule base REGI as a function of the value of the first label LAB1. Thus, in this step a rule is selected which relates to the first fault class DEFI and / or to the second specification class which have been identified previously.A rule is therefore selected, which may correspond to a business rule that may be predefined from the knowledge of one or more operators, or from the technical literature of a knowledge domain, which is characteristic of the nature of the type of defect identified. The rule base advantageously comprises a set of rules that are relative to the first labels LAB1. This rule base advantageously comprises at least one rule per first label LAB1. The rule defines an association between a characteristic value Vc of the first image IM1 and a predefined value defining a second label LAB2. The second label LAB2 is advantageously characteristic of the specific subclass SPE3. By characteristic value Vc of the first image IM1, we mean any value or data that is associated with, derived from or deduced from the first image or one of its attributes.The characteristic value Vc of the first image may for example be a metadata associated with said first image IM1. The predefined value defines the second label LAB2 and is obtained by association with the characteristic value Vc of the first image IM1. The second label LAB2 labels the specific subclass SPE3 which is selected in this step of the method. The step of selecting SEL3 of the specific subclass then comprises a step of assigning the predefined value to the value of the second label LAB2. The step of selecting SEL3 of a specific subclass therefore allows the generation of a second label LAB2 specifying even more the type of defect identified in the first image IM1.
[0112] According to one embodiment, the characteristic value Vc of the first image IM1 is its first label LAB1. According to this embodiment, the selected rule is characteristic of the first identified DEFI fault class and / or of the second specification class SPE2 which was previously identified. This arrangement is particularly advantageous, because it makes it possible to use a rule allowing the generation of the second label LAB2 which is relative to the type of fault which is identity. In addition, this arrangement also makes it possible to select a rule for generating the second label LAB2 according to the second specification class SPE2 which has been identified. According to a first example, a second specification class SPE2 identified by the method of the invention corresponds to a fault class of the “branch” type. A given rule is then automatically selected according to this specification class.In this case, the rule allows an "open branch" value to be automatically assigned. In this case, it is understood that the value of the second specification class can be supplemented by a rule that assigns an additional characteristic to the defect that can only be of one type in a given case and / or that cannot be deduced directly from the image. Another case is to allow the representation of a predominant value of a label among a set of possible values. This representation advantageously helps an operator in validating the characterization of the defect in a large number of cases.
[0113] Indeed, one advantage is to give an operator an additional descriptor allowing him to more simply assess the qualification of the defect. One advantage is to facilitate the qualification, discrimination or removal of a defect from a list of defects presented by the classifier.
[0114] According to a second example, a second specification class SPE2 identified by the method of the invention corresponds to a defect class of the “crack” type, the rule in this case allows automatically assigning a value of “open crack”. It is understood in this case that the value of the second specification class can be supplemented by a rule which assigns an additional characteristic to the defect. One advantage is to give an operator an additional descriptor allowing him to more simply assess the qualification of the defect or to invalidate the defect if this characteristic is not present. One advantage is to promote the qualification, discrimination or separation of a defect from a list of defects presented.
[0115] Therefore, it is possible to specify how to select the second LAB2 label based on a sub-characteristic of the defect. This arrangement allows for greater precision in the generation of the second LAB2 label.
[0116] According to one embodiment, the characteristic value Vc of the first image IM1 is generated from an image processing algorithm performed on the first image IM1. According to this embodiment, an analysis of the first image IM1 is performed to derive the characteristic value Vc. This arrangement makes it possible to define a rule for generating the second label LAB2 based on characteristics of the first image IM1. According to one example, the analysis of the image makes it possible to determine whether a dark or particularly dark area is located in a lower part of the first image IM1. This arrangement can make it possible to define whether a hole in the pipe is visible on the image IM1. This data extracted from the image makes it possible, thanks to the method of the invention, to assign a characteristic value to the image and therefore to the defect.As a result, the defect classification can be enriched since this characteristic value of the defect can be attributed to the second label LAB2 of the specification subclass SPE3. One interest is to improve the training of a learning function in particular by enriching the characterization of the defects.
[0117] In another case, a brightness analysis makes it possible to generate a characteristic value of the image relative to a degree of confidence resulting from the image capture in order to characterize the context of the defect.
[0118] According to one embodiment, the method comprises a step of receiving a data item DON1 associated with the first image IM1. The data item DON1 associated with the first image IM1 is acquired by means of a user interface 30. The data item DON1 associated with the first image IM1 is therefore a data item that is defined according to an observation or a report made by a user. The data item associated with the first image IM1 comprises for example an indication following an observation made on the first image IM1 or on another image of the same pipeline by the user. According to one example, the data item DON1 associated with the first image IM1 is a data item providing information on the material of said pipeline. This data item advantageously makes it possible to automatically rule out certain types of defects that are not compatible with a type of material of the pipeline. The data item is recorded in a memory so as to be associated with the characteristic value Vc of the first image IM1.In this way, the observation entered in the user interface enters the decision process for the allocation of the first labels LAB1 and second label LAB2. According to an example, when the user informs the fact that the pipeline does not have a coating material, the first defect class DEFI corresponding to the presence of a coating defect is not selectable during the SEL1 selection step of the first defect class DEFI.
[0119] In this example, the first data item DON1 may correspond to a characteristic value Vc of a defect descriptor. If the descriptor is encoded in the defect description, a rule may be used to exclude a defect class incompatible with the value of the descriptor. According to one example, the data item DON1 makes it possible to call upon a rule excluding a first DEFI defect class and / or a second SPE2 specification class already selected. According to this example, the first generated LAB1 label corresponding to the first DEFI defect class and / or the second SPE2 specification class excluded may be deleted. These provisions make it possible to exclude labels and classes from the classification. According to one example, the user data item DON1 is information on the material of the pipeline. This information makes it possible to exclude the first DEFI defect class corresponding to the coating defect.According to one example, if this class has already been selected, it is removed from the selection of first classes of defects. Advantageously, the first label LAB1 associated with this class is deleted. Advantageously, the collected data DON1 can allow retraining of the machine learning model of the first learning function and / or the model of the second learning function. According to one embodiment, the operator can select an automatic retraining action when adding data DON1. According to one example, the operator can choose the model to be retrained.
[0120] According to one embodiment, the characteristic value Vc is entered by a user on the user interface. According to one example, the selected rule causes a message to be displayed to the user asking them to select the second label LAB2. According to one example, the rule causes the user to select a first DEFI defect class. For example, when one of the first DEFI defect classes such as rupture, crack, assembly displacement or defective connection is selected, then a message is displayed on the user interface asking them to choose between adding one of the following two first DEFI defect classes: soil visible by default or void visible by default. Such an arrangement is particularly advantageous, because it makes it possible to prompt the user on the presence or absence of a first DEFI defect class which may be critical in the maintenance of the pipeline.Indeed, if a void is visible, it means that a hole is present in the pipeline and that maintenance must be carried out quickly. According to one example, the selected rule depends on the value of several first DEFI fault classes that have been identified. According to one example, the selected rule influences the selection of the first DEF1 fault class(es). According to one example, the first fault classes corresponding to the defective branch and the penetrating branch can only be selected in the SEL1 selection step when the first DEFI fault class corresponding to the presence of a branch has previously been selected. In other words, some first fault classes can only be selected when the first label LAB1 is characteristic of the presence of another characteristic first DEFI fault class.According to one example, the rule includes an indication not to select at least one first defect class DEF1. According to one example, a first defect class DEFI can no longer be selected when another first defect class DEFI has been selected. According to one example, the rule includes an indication not to select at least one second specification class SPE2 during the selection step SEL2.
[0121] According to one embodiment, the data entered by the user is used as labeling data during the training of the first labeling learning function FONC1 and / or during the training of the second specification learning function FONC2. This arrangement makes it possible to include in the training data which are not included in the first label LAB1 and thus allows an increase in the effectiveness of the learning.
[0122] According to one embodiment, the method comprises an automatic labeling step. According to this example, for at least one DEFI fault class, the SEL2 selection of the second specification class is performed automatically to assign a second predetermined SPE2 specification class. According to one example, when the first DEFI fault class corresponding to the presence of a branch is selected, the second SPE2 specification class corresponding to the open branch is automatically selected. This arrangement advantageously makes it possible to report the fact that 90% of the branches are open. Advantageously, a user can confirm, for example after a visual observation of the first image IM1, that this second SPE2 specification class is justified. To do this, the observer uses the user interface.
[0123] An advantage of the invention is to present to an operator different classes of defects likely to characterize at least one defect in an image. The operator can then select a class presented on an interface to validate at least one of the classes of the defect. An advantage of the invention is to present different classes of defects in a hierarchical approach, that is to say to present heterogeneous classes with different levels of specificity. This approach allows a good compromise between a very generic approach not allowing to sufficiently help an operator during the validation of the defect class and a very specific approach likely to contain errors. The invention allows a mixed approach allowing to present to an operator different labels: DEFI, LAB1, LAB2 coming from two classifiers and a rule engine.
[0124] Pipeline defect characterization system
[0125] The invention also relates to a system designed to implement the method described above. The system according to the invention comprises a pipe exploration device. According to one embodiment, the exploration device comprises at least one gripping means allowing it to be held in the hand by a user. This arrangement is advantageous when the pipe is said to be visitable, that is to say when a user can move in it. According to one embodiment, the exploration device comprises an attachment means allowing it to be attached to the user. For example, the device comprises a strap or a clip allowing the device to be attached to the user's clothing. Such means also allow the device to be attached to the user's backpack, for example. According to one embodiment, the pipe exploration device comprises an exploration robot 20.By exploration robot 20 is meant any type of device capable of moving in the pipeline. According to one example, the exploration robot comprises wheels allowing it to roll in the pipeline. According to one example, the exploration robot comprises at least one motor, preferably electric, allowing it to actuate the movement of said robot 20. The exploration device 20 comprises at least one optical sensor 22. The optical device 22 allows images to be taken of the interior of the pipeline, in particular the first image IM1 and / or the raw image IMBR.
[0126] The characterization system comprises at least one user interface 30. The user interface 30 is configured to display data sent by the exploration device 20. According to one example, the user interface is configured to display images received from an external system, for example images received from a device connected to a network, for example via the internet, to the user interface. According to one example, the data sent by the exploration device 20 are received by an external system. The external system processes this data and can implement the method according to the invention, before sending display data to the user interface 30. This display data can comprise images of the pipeline. According to one embodiment, the interface is configured to display images taken by the optical sensor 22 of the exploration device 20.According to one embodiment, the user interface 30 displays in real time the images captured by the optical sensor 22. According to one embodiment, the user interface 30 is configured to allow the exploration device 20 to be controlled in real time. In this way, the user interface 30 allows the control of the exploration robot's motor and its direction. According to one embodiment, the exploration device 20 comprises a means for orienting the optical sensor 22. The orientation means allows the orientation of the optical sensor 22 in order to position at least the field of view of the sensor in order to take the best possible images. According to one embodiment, the exploration device comprises at least one lighting means. The lighting means makes it possible to illuminate the interior of the pipe to facilitate visibility when directing the exploration device 20.The lighting means also makes it possible to illuminate the shooting area to provide a first IM1 image, a raw IMBR image with sufficient brightness for its analysis.
[0127] According to one embodiment, the exploration device 20 comprises an umbilical cable. The umbilical cable is a cable connecting the exploration device 20 to a base comprising the user interface or to the user interface 30, which are preferably located outside the pipeline. The cable advantageously serves to transmit data from the exploration device 20 to the base and vice versa. According to one embodiment, the cable also serves to transmit an electrical power supply to the exploration device 20. According to one embodiment, the connection between the user interface 30 and the exploration device 20 is carried out by a wireless connection, for example a radio connection. According to one embodiment, the exploration device 20 comprises at least one memory configured to record the images captured by the optical sensor 22.This arrangement makes it possible, for example, to take images from inside the pipe and to save the images in the memory. In this way, the analysis can be carried out later after the image has been taken, without a connection to the user interface 30. According to one embodiment, the exploration device 20 is controlled by the user by means of the user interface 30. According to one embodiment, the control information for the exploration robot 20 is sent via the cable. According to one embodiment, the control information for the exploration robot 20 is sent via the wireless connection.
[0128] According to one embodiment, the user interface 30 is configured to allow the user to enter instructions during the method according to the invention.
[0129] We will now describe the use of the system according to the invention by the user.
[0130] When carrying out an inspection of a pipeline, the user takes images of the interior of the pipeline using the optical sensor 22 of the exploration device 20, which he preferably controls remotely using the user interface. Preferably, the user has, prior to the inspection, entered into the user interface one or more pieces of information or data relating to the inspected pipeline, such as the material of the pipeline for example. When the user identifies an area of the interior of the pipeline which appears to have at least one defect, he takes an image of said portion of pipeline using the optical sensor 22. He then launches the method according to the invention to identify the defect or defects on the acquired image. According to one embodiment, the method is automatically launched following the taking of the image of the interior of the pipeline.During the process, the user may be required to enter information or make choices on the user interface 30. For example, the user may be required to confirm the first label(s) LAB1 and / or the second label(s) LAB2 that were generated during the pipeline fault characterization process.
[0131] According to one embodiment, a plurality of first LAB1 labels is generated during the method. Each first LAB1 label and / or each second LAB2 label is displayed on a graphical interface of a display of the user interface 30. The graphical interface comprises a component for validating the presence of each first LAB1 label and / or each second LAB2 label displayed. This component may for example be a dialog box or a table listing the first LAB1 labels and / or the second LAB2 labels generated. Each first LAB1 label and / or each second LAB2 label generated may be corrected or deleted by the user, preferably using an input component. This arrangement allows the user to modify or delete generated labels that are not correct. Advantageously, a report is generated which includes a list of the generated labels.According to one embodiment, the modification of the value of a first displayed label LAB1 causes the retraining of the machine learning model of the first learning function FONC1 and / or the machine learning model of the second learning function FONC2. This arrangement is particularly advantageous, since it allows the supervised learning of the learning functions to continue based on direct feedback from users. More specifically, when the performance of identifying a type of defect is low or decreases, a retraining of the machine learning model of the first learning function FONC1 and / or the machine learning model of the second learning function FONC2 can be carried out. For example, data is calculated which is significant of the number of differences between the defects identified by the method of the invention and the defects identified by the operators on the same images.When this data indicates too great a difference between the identifications by the process and the identifications carried out manually, then a retraining of the machine learning model of the first learning function FONC1 and / or of the machine learning model of the second learning function FONC2 is carried out. For example, the calculated data is compared to a characteristic performance threshold. According to one example, the calculated data is a percentage of correct identifications carried out by the process. According to one example, the characteristic performance threshold is 60%. According to this example, the process correctly identifies less than 60% of a given defect, compared to the identifications carried out manually by the user, then the model is retrained.
[0132] According to one embodiment, the modification of the first label LAB1 by an operator comprises an analysis of the number of symbols of the label LAB1 having changed, an analysis of the position of the symbol in the label having changed and the type of at least one symbol which has been modified, said analysis making it possible to generate a retraining action of at least one model of a second learning function. According to one example, the first label LAB1 comprises a sequence of symbols. The first symbols of the sequence of symbols define a characteristic code of the first DEFI fault class associated with said first label LAB1. The following symbol(s) define a characteristic code of the second specification class SPE2 associated with said first label LAB1.Analyzing which symbols have changed in the symbol sequence allows us to define, for example, that the correction action concerns the second learning function FONC2 relative to the said first label LAB1 if it is the end symbols of the first label LAB1 that have been changed by the user. In the same way, if it is the start symbols of the first label LAB1 that have been changed, the correction action concerns the first learning function FONC1.
[0133] The invention is not limited to the embodiments presented and other embodiments will become apparent to those skilled in the art.
[0134] Nomenclature:
[0135] 20: pipeline exploration device
[0136] 22: optical sensor
[0137] 30: User interface
[0138] 40: system for characterizing a surface singularity of a pipeline
[0139] GEN1: generation stage
[0140] COMP: Probability value comparison step
[0141] SEL1: step of selection of first singularity classes
[0142] SEL2: second specification class selection stage
[0143] SEL3: step of selecting a specific subclass
[0144] SEL4: rule selection step
[0145] RED: Raw image resizing step
[0146] TRAIT: intensity normalization processing step
[0147] PROB1: probability of presence of first class singularity
[0148] LAB: label
[0149] DON1: data associated with the first image
[0150] FONC1: first learning function
[0151] FONC2: second learning function
[0152] CHALLENGE: first class of default
[0153] SPE2: second specification class
[0154] SPE3: specific subclass of a second specification class
[0155] CLASS: specification classification
[0156] REGI: rule base
[0157] IM1: first image of the inside of a pipeline
[0158] IMRED: resized image
[0159] IMBR: raw image
Claims
CLAIMS 1. Computer-implemented method for characterizing a pipeline defect characterized in that it comprises the steps of: ■ Generation (GEN1) of a plurality of probabilities of presence (PROB1) of a plurality of first classes of defect (DEFI) on a first image (IM1) of the interior of a pipeline from a first trained labeling learning function (FONC1), said first learning function (FONC1) implementing a machine learning model trained from a set of images each comprising a plurality of first labels characterizing at least one defect; ■ Comparison (COMP) for each first class of default (DEFI) of the value of the probability with a threshold characteristic of each first class of default (DEFI); ■ Selection (SEL1) of each first class of default (DEFI) for which the estimated probability is greater than the threshold value associated with said class; ■ Selection (SEL2) for at least one first selected defect class (DEFI), of at least one second specification class (SPE2) from a plurality of second specification classes (SPE2), on the first image (IM1), from a second specification learning function (FONC2); and ■ Generation (GEN2) of at least one first label (LAB1) characteristic of each first class of defect (DEFI) and of each second class of specification (SPE2) selected.
2. Method according to claim 1 characterized in that a plurality of first labels (LAB1) are generated, each first label (LAB1) preferably being displayed on a display with its probability of presence (PROB1).
3. Method according to any one of the preceding claims in which the second specification learning function (FONC2) is trained, said second specification learning function (FONC2) implementing a machine learning model trained from the set of images each comprising a plurality of second labels characterizing at least one specification class (SPE2).
4. Method according to any one of claims 1 and 2 in which the second specification learning function (FONC2) selects the second specification class (SPE2) according to a predefined rule making it possible to associate said second specification class with the first class of defects.
5. Method according to any one of the preceding claims which further comprises a step of selecting (SEL3) a specific subclass (SPE3) of a second specification class (SPE2), said step of selecting (SEL3) a specific subclass (SPE3) comprising the steps of: ■ Selection (SEL4) of at least one rule within a rule base (REGI) based on the value of the first label (LAB1), each rule defining an association between a characteristic value (Vc) of said first image (IM1) and a second predefined label (LAB2) of a specific subclass (SPE3); and ■ Generation of data including the value of the first label (LAB1) and the value of the second label (LAB2).
6. Method according to the preceding claim characterized in that the characteristic value (Vc) of the first image (IM1) is its first label (LAB1).
7. Method according to claim 5 characterized in that the characteristic value (Vc) of the first image (IM1) is generated from an image processing algorithm applied to the first image (IM1).
8. Method according to claim 5 characterized in that it comprises a step of receiving a data item (DON1) associated with the first image (IM1), said data item being acquired by means of a user interface (30), said data item being recorded in a memory so as to be associated with the characteristic value (Vc) of the first image (IM1), said data item (DON1) being compared with a plurality of attribute values associated with each first label (LAB1), said comparison resulting in the exclusion of at least one first label (LAB1) from the list of first labels generated (LAB1) when the value of an attribute of said excluded first label is greater than or less than a given threshold.
9. Method according to the preceding claim in which the data (DON1) associated with the first image (IM1) is modeled in at least one discrete symbol in a natural language and standardized within a third label (LAB3) attached to the first label (LAB1) and / or to the second label (LAB2) comprising a plurality of discrete symbols in a natural language, said modeling and said standardization allowing relearning of the first trained labeling learning function (FONC1) and / or of the second trained specification learning function (FONC2).
10. Method according to any one of the preceding claims, characterized in that a plurality of first labels (LAB1) is generated, each first label (LAB1) being displayed on a graphical interface of a display, the graphical interface comprising a component for validating the presence of each first label (LAB1) displayed by an operator and a component for entering a new first label (LAB1) making it possible to correct the value of a first label displayed, significant data of the number of differences between the defects identified by the method of the invention and the defects identified by the operators on the same images being calculated.
11. Method according to the preceding claim in which the significant data exceeds the number of differences between the defects identified by the method of the invention and the defects identified by the operators, of a characteristic performance threshold, causes the retraining of the machine learning model of the first learning function and / or the machine learning model of the second learning function.
12. Method according to one of claims 10 and 11 characterized in that the modification of the first label (LAB1) by an operator comprises an analysis of the number of symbols of the label (LAB1) having changed, an analysis of the position of the symbol in the label (LAB1) having changed and the type of the at least one symbol which has been modified, said analysis making it possible to generate a retraining action of at least one model of a second learning function.
13. Method according to any one of the preceding claims which comprises, before the generation step (GEN1), the steps of: ■ Reception (REC) of at least one raw image (IMBR) of the interior of a pipeline; ■ Resizing (RED) the image to obtain a resized image (IMRED); ■ Processing (TRAIT) of normalizing the hue, saturation and / or brightness of the resized image (IMRED) to obtain the first image (IM1).
14. Method according to any one of the preceding claims in which the first trained labeling learning function (FONC1) and / or the second trained classification learning function (FONC2) is trained from a trained convolutional neural network comprising a plurality of layers, at least one of the layers of which is re-trained from the set of images each comprising a plurality of first labels (LAB1) characterizing at least one defect.
15. Method according to the preceding claim in which the pre-existing convolutional neural network used for training the first trained labeling learning function (FONC1) and / or for the second trained specification learning function (FONC2) is a network of the MobileNet, ResNet, EfficientNet, TRansformeur or DenseNet type.
16. Method according to one of the preceding claims in which the set of images comprising the plurality of first labels (LAB1) is increased by adding a second set of images resulting from the geometric and / or photometric transformation of at least part of the set of images comprising the plurality of first labels (LAB1).
17. Method according to any one of the preceding claims in which a loss function quantifying a deviation between predictions of the first learning function and the first labels is a function of one of the following types: ■ Binary cross entropy, ■ Weighted cross-entropy, ■ soft F1 -score or dice loss, ■ macro soft F1 -score, or ■ double macro soft F1 -score.
18. Method according to any one of the preceding claims which further comprises a step of displaying on a user interface (30) each first label (LAB1).
19. System for characterizing a pipeline defect (40) characterized in that it comprises: ■ A pipeline exploration device (20) comprising at least one optical sensor (22); ■ A user interface (30) configured to display in real time a data stream from the optical sensor (22) of the pipeline exploration device (20), ■ The system (10) being configured to implement the method according to any one of the preceding claims.
Citation Information
Patent Citations
Sewage pipeline defect image recognition method and device, storage medium and electronic equipment
CN111222551A
System and method for manufacturing quality control using automated visual inspection
WO2022160040A1
