Multimode fiber optic digestive endoscopy imaging and optimization method and device

Through deep learning models and singular value decomposition technology, the problem of recovering speckle image data in multi-mode fiber digestive endoscopic imaging is solved, achieving higher imaging quality and user comfort, reducing the diameter of the acquisition end, improving efficiency and reliability.

CN116862846BInactive Publication Date: 2024-09-10HENAN UNIV HUAIHE HOSPITAL
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310738697.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-20
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing multi-mode optical fiber digestive endoscopy imaging method requires two multi-mode optical fibers for input and output, so the diameter of the incident end of the living body cannot be further reduced, and random speckles will be formed at the output end due to mode coupling and mode interference. Pattern affects imaging clarity.

Method used

A deep learning model is used to reconstruct the speckle image data collected by a multi-mode fiber optic digestive endoscopic imaging device. Through the deep learning model trained in advance with granularity-controlled training data, the internal tissue image data of the living body is restored, and the image data is restored through reflection. Optical path design and singular value decomposition technology control speckle granularity.

Benefits of technology

It effectively reduces the diameter of the acquisition end of the digestive endoscope imaging device, improves user comfort, improves imaging quality, efficiency, reliability and automation, reduces the granularity of speckle image data, and enhances the accuracy of image reconstruction. sex.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116862846B
    Figure CN116862846B
Patent Text Reader

Abstract

The present application provides a multimode fiber optic digestive endoscopy imaging and optimization method and device, the method comprising: controlling a preset multimode fiber optic digestive endoscopy imaging device to collect speckle image data from inside a living body; inputting the speckle image data into a preset deep learning model so that the deep learning model reconstructs the speckle image data, and for the internal tissue image data of the living body corresponding to the output speckle image data, the deep learning model is pre-trained with training data with granularity control. The present application can effectively reduce the diameter of the acquisition end that extends into the human digestive tract for deep tissue imaging acquisition on the basis of ensuring the image acquisition quality of digestive endoscopy imaging, thereby improving the user's comfort; and can optimize and re-examine the collected speckle image data, and can improve the efficiency, reliability, intelligence and automation of optimizing and re-examining the speckle image data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of medical endoscopic imaging technology, and in particular to a multimode optical fiber digestive endoscopic imaging and optimization method and device. Background Art

[0002] Digestive tract tumors are a relatively common type of malignant tumors. The incidence in China is much higher than the world average. Among them, esophageal cancer, gastric cancer and colorectal cancer have the highest incidence and mortality rates, which seriously endanger people's lives and health. Various digestive endoscopes and artificial intelligence can effectively evaluate the horizontal boundaries of early digestive tract tumors before endoscopic resection. Accurately evaluating the horizontal boundaries of cancer foci and marking the resection range are crucial for the complete resection of early digestive tract tumors.

[0003] In recent years, multimode optical fibers (MMFs) have gradually become a popular tool in the field of image transmission. Due to its small core diameter, low loss, and low cost, multimode optical fibers are widely used in the field of medical endoscopic imaging. Compared with fiber bundles composed of a large number of single-mode optical fiber cores, multimode optical fibers can achieve higher resolution and lower invasiveness in endoscopic imaging applications.

[0004] However, in the existing multimode fiber digestive endoscopy imaging method, the multimode fiber digestive endoscopy imaging device used requires at least two multimode optical fibers for input and output, so the diameter of the incident end of the multimode fiber digestive endoscopy imaging device that penetrates into the living body cannot be further reduced. Although it is possible to penetrate into the digestive tract of the living body in a minimally invasive manner for real-time live imaging, the user's comfort is still limited. In addition, because multimode optical fibers carry hundreds or thousands of waveguide modes, when coherent light propagates through multimode optical fibers, due to mode coupling and mode interference, a seemingly random speckle pattern will be formed at the output end, which will affect the clarity of medical endoscopic imaging.

[0005] Therefore, there is an urgent need to design a multimode fiber optic digestive endoscopic imaging method that can improve user comfort and restore original image information. Summary of the invention

[0006] In view of this, the embodiments of the present application provide a multimode optical fiber digestive endoscopy imaging and optimization method and device to eliminate or improve one or more defects existing in the prior art.

[0007] One aspect of the present application provides a multimode optical fiber digestive endoscopic imaging and optimization method, comprising:

[0008] Control a preset multimode optical fiber digestive endoscope imaging device to collect speckle image data from inside a living body;

[0009] The speckle image data is input into a preset deep learning model so that the deep learning model reconstructs the speckle image data and outputs living body internal tissue image data corresponding to the speckle image data, wherein the deep learning model is pre-trained using training data with granularity controlled.

[0010] In some embodiments of the present application, it also includes:

[0011] A preset multimode optical fiber digestive endoscopy imaging experimental system was used to generate granularity-controlled training data;

[0012] A preset deep learning model is trained based on the granularity-controlled training data, so that the deep learning model is used to restore the speckle pattern to the corresponding internal tissue pattern of the living body for the speckle image data collected by the multimode fiber optic digestive endoscopy imaging device from the inside of the living body for image reconstruction.

[0013] In some embodiments of the present application, the multimode fiber digestive endoscopy imaging device comprises: a single multimode fiber coupler, and a first connecting line and a second connecting line are provided on one side of the multimode fiber coupler, and a third connecting line is provided on the other side of the multimode fiber coupler;

[0014] The multimode optical fiber digestive endoscopy imaging device further comprises: a first component connected to the first connecting line, a second component connected to the second connecting line, and a third component fixedly arranged on the third connecting line;

[0015] The first component includes a laser, a beam expander, an attenuator and a first objective lens connected in sequence, and the first objective lens is connected to the first connecting line;

[0016] The second component comprises: a CCD camera and a second objective lens connected in sequence, and the second objective lens is connected to the second connecting line;

[0017] The third component includes: a third objective lens.

[0018] In some embodiments of the present application, the controlling of a preset multimode optical fiber digestive endoscopy imaging device to collect speckle image data from inside a living body includes:

[0019] Probing a third connecting line of the multimode optical fiber digestive endoscope imaging device into a target area in the target living body;

[0020] The laser of the multimode fiber optic digestive endoscopy imaging device is controlled to emit a light beam, so that the light beam passes through the beam expander, the attenuator and the first objective lens in sequence to reach the multimode fiber optic coupler, and then is amplified by the third objective lens and irradiated to the target area for reflection, and then is transmitted to the second objective lens again through the multimode fiber optic coupler, so that the CCD camera collects the speckle image data corresponding to the target area after being magnified by the second objective lens.

[0021] In some embodiments of the present application, the multimode fiber digestive endoscopy imaging experimental system comprises: a single multimode fiber coupler, and a first connecting line and a second connecting line are provided on one side of the multimode fiber coupler, and a third connecting line is provided on the other side of the multimode fiber coupler;

[0022] The multimode optical fiber digestive endoscopy imaging experimental system further comprises: a first component connected to the first connecting line, a second component connected to the second connecting line, and a third component fixedly arranged on the third connecting line;

