Method, system, and trained model for image optimisation for endoscopes

EP4452039A1Pending Publication Date: 2024-10-30KARL STORZ SE & CO KG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
EP2022838785
Authority / Receiving Office
EP · EP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-12-23
Filing Date
2022-12-15
Publication Date
2024-10-30

AI Technical Summary

Technical Problem

Endoscopes often face vision disturbances due to contamination, such as blood spatter, tissue particles, or steam, which can impair image quality and require extracorporeal cleaning, disrupting medical procedures and increasing risks during minimally invasive surgeries.

Method used

A method and system for image analysis and optimization using a trained model that automatically detects contamination and issues control instructions for image optimization, including activation of a cleaning module to improve visibility conditions, utilizing a self-learning module based on machine learning and deep learning to classify image structures and adjust parameters for optimal cleaning.

Benefits of technology

The system ensures continuous and efficient image optimization, minimizing interruptions and improving safety by automatically detecting and correcting image disturbances, thereby maintaining optimal visibility during endoscopic procedures without the need for manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 1.1
    Figure 1.1
Patent Text Reader

Abstract

The invention relates to a method and control system for image analysis and image optimisation of at least one image acquired at the distal end of an endoscope, the method comprising the following steps: acquiring image data (310) by means of an image acquisition device (115) of an endoscope; receiving the image data using a control unit (120); pre-analysing (313) at least one subset of the image data (310) of one or more successive images using a control unit (120) in order to determine at least one image structure; determining a quality value by means of a training-data-based, preferably self-learning, module (320), by comparing the at least one determined image structure with image structures of a reference database which are stored in a memory unit (122); and, on the basis of the determined quality value, manually or automatically issuing control instructions from the control unit (120) to a unit for activating an image optimisation. The invention also relates to a computer programme product and to a trained model for carrying out the methods according to the invention.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Method, system and trained model for image optimization for endoscopes

[0002] Description

[0003] The invention relates to a method for image analysis and image optimization, a control system for image optimization, a trained model and a computer program product for carrying out the said method.

[0004] Technological background

[0005] Endoscopes are well-known medical devices for examining cavities within the body or technical cavities. A commonly used type of endoscope has an optical system at the distal, i.e., body-facing, end of the endoscope and is designed to capture images and transmit them to the endoscope operator. Optionally, additional functions can be provided via a working channel.

[0006] Endoscopes are commonly used in minimally invasive surgical procedures. One example is laparoscopy. Here, a clear view of the field under examination is crucial for the endoscope operator to perform a diagnosis, manipulation, or surgery safely and quickly. It is important to be able to reliably distinguish between different tissue structures within the body cavity in order to make a correct diagnosis or avoid complications. Optimal visibility is essential for this.

[0007] During interventions in the human or animal body, the field of view of an endoscope is very small and even the smallest contamination, such as blood spatter, tissue particles or deposits of steam, smoke or grease can severely impair the operator's view. For example, if high-frequency surgery is assisted, electrical energy is used to thermally induced changes in tissue cells with the aim of stopping bleeding or sealing tissue. In this type of medical procedure, tissue particles can be created during RF activation, which severely impair the image for the endoscope operator. If the operator's view is impaired in this way due to unintentional tissue contact or other contamination, the endoscope must be cleaned extracorporeally.

[0008] This extracorporeal cleaning of the endoscope at its distal end is sometimes undesirable, especially if complications arise that require the endoscope operator to interrupt their medical or diagnostic procedure. Furthermore, extracorporeal cleaning also requires a certain amount of time, which must be taken into account in the overall duration of an operation. For example, if complications arise from the perforation of an artery, the bleeding must be stopped as quickly as possible, while ensuring excellent visibility for the endoscope user. If bleeding cannot be stopped quickly, other surgical methods that require open surgery may be necessary. This should be avoided at all costs to keep the intervention as minimal as possible for the patient.

[0009] A clear and precise visualization of the object field to be observed is of great importance in endoscopic procedures. The operator who follows the visualization on a monitor can be negatively influenced by suboptimal monitor settings or environmental parameters such as room lighting. If the operator wears glasses, this cannot usually be taken into account. However, if the view is obstructed due to the problems mentioned, the endoscope operator may have to interrupt the procedure. Unnecessary interruptions and distractions during the endoscopic procedure can lead to incorrect judgment or endanger the health of a patient on whom the endoscope has been inserted. Any disruption to the view also prolongs the entire endoscopic procedure, thus increasing costs and reducing efficiency.

[0010] The object of the invention is to overcome the aforementioned problems and to meet the needs of an operator of endoscopic procedures, wherein a suitable method for image analysis and image optimization, preferably with the aid of an endoscope cleaning module, is to be used. The operator should be disrupted as little as possible, be supported optimally, and an automatic image optimization method should be provided. Since contamination can no longer perform image acquisition with the required quality even when using a powerful image acquisition device, there is initially a need for the automatic detection of dirt or other interference factors. In addition, there is a need for methods to eliminate the detected interference and / or improve the environmental parameters.There is also a need to provide a system and a computer program product that uses automation processes to increase safety for the user and patient during an endoscopic procedure.

[0011] Description of the invention

[0012] Based on the invention, the above-mentioned objects are to be achieved better than with conventional methods, particularly for human or veterinary medical applications. The image analysis methods and systems according to the invention can be used to examine both cavities within a body and technical cavities such as pipelines or the like. The aim is to optimize the visibility and quality for the endoscope operator.

[0013] These objects are achieved with a method for image analysis and image optimization, a control system, a computer program product, and a trained model according to the features of the independent and subordinate claims. Preferred embodiments of the invention are set out in the subclaims following the independent claims.

[0014] According to a first aspect of the invention, there is provided a method for image analysis and image optimization of at least one image acquired at the distal end of an endoscope, comprising the following steps:

[0015] - capturing image data by means of an image capture device of an endoscope; receiving the image data by a control unit,

[0016] - Pre-analysis of at least a subset of the image data of one or more subsequent images by a control unit to determine at least one image structure;

[0017] - Determining a quality value by means of a training data-based, preferably self-learning, module by comparing the at least one determined image structure with image structures of a reference database stored in a storage unit; and - based on the determined quality value, manually or automatically outputting control instructions from a control unit to a unit for activating image optimization.

[0018] At least the image analysis with the determination of the quality value, and optionally also the pre-analysis, can run automatically in the training data-based or training data-based self-learning module. When activated after manual approval, image optimization using the aforementioned method can ensure visibility conditions and visual quality during a surgery, at least partially automatically. If the process is configured completely automatically without manual intervention, an operator no longer has to decide whether the conditions for activating a unit, such as an endoscope, for image optimization are met. By determining the quality value, automated image optimization can be provided quickly and efficiently, and interruptions can be avoided.

[0019] The computer-implemented method comprises, as a first step, the acquisition of image data using an image acquisition device of an endoscope. The image acquisition device can comprise not only medical endoscopes but also endoscopes that are used in other situations to examine cavities that cannot be seen, such as in the trades in pipes and shafts. Furthermore, instead of a mono camera, a stereo endoscope that has two optical systems can be provided as the image acquisition device. The data can be received from the image acquisition device by a control unit wirelessly, for example via radio or via a cable. The control unit can be provided either locally in the endoscope or camera head, or decentrally in a network. The information or image data can be received or transmitted via the Internet or another network, such as a surgical network or hospital network, or remotely, such as via a cloud-based system.The various method steps of the computer-implemented method according to the invention can be carried out at different locations, such as the endoscope itself, in a computer, and / or on decentralized servers.

[0020] The control unit can contain elements of a computer such as one or more microprocessors or graphics processors. A graphics processor (GPU) can, for example, display 2D or, when a stereo endoscope is provided, 3D images in real time to a user on a screen or via glasses. Furthermore, the control unit advantageously has a storage unit or is communicatively connected to a storage unit. The storage unit, which can be provided locally in the control unit or decentrally, e.g., via servers or networks, has at least one database. A database comprises at least one reference database with image data including image structures.

[0021] By pre-analyzing at least a subset of the image data, such as an image section, an image structure can be identified. This pre-analysis can advantageously include object recognition or actual data acquisition. Preferably, the image center can be used as a subset of the image data of an image. If data is already present in memory or is provided to a database by an external data source, a comparison can be made with image data from the database.

[0022] The next step of determining the quality value is advantageously performed at least partially automatically using a training-based self-learning module. Using training data, a quality value can be determined by comparing the image structure determined in the preliminary analysis with a history of image structures from the reference database. This allows the data to be classified based on the quality value.

[0023] The self-learning module can be based on machine learning and improve itself through training data and experience. In machine learning, data reduction can be performed manually by a human performing a process called feature extraction so that only a subset of the available features is used for machine learning (pre-classification or supervised learning).

[0024] In a preferred embodiment, the self-learning module can use a so-called deep learning model, which can learn completely independently without human intervention and preferably uses "deep data" as input and operates with a neural network. With deep learning, human intervention is no longer necessary, and the neural network takes over feature extraction or pre-classification, enabling subsequent quality-based classification.

[0025] Based on the determined quality value, control instructions can be issued manually or automatically from a control unit to a unit of the endoscope to activate image optimization.

[0026] According to a preferred embodiment, a further database, namely a so-called parameter database, can be provided for control instructions for further units such as a camera, light source, insufflator, or a cleaning module. This database comprises parameters adapted depending on the unit to be controlled. Possible parameters can be, for example, an emission spectrum or intensity for a light source, insufflation pressure, humidity content, or gas exchange parameters for an insufflator, or cleaning parameters for a cleaning module. The parameters can also be adapted using the self-learning module and can optionally be based on deep learning in conjunction with a stochastic approximation algorithm. In this way, an optimal cleaning result can advantageously be achieved, and the surgeon's work is no longer impaired by contamination or other automatically detectable factors.

[0027] According to a preferred embodiment, the unit that can be activated for image optimization is a unit of the endoscope, wherein said unit is preferably a cleaning module that is designed to clean at least one distal window by means of at least one fluid.

[0028] The activatable cleaning module can be used to manually or automatically release or control a defined purge quantity or volume of gas or liquid with a predeterminable purge pressure for at least one distal window. If, for example, critical contamination has been detected by the quality value within a predetermined number of seconds (e.g., 2 or 3 s), the decision to clean can be made automatically and the cleaning module can be informed to open a fluid valve for a predetermined volume of gas or liquid (e.g., carbon dioxide or sodium chloride). After activation, the control instruction to abort the process can also be given automatically, i.e., to close the fluid valve. A closing control signal prevents the operator from activating the cleaning activation for longer than necessary.