[0023] The first component includes a laser, a beam expander, an attenuator, a detachable first polarization beam splitter and a first objective lens which are connected in sequence, and the first objective lens is connected to the first connecting line;

[0024] The second component comprises: a CCD camera, a detachable second polarization beam splitter and a second objective lens connected in sequence, and the second objective lens is connected to the second connecting line;

[0025] The third component includes: a third objective lens, a detachable mask plate component, and a detachable terminal device;

[0026] Wherein, the terminal device is a spatial light modulator for performing transmission matrix calculation or a digital micromirror device for performing data pair acquisition.

[0027] In some embodiments of the present application, the use of a preset multimode optical fiber digestive endoscopy imaging experimental system to generate granularity-controlled training data includes:

[0028] In the multimode optical fiber digestive endoscopy imaging experimental system, the mask plate assembly is disassembled, and the spatial light modulator is selected as the current terminal device to obtain a first experimental subsystem corresponding to the multimode optical fiber digestive endoscopy imaging experimental system;

[0029] Controlling the laser in the first experimental subsystem to emit a light beam, so that after the light beam passes through the beam expander and the attenuator, it is split into a target light beam and a reference light beam by the first polarization beam splitter, the target light beam is coupled into the multimode fiber coupler through the first objective lens for transmission, and then amplified by the third objective lens to illuminate the spatial light modulator, so that a plurality of orthogonal image data are displayed on the spatial light modulator as an input light field for calculating the transmission matrix, and then the target light beam is transmitted again through the multimode fiber coupler and amplified by the second objective lens, and then interferes with the reference light beam through the second polarization beam splitter, so that the CCD camera collects corresponding interference speckle image data;

[0030] Based on the four-step phase-shift interferometry method, the transmission matrix used to characterize the transmission characteristics of the multimode optical fiber in the multimode optical fiber digestive endoscopy imaging experimental system is calculated according to the input light field and the interference speckle image data, and the transmission matrix is ​​subjected to singular value decomposition to obtain the corresponding target matrix for singular vector modulation of the light beam;

[0031] The first polarization beam splitter and the second polarization beam splitter are removed from the multimode optical fiber digestive endoscopy imaging experimental system, and the digital micromirror device is selected as the current terminal device to obtain a second experimental subsystem corresponding to the multimode optical fiber digestive endoscopy imaging experimental system;

[0032] Controlling the laser in the second experimental subsystem to emit a light beam, so that after passing through the beam expander and the attenuator, the light beam is coupled into the multimode fiber coupler through the first objective lens for transmission, and then illuminates the mask assembly after being magnified by the third objective lens, so as to control the mask assembly to perform phase modulation on the light beam under different singular vectors according to the target matrix to achieve speckle granularity control, and modulate the corresponding simulated original image data on the digital micromirror device to modulate the corresponding image information into the light beam, and then return to the multimode fiber coupler for transmission again, and after being magnified by the second objective lens, the CCD camera acquires the corresponding target speckle image data;

[0033] Each of the simulated original image data and the corresponding target speckle image data is used as the granularity-controlled training data.

[0034] In some embodiments of the present application, the deep learning model includes: a convolutional neural network.

[0035] Another aspect of the present application provides a multimode optical fiber digestive endoscopy imaging and optimization device, comprising:

[0036] An imaging module, used for controlling a preset multi-mode optical fiber digestive endoscope imaging device to collect speckle image data from inside a living body;

[0037] The optimization module is used to input the speckle image data into a preset deep learning model so that the deep learning model reconstructs the speckle image data and outputs living body internal tissue image data corresponding to the speckle image data, wherein the deep learning model is pre-trained using training data with granularity controlled.

[0038] The third aspect of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the multimode optical fiber digestive endoscopy imaging and optimization method when executing the computer program.

[0039] The fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the multi-mode optical fiber digestive endoscopy imaging and optimization method.

[0040] The multimode fiber optic digestive endoscopy imaging and optimization method provided in the present application controls a preset multimode fiber optic digestive endoscopy imaging device to collect speckle image data from inside a living body, and can effectively reduce the diameter of the collection end that extends into the human digestive tract for deep tissue imaging collection on the basis of ensuring the image collection quality of digestive endoscopy imaging, thereby improving the user's comfort; by inputting the speckle image data into a preset deep learning model, so that the deep learning model reconstructs the speckle image data, and outputs the living body internal tissue image data corresponding to the speckle image data, wherein the deep learning model is pre-trained using training data with granularity control, and can optimize and re-examine the collected speckle image data based on the granularity control of the speckle pattern output by the multimode fiber, thereby effectively improving the digestive endoscopy imaging quality, and can also improve the efficiency, reliability, intelligence and automation of optimizing and re-examining the speckle image data.

[0041] Additional advantages, purposes, and features of the present application will be partially described in the following description, and will become partially apparent to those skilled in the art after studying the following, or may be learned from the practice of the present application. The purposes and other advantages of the present application can be achieved and obtained by the structures specifically pointed out in the specification and the drawings.

[0042] Those skilled in the art will understand that the purposes and advantages that can be achieved by the present application are not limited to the above specific description, and the above and other purposes that can be achieved by the present application will be more clearly understood based on the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The drawings described herein are used to provide a further understanding of the present application, constitute a part of the present application, and do not constitute a limitation of the present application. The components in the drawings are not drawn to scale, but are only for the purpose of illustrating the principles of the present application. In order to facilitate the illustration and description of some parts of the present application, the corresponding parts in the drawings may be enlarged, that is, they may become larger relative to other components in the exemplary device actually manufactured according to the present application. In the drawings:

[0044] Figure 1 This is a first flow chart of the multimode optical fiber digestive endoscopy imaging and optimization method in the embodiment of the present application.

[0045] Figure 2 This is a second flow chart of the multimode optical fiber digestive endoscopy imaging and optimization method in the embodiment of the present application.

[0046] Figure 3 This is a schematic diagram showing an example of the structure of a multimode optical fiber digestive endoscopy imaging device in an embodiment of the present application.

[0047] Figure 4 This is a third flow chart of the multimode optical fiber digestive endoscopy imaging and optimization method in the embodiment of the present application.

[0048] Figure 5 This is a schematic diagram of an example structure of the first experimental subsystem in the multi-mode optical fiber digestive endoscopy imaging experimental system in an embodiment of the present application.

[0049] Figure 6 This is a schematic diagram of an example structure of the second experimental subsystem in the multi-mode optical fiber digestive endoscopy imaging experimental system in an embodiment of the present application.

[0050] Figure 7 This is a diagram of the system imaging process without granularity control and with granularity control using different singular vectors in the embodiments of the present application.

[0051] Figure 8 FIG. 4 is a functional relationship diagram of the speckle granularity and the singular vector in the embodiment of the present application.

[0052] Fig. 9 Schematic diagram of the FC encoding-decoding network structure in the embodiment of the present application.

[0053] Fig.10 Schematic diagram of comparison of partial reconstruction results in the test set in the embodiment of the present application.

[0054] Fig.11 It is a schematic diagram of the structure of the multi-mode optical fiber digestive endoscopy imaging and optimization device in the embodiment of the present application. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the implementation modes and the accompanying drawings. Here, the illustrative implementation modes and descriptions of the present application are used to explain the present application, but are not intended to limit the present application.

[0056] It should also be noted here that in order to avoid obscuring the present application due to unnecessary details, only the structures and / or processing steps closely related to the scheme according to the present application are shown in the accompanying drawings, while other details that are not very relevant to the present application are omitted.

[0057] It should be emphasized that the term “include / comprises” when used herein refers to the presence of features, elements, steps or components, but does not exclude the presence or addition of one or more other features, elements, steps or components.

[0058] It should also be noted that, unless otherwise specified, the term “connection” herein may refer not only to a direct connection but also to an indirect connection involving an intermediate.

[0059] Hereinafter, embodiments of the present application will be described with reference to the accompanying drawings. In the accompanying drawings, the same reference numerals represent the same or similar components, or the same or similar steps.

[0060] In response to the problem that multimode optical fiber forms a seemingly random speckle pattern at the output end during endoscopic imaging applications, the designers of this application first considered that this process does not lose image information, but rather encodes it in a complex manner. Therefore, if the propagation process of light in the optical fiber can be known, then it is possible to restore the original image information.

[0061] Specifically, although the speckle formed at the far end after transmission through a multimode optical fiber appears random, it still exhibits predictable characteristics. The designers of this application have found through research that the field amplitudes of these speckles obey the Rayleigh distribution and are locally correlated in space. The spatial range of these local correlations is usually referred to as the speckle granularity size. Different speckle granularity sizes reflect the order of the waveguide mode excited by the optical signal during the propagation of the multimode optical fiber. Low-order modes lead to larger speckle granularity, and high-order modes lead to smaller speckle granularity.

[0062] Based on this, the present application proposes a multimode fiber digestive endoscopy imaging and optimization method. Through a reflective optical path design, a multimode fiber digestive endoscopy imaging device that uses the same optical fiber to transmit light source and image collects speckle image data from inside a living body, which can further reduce the diameter of the multimode optical fiber of the digestive endoscopy imaging device extending into the human body, and the diameter of the multimode optical fiber is only in the micrometer range, so that it can achieve real-time in vivo imaging in a minimally invasive manner deep into the digestive tract and tissues. It is a medical endoscopy imaging microscope for imaging the inside of the human digestive tract. On this basis, the multimode fiber digestive endoscopy imaging and optimization method also pre-trains a deep learning model using training data that has been granularly controlled, and inputs the speckle image data into a preset deep learning model so that the deep learning model reconstructs the speckle image data, and outputs the in vivo internal tissue image data corresponding to the speckle image data, based on the granularity control of the speckle pattern output by the multimode optical fiber, which can effectively improve the digestive endoscopy imaging quality.

[0063] The details are described in detail through the following embodiments.

[0064] The present application embodiment provides a multimode optical fiber digestive endoscopy imaging and optimization method that can be implemented by a multimode optical fiber digestive endoscopy imaging and optimization device, see Figure 1 The multimode optical fiber digestive endoscopy imaging and optimization method specifically includes the following contents:

[0065] Step 100: Control a preset multi-mode optical fiber digestive endoscopy imaging device to collect speckle image data from inside a living body.

[0066] In step 100, the multimode optical fiber digestive endoscopy imaging device refers to a digestive endoscopy imaging device that uses a reflective optical path design to transmit a light source and an image using the same optical fiber.

[0067] In one or more embodiments of the present application, a living body may refer to a human body or other animals, etc.

[0068] It is understandable that the speckle image data refers to the image data of the internal tissue of the living body containing the speckle pattern. Since the multimode optical fiber carries hundreds or thousands of waveguide modes, when the coherent light propagates through the multimode optical fiber, due to mode coupling and mode interference, a seemingly random speckle pattern will be formed on the collected internal tissue image of the living body, which will affect the clarity of medical endoscopic imaging.

[0069] Step 200: Input the speckle image data into a preset deep learning model so that the deep learning model reconstructs the speckle image data and outputs living body internal tissue image data corresponding to the speckle image data, wherein the deep learning model is pre-trained using granularity-controlled training data.

[0070] Before executing step 200, it is necessary to first use the training data with granularity control to train the deep learning model, wherein each historical speckle image data in the training set is provided with a corresponding label, and these labels are the image data of the internal tissue of the living body after removing the speckle pattern in the historical speckle image data, and specifically, the simulated original image data can be used. These historical speckle image data refer to the target speckle image data obtained after granularity control. The different granularity sizes of the modulated speckle have different effects on the reconstruction effect of the image, but compared with the speckle without granularity control, the reconstruction effect is improved. By comparing the reconstruction results of singular vectors with different sequence numbers, the singular vector with the greatest improvement on image reconstruction and the corresponding speckle granularity size after granularity control can be found.

[0071] From the above description, it can be seen that the multi-mode optical fiber digestive endoscopy imaging and optimization method provided in the embodiment of the present application can effectively reduce the diameter of the acquisition end that extends into the human digestive tract for deep tissue imaging of the digestive tract while ensuring the image acquisition quality of the digestive endoscopy imaging, thereby improving the user's comfort; and can optimize and re-check the collected speckle image data, and can improve the efficiency, reliability, intelligence and automation of the optimized re-check of the speckle image data.

[0072] In order to further improve the reliability and effectiveness of multimode optical fiber digestive endoscopy imaging optimization, in a multimode optical fiber digestive endoscopy imaging and optimization method provided in an embodiment of the present application, see Figure 2 The multimode optical fiber digestive endoscopy imaging and optimization method may specifically include the following contents before step 100 or before and after the execution of other steps:

[0073] Step 010: Use the preset multi-mode optical fiber digestive endoscopy imaging experimental system to generate granularity-controlled training data.

[0074] In step 010, in order to further improve the reliability of multimode fiber optic digestive endoscopy imaging optimization, a corresponding multimode fiber optic digestive endoscopy imaging experimental system can be constructed based on the multimode fiber optic digestive endoscopy imaging device, so that the final trained or updated deep learning model can be particularly suitable for the speckle image data collected by the multimode fiber optic digestive endoscopy imaging device.

[0075] Step 020: Train a preset deep learning model based on the granularity-controlled training data, so that the deep learning model is used to restore the speckle pattern into the corresponding in vivo internal tissue pattern for image reconstruction of the speckle image data collected from the inside of the living body by the multimode fiber optic digestive endoscopy imaging device.

[0076] In order to further reduce the diameter of the collection end of the multimode optical fiber digestive endoscopic imaging device, in a multimode optical fiber digestive endoscopic imaging and optimization method provided in an embodiment of the present application, see Figure 3 The multimode optical fiber digestive endoscopy imaging device specifically includes the following contents:

[0077] A single multimode optical fiber coupler MMF, which can be a 1×2 multimode optical fiber coupler. A first connecting line 11 and a second connecting line 12 are provided on one side of the multimode optical fiber coupler MMF, and a third connecting line 13 is provided on the other side of the multimode optical fiber coupler MMF;