[0029] According to a preferred embodiment, the quality value depends on the detected brightness of the image and / or contamination of the at least one distal window, wherein in the step of determining the quality value by means of the self-learning module, a classification into contamination probabilities and / or degree of contamination takes place.

[0030] Using this classification, any image containing critical contamination can be classified. The classification history is saved in the memory unit and is available for further learning. The training methods of the self-learning module depend on the selected model to be trained or trained and the input data. A subset or the entirety of the image data of an endoscopic image, which is usually present as a two- or three-dimensional matrix of pixels, serves as the input or input layer of the model of the self-learning module. Three-dimensional images can be provided by stereoscopes, e.g., 3D endoscopes with two CCD cameras at the distal end. A stereo measurement system can also provide information as input data for the model, including whether and which of the two distal windows is contaminated.The output or output layer of the trained model is preferably a probability of contamination.

[0031] According to a preferred embodiment, the self-learning module comprises a model with a neural network, wherein the input data are the image data acquired by the image capture device, which are extractable as individual images, pixels, and / or image sections; and wherein the output data comprises the probability of contamination or blindness of the image capture device.

[0032] Pre-classification and classification take place between input and output. The self-learning module has at least one learning unit, which is designed as a model to be trained at the beginning of the process. The model can be based on the technology field of artificial intelligence, in particular machine learning, or preferably on an artificial neural network. A preferred embodiment of a neural network is a convolutional neural network (CNN), which can optimally perform image classification. Basically, the system architecture of a classic CNN consists of one or more convolutional layers, followed by a pooling layer that discards superfluous information. This unit can, in principle, be repeated any number of times. With a high number of repetitions, it is referred to as "deep convolutional neural networks," which fall into the field of deep learning.Other forms of machine learning or deep learning models can also be used as the system architecture of the self-learning and training data-based module, as long as they are suitable for performing image classification based on endoscope images with fast calculation speed and reliably, ie with low error rates of, for example, less than 3% and a true-positive rate of at least 97%.

[0033] In the example of a binary classifier, where the classification algorithms divide the input data into only two possible classes, the training-based models used can, in some cases, assign an analyzed image to an incorrect class, with a true positive rate or sensitivity of at least 97% and preferably 98%. The true positive rate indicates the probability that a contamination was actually detected.

[0034] According to a preferred embodiment, the training data comprises image structures stored in a storage unit and / or a collection of features used to train the self-learning module, wherein a trained model of the self-learning module is trained to classify the image data into the following pollution-dependent database classes or categories:

[0035] 1. unpolluted images,

[0036] 2. dirty images that can be cleaned by a cleaning module; and

[0037] 3. Contaminated images or images containing license plates that can be optimized by modules other than the cleaning module. In addition to recognized image structures, license plates can also be used for classification. Preferably, a distinction is made between at least two categories or database classes, depending on the level of contamination (example of a binary classifier: Class 1 (not contaminated) and Class 2 (contaminated)). Images classified as contaminated can be cleaned by a cleaning module or by other modules such as an insufflator for removing smoke. Furthermore, the contamination can be divided into further categories or classes depending on the degree or type of contamination, as follows: a) slightly contaminated b) heavily contaminated c) very heavily contaminated d) contaminated with blood e) contaminated with grease

[0038] Using fables and / or labels, it is possible to control the task with which the model of the self-learning module is trained. Using the provided training data (e.g., images of objects to be examined, such as tissue structures with or without contamination, smoke, or condensate) and associated fables (the category of contamination or image degradation), a model such as an artificial neural network can learn accordingly.

[0039] According to a preferred embodiment, the self-learning module is based on machine learning, with one or more experts carrying out a pre-classification and the subsequent quality-value-dependent classification being carried out by a neural network. The classification of digital images and the assessment of the quality of a partial image or of the entire image represents a technical application of machine learning. The classification algorithms used also serve to support the technical purpose of image optimization. In addition, algorithms for the model of the self-learning module derived from the training data can be checked and corrected by at least one expert. In this way, an additional assessment can optionally be used during the pre-classification by at least one expert for monitoring purposes. For this purpose, a single expert or a team of experts can use raw data orLabel training images such as surgical videos and operation images via a suitable interface such as a user interface. ImageNet, for example, can be used to label a database of endoscope images. The endoscope images can be labeled, for example, via a web service, with a corresponding web labeling tool provided to all involved employees. The endoscope image experts thus provide labels for training the model of the self-learning module, which indicate which classification or category the respective training image falls into. Finally, experts can override the model, for example, during the training or learning phase, in order to make corrections at an early stage, particularly in an open network.

[0040] It is understood that the term "open neural network" in the context of this disclosure defines an artificial intelligence network in which a third party, such as an expert, corrects the learning or training process as necessary, resulting in supervised machine learning. For example, if the training data consists of pairs of input and output data, an external expert can provide the neural network with the correct output for each input, thus minimizing potential errors and deviations during training.

[0041] In contrast, the term "closed neural network" in this disclosure refers to a neural network that learns without supervision ("unsupervised learning"). In this case, corrections are made automatically, e.g., input data is divided into classes without external influence.

[0042] According to a preferred embodiment, the self-learning module has, as the model to be trained or trained, a model with a neural network based on machine learning or deep learning, wherein the neural network is selected from the group comprising: an open neural network, a closed neural network, a single-layer neural network, a multi-layer feedforward network with hidden layers, a feedback neural network, and combinations thereof. The aforementioned neural networks are characterized by their learning ability, whereby they can learn a task such as classification based on training data. Neural networks can find image structures in image data and thus recognize patterns.Using artificial neural networks, preferably by classifying image data, essential features can be extracted and functional relationships between image structures can be approximated so that a quality value can be determined.

[0043] Open or closed artificial intelligence networks can be used, employing both supervised and unsupervised machine learning methods. Alternatively, a hybrid of these methods, a so-called "semi-supervised" learning approach, can be used to minimize the costs of expert training while simultaneously obtaining smaller data sets compared to unsupervised training of the self-learning module.

[0044] One option for monitoring by experts or users is to assign a quality value to surgical images or other suitable data sets using labels, for example, depending on the level of image quality impairment. Such experts, users, or externally commissioned labeling teams have experience in assessing image data quality and can draw on the necessary expert knowledge. The generated labels can be used as training data for the self-learning module and thus for neural networks. Depending on the rate of labeled data, the learning process is either supervised or semi-supervised.

[0045] According to a preferred embodiment, the at least one image structure represents at least one object to be examined, which is depicted in the acquired image; wherein a contamination, deterioration, or smoke detection is based on a change in the image structure.

[0046] In the preliminary analysis, object recognition can be achieved by comparing image structures. This allows objects, organs, tissue structures to be examined, or other structures to be identified. In a subsequent analysis step, classification is performed based on machine learning. The trained model can detect when the detected image structure has changed, for example, due to smoke, condensate, contamination, or other disturbing factors. Based on the change, a smoking event can then be detected, or a degree of contamination can be classified using the calculated quality value.

[0047] According to a preferred embodiment, in the method step of pre-analysis, a captured image can be subdivided into image sections and / or a captured image can be subdivided into individual regions based on pixels on the basis of analysis values, wherein the quality value can be determined for each of the image sections and / or image regions.

[0048] According to a preferred embodiment, the cleaning module is designed to activate a regionally targeted cleaning depending on a definable weighting of regions and / or depending on a permissible percentage of contamination, wherein preferably the region of the distal window that can be assigned to the image center can be cleaned in a targeted manner.

[0049] Based on the analysis of preferred regions or image sections, cleaning can be targeted specifically for these regions / sections, thus optimizing cleaning efficiency. The image center is considered the preferred region for cleaning, as this is where the object to be examined is usually located, and the user therefore has a particular interest in providing an optimal image. If a stereo endoscope is available, one or two distal windows and thus the associated image acquisition devices can be cleaned, depending on the level of contamination.

[0050] According to a preferred embodiment, after activation of the cleaning module, a pulse of a fluid jet with a duration of a few milliseconds up to a maximum of 1000 ms and under high pressure (p) of a maximum of 3 bar is directed onto at least a part of the distal window of the image capture device and / or onto one or more distal illumination windows of light sources for cleaning.

[0051] In this way, cleaning can be performed specifically for specific parts or the entire at least one optical window of an image capture device. Advantageously, the light source or illumination device is also cleaned to extend its service life and optimize the light source's light output.

[0052] One advantage of the combination of high pressure and short fluid pulses is that the endoscope user is minimally disturbed, as the field of view is only briefly obscured by the cleaning fluid, similar to a windshield wiper. Furthermore, the control instruction or a corresponding signal for cleaning can be advantageously communicated to another unit. For example, an insufflator can be informed that cleaning has been activated so that the insufflator can adapt to the associated pressure change.

[0053] According to a preferred embodiment, the unit activatable for image optimization is selected from the group comprising: one or more light sources of the endoscope for changing the illuminance; at least one filter for optimizing contrast; an autofocus system for adjusting the sharpness of the image; a color spectrum changing unit; end lens heating; a monitor; user-dependent and / or endoscope- or fiber-optic-dependent adaptable software; operating room lighting; and combinations thereof.

[0054] In this way, the image can also be advantageously optimized by other surgical units than one or more cleaning modules. For example, by changing the color spectrum, wavelength ranges for heating can be controlled to reduce or remove condensation detected by the self-learning module during image classification. If an autofocus system is activated as a unit, the sharpness of the image can be adjusted using optimized parameters as output from the trained model.

[0055] Even factors that do not directly affect the object being examined by the endoscope, such as the operating room lighting, can be used to optimize the image. For example, the monitor contrast can be improved by dimming the interference from the room lighting accordingly. According to a preferred embodiment, the determination of a quality value includes a blindness value due to smoke or condensation, with the control unit comparing detected characteristics for smoke or condensation with characteristics from a collection of characteristics stored in the reference database.

[0056] The self-learning module is thus designed to determine visibility impairment caused by smoke or condensation based on a so-called blindness value. In this way, interference caused by the visibility impairment can be automatically detected and eliminated or at least reduced by activating a unit such as a heating unit or a cleaning module. This can improve the quality of the image information contained in the captured image.

[0057] According to a preferred embodiment, the method further comprises a control instruction for activating a smoke evacuator and / or an insufflator or a rinsing pump to optimize the image by smoke evacuation; and / or to optimize the fluid management in the body cavity to be examined with the endoscope by means of the insufflator or the rinsing pump depending on fluid flows during smoke evacuation or cleaning.