[0078] The multimode optical fiber digestive endoscopy imaging device further comprises: a first component 21 connected to the first connecting line 11, a second component 22 connected to the second connecting line 12, and a third component 23 fixedly disposed on the third connecting line 13;

[0079] The first component 21 includes a laser 31, a beam expander 32, an attenuator 33 and a first objective lens 1 which are connected in sequence, and the first objective lens 1 is connected to the first connecting line 11;

[0080] The second component 22 includes: a CCD camera 34 and a second objective lens 2 connected in sequence, and the second objective lens 2 is connected to the second connecting line 12;

[0081] The third component 23 includes: a third objective lens 3 .

[0082] In a specific embodiment, the multimode fiber coupler MMF, laser 31, beam expander 32, attenuator 33, first objective lens 1, CCD camera, second objective lens 2 and third objective lens 3 can all be integrated in the same housing, and the side of the third connecting line 13 away from the first connecting line 11 and the second connecting line 12 is the collection end of the multimode fiber optic digestive endoscopy imaging device for extending into the living body.

[0083] In order to further improve the reliability and effectiveness of multimode optical fiber digestive endoscopic imaging, in a multimode optical fiber digestive endoscopic imaging and optimization method provided in an embodiment of the present application, see Figure 4 Step 100 in the multimode optical fiber digestive endoscopy imaging and optimization method specifically includes the following contents:

[0084] Step 110: Probe the third connecting line of the multimode optical fiber digestive endoscopy imaging device into the target area in the target living body.

[0085] Step 120: Control the laser of the multimode fiber optic digestive endoscopy imaging device to emit a light beam, so that the light beam passes through the beam expander, the attenuator and the first objective lens in sequence to reach the multimode fiber optic coupler, and then is amplified by the third objective lens and irradiated to the target area for reflection, and then is transmitted to the second objective lens again through the multimode fiber optic coupler, so that the CCD camera collects the speckle image data corresponding to the target area after being magnified by the second objective lens.

[0086] In order to further improve the application reliability and effectiveness of the multimode optical fiber digestive endoscopy imaging experimental system, in a multimode optical fiber digestive endoscopy imaging and optimization method provided in the embodiment of the present application, see Figure 5 and Figure 6 The multimode optical fiber digestive endoscopy imaging experimental system specifically includes the following contents:

[0087] A single multimode optical fiber coupler MMF, which can be a 1×2 multimode optical fiber coupler. A first connecting line 11 and a second connecting line 12 are provided on one side of the multimode optical fiber coupler MMF, and a third connecting line 13 is provided on the other side of the multimode optical fiber coupler MMF;

[0088] The multimode optical fiber digestive endoscopy imaging experimental system further includes: a first component 21 connected to the first connecting line 11, a second component 22 connected to the second connecting line 12, and a third component 23 fixedly arranged on the third connecting line 13;

[0089] The first component 21 includes a laser 31, a beam expander 32, an attenuator 33, a detachable first polarization beam splitter PBS1 and a first objective lens 1 which are connected in sequence, and the first objective lens 1 is connected to the first connecting line 11;

[0090] The second component 22 includes: a CCD camera 34, a detachable second polarization beam splitter PBS2 and a second objective lens 2 which are connected in sequence, and the second objective lens 2 is connected to the second connecting line 12;

[0091] The third component 23 includes: a third objective lens 3, a detachable mask plate component 35, and a detachable terminal device;

[0092] Wherein, the terminal device is a spatial light modulator SLM for performing transmission matrix calculation or a digital micromirror device DMD for performing data pair acquisition.

[0093] That is to say, the multimode fiber digestive endoscopy imaging experimental system is specifically a multimode fiber digestive endoscopy imaging system, which can at least include a laser as a light source initiator, a beam expander, an attenuator, two polarization beam splitters PBS, a 1×2 multimode fiber coupler, three sets of objective lenses, several sets of singular vector masks, a digital micromirror device DMD, a spatial light modulator SLM and a CCD camera. The two polarization beam splitters can specifically be a first polarization beam splitter PBS1 and a second polarization beam splitter PBS2. The three sets of objective lenses can include: a first objective lens 1, a second objective lens 2 and a third objective lens 3.

[0094] In one example, a multimode fiber coupler can be a multimode fiber coupler with a splitting ratio of 50:50, a core diameter of 105μm, a numerical aperture of 0.22, and a length of 1m. The digital micromirror device can achieve the effect of modulating the light field and outputting a grayscale image by controlling a number of micromirrors to flip at a certain angle and different flipping frequencies through a computer. The spatial light modulator can be a phase type, using liquid crystal molecules to modulate the phase through the refractive index, so as to write certain information into the light wave to achieve the purpose of light wave modulation. The spatial light modulator SLM can be controlled by a computer as an ordinary display, and the computer "displays" the phase on the spatial light modulator SLM (the grayscale value of each pixel of the displayed image [generally 0 to 255] corresponds to the phase modulation value [0 to 2π] of the corresponding liquid crystal unit). The hardware parameters of the multimode fiber digestive endoscopy imaging experimental system are shown in Table 1.

[0095] Table 1: Experimental system hardware parameters

[0096] In order to further improve the reliability and effectiveness of multimode optical fiber digestive endoscopy imaging optimization, in a multimode optical fiber digestive endoscopy imaging and optimization method provided in an embodiment of the present application, see Figure 4 Step 010 in the multimode optical fiber digestive endoscopy imaging and optimization method specifically includes the following contents:

[0097] Step 011: dismantling the mask assembly in the multi-mode optical fiber digestive endoscopy imaging experimental system, and selecting the spatial light modulator as the current terminal device to obtain a first experimental subsystem corresponding to the multi-mode optical fiber digestive endoscopy imaging experimental system;

[0098] Step 012: Control the laser in the first experimental subsystem to emit a light beam, so that after the light beam passes through the beam expander and the attenuator, it is divided into a target light beam and a reference light beam by the first polarization beam splitter, the target light beam is coupled into the multimode fiber coupler through the first objective lens for transmission, and then amplified by the third objective lens to illuminate the spatial light modulator, so that a plurality of orthogonal image data are displayed on the spatial light modulator as an input light field for calculating the transmission matrix, and then the target light beam is transmitted again through the multimode fiber coupler and amplified by the second objective lens, and then interferes with the reference light beam through the second polarization beam splitter, so that the CCD camera collects corresponding interference speckle image data;

[0099] Step 013: Based on the four-step phase-shift interferometry method, the transmission matrix used to characterize the transmission characteristics of the multimode optical fiber in the multimode optical fiber digestive endoscopy imaging experimental system is calculated according to the input light field and the interference speckle image data, and the transmission matrix is ​​subjected to singular value decomposition to obtain the corresponding target matrix for singular vector modulation of the light beam;

[0100] Step 014: Dismantle the first polarization beam splitter and the second polarization beam splitter in the multimode optical fiber digestive endoscopy imaging experimental system, and select the digital micromirror device as the current terminal device to obtain a second experimental subsystem corresponding to the multimode optical fiber digestive endoscopy imaging experimental system;