[0058] According to a preferred embodiment, the intracorporeal pressure in the body cavity is measured by a pressure sensor and the control unit controls the intracorporeal pressure in an event- and / or time-controlled manner at least during the duration of a cleaning by means of a control of the at least one pump or a control of a pressure regulator such that the intracorporeal pressure does not exceed a predetermined maximum limit value.

[0059] In this way, safety can be increased for the person being examined during an endoscopic procedure.

[0060] According to a preferred embodiment, the cleaning module is designed to adapt the type of cleaning by changing the cleaning parameters depending on the database classes and / or a degree of contamination, wherein one or more cleaning parameters are selected from a group comprising: type of fluid, fluid volume, fluid volumes, fluid velocity, pressure, pulse duration, number of pulses, pulse-pause ratio and / or total cleaning duration.

[0061] For example, cleaning is performed using a cleaning module by applying high-pressure fluid jets to the surface to be cleaned, with the aim of at least reducing the substance or vapor to be removed and adhering to the surface of at least one distal end window of the endoscope. Suitable fluids are preferably water, sodium chloride, or another physiological fluid. A gaseous fluid is also selected to be physiologically safe and biocompatible and can be, for example, carbon dioxide. Parameters such as fluid volume, velocity, and cleaning duration can advantageously be adapted to the degree of contamination determined by the self-learning module.

[0062] Limiting the cleaning pulse duration to a few milliseconds, for example a maximum of 2000 ms, or setting a pulse-pause ratio has the advantage that the endoscope operator does not activate the cleaning function for longer than necessary. This means that not as much fluid collects in the body cavity, such as the pneumoperitoneum. By reducing the fluid, less fluid needs to be suctioned out of the body cavity. By limiting the cleaning duration, the cleaning time and the cleaning quantity or amount of fluid can be efficiently automated and coordinated. If the self-learning module takes full control, e.g. in a closed neural network, the user no longer has to decide whether and for how long to activate the fluid cleaning function and can concentrate fully on their actual task.This increases the safety of the patient being treated or diagnosed with the endoscopic procedure.

[0063] Cleaning parameter changes or adjustments can be automated using machine learning or a deep learning model of the self-learning module. For example, parameter adjustment is possible using stochastic approximation algorithms (SA).

[0064] According to a preferred embodiment, the self-learning module comprises a cleaning control algorithm based on an image analysis history, which checks the cleaning effectiveness of previous cycles in order to select cleaning parameters adapted to the history, preferably based on stochastic approximation algorithms, in order to achieve the highest probability of an image with sufficiently good image quality.

[0065] According to a preferred embodiment, the cleaning parameters are adjusted using a deep learning model of the self-learning module or based on a gradual increase or by means of maximum settings.

[0066] According to a preferred embodiment, the self-learning module for building the reference database receives training data of image structures of characteristic images of objects to be examined, preferably organs or tissue structures, and / or of smoke via an input interface automatically or by an input via a user.

[0067] The training data can be received via a cloud-based system, for example. If multiple hospitals are networked, current data sets can be uploaded to the reference database continuously or discontinuously.

[0068] According to a preferred embodiment of the method, the following initialization process steps take place before or during the acquisition of image data:

[0069] -Providing at least one further database with technical data of usable image capture devices and / or with technical data of cleaning modules;

[0070] - Comparing the provided image capture device with the technical data and recognizing the provided image capture device and, depending on the recognized image capture device, transmitting stored cleaning parameters to the cleaning module for cleaning activation.

[0071] With the help of an additional database that serves as a parameter reference, the user can flexibly select between different endoscopes and cleaning modules. Automatic recognition ensures that the parameters stored in the parameter database are automatically called up when the cleaning cycle is activated. The process also includes the following steps:

[0072] - Starting a recognition routine to recognize structures of a body cavity or a technical cavity, preferably an area or object to be examined, based on the image data, and continuing the procedure based on a positive result of the recognition routine or terminating the procedure based on a negative result of the recognition routine.

[0073] If the procedure is aborted, the connections to the control unit and / or the power supply should be checked in order to then restart the detection routine.

[0074] In a preferred embodiment, the method comprises a monitoring routine with the following method steps:

[0075] -After cleaning using the cleaning module, the image data is analyzed by a control unit.

[0076] -Compare the image data with stored parameters for a positive cleaning result.

[0077] - Depending on the cleaning result, cancel cleaning or repeat cleaning.

[0078] If the cleaning result is still insufficient and optimal image quality is not achieved, another fluid pulse is automatically activated for cleaning and / or drying until the cleaning result is positive or meets the target values. In this way, it is possible to monitor whether optimal image quality (positive cleaning result) has been achieved. When repeating the cleaning process, the cleaning parameters can be adjusted by reducing the cleaning time or fluid volume if the degree of contamination is lower. This adjustable cleaning process requires a smaller amount of gas or fluid to be flushed, and the required cleaning flush volume can be reduced to a minimum, preventing unnecessary amounts of fluid from entering the body cavity. In a preferred embodiment, the method further comprises the following method steps:

[0079] Adaptation of cleaning to the degree of image deterioration: in the case of severe image deterioration, cleaning with liquid is activated, and defined cleaning parameters are provided depending on the provided endoscope. Furthermore, in the case of slight image deterioration or a sufficient probability of image improvement after liquid cleaning, cleaning with gas can be activated, and defined cleaning parameters for drying are provided depending on the provided endoscope.

[0080] If heavy contamination is detected, liquid cleaning is preferred, whereas in case of light contamination or fogging of the optical window, activating gas cleaning or gas drying may be sufficient.

[0081] According to a further aspect, a control system for image optimization of at least one image acquired at the distal end of an endoscope is provided, wherein the system comprises an image acquisition device, a control unit with a self-learning module in communication with the image acquisition device for receiving the image data, and a storage unit. The self-learning module is designed to determine at least one quality value based on training data by comparing at least one specific image structure with image structures of a reference database stored in the storage unit. Furthermore, the control unit is designed to automatically output control instructions to a unit of the endoscope or an external unit for activating image optimization based on the determined quality value.

[0082] Furthermore, the control system can carry out one or more method steps of the image optimization method described above.

[0083] Furthermore, a computer program product is provided, comprising instructions which, when executed by a computer, cause the computer to perform the steps of one of the methods described above. Furthermore, a computer-readable medium is provided on which said computer program is stored.

[0084] Furthermore, a trained model is provided which is trained with training data, and wherein the trained model is designed to perform the steps of at least one of the methods described above.

[0085] The training data comprises input data, preferably stored in a memory unit, and includes image data, optionally image structures, and / or a collection of features used to train the model. The trained model of the self-learning module is preferably trained to classify the image data into the following pollution-dependent database classes or categories:

[0086] 1. unpolluted images,

[0087] 2. dirty images that can be cleaned by a cleaning module; and

[0088] 3. dirty or license plate-marked images that can be optimized by modules other than the cleaning module.

[0089] With the help of machine-trained database classes or categories, a trained model can reliably and reproducibly classify current image data of an examined object. The trained model can detect when a recognized image structure has changed, for example, due to smoke, condensate, contamination, or other interfering factors. A machine-trained model is not dependent on subjective user assessments. Based on the detected change, control instructions can be issued manually or automatically from a control unit to a unit to activate an image optimization. Activation of an image optimization can ensure visibility conditions and visual quality during an operation, at least partially automatically.

[0090] Short character description

[0091] The invention, as well as further advantageous embodiments and developments thereof, are described and explained in more detail below with reference to the examples shown in the drawings. The drawings are for illustrative purposes only and are not to scale. Terms such as those used above are not to be understood as limiting. The features shown in the following description and the drawings can be used individually or in any combination according to the invention.

[0092] Figure 1a is a perspective view of a distal end of an endoscope with a cleaning device according to the invention;

[0093] Fig. 1b shows an exploded view and a detailed view of Figure 1a, showing the nozzle and two fluid channels of the cleaning module;

[0094] Figure 2 shows another embodiment of a distal end of an endoscope with a local control unit;

[0095] Fig. 3 shows schematically an embodiment with a control unit and units in communication therewith for carrying out the method according to the invention;

[0096] Fig. 4 shows schematically the data processing;

[0097] Fig. 5 shows a flowchart of a cleaning method according to the invention with initialization routine;

[0098] Fig. 6 shows a flow diagram of an automated process sequence with automated analysis steps and cleaning;

[0099] Fig. 7 shows a schematic flow diagram of an automated process for adjusting the cleaning parameters for a liquid fluid or a gaseous fluid;

[0100] Fig. 8 shows a flowchart for schematic representation with an example of a classification in combination with a monitoring routine; and

[0101] Fig. 9 shows a further schematic flow diagram of the method according to the invention.

[0102] Detailed character description

[0103] Figure 1a is a perspective view of a distal end of an endoscope with a distal window HO, wherein Figure 1b shows a detailed exploded view of Figure 1a. The embodiment according to Figures 1a and 1b has a cleaning module 130 with a nozzle 140. The optical window 110 of an image capture device 115, such as an endoscope, is arranged above the cleaning module 130 in a common shaft 150. The components shown represent a modular system 100, wherein the cleaning module 130 can be detachably or integrally connected to the other components and / or the image capture device.

[0104] Figure 1b shows that the cleaning module 130 has two fluid channels 131, 132. In this way, cleaning fluids such as a liquid and a gas can be transported separately to the optical window 110. Water, saline solution, or other physiological solutions can be used as the liquid. Air or carbon dioxide are often used as gases. The fluid channels are connected to the respective external sources of the fluids.

[0105] To avoid mixing of two different fluids, in this embodiment a two-channel nozzle is advantageously used as nozzle 140, wherein the inlets and the spray channels run separately up to the nozzle outlet. The fluid channels 131, 132 can be activated separately and independently of one another, or simultaneously. Heavy contamination is generally better removed with the help of liquids, while light contamination or condensate on the optical window can be removed using gas. Alternatively, the cleaning module 130 can be designed with a single-channel nozzle in combination with two supply channels (not shown) or with a single-channel nozzle in combination with only one supply channel (not shown), which then intermittently supplies various cleaning fluids.

[0106] Figure 2 shows a schematic representation of another embodiment of a system 100 for optimizing an image captured through an optical window 110 at a distal end of an endoscope by means of an image capture device 115. The system includes a control unit 120, which can be provided locally as a camera control unit 116 (CCU).

[0107] Furthermore, a storage unit 122 can be provided, which in this embodiment is also arranged locally. Optionally, the control unit 120 and the storage unit 122 can not be arranged locally at the distal end of the endoscope, but can be provided via cable or wirelessly outside the endoscope. The local or external storage unit 122, which can store a variety of image data already acquired by this image capture device 115 (see reference numeral 310 in Fig. 2) or by other image sensors, such as those used in stereo endoscopes (not shown), can be transmitted to the control unit 120 for further processing by at least one processor 121.