[0101] Step 015: Control the laser in the second experimental subsystem to emit a light beam, so that after passing through the beam expander and the attenuator, the light beam is coupled into the multimode fiber coupler through the first objective lens for transmission, and then amplified by the third objective lens to illuminate the mask assembly, so as to control the mask assembly to perform phase modulation on the light beam under different singular vectors according to the target matrix to achieve speckle granularity control, and modulate the corresponding simulated original image data on the digital micromirror device to modulate the corresponding image information into the light beam, and then return to the multimode fiber coupler for transmission again, and after being amplified by the second objective lens, the CCD camera acquires the corresponding target speckle image data;

[0102] Step 016: taking each of the simulated original image data and the corresponding target speckle image data as the granularity-controlled training data.

[0103] The experiment is divided into two steps. The first step is to use the four-step phase-shift interferometry method to calculate the transmission matrix T that characterizes the transmission characteristics of the multimode optical fiber in the first experimental subsystem, and perform singular value decomposition (SVD); the second step is to place a mask plate representing different singular vectors to form a second experimental subsystem, modulate the corresponding phase information into the light beam, display a series of input images on the digital micromirror device DMD, and capture the corresponding speckle pattern obtained at the far end of the multimode optical fiber with a CCD camera. The input and output data pairs under different singular vector modulations are collected as network training sets, and the mapping model is trained through deep learning methods to achieve image reconstruction.

[0104] The experimental process of step 1 is as follows:

[0105] After the laser emits light through the beam expander and attenuator, it is divided into two beams by the first polarization beam splitter: the target beam and the reference beam. The target beam is coupled into the multimode fiber coupler MMF through the first objective lens 1 for transmission, and illuminates the spatial light modulator SLM after being amplified by the third objective lens 3. A series of orthogonal patterns are displayed on the spatial light modulator SLM as the input light field in the process of calculating the transmission matrix T. After being transmitted through the multimode fiber coupler MMF again, the target beam is amplified by the second objective lens 2, and interferes with the reference beam through the second polarization beam splitter PBS2. The CCD camera collects the corresponding interference speckle pattern to calculate the transmission matrix.

[0106] The experimental process of step 2 is as follows:

[0107] After the laser emits a light source through a beam expander and an attenuator, it is coupled into the multimode fiber coupler MMF through the first objective lens 1 for transmission, and then illuminates the singular vector mask after passing through the third objective lens 3. The light beam is phase modulated under different singular vectors to achieve speckle granularity control. The grayscale target original image (simulating a real scene) is modulated on the digital micromirror device DMD, and the image information is modulated into the light beam. After returning to the multimode fiber coupler MMF for transmission again, it is amplified by the second objective lens 2, and the CCD camera collects the corresponding speckle pattern.

[0108] In one or more embodiments of the present application, the four-step phase-shift interferometry method specifically refers to:

[0109] The transmission matrix describes the propagation of light through a multimode optical fiber. The input light field E in With the output light field E out The expression is shown in formula (1). The input light field and the output light field are divided into n and m parts respectively. The mth output light field can be expressed as formula (2), where: is the mth output light field; is the nth input light field; t mn are the elements of the transmission matrix T, following a complex Gaussian distribution, and the size of the transmission matrix T is M×N.

[0110] E out =TE in (1)

[0111]

[0112] For any input light field, the complex amplitude of the control light (n=1,2,…,N), N represents the total number of control light channels in the input light. If the phase of the modulated light is a quantity that changes with a constant α, combined with the interference superposition of light waves, the light intensity of the mth output channel can be described by the following formula:

[0113]

[0114] Among them, s m It represents the complex amplitude of the output light generated at the mth output channel of the detector after the reference light passes through the multimode optical fiber. Indicates m The transposed conjugate of , Re(·) operator is used to find the real part of a complex number.

[0115] Therefore, when the n-dimensional Hadamard basis is input, and a=0,π / 2,π,3π / 2, these phase shifts are respectively substituted into formula (3), and combined with Euler's formula, the measured intensity value can be and Respectively expressed as:

[0116]

[0117]

[0118]

[0119]

[0120] Through formula (4), we can find Proportional to the real part of the transmission matrix to be measured, It is proportional to the imaginary part of the transmission matrix to be measured. Therefore, the intensity at the mth output channel is:

[0121]

[0122] In the formula, for any output channel m, the pulse response generated by the reference light during the beam transmission process is is a constant value, so as long as the input light field value is continuously changed ( is the matrix corresponding to each column of the Hadamard basis, so it is a set of linearly independent inputs), we can get multiple different The output light fields corresponding to different input light fields are obtained, and then formula (5) is used to solve all t mn , and then form the transmission matrix T. Since four phase shifts are performed when measuring each column of the transmission matrix and the phase shift range is [0,2πrad), this method is called four-step phase shift interferometry.

[0123] From a mathematical point of view, each input light field value It can be expressed in the form of a vector, that is, x i Indicates the i-th measurement time (n=1,2,…,n) column vector And we can also use the vector y on the left side of formula (5) i Indicates that The vector y corresponding to the left side of all formulas (5) m The column vector (y1, y2, ..., y m ) T , combined with formula (5), we can get the following formula:

[0124] y i =S ref ×T×x i (6)

[0125] In the formula, S ref Is The complex diagonal matrix represented by because is constant, so S ref It also remains constant to a certain extent. When the input column vector is changed to the Nth column vector, that is, the Nth input Hadamard image, the following formula is obtained:

[0126] [y1,y2,…,y N ]=S ref ×T×[x1,x2,…,x N ] (7)

[0127] Write the above column vector in matrix form, let X = [x1, x2, ..., x N ],Y=[y1,y2,…,y N ],but:

[0128] Y=S ref ×T×X (8)

[0129] When the rank of X exceeds the number of elements n required to be solved, the equation system of (6) has a unique solution, that is, N needs to be greater than or equal to n. For example, if the size of the input Hadamard image is 32*32, the number of images required needs to be greater than or equal to 1024, and the matrix X constructed can make the solution T unique. ref It can be eliminated by normalization during the calculation process, so after transformation, the transfer matrix can be obtained as:

[0130] T=Y×X -1 (9)

[0131] Singular Value Decomposition (SVD): It is a method that generalizes eigendecomposition to non-square matrices. For a transfer matrix T of size M×N, the singular value decomposition process is as follows:

[0132]

[0133] Where U and V are both unitary matrices, that is, they satisfy U T U=I,V T V = I, is a matrix containing the so-called left and right singular vectors, V H is the conjugate transpose of V, Σ is a diagonal matrix whose diagonal elements are the singular values ​​of the transfer matrix T.

[0134] The present application performs singular value decomposition on the transmission matrix T to obtain a matrix V, where each column of V is a right singular vector of T. The column values ​​are reshaped into a two-dimensional matrix and displayed on a spatial light modulator SLM, so that the singular vector modulation of the light beam can be performed to achieve output speckle pattern granularity control.