[0108] The processor 121 may comprise one or more microprocessors or graphics processors and may be used for image analysis 124 and optics recognition 123. The optics recognition 123 may be used as an initialization routine to recognize the connected image capture device 115 and, depending on the recognized

[0109] Image capture device 115 stored cleaning parameters 128 to the

[0110] Cleaning module 130 for cleaning control or activation. Cleaning parameters 128 such as fluid volume V, pressure p, and pulse or cleaning duration t are stored in memory 122 for cleaning module 130. Cleaning parameters 128 can include additional parameters such as pulse count, pulse duration t, total cleaning duration t, pulse-pause ratio, type of fluid, fluid volume V, fluid volumes (liquid or gas quantity), and / or fluid velocity.

[0111] With the aid of the cleaning parameters 128, the pressure p and the pulse duration t of a fluid pulse or a plurality of pulses in the cleaning module 130 can preferably be optimally controlled. In particular, very short fluid pulses with a duration in the range of only 200-1000 ms can only be reliably implemented with the aid of an automated control system. This allows the system to be controlled much more precisely than by manual activation and deactivation by a user. In Figure 2, as in Figure 1, an embodiment of a cleaning module 130 with two separate fluid channels 131, 132 can be used. Other cleaning modules 130, such as those with only one fluid channel 131, which can convey both liquid and gas in one channel to the cleaning nozzle 140, can also be connected to and controlled by the control unit 121 and the system.

[0112] The geometry of the nozzle 140 can be configured such that it is positioned at a predetermined distance relative to the optical window 110 and / or to at least one other window for the illumination devices 111 and 112, such that the fluid jet is directed at least over the entire outer geometry of the one optical window 110 or of at least two windows (not shown). This is schematically indicated by the dashed trapezoidal surface. In a further preferred embodiment, the cleaning module 130 and the nozzle 140 are designed such that the side illumination devices 111 and 112 can also be efficiently cleaned (not shown).

[0113] Figure 3 shows a schematic representation of another embodiment of a system and method for optimizing an image or image data 310 captured by an image capture device 115 at a distal end of an endoscope using at least one suitable image sensor or at least one camera. Image data 310 of at least one extracted individual image can be input to the control unit via the image capture device 115. Further inputs 300 or input signals are possible and can preferably be input by a user via an interface 360 ​​using a suitable interface.

[0114] The interface 360 ​​can be implemented in hardware and / or software. In a hardware implementation, the interfaces can, for example, be part of a so-called system ASIC, which contains a wide variety of functions of the device. However, it is also possible for the interface 360 ​​to comprise its own integrated circuits or to consist at least partially of discrete components. In a software implementation, the interface 360 ​​can be one or more software modules, which are present, for example, on a microcontroller alongside other software modules. To receive an input 300 or input data, a connection to a cloud can be established, for example (see also Figure 4).

[0115] The central module of the image optimization system is a self-learning module 320. The self-learning module is based in particular on artificial intelligence. In the exemplary embodiment shown, so-called labels 332 are used as input 300. These can be entered via the interface 360. The labels 332 are preferably understood to be data pairs. The label 322 can be understood, for example, to mean that a known input signal, and thus an input 300, can be assigned to an output signal and a corresponding control instruction or output 351, 353, 354, 355. In order to train the self-learning module 320 and the model 322 to be trained contained therein, input signals labeled so-called labels 332, i.e. inputs 300, as well as known outputs 351, 353, 354, 355, etc., can be specified by a user or expert.the model 322 to be trained contained therein such that, upon input 300 with labels 332, a control instruction or output 351, 352, 353, 354, 355 is generated to an image optimization unit based on the data processing. The labels 332 can either be generated by a simulation or provided by experts using an in-house labeling tool 333, as shown in Figure 4. The manual generation of the labels 332 can be performed using large databases of image data already acquired with endoscopes or using a selected subset of the available data. Furthermore, the labels 332 can also be produced by companies that specialize in generating such labels 332 and can draw on the corresponding expertise.

[0116] Images or the associated image data 310 from the image acquisition device 115 of an endoscope are provided as basic input 300 for the self-learning module 320. In a next step 311, image data 310 from a single image or at least a subset of the image data 310 is extracted from a plurality of consecutive images. This extracted single image, as well as the labeled or unlabeled image data, can be used as training data for the self-learning module 320. The image data history and the labeled image data can be stored in the memory 122 (see labels 332 as input and arrow pointing toward the memory 122). Based on the combined information from the currently acquired image data 310, from which a single image 311 and / or a subset such as image sections are extracted, and the stored training data 331, the model 322 can train itself.

[0117] The information from image 310 extracted in step 311 is preferably processed. Processed information refers to specific information about the current imaging. The image data can be checked according to various criteria, and, for example, object recognition can be performed. This includes, for example, recognized image structures, such as tissue or organ structures captured by image capture device 115. However, information such as brightness or other environmental conditions can also be obtained from the individual image. The obtained information can be stored temporarily or long-term in memory 122.

[0118] The trained model 322 is designed and trained to evaluate the extracted individual images 311 or individual image sections or pixels to determine whether contamination is present and how severe this contamination is. In order to quantify the degree of contamination, a classification 315 into corresponding categories is performed. The classification 315 contains at least two classes. For example, the two classes could include insufficient brightness and sufficient brightness. If the brightness is sufficient, no output is generated to activate an image optimization unit. If the brightness is insufficient, at least one output signal or a control instruction for image optimization can be output. For example, the output 352 is transmitted to the image capture device 115 to control the camera control unit (CCU) accordingly.Alternatively or additionally, the monitor 364 can be adjusted via a corresponding control signal. The brightness can be improved via control instructions to at least one lighting device 111, 112 by sending an output signal 351 to the respective lighting unit 111, 112.

[0119] A variety of classifications are possible, for example, the categories “sharp 1 and “unclear 1 can be differentiated, and if a blurred image is detected, a focus system, for example, can be activated by the camera control unit via an output 352. Additional units such as surgical units 367, such as an insufflator or other units located in the operating room that can be advantageously used for image optimization, can be controlled via output 355.

[0120] A common cause of image disturbance or deterioration is the presence of contamination, which can be caused, for example, by blood or grease or other contamination factors. In the classification step 315, the trained model 322 can determine the degree of contamination and output it as an activation signal in the form of output 353 to the cleaning module 130. Depending on the contamination, a liquid pulse or a gas pulse can be activated. In this way, an automated, self-learning module 320 can learn to detect dirt and activate the trained model 322 of the cleaning module 130 with a specifically aligned nozzle 140 (see, for example, Figure 2) such that not only the optical window HO of the image capture device 115 but also the illumination devices 111 and 112 are cleaned.If at least one lighting device 111, 112 is cleaned, the service life and the light output can be advantageously increased at the same time.

[0121] The trained Model 322 can perform cleaning automatically, so the user is not disturbed during their examination or work. The cleaning duration is optimized so that the user's vision is not impaired, or only very briefly. This is preferably achieved by setting high pressures, which can be set briefly, for a maximum duration of 1000 ms, for example. Pressures of up to 3 bar ensure efficient cleaning, and, like a windshield wiper, the visual impairment can be set to be very brief and thus barely noticeable.

[0122] At the beginning of training, an expert or the user can also manually enable cleaning or check the dirt detection routines. Digital image analysis using the trained Model 322 can be used to trigger cleaning semi-automatically or fully automatically. The longer the Model 322 is trained, the more reliable the classification results are, and the cleaning function no longer needs to be manually enabled.

[0123] Figure 4 schematically shows an embodiment of data processing. The database 422, which in this example is centralized and can be provided in the form of a cloud, stores the raw data 410 for the process. The input data is indicated by arrows pointing to the centralized database 422. In particular, camera data 361 can be imported. This camera data 361 or image data 310 can be provided by a plurality of hospital networks 371 and 372. Alternatively, only a single camera module or image capture device 115 can provide the raw data 410. Furthermore, automatic additional data 362 can be imported. This data 362 can contain additional information from the monitoring system or robot systems used. Such additional data 362 can be related to the operating room and can indicate the temperature of the operating room or the brightness of the operating room.Furthermore, patient data 363 such as vital signs and user-specific data can be made available for the raw database 410. All data can be stored centrally. Alternatively or additionally, decentralized storage is also possible. Another unit of the network, such as a labeling unit 333, can access the raw data 410 of the reference database 422. In this exemplary embodiment, this labeling unit 333 is a cloud or a web service suitable for labeling or identifying the input information.

[0124] The raw data 410 may be surgical videos without labeling or marking and may be stored in the centralized reference database 422. An internal team or external experts can then label the raw data 422 using the web labeling tool or unit 333. In this way, the labeled surgical images or other suitable data sets can, for example, determine image quality defects and quality values.

[0125] Labeling can be performed by various people 301, 302, 303. These can be either experts or users, or externally commissioned labeling teams who can accurately assess the quality of the surgical images and have access to the necessary expert knowledge. The generated label 332 can be used for training data 331 (see Fig. 3) for the self-learning module 320 and thus for neural networks. The training data 331 or labeled data sets 365 are the input data for the trained model 322 (not shown in Fig. 4). The labeling process can be used to determine a quality value that can be used for later comparison with a specific image structure in a reference database.

[0126] Fundamentally, the learning process in the self-learning module 320 is based on at least one model 322, which in a preferred embodiment is a stochastic model and is based on probabilistic considerations of whether the image quality can be optimized. In other words, the current image is compared with database classes, and a decision is made, preferably with the help of labeled data sets 365, as to whether the image can be optimized. The decisions are made based on corresponding marginal probabilities, and a new database class may also be required and added by the self-learning module 320.

[0127] In the construction and training phase of model 322, an open AI network based on artificial intelligence is preferably used. Here, the image datasets can be corrected by experts 301, 302, and 303. These experts can compare or evaluate the existing image databases with the latest results. In this way, an existing dataset is corrected, and the reference database can also be expanded with new datasets. The labeled datasets 365 can thus ensure the quality of the classification process.

[0128] Figure 5 schematically shows the method steps of an embodiment of the method for image optimization according to the invention. The method begins with step 1 (start), and the control unit starts suitable software or a computer program to initiate image acquisition. The initialization routine is executed in step 123. This initialization routine initiates image recognition and / or optics recognition. In this way, the software recognizes which optics or camera sensor is connected. The connected lighting devices can also be recognized by the initialization routine. With the help of the initialization routine, the optics recognition can further determine which type of endoscope is being used and which cleaning modules are connected.