[0135] The following is a collection principle and algorithm model for reflective single multimode optical fiber imaging based on granularity control proposed in this application. Figure 7 The imaging process diagram of the system without granularity control and after granularity control with different singular vectors is shown. After calculation, the size of the transmission matrix T of the multimode optical fiber is 255*1024, corresponding to 255 singular vectors. After modulation by the 8th singular vector No.8, the speckle pattern has a larger granularity compared with the speckle image without control. After modulation by the 134th singular vector No.134, the speckle pattern has a smaller granularity compared with the speckle image without control. The different granularity sizes of the modulated speckle have different effects on the image reconstruction effect, but compared with the speckle without granularity control, the reconstruction effect is improved. By comparing the reconstruction results of singular vectors with different serial numbers, the singular vector with the greatest improvement in image reconstruction and the corresponding speckle granularity size after granularity control can be found.

[0136] After the original image passes through the single multimode fiber imaging system, the image information loses its original phase relationship due to the different image velocities of various waveguide modes in the multimode fiber. Finally, the image collected by the camera is a seemingly random speckle. At the same time, since the image information is phase modulated by different singular vectors displayed on the SLM, the size of the collected speckle pattern will change accordingly. Theoretically, as the number of the modulated singular vector increases, the corresponding speckle size generally decreases, such as Figure 8 As shown. From the overall perspective of the multimode fiber imaging system, the effect of multimode fiber on the light field can be regarded as a mapping. As long as the inverse transformation of this mapping relationship is found, the input original image can be restored by outputting speckles. A certain number of speckle patterns obtained at the far end of the multimode fiber and their corresponding original images can be collected in advance as training sets, and a mapping model can be obtained through deep learning methods. After that, each speckle collected can be used to calculate its corresponding original image through the model.

[0137] In order to further improve the reliability and effectiveness of multimode fiber digestive endoscopy imaging optimization, in a multimode fiber digestive endoscopy imaging and optimization method provided in an embodiment of the present application, the deep learning model includes: a convolutional neural network. The convolutional neural network includes: an input layer, a fully connected layer, an encoder, a decoder, and an output layer connected in sequence; the encoder-decoder includes two downsampling units connected in sequence, and the decoder includes two upsampling layers connected in sequence.

[0138] Specifically, the present application can use a convolutional network structure of an FC encoder-decoder structure to establish a deep learning model, such as Fig. 9 As shown in the figure. The resolution of the input speckle image is 192×192, and the resolution of the output image is 48×48. The encoder-decoder structure consists of two downsampling units and two upsampling units, each of which consists of two 3×3 convolutional layers followed by a rectified linear unit (ReLU). Downsampling and upsampling are implemented by a maximum pooling layer and a transposed convolutional layer, respectively. The output layer contains a 1×1 convolutional layer and a tanh function.

[0139] Based on this, this application proposes a multimode fiber digestive endoscopy imaging and optimization method. Through the reflective optical path design, the same optical fiber is used to transmit the light source and the image, further reducing the diameter of the imaging system. By applying the wavefront shaping technology, the transmission matrix (TM) that can characterize the transmission characteristics of the multimode optical fiber is calculated, and the singular value decomposition (SVD) operation is performed. The singular vectors of different serial numbers correspond to the propagation of different order modes in the multimode optical fiber, thereby controlling the size of the speckle granularity and achieving more accurate imaging. At the same time, the deep learning algorithm is adopted, and the whole system has high robustness, fast imaging speed and simple hardware.

[0140] In a specific application example: according to Figure 5 and Figure 6 A single reflective multimode fiber imaging experimental system was built. Table 1 shows the hardware and parameters used in the experimental system. The single reflective multimode fiber imaging experimental system uses the SIPaKMeD cell image dataset, and 10,000 corresponding speckle patterns are collected through the experimental system. The ratio of the training set to the test set is 9:1, using Fig. 9 The network model shown in the figure is trained for 150 generations, and the loss function uses the mean square error (MSE) function. After 150 generations, the network basically stops converging. The performance of the trained model on some images in the test set is shown in the figure. Fig.10 As shown. Without modulating the singular vectors, that is, without granularity control, the average peak signal-to-noise ratio (PSNR) of image reconstruction using the deep learning method is 15.01, and the average structural similarity (SSIM) is 0.623; after modulating different singular vectors, that is, through granularity control, the highest average peak signal-to-noise ratio (PSNR) on the SIPaKMeD dataset can reach 16.84, and the highest average structural similarity (SSIM) can reach 0.691; the lowest average peak signal-to-noise ratio (PSNR) is 16.2, and the lowest average structural similarity (SSIM) is 0.672. Compared with the image reconstruction results without modulation, that is, without granularity control, the PSNR can be improved by up to 1.83 and at least 1.19, and the SSIM can be improved by up to 0.068 and at least 0.049;

[0141] It can be seen that the reconstruction effect after granularity control is significantly improved in PSNR and SSIM compared with the reconstruction effect without granularity control. Among them, the 134th singular vector No.134 has the greatest improvement on imaging quality, and the 8th singular vector No.8 has the least improvement on imaging quality. The experimental results show that selecting a suitable mask plate for beam modulation before imaging the object can effectively improve the imaging quality of multimode fiber digestive endoscopy.

[0142] In summary, the embodiment of the present application provides a medical endoscopic imaging microscope system for imaging the inside of the human digestive tract. The diameter of the multimode optical fiber used in the imaging system is only in the micrometer range, so that real-time in vivo imaging can be achieved in-depth into the digestive tract and tissues in a minimally invasive manner. The use of a reflective multimode optical fiber imaging system can further reduce the diameter of the fiber, and based on the granularity control of the speckle pattern output by the multimode optical fiber, the imaging quality of digestive endoscopy can be effectively improved.

[0143] From the software level, the present application also provides a multimode optical fiber digestive endoscopic imaging and optimization device for executing all or part of the multimode optical fiber digestive endoscopic imaging and optimization method, see Fig.11 The multimode optical fiber digestive endoscopy imaging and optimization device specifically includes the following contents:

[0144] An imaging module 10 is used to control a preset multi-mode optical fiber digestive endoscope imaging device to collect speckle image data from inside a living body;

[0145] The optimization module 20 is used to input the speckle image data into a preset deep learning model so that the deep learning model reconstructs the speckle image data and outputs living body internal tissue image data corresponding to the speckle image data, wherein the deep learning model is pre-trained using training data with granularity controlled.

[0146] The embodiment of the multimode optical fiber digestive endoscopy imaging and optimization device provided in the present application can be specifically used to execute the processing flow of the embodiment of the multimode optical fiber digestive endoscopy imaging and optimization method in the above-mentioned embodiment. Its functions will not be repeated here, and reference can be made to the detailed description of the above-mentioned multimode optical fiber digestive endoscopy imaging and optimization method embodiment.

[0147] The part of the multimode optical fiber digestive endoscopy imaging and optimization device that performs multimode optical fiber digestive endoscopy imaging and optimization can be executed in the server or completed in the client device. The specific selection can be based on the processing power of the client device and the limitations of the user's usage scenario. This application is not limited to this. If all operations are completed in the client device, the client device may also include a processor for the specific processing of multimode optical fiber digestive endoscopy imaging and optimization.

[0148] Specifically, the multi-mode optical fiber digestive endoscopic imaging and optimization device can be communicatively connected between the multi-mode optical fiber digestive endoscopic imaging devices.

[0149] The client device may have a communication module (i.e., a communication unit) that can communicate with a remote server to achieve data transmission with the server. The server may include a server on the task scheduling center side, and other implementation scenarios may also include a server on an intermediate platform, such as a server on a third-party server platform that has a communication link with the task scheduling center server. The server may include a single computer device, or a server cluster consisting of multiple servers, or a server structure of a distributed device.

[0150] The server and the client device may communicate with each other using any suitable network protocol, including network protocols that have not yet been developed on the date of filing this application. The network protocols may include, for example, TCP / IP, UDP / IP, HTTP, HTTPS, etc. Of course, the network protocols may also include, for example, RPC (Remote Procedure Call Protocol) and REST (Representational State Transfer) protocols used on top of the above protocols.

[0151] From the above description, it can be seen that the multi-mode optical fiber digestive endoscopy imaging and optimization device provided in the embodiment of the present application can effectively reduce the diameter of the acquisition end that extends into the human digestive tract for deep tissue imaging of the digestive tract while ensuring the image acquisition quality of digestive endoscopy imaging, thereby improving the user's comfort; and can optimize and re-check the collected speckle image data, and can improve the efficiency, reliability, intelligence and automation of optimizing and re-checking the speckle image data.

[0152] The present application also provides an electronic device, which may include a processor, a memory, a receiver, and a transmitter, wherein the processor is used to execute the multimode optical fiber digestive endoscopy imaging and optimization method mentioned in the above embodiment, wherein the processor and the memory may be connected via a bus or other means, such as by bus connection. The receiver may be connected to the processor and the memory via wired or wireless means.

[0153] The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.

[0154] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs, non-transient computer executable programs and modules, such as the program instructions / modules corresponding to the multi-mode optical fiber digestive endoscopy imaging and optimization method in the embodiment of the present application. The processor executes various functional applications and data processing of the processor by running the non-transient software programs, instructions and modules stored in the memory, that is, the multi-mode optical fiber digestive endoscopy imaging and optimization method in the above method embodiment is realized.

[0155] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0156] The one or more modules are stored in the memory, and when executed by the processor, perform the multi-mode optical fiber digestive endoscopy imaging and optimization method in the embodiment.

[0157] In some embodiments of the present application, the user equipment may include a processor, a memory, and a transceiver unit, which may include a receiver and a transmitter. The processor, memory, receiver, and transmitter may be connected through a bus system. The memory is used to store computer instructions, and the processor is used to execute the computer instructions stored in the memory to control the transceiver unit to send and receive signals.

[0158] As an implementation method, the functions of the receiver and the transmitter in the present application can be considered to be implemented through a transceiver circuit or a dedicated chip for transceiver, and the processor can be considered to be implemented through a dedicated processing chip, a processing circuit or a general chip.

[0159] As another implementation method, it is possible to use a general-purpose computer to implement the server provided in the embodiment of the present application, that is, to store the program code for implementing the functions of the processor, receiver, and transmitter in a memory, and the general-purpose processor implements the functions of the processor, receiver, and transmitter by executing the code in the memory.

[0160] The present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the aforementioned multimode fiber digestive endoscopy imaging and optimization method. The computer-readable storage medium may be a tangible storage medium, such as a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a floppy disk, a hard disk, a removable storage disk, a CD-ROM, or any other form of storage medium known in the technical field.

[0161] It should be understood by those skilled in the art that the exemplary components, systems and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software or a combination of the two. Whether it is specifically performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier.

[0162] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0163] In this application, the features described and / or illustrated for one embodiment may be used in the same manner or in a similar manner in one or more other embodiments, and / or combined with or replace the features of other embodiments.

[0164] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the embodiments of the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A multimode optical fiber digestive endoscopy imaging and optimization method, characterized in that: include: A preset multimode optical fiber digestive endoscopy imaging experimental system was used to generate granularity-controlled training data; A preset deep learning model is trained based on the granularity-controlled training data, so that the deep learning model is used to restore the speckle pattern to the corresponding tissue pattern inside the living body for the speckle image data collected from the inside of the living body by the multimode optical fiber digestive endoscopy imaging device; Control a preset multimode optical fiber digestive endoscope imaging device to collect speckle image data from inside a living body; Inputting the speckle image data into a preset deep learning model, so that the deep learning model performs image reconstruction on the speckle image data and outputs in vivo internal tissue image data corresponding to the speckle image data, wherein the deep learning model is pre-trained using granularity-controlled training data; The multimode optical fiber digestive endoscopy imaging experimental system comprises: a single multimode optical fiber coupler, wherein a first connecting line and a second connecting line are arranged on one side of the multimode optical fiber coupler, and a third connecting line is arranged on the other side of the multimode optical fiber coupler; The multimode optical fiber digestive endoscopy imaging experimental system further comprises: a first component connected to the first connecting line, a second component connected to the second connecting line, and a third component fixedly arranged on the third connecting line; The first component includes a laser, a beam expander, an attenuator, a detachable first polarization beam splitter and a first objective lens which are connected in sequence, and the first objective lens is connected to the first connecting line; The second component comprises: a CCD camera, a detachable second polarization beam splitter and a second objective lens connected in sequence, and the second objective lens is connected to the second connecting line; The third component includes: a third objective lens, a detachable mask plate component, and a detachable terminal device; Wherein, the terminal device is a spatial light modulator for performing transmission matrix calculation or a digital micromirror device for performing data pair acquisition; The method of using a preset multimode optical fiber digestive endoscopy imaging experimental system to generate granularity-controlled training data includes: In the multi-mode optical fiber digestive endoscopy imaging experimental system, the mask plate assembly is disassembled, and the spatial light modulator is selected as the current terminal device to obtain a first experimental subsystem corresponding to the multi-mode optical fiber digestive endoscopy imaging experimental system; Controlling the laser in the first experimental subsystem to emit a light beam, so that after the light beam passes through the beam expander and the attenuator, it is split into a target light beam and a reference light beam by the first polarization beam splitter, the target light beam is coupled into the multimode fiber coupler through the first objective lens for transmission, and then amplified by the third objective lens to illuminate the spatial light modulator, so that a plurality of orthogonal image data are displayed on the spatial light modulator as an input light field for calculating the transmission matrix, and then the target light beam is transmitted again through the multimode fiber coupler and amplified by the second objective lens, and then interferes with the reference light beam through the second polarization beam splitter, so that the CCD camera collects corresponding interference speckle image data; Based on the four-step phase-shift interferometry method, the transmission matrix used to characterize the transmission characteristics of the multimode optical fiber in the multimode optical fiber digestive endoscopy imaging experimental system is calculated according to the input light field and the interference speckle image data, and the transmission matrix is ​​subjected to singular value decomposition to obtain the corresponding target matrix for singular vector modulation of the light beam; The first polarization beam splitter and the second polarization beam splitter are removed from the multimode optical fiber digestive endoscopy imaging experimental system, and the digital micromirror device is selected as the current terminal device to obtain a second experimental subsystem corresponding to the multimode optical fiber digestive endoscopy imaging experimental system; Controlling the laser in the second experimental subsystem to emit a light beam, so that after passing through the beam expander and the attenuator, the light beam is coupled into the multimode fiber coupler through the first objective lens for transmission, and then illuminates the mask assembly after being magnified by the third objective lens, so as to control the mask assembly to perform phase modulation on the light beam under different singular vectors according to the target matrix to achieve speckle granularity control, and modulate the corresponding simulated original image data on the digital micromirror device to modulate the corresponding image information into the light beam, and then return to the multimode fiber coupler for transmission again, and after being magnified by the second objective lens, the CCD camera acquires the corresponding target speckle image data; Each of the simulated original image data and the corresponding target speckle image data is used as the granularity-controlled training data.