[0129] In decision step 2, for example, a check is made to determine whether a video signal is present or whether a lens is connected. If no lens is detected in step 2, process abort 3 is initiated (indicated by the NO arrow in the flowchart). This process abort 3 can be reported to the user via a monitor or an alarm signal, allowing the user to take appropriate steps to resolve the problem. This can include checking the connections to the control unit or the power supply, for example.

[0130] If a positive result is detected during optics detection, the flowchart follows the YES arrow to analysis routine 124. The analysis routine accesses a self-learning module 320 (see Fig. 3) and applies artificial intelligence. The currently acquired image data is compared with previously stored image data, and a quality score can be determined based on this comparison. This comparison can also be used to automatically detect the surgical environment or contamination of the field of view.

[0131] In the subsequent step 125, a query is made as to whether or not the acquired image has detected an object. Object detection can, for example, identify a technical cavity to be examined, a body cavity to be examined, tissue structures, or a surgical environment. If this query 125 is negative (NO for the dashed arrow), the process is aborted in step 160. Without object detection, contamination or other impairment of image quality cannot be determined, and the method can be terminated in step 161.

[0132] If the query in step 125 is evaluated positively, for example, if contamination or a blurry or too dark image is detected, the YES arrow leads to another decision query. Here, a distinction is made as to whether there is a contamination or disturbance that can be remedied with the cleaning module or whether there are other interference factors that cannot be remedied with the cleaning module. If other interference factors are present, the analysis routine 124 is executed again (see the dashed NO arrow back to 124).

[0133] If the result is positive, meaning that there is contamination that can be removed with the aid of a cleaning process, the decision tree is now such that either cleaning 126 with a liquid fluid or cleaning 127 with a gas, or both, is carried out consecutively. After liquid cleaning 126, gas cleaning 127 can be used as drying. Exclusive drying 127 can be advantageous, for example, if condensation has formed on the optical window. A gas supply in step 127 can dry the condensate and remove the image disturbance. In addition, combinations not shown here of simultaneous activation of cleaning with liquid (step 126) and cleaning with gas (step 127) are also possible. Cleaning with liquid 126 is advantageously only activated for a short period of time of a few milliseconds so that the user is not disturbed during the operation or examination.This so-called windshield wiper effect can only be performed by software control, since such short periods cannot be adjusted manually.

[0134] After cleaning is complete, monitoring routine 129 is started. Cleaning can be performed depending on the degree of contamination and optimized by monitoring routine 129. Heavy contamination is typically cleaned with liquid (step 126). For light contamination or fogging of the optical window, cleaning with gas and thus drying 127 is sufficient. Activation of the cleaning steps occurs either automatically or after user approval.

[0135] After activation, monitoring routine 129 checks whether the field of view and image quality are optimal again. If this is the case, it returns to analysis routine 124 (see arrow YES). A closed control loop is provided for monitoring routine 129, which checks whether or not predefined target values ​​for image quality are achieved by the activated cleaning 126 or drying 127. Patient safety can be increased by monitoring routine 129. If the cleaning result is not optimal, a repeat of cleaning 126 or drying 127 can be initiated. If monitoring routine 129 determines that cleaning 126 or 127 does not improve the image quality, the optimization process can be aborted using the cleaning module in step 160 (see end 161).

[0136] Based on the self-learning module 320 and the trained model 322 contained therein (see, for example, Figure 3), not only can automated analysis routines 124 and subsequent automated cleaning processes 126, 127 be run, but the cleaning parameters can also be adjusted. This is explained in more detail in Figure 7.

[0137] Figure 6 shows a further embodiment of the method according to the invention with a schematic flowchart. The flowchart is divided into five areas, indicated by columns: the first area of ​​input 300, the second area of ​​analysis 301, the third area of ​​process execution for optimization, preferably through cleaning, and the fourth area of ​​the optimization result with monitoring routine 129 and parameter adjustment 138. Finally, the possible process termination 160.

[0138] In the input area 300, the method is started in step 401. Here, a video signal from an endoscope can be provided as the input signal. In step 402, a check is made to determine whether a video signal is present. Based on this check, either a positive result (YES) or a negative result (NO) is obtained. If this query 402 results in a NO, the process is aborted in step 403. Since no video signal is present in the case of process abort 403, a check should be made after process abort 403 to determine whether all connections are present and whether a power supply is present.

[0139] If the check 402 yields a positive result (YES), the process continues in the analysis area 301. In step 311, the so-called extraction of at least one image takes place. This means that individual images are extracted from the video signal. In a step 312, the images can optionally be divided into image sections. In this way, the image can be divided into different sections, e.g., A, B, C, where, for example, C can represent a central region of the image.

[0140] In the next method step 313, a preliminary analysis of the images takes place or if the step

[0141] 312, a preliminary analysis of the image sections takes place. In the process step

[0142] 313 of the pre-analysis, the images are preprocessed and compared with a database stored in memory 122. Preferably, a comparison of at least one specific image structure with image structures from a reference database takes place. In this process, various criteria can be checked, and object recognition or actual data acquisition can occur.

[0143] In the subsequent step, classification 315 into different classes or categories can take place. The image classification is performed on the basis of a quality value that can be determined using a training-based model (see reference number 322, e.g., in Fig. 3). This model 322 is part of a self-learning module 320 in a control unit 120 of the image-optimizing system and cooperates with the reference database contained in the memory 122. This memory unit 122 can store the history of previous image acquisitions. Labeled video images (see 365 in Fig. 4) of an endoscope can also be stored in the memory 122 in order to determine the quality value. In this way, a captured image can be qualified with regard to image quality using stored parameters or identifiers.

[0144] The classification history is stored in the memory 122 and is continuously supplemented with the currently acquired image data. Not only the acquired images from the previous steps but also the associated evaluations of the video signals are saved. Storage in storage unit 122 can be local or decentralized. The so-called image history enables ongoing documentation and the model 322 to be trained (see, for example, Figure 3) can be continuously optimized. The larger the retrievable data sets, the more precise the machine learning can be and thus the learning ability of the model 322 can be increased. With a sufficiently large data set, for example, artificial intelligence with a deep data model can be used.

[0145] In the classification step 315, individual image sections or pixels can be assessed to determine whether they are dirty and how severe the dirt is. The existing database classes or categories are used for this purpose. For example, a distinction can be made between class 1 "OK", i.e. "optimal images", and another class 2, i.e. "dirty images". Other classes such as well-lit images and poorly lit images can also be stored in the database class. Additional information about, for example, smoke or brightness or focus settings can be used for the following method steps and control instructions or output 353 or activation signals 135 in order to optimize the image. If, for example, smoke is detected, communication can be established with at least one other surgical unit 351 in order to extract the smoke.

[0146] Analysis 124 evaluates the type of contamination based on the pixels and, optionally, based on their position in the image. If contamination is detected in class 2 "dirty images," a further distinction can be made as to whether this contamination is cleanable or not. In a preferred embodiment, the degree of contamination can be determined in analysis step 124, for example, based on an evaluation of the image history stored in memory 122. Preferably, an overall evaluation of the image quality is performed in step 124 depending on permissible percentages of "contamination." Image edge areas can be given less weight than the image center.

[0147] In step 125, it is determined whether an object has been detected or not. Furthermore, once an object or image structure has been detected, it can be determined whether contamination is present or not. The type and degree of contamination has already been determined in advance by a suitable classification 315 using a comparison in classification step 315 with the reference database using algorithms automated in the self-learning module 322 of the control unit 120 (see Fig. 4). In step

[0148] 125 not only allows for possible contamination to be checked, but also for the exclusion of other disturbing factors, e.g. the exclusion of smoke or other conditions such as insufficient contrast, sharpness or light.

[0149] If it is determined in step 125 that the quality value is already optimal, optimization, for example, by performing a process 835 such as cleaning, is not necessary. Since the cycle for optimal image quality is completed here, the method returns to one of steps 311 or 312. Contamination that is not present is schematically indicated by the arrow NO, which leads from step 125 to steps 311 or 312. A restart at 311 can occur continuously or at specified intervals.

[0150] If, in step 125, based on the preceding analysis 124, the image quality was assessed such that cleaning or optimization can be carried out by a process execution 835, the method continues (see arrow YES in Fig. 6) and an activation signal is output via an output 353. In the area of ​​the process execution 835, for example, a cleaning module 130 can be activated to carry out a cleaning 126 or a drying 127 using a fluid. The process execution 835 of the cleaning process can be activated automatically by the self-learning module 320 or, alternatively, after the self-learning module 320 has recommended cleaning, can be activated manually. The cleaning can be carried out via a nozzle on the one hand with liquid

[0151] 126 or with gas 127 to initiate cleaning or drying. These two cleaning types 126 and 127 (not shown in Figure 6, see, for example, Figures 5 or 7) can also be combined.

[0152] In a preferred embodiment, for larger contaminations, the fluid is liquid, and cleaning can be performed with at least one fluid pulse lasting from only a few milliseconds to a maximum of one thousand milliseconds. If, for example, the presence of smoke is additionally or alternatively detected, communication 351 with another device unit can be established via an activation signal 135. Another device unit can be a surgical device unit 367 (see Fig. 3), such as a smoke evacuator, which is activated when smoke has been detected in the preceding steps. Furthermore, an insufflator pump or other surgical units 367 can be controlled to achieve an optimal cleaning result or the desired image optimization.

[0153] In the next area, the optimization result is monitored 129. If the activated process execution 835 was a cleaning, the cleaning result is first compared with a database in this area. This occurs in method step 129, which includes a monitoring routine 129. With the help of the monitoring routine 129, the cleaning effectiveness of the previous cycles can be checked based on the evaluation of the image history from the memory 122. In an open, artificial intelligence network, the comparison with the reference databases can be corrected by an expert if necessary. The cleaning results or optimization results can be assessed by a team of experts or a single expert, thus verifying the algorithms used and the trained model.In a closed neural network, corrections can be made automatically by the self-learning module 320, while in an open neural network, experts can also decide whether a new database class is required. If necessary, an expert can not only make corrections but also implement feedforward control. Alternatively, after a sufficient training phase of the model 322, a model-based feedforward control can also be set so that, for example, definable target values ​​for the pressure in the body cavity are not exceeded. In an open neural network or a closed neural network, or a hybrid of both (“semi-supervised”), a process optimization and / or a parameter adjustment 138 takes place before the process is restarted (repetition of steps 311-315, 124-125).This allows a model to be trained to be optimized during the training phase to achieve the desired optimal results. The cleaning parameters can be adjusted, for example, by gradually increasing the fluid volumes in step 138.