2. The multimode optical fiber digestive endoscopy imaging and optimization method according to claim 1, characterized in that: The multimode optical fiber digestive endoscopy imaging device comprises: a single multimode optical fiber coupler, wherein a first connecting line and a second connecting line are arranged on one side of the multimode optical fiber coupler, and a third connecting line is arranged on the other side of the multimode optical fiber coupler; The multimode optical fiber digestive endoscopy imaging device further comprises: a first component connected to the first connecting line, a second component connected to the second connecting line, and a third component fixedly arranged on the third connecting line; The first component includes a laser, a beam expander, an attenuator and a first objective lens connected in sequence, and the first objective lens is connected to the first connecting line; The second component comprises: a CCD camera and a second objective lens connected in sequence, and the second objective lens is connected to the second connecting line; The third component includes: a third objective lens.

3. The multimode optical fiber digestive endoscopy imaging and optimization method according to claim 2, characterized in that: The control of the preset multi-mode optical fiber digestive endoscope imaging device to collect speckle image data from inside a living body comprises: Probing a third connecting line of the multimode optical fiber digestive endoscope imaging device into a target area in the target living body; The laser of the multimode fiber optic digestive endoscopy imaging device is controlled to emit a light beam, so that the light beam passes through the beam expander, the attenuator and the first objective lens in sequence to reach the multimode fiber optic coupler, and then is amplified by the third objective lens and irradiated to the target area for reflection, and then is transmitted to the second objective lens again through the multimode fiber optic coupler, so that the CCD camera collects the speckle image data corresponding to the target area after being magnified by the second objective lens.

4. The multimode optical fiber digestive endoscopy imaging and optimization method according to any one of claims 1 to 3, characterized in that: The deep learning model includes: a convolutional neural network.

5. A multimode optical fiber digestive endoscopy imaging and optimization device, characterized in that: The multimode optical fiber digestive endoscopy imaging and optimization device is used to perform the following: A preset multimode optical fiber digestive endoscopy imaging experimental system was used to generate granularity-controlled training data; A preset deep learning model is trained based on the granularity-controlled training data, so that the deep learning model is used to restore the speckle pattern to the corresponding tissue pattern inside the living body for the speckle image data collected from the inside of the living body by the multimode optical fiber digestive endoscopy imaging device; The multimode optical fiber digestive endoscopy imaging and optimization device comprises: An imaging module, used for controlling a preset multi-mode optical fiber digestive endoscope imaging device to collect speckle image data from inside a living body; an optimization module, configured to input the speckle image data into a preset deep learning model, so that the deep learning model performs image reconstruction on the speckle image data, and outputs in vivo internal tissue image data corresponding to the speckle image data, wherein the deep learning model is pre-trained using granularity-controlled training data; The multimode optical fiber digestive endoscopy imaging experimental system comprises: a single multimode optical fiber coupler, wherein a first connecting line and a second connecting line are arranged on one side of the multimode optical fiber coupler, and a third connecting line is arranged on the other side of the multimode optical fiber coupler; The multimode optical fiber digestive endoscopy imaging experimental system further comprises: a first component connected to the first connecting line, a second component connected to the second connecting line, and a third component fixedly arranged on the third connecting line; The first component includes a laser, a beam expander, an attenuator, a detachable first polarization beam splitter and a first objective lens which are connected in sequence, and the first objective lens is connected to the first connecting line; The second component comprises: a CCD camera, a detachable second polarization beam splitter and a second objective lens connected in sequence, and the second objective lens is connected to the second connecting line; The third component includes: a third objective lens, a detachable mask plate component, and a detachable terminal device; Wherein, the terminal device is a spatial light modulator for performing transmission matrix calculation or a digital micromirror device for performing data pair acquisition; The method of using a preset multimode optical fiber digestive endoscopy imaging experimental system to generate granularity-controlled training data includes: In the multi-mode optical fiber digestive endoscopy imaging experimental system, the mask plate assembly is disassembled, and the spatial light modulator is selected as the current terminal device to obtain a first experimental subsystem corresponding to the multi-mode optical fiber digestive endoscopy imaging experimental system; Controlling the laser in the first experimental subsystem to emit a light beam, so that after the light beam passes through the beam expander and the attenuator, it is split into a target light beam and a reference light beam by the first polarization beam splitter, the target light beam is coupled into the multimode fiber coupler through the first objective lens for transmission, and then amplified by the third objective lens to illuminate the spatial light modulator, so that a plurality of orthogonal image data are displayed on the spatial light modulator as an input light field for calculating the transmission matrix, and then the target light beam is transmitted again through the multimode fiber coupler and amplified by the second objective lens, and then interferes with the reference light beam through the second polarization beam splitter, so that the CCD camera collects corresponding interference speckle image data; Based on the four-step phase-shift interferometry method, the transmission matrix used to characterize the transmission characteristics of the multimode optical fiber in the multimode optical fiber digestive endoscopy imaging experimental system is calculated according to the input light field and the interference speckle image data, and the transmission matrix is ​​subjected to singular value decomposition to obtain the corresponding target matrix for singular vector modulation of the light beam; The first polarization beam splitter and the second polarization beam splitter are removed from the multimode optical fiber digestive endoscopy imaging experimental system, and the digital micromirror device is selected as the current terminal device to obtain a second experimental subsystem corresponding to the multimode optical fiber digestive endoscopy imaging experimental system; Controlling the laser in the second experimental subsystem to emit a light beam, so that after passing through the beam expander and the attenuator, the light beam is coupled into the multimode fiber coupler through the first objective lens for transmission, and then illuminates the mask assembly after being magnified by the third objective lens, so as to control the mask assembly to perform phase modulation on the light beam under different singular vectors according to the target matrix to achieve speckle granularity control, and modulate the corresponding simulated original image data on the digital micromirror device to modulate the corresponding image information into the light beam, and then return to the multimode fiber coupler for transmission again, and after being magnified by the second objective lens, the CCD camera acquires the corresponding target speckle image data; Each of the simulated original image data and the corresponding target speckle image data is used as the granularity-controlled training data.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the multimode optical fiber digestive endoscopy imaging and optimization method as described in any one of claims 1 to 4 is implemented.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the multimode optical fiber digestive endoscopy imaging and optimization method as described in any one of claims 1 to 4 is implemented.