[0154] According to an exemplary embodiment of the cleaning adaptation 138, the self-learning module 320 can shorten the cleaning duration by checking the cleaning result and adjust the cleaning parameters in step 138 so that the cleaning duration is, for example, only between 200 ms and 800 ms. The cleaning duration can be shortened depending on the degree of contamination and while simultaneously increasing the pressure. The pressure or the amount of fluid during cleaning 126 must be set sufficiently so that the contamination can be removed efficiently. In the self-learning module 320, the pressure curves are automatically optimized by changing parameters in step 138 using the trained model 322. The criterion of minimal fluid consumption should also be met.

[0155] Preferably, the following criteria are taken into account for parameter assignment and parameter optimization:

[0156] The primary criterion is cleanliness and complete removal of contamination. Secondary criteria are minimal cleaning time and minimal fluid consumption.

[0157] The parameter adjustment 138 is preferably carried out in such a way that the main criteria and preferably also the secondary criteria are met with a high probability. The goal of the model 322 to be trained is therefore optimal removal of the contamination while simultaneously maintaining a very short cleaning time to minimize user disruption.

[0158] Fundamentally, the process is based on probability considerations to determine whether image quality can be optimized. The above-mentioned criteria should be met with a high degree of probability. The procedure for image optimization by changing parameters (height, sequence, etc.) can vary for different image classes or degrees of contamination and can be stored in a data set in a parameter database in memory 122. The self-learning module 320 is configured so that initial parameter setting and parameter adjustment 138 can occur automatically. The cleaning parameters can be assigned and adjusted based on the image analysis 124.Based on optimal parameter settings and adaptive and simultaneously predictive control by the self-learning module, the highest probability of obtaining an uncontaminated image with sufficiently good image quality for the user can be achieved.

[0159] In a preferred embodiment, for example, the degree of contamination can be determined compared to the image history. The degree of contamination may no longer be present, may be less, may have remained the same, or may have worsened. Depending on the degree of contamination, a gradual increase can be made, for example, by increasing the duration of the cleaning pulse or the pressure used. On the other hand, for high levels of contamination, maximum settings can be used to optimize the image. These possible parameter adjustments are identified in the flowchart with reference symbol 138. The adjusted parameters can be output to the cleaning module.

[0160] If the cleaning result is better but still not satisfactory, the cleaning can be repeated with modified parameters. After the cleaning parameter adjustment 138, the process continues back to the analysis area 301 to step 311, extracting the image sections. This is followed by classification 315 and further analysis steps, which culminate in contamination detection in step 125 to decide whether or not a positive change can be achieved through cleaning. After activation of the cleaning module 130, the cleaning result is checked again in step 129. If the result is very good, the cleaning process can be aborted. This is indicated by the YES arrow to the end 161 in the process abort area 160. Otherwise, the analysis process steps in area 301 can be repeated again.

[0161] Figure 7 shows schematically in a flow diagram in particular an automated

[0162] Method for adapting parameters, which can be used, for example, in method step 138 of Figure 6 or can be executed by means of the system shown in Figure 3 comprising a control unit 120 and one or more processors 121.

[0163] In this embodiment, cleaning parameters 128 are adjusted for a two-channel cleaning module 130, which is designed for cleaning with both a liquid fluid and a gaseous fluid, in order to perform optimal cleaning 126, 127. Alternatively to a two-channel cleaning module 130, a three-channel cleaning module 130 can also be provided, or two cleaning modules 130 can be provided in order to optimally clean two distal windows of a stereo endoscope.

[0164] At the beginning of the process, the cleaning parameters are selected or adjusted depending on the cleaning module 130 used. Key parameters are the liquid quantity Vn, such as a quantity of water or physiological sodium chloride solution from a liquid channel 131, an optimal pressure p, and a time parameter t, such as the cleaning duration t or intervals. Other parameters not shown in Fig. 7, such as pulse-pace ratios, pulse count, etc., are also controllable. Gas can be used for cleaning or drying with the second fluid channel 132, with a gas quantity Vc>as, the pressure p, and the duration t of the gas pulse being shown as examples.

[0165] In the control unit 120, the self-learning module 320 is configured to detect contamination and preferably a degree of contamination. If contamination is detected in step 125, a corresponding output signal 353 can be output to a cleaning module 130. A control instruction "Ctrl" activates cleaning with a liquid 126 and / or gas 127 via an output 353.

[0166] Depending on the determined degree of contamination, the cleaning parameters 128 can be adjusted. The adjustment of the parameters 138 can also be performed after determining the cleaning result. If the trained model 322 is based on an open neural network, the optimization can be performed in a loop using a classification 315. This is schematically represented with a tree diagram and arrows and described below. In step 328, a query is first made as to whether the image has changed after cleaning or not. The cleaning results are determined using the self-learning module 320. The cleaning result can be divided into four classes, for example, depending on the change:

[0167] Class 1 includes a good result ie “OK” after cleaning by liquid or gas, so that here the process can be aborted in step 161.

[0168] Class 0 corresponds to a cleaning result without change and is marked by the equal sign, ,=“ ie the image has remained the same.

[0169] Class 3 corresponds to a positive cleaning result, ie a change (indicated by the inequality sign , “) for the better “+” in other words an optimization of the image has taken place.

[0170] Class 4 corresponds to a cleaning result with change the picture is worse than before.

[0171] If the result is Class 1, Class 3 with sufficient image optimization, or Class 4, the cleaning process is aborted in step 161 "End" because no further cleaning is necessary or the cleaning cannot achieve any success. In the latter case, other optimization methods can be determined based on pixel evaluations, and parameters such as color, resolution, brightness, contrast, and / or sharpness can be adjusted accordingly.

[0172] A parameter adjustment 138 is performed during classification into Class 0 and Class 3 if a positive change is detected that is not yet sufficient. Since cleaning and parameter adjustment in the cleaning module is necessary here, a parameter adjustment 138 is performed in the loop, whereby parameters 128 of the cleaning module 130 are adjusted for liquid or gas by changing the fluid quantity, pressure, or pulse duration t.

[0173] If the cleaning result has been classified into a category where the parameters are adjusted, a determination is made in step 328 as to whether there has been a positive, negative, or no change. If the cleaning result is better according to classification 315 but still not satisfactory, the cleaning can be repeated with modified parameters. The cleaning result is then checked again in step 328. If the result is ultimately "OK" according to class 1 or "=" according to class 0, the cleaning process can be aborted in step 161 "END."

[0174] Figure 8 shows a flowchart for the schematic representation of, for example, a further embodiment comprising an application of a trained model 322 (step 5) and a monitoring routine 129. In Figure 8, as in one of the preceding methods, the video signal is first started in step 1. The process begins at the start in step 1 and, in the subsequent step 2, it is checked whether a video signal is actually present. If this is not the case, the process proceeds to process abort 160 according to the arrow "NO". Here, a check for correct connections can be carried out and then the process can begin again from the beginning with a restart at step 801.

[0175] If the query in step 2 is positive and is answered with "YES", at least one image is captured. Figure 8 schematically shows a plurality of images i, i+1 and i+2. In the next step of the preliminary analysis, an individual image is extracted; in the case shown, image i is extracted (step 4). This corresponds to the general method step of extracting an image 311. The trained model can then be applied to the extracted image in step 5. In step 5, the classification takes place and comprises at least three classes (see 501, 502, 503).

[0176] In the illustrated embodiment of the optimization method, the captured image i is classified into three different classes.

[0177] In classification step 501, class 1 is determined, whereby the image is recognized as not dirty and is thus classified as “OK”.

[0178] Step 502 relates to Class 2, where visibility is not OK and there is contamination or other impairment. This category is classified as "non-cleanable" because in Class 2 the visibility impairment or contamination cannot be remedied by cleaning with liquid and / or gas. This can be the case, for example, if the focus is incorrectly set. In this case, the camera control unit can be controlled, for example, to adjust the focus to optimize the image. This is shown schematically with the arrow pointing to the CCU (Camera Control Unit). Alternatively or additionally, depending on the malfunction, other device units, such as a monitor 364 or an operating room device unit 367, such as an insufflator, can be controlled.For example, if a blurred image is detected in classification step 502, the camera focus can be adjusted by the CCU so that a sharp image of the object to be examined is created.

[0179] All information acquired by the self-learning module 320 during the application of the model 322 (step 5), and thus, for example, in the classification steps 501 or 502, can be stored in the memory in the storage unit 122 in step 7. Subsequently, the next image i+1 is extracted in step 311, and the analysis process begins again at step 2.

[0180] In addition, the captured image can be assigned to a class 3 after the analysis steps in step 503. Class 3 means that the image is contaminated and can be cleaned by a cleaning system or cleaning module 130 (this is schematically represented here with a "not OK" and an arrow pointing to 130, i.e., the cleaning module). In step 6, the classified images can now be further assessed and analyzed. This can include reviewing, prioritizing, and / or evaluating the contamination. Optionally, the image can be divided into sections to enable the localization of the respective contamination.

[0181] With the help of the trained model 322, tissue structures, objects, organs, or other objects to be examined can be recognized and distinguished from pollution or smoke. Additional classes beyond those listed above can also be added, either by an expert or the self-learning module.

[0182] After a preliminary analysis and classification 5 by the trained model 322, a further analysis can take place in step 8. Here, an evaluation of the image history can take place, and the presence and type of contamination can be determined. Many categories are conceivable here, not only those listed above. The degree of contamination can be further graded, and categories such as lightly soiled "x," more heavily soiled "xx," or very heavily soiled "xxx" can be specified. Other categories are also conceivable, including contamination with blood, grease, or other disruptive factors such as condensate or smoke. Furthermore, a further analysis can also be used to weight the image areas, which the trained model can determine itself. Each image area can be assigned a permissible percentage of contamination.A preferred embodiment of a self-learning method is that a higher priority is assigned to the image center and better quality values ​​are required here than outer areas.

[0183] In method step 8, a decision is made as to whether cleaning is necessary or not. If no cleaning or optimization is required, the cycle for optimal image quality is aborted and ended. The method can be continuously repeated at step 2 or restarted at specified intervals by a restart 801. When using the trained module comprising an open network, an additional step for continuous process optimization, carried out with the assistance of experts, preferably takes place before the restart 801. In this way, the process can be continuously optimized.

[0184] If it is decided in step 8 that cleaning should be carried out, the cleaning module 130 is activated via an activation signal or output signal 353. After the cleaning step has been activated, a comparison with the database can be carried out by means of a monitoring routine 129.

[0185] All results can be stored in a memory 122 in step 7. If a dirty image is determined as a result after step 6 or step 8, the cleaning parameters are preferably adjusted using model 322 based on an open neural network with the aid of classification steps and an optimization 9 in a loop. This principle has already been described schematically and in more detail in Figure 7 in connection with a parameter adjustment 138.

[0186] After completion of the above-mentioned method step 9, a new image i+1 is extracted and a new cycle of analysis steps 2 can begin at step . This is indicated by the upward-pointing arrows to step 2. The process then begins again and image optimization can begin again. Figure 9 shows a further schematic flow diagram of the inventive method for image optimization. The process begins at the point marked with START or 801. If a video signal is present, data acquisition can begin in step 310. Images are extracted in step 311. After extraction 311, individual images are passed on, which can also be broken down into image sections. Extraction 311 is followed by data preparation, during which the actual data set is determined and pre-processing of the images can take place.

[0187] In the subsequent step 124, the data is assessed by means of data analysis. This data analysis 124 is performed with the aid of a self-learning module 320 and a reference database stored in the memory 122. The self-learning module is designed to determine a quality value by comparing at least one specific image structure with image structures in a reference database. The interaction with the reference database during the quality value determination is indicated by the double arrow between the data analysis 124 and the storage unit 122. The determined actual state can be stored in a temporary database "122tmp." If the result indicates that optimization is not possible or no cleaning is required, this temporary image can be deleted later.However, if dirty or otherwise impaired images are detected by the analysis, it is advantageous for these data to be stored as training data for a model 322 of the self-learning module 320 in the reference database in the memory 122.

[0188] The reference database in storage unit 122 consists of a plurality of databases, such as image parameter data sets based on an image database and a parameter database, such as cleaning parameters or monitor parameters. In the reference databases of storage unit 122, good or dirty images can be classified based on image detail data, pixel evaluation, contrast, color, sharpness, resolution, brightness, smoke detection, and / or object detection.

[0189] In addition, the storage of additional information or additional analyses 366 is advantageous. One possible piece of additional information 366 is, for example, a captured image with smoke. Furthermore, a variety of objects to be examined can be stored as additional information: tissue, veins, tendons or bones. Additional information can also relate to the lighting condition and, for example, to specific wavelengths of light. Any piece of information is suitable as additional information if the goal of optimizing the image quality of the images captured by the endoscope unit is met. Optimization can be achieved not only through a cleaning process, but also through other optimization processes, such as changing the settings for display on a monitor such as an LCD display.

[0190] The structures to be examined in the field of view can, for example, be identified better or with greater differentiation if certain fluorescence imaging techniques are used. For example, anatomical structures can be made more visible by using indocyanine green (ICG) using light with wavelengths in the near-infrared (NIR). For this purpose, the light can be optimally adjusted to the appropriate wavelength using the control unit 120. 3D technologies can also be used and optimized parameters can be adjusted accordingly. If, for example, fluorescence technology is used, the wavelength range of the illumination device can be adjusted accordingly. Corresponding video signals are then stored for the fluorescence technology, and a database of additional information 366 is made available in the memory 122 for this particular technology.This and other additional information may be used to enhance the image depending on the technologies used.

[0191] Further additional information can contain parameters to counteract color distortion in the image reproduction of a monitor. One criterion for good, color-accurate image reproduction on a monitor is, for example, correctly set color spaces. Suitable parameters here are brightness, color saturation settings or focus settings. Since the image quality can also be modulated by the display or monitor, it is important to save the optimal settings and adapt them depending on whether changes in the basic conditions have occurred. A monitor can also be adapted to the user. If the user wears glasses or has red-green color blindness, for example, user-specific settings can be saved as additional information and activated when the user is recognized using stored data (see reference number 363).The additional information can also relate to an endoscope unit comprising an electronic image capture device such as a CCD or CMOS system, or at least two image capture devices for stereo systems, located at the tip of the endoscope. Key parameters here are optimal light intensity, depth of field, and contrast, as well as magnification options if necessary. The primary task is to prevent or eliminate interference such as contamination or condensation, as well as to reproduce the detected surfaces or structures of internal organs with the highest possible image fidelity.

[0192] Based on the reference databases stored in memory 122, the trained model 322 can now decide in step 825 whether the acquired image can be optimized or not. If the image cannot be optimized, it returns to START at step 801 and the process begins again.

[0193] If optimization is possible, the decision path does not follow the NO arrow, but rather the YES arrow to activate the next method step 835 of the process execution. At least one of a plurality of device units, such as the cleaning module 130, a monitor 364, or a surgical device 367, is available to activate image optimization. The plurality of device units communicates with both the storage unit 122 and the control unit 120 (not shown here). Control instructions are transmitted to at least one of the device units depending on a quality value determined in the analysis in order to finally execute the optimization in step 835.

[0194] An example of optimization is the activation of a surgical device 367 such as an insufflator or the activation of at least one lighting device 111 or 112. In this case, an increase in the light intensity or a change in the lighting conditions can be achieved by adjusting the parameters of the lighting device. Alternatively or additionally, a cleaning process can be activated by a cleaning module 130 in order to remove or at least reduce detected contamination on the field of view or on a lighting device 111. Alternatively, other activatable process executions 835 are possible, such as adjustments to the monitor parameters of a monitor 364. After the process execution (step 835), the process returns to data acquisition 310 and begins the individual steps of data preparation (see step 311) and subsequent data evaluation (see step 124) again.

[0195] A plurality of databases can be stored in memory 122, depending on the device unit to be controlled. Preferably, there is at least one parameter database that is used for process execution 135 if contaminated images were detected in the optimization query (step 825). Depending on the category of contaminated images, appropriately adjusted cleaning parameters are stored, such as the gas or liquid purge quantity, the pressure, the pulse duration, the intervals between the pulses, the pulse-pause ratio, or others.

[0196] The following criteria can be stored in the memory unit or self-learning module for parameter optimization. The primary criterion for parameter assignment and optimization is cleanliness and image quality, i.e., the most complete removal of contamination possible. A secondary criterion for parameter assignment and optimization is minimal cleaning time. The user should be minimally disturbed, similar to a brief windshield wiper movement. Another secondary criterion is minimal fluid consumption, e.g., of liquids such as water or sodium chloride or other physiologically well-tolerated fluids. Finally, minimal gas consumption can be incorporated into parameter generation.

[0197] The self-learning module is designed in such a way that the parameters are adapted, for example an increase in pressure or a lengthening of the pulse, in such a way that the main and secondary criteria are met with a high degree of probability. The type or procedure for optimization, i.e. the extent and sequence of the parameter changes, can be different for different image class contamination levels. This means that additional data sets or an additional parameter database can be assigned to the individual image classes or contamination levels in memory 122. The method is based on probability considerations and the trained model is based on a stochastic model. Other possible models can serve as the basis for the parameter adaptation, such as an empirical model in which measurement data from at least one sensor is incorporated.The images can also be trained by a suitable model to generate labels or characteristics for the provided raw data. In this way, labeled image datasets can facilitate and accelerate the training of the training model. Experts can also generate labeled images in addition to, or as a correction.

[0198] If the trained model is based on an open neural network, corrections can be made by experts. Through so-called labeling, an expert or other appropriately trained user can mark an existing image from the raw data with a label indicating a need for optimization or with a symbol such as OK, which means that no optimization is necessary. These labeled images can then be used as training data for the model to be trained. At least one set of training data, preferably several sets of training data, can be prepared and then made available for learning by the model 322 to be trained to the machine learning device (see self-learning module 320, e.g., in Fig. 3).In particular, if a large number of training images pre-labeled by experts are provided for each class, the learning phase of the model can be advantageously shortened.

[0199] The training data generated by machine learning is, in turn, stored in the reference database. The self-learning module 320 can create a trained model 322 using a neural network, such as a multi-layer neural network, which has image data with corresponding markings, characteristics, or labels as an input layer and outputs classified images as an output layer. Such a neural network also has an intermediate layer and can, for example, employ a convolutional neural network (CNN).

[0200] The preferably labeled training data are stored in the storage unit 122, and the trained model 322 of the self-learning module 320 learns using this training data 331. The model 322 trained with training data 331 determines a quality value (see step 124) based on an image captured by the image capture device 1115 (see step 310) or an image section of this image (see step 311) and then outputs the determination result (step 825). If the determination result or the quality value indicates that no optimization is necessary or no contamination was detected, the method is restarted immediately or at predetermined time intervals (see NO arrow to step 801).

[0201] If decision step 825 resulted in a process execution 835 for optimizing the image, the optimization result can be evaluated with the self-learning module based on pixel evaluations with parameters such as color, resolution, light, contrast, and / or sharpness. The pixels are preferably evaluated in such a way that organs or tissues to be examined can be distinguished from contamination. This can be done by comparing image data from the database in memory 122 and is indicated by a double arrow between the respective device units 111, 130, 365, and 367 and memory 122.

[0202] The invention can be applied to a variety of endoscopic systems established on the market in order to diagnose the respective examination object more precisely and reliably and to be able to continue working on the site as quickly as possible despite disturbances. The optimization method and optimization system according to the invention can make automated decisions in step 825 as to whether optimization is necessary and whether image optimization can be carried out by the controllable devices. For example, automated dirt detection and automated cleaning can take place. Rapid cleaning results are particularly important in medical technology. The aim is to advantageously avoid interrupting the user for long periods of time and to eliminate the contamination or image disturbance as quickly as possible.Through the continuous provision of training data, the quality of the Kl algorithms is continuously improved and through continuous parameter adjustments, optimal “tuning” of the process executions 835 is achieved.

[0203] A software or computer program product for carrying out the image optimization process is configured to detect suboptimal images or disturbances such as image contamination with sufficient probability using image analysis algorithms. Using image analysis, a quality value and existing image data (image history) or parameter data can be evaluated and compared with the most recent image data and previous optimization results. In addition to a statistical model, the algorithms can use a stochastic model and output control instructions based on corresponding marginal probabilities as to whether the current image can be optimized or not. In an open artificial network, existing data sets can be corrected by experts in addition to automatic processes, and the reference database in the memory 122 can be expanded with new data sets automatically or manually.Continuous semi-automatic or automatic checking of the optimization procedure leads to increased safety for the user and thus for the person being examined using the endoscopic procedure.

[0204] Reference list

[0205] 1 Start

[0206] 2 Query video signal

[0207] 3 Process termination

[0208] 4 Extract single image i

[0209] 5 Apply trained model

[0210] 6 Review, prioritization and assessment of pollution

[0211] 7 Saving in a memory 122

[0212] 8 Analysis, overall evaluation with subsequent decision for optimization

[0213] 9 Optimization through classification in the loop

[0214] 100 training-based automated system

[0215] 110 optical window

[0216] 111 first lighting device

[0217] 112 second lighting device

[0218] 115 Image capture device / camera unit

[0219] 116 CCU (camera control unit)

[0220] 120 control unit

[0221] 121 processor

[0222] 122 memory

[0223] 123 Initialization routine

[0224] 124 Analysis based on training data and / or comparison with stored data

[0225] 125 Process step comprising optimization or contamination detection 126 Cleaning with liquid

[0226] 127 Cleaning with gas or drying

[0227] 128 cleaning parameters

[0228] 129 Monitoring routine

[0229] 130 cleaning module

[0230] 131 first fluid channel

[0231] 132 second fluid channel

[0232] 133 Feed channel

[0233] 135 Activation signal

[0234] 138 Adjustment of cleaning parameters depending on the cleaning result or the determined endoscope type

[0235] 140 nozzle

[0236] 150 shaft

[0237] 152 sleeve

[0238] 160 Process abort

[0239] 161 End

[0240] 300 input

[0241] 301 , 302, 303 Expert or user

[0242] 310 image or image data

[0243] 311 Extracting one or more images

[0244] 312 Division into image sections

[0245] 313 Pre-analysis / pre-processing of images (object recognition; actual data acquisition)

[0246] 315 Classification

[0247] 320 self-learning module using artificial intelligence such as machine learning or deep learning

[0248] 322 model to be trained or trained

[0249] 328 Determination of change A after cleaning 331 Training data

[0250] 332 labels or markings

[0251] 333 Cloud or web service for labeling

[0252] 351 Output to lighting device(s)

[0253] 352 Output to control unit (CCU) of the image capture device

[0254] 353 Output to cleaning module

[0255] 354 Output to monitor

[0256] 355 Output to device unit e.g. operating unit

[0257] 360 interface

[0258] 361 Import camera data

[0259] 362 Import of automatic monitoring data

[0260] 363 Import patient data or user data

[0261] 364 Monitor

[0262] 365 Labeled dataset

[0263] 366 Additional analysis and / or information

[0264] 367 Operating Unit

[0265] 371, 372 first and second hospital network

[0266] 401, 402, 403 Procedural steps

[0267] 410 raw data

[0268] 422 centralized storage unit

[0269] 501, 502, 503 Classification steps in the respective database class

[0270] 801 Restart

[0271] 825 Optimization detection or decision / query whether optimization

[0272] 835 Process implementation

[0273] P Pressure t Cleaning time V Fluid volume

[0274] Ctrl Control

Claims

Patent claims 1. Method for image analysis and optimization of at least one image acquired at the distal end of an endoscope, the method comprising the following steps: Acquisition of image data (310) by means of an image acquisition device (115) of an endoscope; Receiving the image data by a control unit (120), Preliminary analysis (313) of at least a subset of the image data (310) of one or more successive images by a control unit (120) to determine at least one image structure; Determining a quality value by means of a training data-based, preferably self-learning, module (320) by comparing the at least one specific image structure with image structures of a reference database stored in a storage unit (122), and on the basis of the determined quality value, manually or automatically outputting control instructions from the control unit (120) to a unit to activate an image optimization.

2. Method according to claim 1, wherein the unit that can be activated for image optimization is a unit of the endoscope; and preferably comprises a cleaning module (130) for cleaning at least one distal window by means of at least one fluid and the image optimization is carried out by activating the cleaning module (130).

3. Method according to claim 1 or 2, wherein the quality value depends on the detected brightness of the image and / or contamination of the at least one distal window, wherein in the step of determining the quality value using the self-learning module (320) a classification (315) into contamination probabilities and / or degree of contamination is carried out.

4. A method according to any of the preceding claims, wherein the self-learning module (320) comprises a model (322) with a neural network, wherein the input data is the image data acquired by the image acquisition device (115), which can be extracted as individual images, pixels and / or image sections; and 52 wherein the output data comprises the probability of contamination or blindness of the image acquisition device (115). Method according to any of the preceding claims, wherein the training data comprises image structures stored in the storage unit (122) and / or a collection of identifiers used to train a model (322) of the self-learning module (320), wherein the trained model (322) of the self-learning module (320) is trained to classify (315) the image data (311) into the following contamination-dependent database classes (501, 502, 503): uncontaminated images, contaminated images that can be cleaned by a cleaning module (130); and contaminated or identifier-bearing images that can be optimized by modules other than the cleaning module.A method according to the preceding claim, wherein the self-learning module is based on machine learning, wherein a pre-classification is performed by an expert (301) or several persons (301, 302, 303), and the subsequent quality-value-dependent classification is performed by a neural network; optionally, algorithms derived from the training data (331) for the model (322) of the self-learning module (320) are verifiable and correctable by at least one expert (301). A method according to any of the preceding claims, wherein the self-learning module (320) comprises a model (322) with a neural network based on machine learning or deep learning, wherein the neural network is selected from the group comprising: an open neural network; a closed neural network; a single-layer neural network; a multi-layer feedforward network with hidden layers; a feedback neural network; and combinations thereof. 53 A method according to any one of the preceding claims, wherein the at least one image structure represents at least one object to be examined that is depicted in the captured image; and wherein contamination detection, deterioration detection, or smoke detection is based on a change in the image structure. A method according to any one of the preceding claims, wherein in the preliminary analysis step, a subdivision of the captured image into image sections (312) is performed and / or, based on analysis values, a subdivision into individual regions based on pixels is performed, wherein the quality value for each of the image sections and / or regions is determinable.A method according to any one of claims 2 to 9, wherein the cleaning module is configured to activate regionally targeted cleaning depending on a definable weighting of regions and / or depending on a permissible percentage of contamination, preferably cleaning the region of the distal window that can be assigned to the image center. A method according to claim 10, wherein, after activation of the cleaning module, a pulse of a fluid jet with a duration of a few milliseconds up to a maximum of 1000 ms and under high pressure (p) of a maximum of 3 bar is directed for cleaning at least a part of the distal window of the image acquisition device and / or one or more distal illumination windows of light sources.Method according to one of the preceding claims, wherein the unit that can be activated for image optimization is selected from the group comprising: one or more light sources of the endoscope for changing the illuminance; at least one filter for optimizing contrast;. Autofocus system for adjusting the sharpness of the image; Color spectrum change unit; End lens heating; Monitor; 54 User-specific and / or endoscope- or fiber optic-dependent adaptable software; operating room lighting; and Combinations thereof. A method according to any one of the preceding claims, wherein the determination of a quality value comprises a smoke or condensation blindness value, wherein the control unit compares detected smoke or condensation characteristics with characteristics from a collection of characteristics stored in the reference database. A method according to any one of claims 2 to 13, wherein the method further comprises a control instruction to a smoke extractor and / or an insufflator or a flushing pump to optimize the image by means of smoke extraction; and / or to optimize the fluid management in the body cavity to be examined with the endoscope as a function of fluid flows during smoke extraction or cleaning by means of the insufflator or flushing pump.A method according to any one of claims 2 to 14, wherein a pressure sensor measures the intracorporeal pressure in the body cavity and the control unit (120) controls the intracorporeal pressure in an event- and / or time-controlled manner, at least during the duration of a cleaning, by means of a control of the at least one pump or a control of a pressure regulator, such that the intracorporeal pressure does not exceed a predetermined maximum limit. A method according to any one of claims 5 to 15, wherein the cleaning module (130) is designed to adapt the type of cleaning by means of a change in cleaning parameters (138) depending on the database classes and / or a degree of soiling, wherein one or more cleaning parameters (128) are selected from a group comprising: 55 Type of fluid, fluid volume, fluid volumes, fluid velocity, pressure, pulse duration, number of pulses, pulse-pause ratio, and / or total cleaning duration. A method according to any of the preceding claims, wherein the self-learning module (320) comprises a cleaning control algorithm based on an image analysis history, which checks the cleaning effectiveness of previous cycles in order to select cleaning parameters (128) adapted to the history, preferably based on stochastic approximation algorithms, in order to achieve the highest probability of an image with sufficiently good image quality. A method according to claim 16 or 17, wherein the adaptation (138) of the cleaning parameters (128) is carried out by means of a deep learning model of the self-learning module or based on a stepwise increase or by means of maximum settings.A method according to any of the preceding claims, wherein the self-learning module (320) for building the reference database receives training data (331) of image structures from characteristic images of objects to be examined, preferably organs or tissue structures, and / or of smoke, automatically via an input interface (360) or by input (300) via a user. A method according to any of the preceding claims, wherein the following further occurs before or during the acquisition of image data. Initialization procedure steps (123) are performed: Providing at least one additional database containing technical data of usable image acquisition devices (115) and / or cleaning modules; Comparing the provided image acquisition device (115) with the technical data and recognizing the provided image acquisition device; and, depending on the recognized image acquisition device, transmitting stored data Cleaning parameters (128) to the cleaning module (130) for cleaning activation. The method of claim 20, wherein the method further comprises the following steps: starting a recognition routine to identify, based on the image data, structures of a body cavity or a technical cavity, preferably one to be examined to detect an area or object, and, based on a positive result of the detection routine, continue the process or, based on a negative result of the detection routine, terminate the process. A method according to any one of claims 2 to 21, further comprising a monitoring routine (129) with the following process steps: after cleaning by means of the cleaning module (130), analysis of the image data by a control unit (120); Comparing the image data with stored parameters (128) for a positive cleaning result; depending on the cleaning result, aborting or repeating the cleaning. A method according to any one of claims 2 to 22, further comprising: adapting (138) the cleaning to the degree of image degradation; wherein, in the case of severe image degradation, liquid cleaning is activated and cleaning parameters (128) defined depending on the endoscope provided are provided; and wherein, in the case of slight image degradation or sufficient probability of image improvement after liquid cleaning, gas cleaning is activated and cleaning parameters (128) defined depending on the endoscope provided are provided for drying (127).A control system for image optimization of at least one image acquired at the distal end of an endoscope, the system comprising: an image acquisition device (115); a control unit (120) with a self-learning module (320) in communication with the image acquisition device for receiving the image data and a storage unit. (122); wherein the self-learning module (320) is configured to determine at least one quality value based on training data (331) by comparing at least one specific image structure with image structures from a reference database stored in the storage unit (122), and wherein the control unit (120) is configured to automatically issue control instructions to a unit of the endoscope or an external unit to activate image optimization based on the determined quality value. A computer program product comprising instructions that, when the program is executed by a computer, cause it to perform the steps of the method according to any one of claims 1 to 23. A trained model (322) trained with training data (331), preferably according to claim 5, and wherein the trained model is configured to perform the steps of the method according to any one of claims 1 to 23. 58