A laser speckle contrast imaging method and device, electronic equipment and storage medium
By combining the temporal contrast maps of the target frame and its preceding and following frames with edge feature extraction and image reconstruction techniques, a stable speckle contrast map is generated using a vascular prior network. This solves the problem of unstable speckle contrast maps under low latency conditions and achieves stable speckle contrast maps under low latency.
Patent Information
- Application Number
- CN202611664191.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-27
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies struggle to obtain stable laser speckle contrast images under low latency conditions, and are easily affected by tissue motion and inter-frame misalignment, leading to problems such as amplified random fluctuations in temporal contrast, enhanced background particle noise, blurred microvascular boundaries, and disappearance of bifurcation structures.
By combining edge feature extraction and image reconstruction techniques with a vascular prior network based on the temporal contrast map of the target frame and its preceding and following frames, a stable speckle contrast map is generated.
Under low latency conditions, it is possible to extract information on the dynamic changes of speckle patterns, preserve the vessel boundaries and local structures, generate more stable speckle contrast maps, and reduce the impact of latency and noise.
Smart Images

Figure CN123181606A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of optical imaging technology, and in particular to a laser speckle contrast imaging method, apparatus, electronic device and storage medium. Background Technology
[0002] Laser speckle contrast imaging is an optical imaging technique that uses dynamic speckle fluctuations generated after coherent light irradiates tissue to reflect the tissue's blood perfusion status. Specifically, after coherent laser light irradiates a tissue surface containing moving scattering particles, the reflected or scattered light forms a speckle image on an image sensor. When the scattering particles within the tissue move, the speckle image changes over time. By calculating the ratio of the standard deviation to the mean of the pixel intensity within a time window, a speckle contrast map, reflecting changes in local microcirculatory blood flow in the tissue, can be obtained.
[0003] Speckle contrast includes spatial contrast and temporal contrast. Temporal contrast relies on the mean and standard deviation estimates of pixel intensity from temporally continuous speckle image frames. When the time window is long, temporal contrast estimation is more stable, but it reduces temporal resolution and is more susceptible to tissue motion and inter-frame misalignment. When the time window is compressed to a few frames, the computational delay of the speckle contrast map obtained from temporal contrast estimation is reduced, but the number of statistical samples is insufficient, easily leading to amplified random fluctuations in temporal contrast, enhanced background particle noise, blurred microvessel boundaries, capillary terminal rupture, and disappearance of bifurcation structures. In scenarios such as vasospasm, functional hyperemia, and perfusion changes after tissue traction, it is necessary to minimize the delay in generating laser speckle contrast maps.
[0004] Therefore, how to obtain more stable speckle contrast images under low latency conditions has become an urgent technical problem to be solved. Summary of the Invention
[0005] The purpose of this application is to provide a laser speckle contrast imaging method, apparatus, electronic device, and storage medium to obtain a more stable speckle contrast image under low latency conditions. The specific technical solution is as follows:
[0006] A first aspect of this application provides a laser speckle contrast imaging method, the method comprising:
[0007] A first temporal contrast map is obtained based on the temporal contrast of the target frame and its preceding frame; the target frame is a speckle image frame acquired at the target time.
[0008] A second temporal contrast map is obtained based on the temporal contrast of the target frame and its subsequent frames.
[0009] A third time contrast map is obtained based on the time contrast of the target frame and its preceding and following frames;
[0010] Edge features are extracted from the first time contrast map, the second time contrast map, and the third time contrast map to obtain a target edge feature map;
[0011] Image reconstruction is performed based on the first time contrast map, the second time contrast map, the third time contrast map, and the target edge feature map to obtain the target speckle contrast map.
[0012] In one possible embodiment, the step of extracting edge features from the first time-contrast map, the second time-contrast map, and the third time-contrast map to obtain a target edge feature map includes:
[0013] Obtain a guide image; the guide image is a time contrast image generated based on the time contrast of all speckle image frames contained in the target speckle sequence; the target speckle sequence is a continuous speckle image frame sequence of a preset length containing the target frame and its preceding and following frames.
[0014] Using the guide graph, guide graph filtering is performed on the first time contrast graph, the second time contrast graph, and the third time contrast graph respectively to obtain a first filtered graph, a second filtered graph, and a third filtered graph;
[0015] Image fusion is performed on the first filtered image, the second filtered image, and the third filtered image to obtain a target edge feature map.
[0016] In one possible embodiment, the step of image reconstruction based on the first temporal contrast map, the second temporal contrast map, the third temporal contrast map, and the target edge feature map to obtain a target speckle contrast map includes:
[0017] The first time contrast map, the second time contrast map, the third time contrast map, and the target edge feature map are stitched together along the channel dimension to obtain a target four-channel feature map;
[0018] The target four-channel feature map is input into a pre-trained vascular prior network for image reconstruction to obtain a target speckle contrast map.
[0019] In one possible embodiment, the training process of the vascular prior network includes:
[0020] Obtain a sample speckle sequence and its corresponding reference speckle contrast image, wherein the sample speckle sequence contains a preset number of sample speckle images;
[0021] Using a sliding window, the second to penultimate frame of the sample speckle sequence is selected as reference frames. Based on the time contrast of the reference frame and its preceding frame, the time contrast of the reference frame and its following frame, and the time contrast of the reference frame and its preceding and following frames, a fourth time contrast map, a fifth time contrast map, and a sixth time contrast map are obtained respectively.
[0022] Edge features are extracted from the fourth, fifth, and sixth time-contrast maps to obtain sample edge feature maps;
[0023] The fourth time contrast map, the fifth time contrast map, the sixth time contrast map, and the sample edge feature map are stitched together along the channel dimension to obtain a four-channel feature map of the sample.
[0024] The sample four-channel feature map is input into the blood vessel prior network to be trained for image reconstruction to obtain the speckle contrast prediction map.
[0025] The loss between the speckle contrast prediction map and the reference speckle contrast map is calculated, and the parameters of the vascular prior network to be trained are adjusted according to the loss until the training termination condition is met, thus obtaining the trained vascular prior network.
[0026] In one possible embodiment, the vascular prior network to be trained includes an encoder and a decoder; the vascular prior network to be trained reconstructs the sample four-channel feature map in the following manner:
[0027] The encoder is used to extract features from the four-channel feature map of the sample to obtain contrast features;
[0028] The decoder performs feature decoding on the local texture features and boundary response features in the contrast features to obtain the first feature, and performs feature decoding on the directional features of the slender blood vessels in the contrast features to obtain the second feature; the first feature and the second feature are fused to obtain the blood vessel preservation enhancement feature; and feature mapping is performed based on the blood vessel preservation enhancement feature to obtain the speckle contrast prediction map.
[0029] In one possible embodiment, the loss between the speckle contrast prediction map and the reference speckle contrast map includes at least one of the following: pixel-level L1 reconstruction loss, gradient L1 loss, vascular region weighted L1 loss, topological constraint loss, and mean squared error loss.
[0030] In one possible embodiment, obtaining the reference speckle contrast map corresponding to the sample speckle sequence includes:
[0031] A seventh time-contrast map is obtained based on the temporal contrast of all sample speckle images contained in the sample speckle sequence.
[0032] The seventh time-contrast map is denoised to obtain a reference speckle contrast map corresponding to the sample speckle sequence.
[0033] In a second aspect of this application, a laser speckle contrast imaging apparatus is also provided, the apparatus comprising:
[0034] The first time contrast image acquisition module is used to obtain a first time contrast image based on the time contrast of the target frame and its preceding frame; the target frame is a speckle image frame acquired at the target time.
[0035] The second time contrast map acquisition module is used to obtain a second time contrast map based on the time contrast of the target frame and its subsequent frames.
[0036] The third time contrast map acquisition module is used to obtain a third time contrast map based on the time contrast of the target frame and its preceding and following frames.
[0037] An edge feature extraction module is used to extract edge features from the first time contrast map, the second time contrast map, and the third time contrast map to obtain a target edge feature map;
[0038] The image reconstruction module is used to perform image reconstruction based on the first time contrast map, the second time contrast map, the third time contrast map and the target edge feature map to obtain a target speckle contrast map.
[0039] In a third aspect of this application, an electronic device is also provided, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
[0040] Memory, used to store computer programs;
[0041] A processor, when executing a program stored in memory, implements any of the methods described above.
[0042] In a fourth aspect of this application, a computer-readable storage medium is also provided, wherein a computer program is stored therein, and the computer program, when executed by a processor, implements any of the methods described above.
[0043] This application also provides a computer program product containing instructions that, when run on a computer, cause the computer to perform any of the methods described above.
[0044] Beneficial effects of the embodiments in this application:
[0045] This application provides a laser speckle contrast imaging method, apparatus, electronic device, and storage medium. By comparing the temporal contrast of a target frame and its preceding and following frames, a first temporal contrast map and a second temporal contrast map are obtained, enabling the extraction of speckle dynamic changes within adjacent time periods before and after the target frame. By comparing the temporal contrast of the target frame and its preceding and following frames, a third temporal contrast map is obtained, enabling the extraction of relatively stable short-window statistical anchor points. Edge features are extracted from the first, second, and third temporal contrast maps to obtain a target edge feature map, preserving local structures such as blood vessel boundaries, bifurcation, and terminal structures. Image reconstruction is then performed based on the first, second, and third temporal contrast maps and the target edge feature map to obtain a target speckle contrast map, achieving a more stable speckle contrast map under low-latency conditions.
[0046] Of course, implementing any product or method of this application does not necessarily require achieving all of the advantages described above at the same time. Attached Figure Description
[0047] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other embodiments can be obtained based on these drawings.
[0048] Figure 1 A schematic flowchart of a laser speckle contrast imaging method provided in an embodiment of this application;
[0049] Figure 2 This is a schematic flowchart illustrating an edge feature extraction method provided in an embodiment of this application.
[0050] Figure 3 A schematic flowchart illustrating a vascular prior network training method provided in an embodiment of this application;
[0051] Figure 4 This is a schematic flowchart of an image reconstruction method provided in an embodiment of this application;
[0052] Figure 5 A schematic diagram of a laser speckle contrast imaging method provided in an embodiment of this application;
[0053] Figure 6 A schematic diagram illustrating the principle of laser speckle contrast imaging provided in an embodiment of this application;
[0054] Figure 7 A schematic diagram illustrating the verification of the laser speckle contrast imaging method provided in an embodiment of this application;
[0055] Figure 8 A schematic diagram of a laser speckle contrast imaging device provided in an embodiment of this application;
[0056] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0057] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art based on this application are within the scope of protection of this application.
[0058] To obtain a more stable speckle contrast image under low latency conditions, this application provides a laser speckle contrast imaging method. This method can be applied to a laser speckle contrast imaging device, which may be an image processing module in a laser speckle contrast imaging system, a device deployed in an electronic device, or an electronic device, etc.
[0059] In one example, a laser speckle contrast imaging system may include a laser illumination module, an imaging acquisition module, a synchronization control module, an image processing module, and a display and storage module.
[0060] The laser illumination module is used to output coherent laser light to the target area, which may be, for example, the tissue to be tested or the area of a flowing phantom. For example, the laser illumination module uses a near-infrared laser to output coherent laser light with a wavelength of 780 nanometers (nm) and an output power of approximately 100 milliwatts (mW). The coherent laser light is then beam-expanded and homogenized before illuminating the target area.
[0061] An imaging acquisition module is used to acquire a speckle intensity sequence formed by reflection or scattering of a target area after coherent laser irradiation. This sequence includes sequentially acquired target speckle image frames representing changes in speckle intensity. For example, the imaging acquisition module includes an imaging lens and a near-infrared monochrome industrial camera. The industrial camera is used to acquire the speckle intensity sequence formed by reflection or scattering of a target area after coherent laser irradiation. The industrial camera can have a resolution of 3840×2160 pixels, a bit depth of 12 bits, an exposure time of 5 milliseconds (ms), and a frame rate of 60 fps.
[0062] The synchronization control module is used to synchronously trigger the operation of the laser illumination module and the imaging acquisition module, so as to maintain a stable correspondence between the coherent laser output by the laser illumination module and the exposure of the industrial camera by the imaging acquisition module, thereby ensuring the consistency of the continuous speckle intensity sequence acquired by the industrial camera.
[0063] The image processing module is used to acquire the target speckle image frame acquired by the imaging acquisition module, and to obtain the target speckle contrast map based on the target speckle image frame using the laser speckle contrast imaging method provided in the embodiments of this application.
[0064] The display and storage module is used to display the target speckle contrast image and store the target speckle image and the target speckle contrast image.
[0065] This application provides a laser speckle contrast imaging method, such as... Figure 1 As shown, the method includes:
[0066] Step S101: Obtain a first temporal contrast map based on the temporal contrast of the target frame and its preceding frame; the target frame is the speckle image frame acquired at the target time. Step S102: Obtain a second temporal contrast map based on the temporal contrast of the target frame and its following frame. Step S103: Obtain a third temporal contrast map based on the temporal contrast of the target frame and its preceding and following frames. Step S104: Extract edge features from the first, second, and third temporal contrast maps to obtain a target edge feature map. Step S105: Reconstruct the image based on the first, second, and third temporal contrast maps and the target edge feature map to obtain a target speckle contrast map. In this embodiment, a first time contrast map and a second time contrast map are obtained by comparing the time contrast of the target frame and its preceding frame, and the time contrast of the target frame and its following frame. This allows for the extraction of speckle dynamic change information within adjacent time periods before and after the target frame. A third time contrast map is obtained by comparing the time contrast of the target frame and its preceding and following frames. This allows for the extraction of relatively stable short-window statistical anchor points. Edge features are extracted from the first, second, and third time contrast maps to obtain a target edge feature map. This preserves local structures such as blood vessel boundaries, bifurcations, and terminals. Image reconstruction is then performed based on the first, second, and third time contrast maps and the target edge feature map to obtain a target speckle contrast map. This allows for the acquisition of a more stable speckle contrast map under low latency conditions.
[0067] In step S101 of this embodiment, the target frame is a speckle image frame acquired by the imaging acquisition module at the target time after coherent laser light is output to the target area such as the tissue to be tested or the flowing phantom area through the laser illumination module. Correspondingly, the preceding frame of the target frame is the speckle image frame acquired by the imaging acquisition module at the moment before the target time. For example, the target frame is represented as... The forward frame of the target frame is then represented as ,in, Represents the spatial pixel coordinates of an image frame. , These represent the frame numbers of the target frame and its preceding frame, respectively. The target frame and its preceding frame constitute the first two-frame time window. This time window can be represented as .
[0068] For example, the average pixel intensity of the target frame and its preceding frame within the first two-frame time window can be calculated using the following expression. , That is, the first The frame speckle image is calculated by averaging the pixel intensity of the target frame and its preceding frames.
[0069]
[0070] The standard deviation of pixel intensity of the target frame and its preceding frame within the first two-frame time window, formed by the target frame and its preceding frame, is calculated using the following expression. , That is, the first The frame speckle image frame is the target frame. The standard deviation of pixel intensity is calculated based on the deviation of the pixel intensity value at the corresponding pixel coordinate position of the target frame and its preceding frames from the mean pixel intensity.
[0071]
[0072] The first time contrast map is obtained by calculating the time contrast between the target frame and its preceding frame within the first two-frame time window formed by the target frame and its preceding frame using the following expression. , That is, the first The first temporal contrast map calculated using the speckle image frame as the target frame:
[0073]
[0074] in, This is a preset constant. For example, For a very small constant, such as This is to prevent the denominator from being zero when calculating time contrast.
[0075] In step S102 of this embodiment, the target frame is the speckle image frame acquired by the imaging acquisition module at the target time. Correspondingly, the subsequent frame of the target frame is the speckle image frame acquired by the imaging acquisition module at the time after the target time. For example, the target frame is represented as... Then the backward frame of the target frame is represented as ,in, The frame number of the frame following the target frame indicates the second two-frame time window, which consists of the target frame and its following frame. This time window can be represented as .
[0076] For example, the average pixel intensity of the target frame and its subsequent frames within the second two-frame time window, consisting of the target frame and its subsequent frames, can be calculated using the following expression. , That is, the first The frame speckle image is calculated by averaging the pixel intensity of the target frame and its subsequent frames.
[0077]
[0078] The standard deviation of pixel intensity of the target frame and its subsequent frames within the second two-frame time window, formed by the target frame and its subsequent frames, is calculated using the following expression. , That is, the first The standard deviation of pixel intensity is calculated based on the deviation of the pixel intensity value at the corresponding pixel coordinate position in the target frame and its subsequent frames from the mean pixel intensity, using the target frame as the target frame and its subsequent frames as the target frame.
[0079]
[0080] The second time contrast map is obtained by calculating the time contrast between the target frame and its subsequent frames within the second two-frame time window formed by the target frame and its subsequent frames using the following expression. , That is, the first The second temporal contrast map is calculated using the target frame as the frame of the speckle image:
[0081]
[0082] Calculate the temporal contrast between the target frame and its preceding frame, and between the target frame and its following frame within two two-frame time windows to obtain two two-frame temporal contrast maps. and It describes the dynamic speckle changes in two consecutive two-frame windows before and after the target frame, and thus can extract the speckle dynamic change information in adjacent time periods before and after the target frame.
[0083] In step S103 of this embodiment, for example, the target frame is represented as The forward frame of the target frame is represented as The backward frame of the target frame is represented as The target frame, its preceding frame, and its following frame constitute a three-frame time window. This time window can be represented as .
[0084] For example, the average pixel intensity of the target frame and its preceding and following frames within a three-frame time window can be calculated using the following expression. , That is, the first The average pixel intensity of the speckle image is obtained by averaging the pixel values of the target frame, its preceding frames, and its following frames.
[0085]
[0086] The standard deviation of pixel intensity of the target frame, its preceding frame, and its following frame within a three-frame time window is calculated using the following expression. , That is, the first The frame speckle image frame is the target frame. The standard deviation of pixel intensity is calculated based on the deviation of the pixel intensity value at the corresponding pixel coordinate position of the target frame and its preceding and following frames from the mean pixel intensity.
[0087]
[0088] The time contrast between the target frame and its preceding and following frames within a three-frame time window, formed by the target frame, its preceding frame, and its following frame, is calculated using the following expression to obtain the third time contrast map. , That is, the first The third temporal contrast map is calculated using the target frame as the frame speckle image frame:
[0089]
[0090] By comparing the time of the target frame with its preceding and following frames, a third time contrast map is obtained, which allows for the extraction of relatively stable statistical information of the three short windows.
[0091] In step S104 of this embodiment, edge features can be extracted from the first time-contrast image, the second time-contrast image, and the third time-contrast image using a feature extraction algorithm. Alternatively, edge features can be extracted by filtering the first time-contrast image, the second time-contrast image, and the third time-contrast image, thereby obtaining the target edge feature map. The feature extraction algorithm can be any algorithm capable of edge feature extraction, and this embodiment does not limit its application to this.
[0092] In step S105 of this embodiment, based on obtaining the first time-contrast map, the second time-contrast map, the third time-contrast map, and the target edge feature map, an image reconstruction model can be used to reconstruct the first time-contrast map, the second time-contrast map, the third time-contrast map, and the target edge feature map. Alternatively, any image reconstruction technique can be used to reconstruct the first time-contrast map, the second time-contrast map, the third time-contrast map, and the target edge feature map to obtain the target speckle contrast map. The image reconstruction model can be a pre-trained model capable of reconstructing the first time-contrast map, the second time-contrast map, the third time-contrast map, and the target edge feature map.
[0093] One possible implementation, such as Figure 2 As shown, the process of extracting edge features from the first time-contrast map, the second time-contrast map, and the third time-contrast map to obtain the target edge feature map can include:
[0094] Step S201: Obtain the guide map; the guide map is a time contrast map generated based on the time contrast of all speckle image frames contained in the target speckle sequence; the target speckle sequence is a continuous speckle image frame sequence of a preset length containing the target frame and its preceding and following frames; Step S202: Using the guide map, perform guide map filtering on the first time contrast map, the second time contrast map, and the third time contrast map respectively to obtain the first filtered map, the second filtered map, and the third filtered map; Step S203: Perform image fusion on the first filtered map, the second filtered map, and the third filtered map to obtain the target edge feature map. In this embodiment, guided map filtering is performed on the first, second, and third time-contrast maps, respectively. The first, second, and third filtered maps are then fused to preserve edge details. This process can suppress random fluctuations in short-window speckle while retaining local structures such as vessel boundaries, bifurcations, and terminals. This allows subsequent image reconstruction based on the first, second, and third time-contrast maps and the target edge feature map to obtain the target speckle contrast map, achieving a more stable speckle contrast map under low-latency conditions.
[0095] In step S201 of this embodiment, the preset length can be set according to actual needs, such as 30 frames, 50 frames, or 80 frames. For example, the target speckle sequence is a sequence of 50 consecutive speckle image frames that includes the target frame and its preceding and following frames. The target frame and its preceding and following frames can be located at any position in the target speckle sequence, and this embodiment does not limit this.
[0096] The temporal contrast between all speckle image frames in the target speckle sequence can be calculated by taking the mean and standard deviation of pixel intensity, and then by using the ratio of the standard deviation to the mean. This generates a temporal contrast map as a guide map. The guide map is a relatively stable temporal contrast map calculated based on a long time window including the target frame and its preceding and following frames.
[0097] In step S202 of this embodiment, the first time-contrast map, the second time-contrast map, and the third time-contrast map are stitched together along the channel dimension to form a three-channel short-window spatiotemporal feature map. For example, this is achieved through an expression... The first, second, and third time-contrast maps are stitched together along the channel dimension to form a three-channel short-window spatiotemporal feature map. , That is, the first The frame speckle image frame is a three-channel short-window spatiotemporal feature map obtained from the target frame, where, , Indicates the height of the speckle image frame. This indicates the width of the speckle image frame.
[0098] Furthermore, guided graphs are used to perform guided graph filtering on the three-channel short-window spatiotemporal feature maps. For example, this is achieved through the expression... , for the Time contrast chart of individual channels Perform guided graph filtering. This yields three filter maps: the first filter map, the second filter map, and the third filter map. Indicates the channel index. This represents the time contrast plot of the first channel. This indicates a time contrast plot for the first channel. The first filtered graph is obtained by performing guided graph filtering, and so on; Indicates the first Time contrast chart of individual channels The first result obtained by performing guided graph filtering Filtered graph; This indicates a guide graph filtering operation; This indicates the filter radius, for example, it can be set to 7; This represents the regularization parameter, for example, it can be set to... .
[0099] In step S203 of this embodiment, the three channel filtered maps obtained by the guide map filtering—the first filtered map, the second filtered map, and the third filtered map—can be averaged or weighted averaged to achieve image fusion and obtain a single-channel physical prior map as the target edge feature map.
[0100] For example, it can be done through an expression Image fusion is performed on the first, second, and third filtered images to obtain the target edge feature map. , That is, the first The frame speckle image is a target frame from which the target edge feature map is obtained. It can also be expressed using an expression. Image fusion is performed on the first, second, and third filtered images to obtain the target edge feature map. ,in, , and These are the weighted weights for the first, second, and third filter graphs, respectively. .
[0101] In one possible embodiment, the process of performing image reconstruction based on the first time-contrast map, the second time-contrast map, the third time-contrast map, and the target edge feature map to obtain the target speckle contrast map may include: concatenating the first time-contrast map, the second time-contrast map, the third time-contrast map, and the target edge feature map along the channel dimension to obtain a target four-channel feature map; and inputting the target four-channel feature map into a pre-trained vascular prior network for image reconstruction to obtain the target speckle contrast map. By constructing the target four-channel feature map and using the pre-trained vascular prior network for image reconstruction, the accuracy of image reconstruction is improved, resulting in a more accurate target speckle contrast map.
[0102] For example, through an expression The first time-contrast image, the second time-contrast image, the third time-contrast image, and the target edge feature map are stitched together along the channel dimension to obtain the target four-channel feature map. , That is, the first The frame speckle image frame is the target frame from which the four-channel feature map of the target is obtained. Furthermore, the target four-channel feature map The image is input into a pre-trained vascular prior network for image reconstruction to obtain a target speckle contrast map.
[0103] One possible implementation, such as Figure 3 As shown, the training process of the vascular prior network may include:
[0104] Step S301: Obtain the sample speckle sequence and its corresponding reference speckle contrast map. The sample speckle sequence contains a preset number of sample speckle images. Step S302: Select the second to second-to-last sample speckle images from the sample speckle sequence sequentially as reference frames using a sliding window. Obtain a fourth, fifth, and sixth time contrast map based on the time contrast of the reference frame and its preceding frame, the time contrast of the reference frame and its following frame, and the time contrast of the reference frame and its preceding and following frames, respectively. Step S303: Extract edge features from the fourth, fifth, and sixth time contrast maps to obtain sample edge feature maps. Step S304: Concatenate the fourth, fifth, and sixth time contrast maps and the sample edge feature maps along the channel dimension to obtain a four-channel sample feature map. Step S305: Input the four-channel sample feature map into the vessel prior network (VPNET) to be trained. Image reconstruction is performed in the prior network to obtain a speckle contrast prediction map; in step S306, the loss between the speckle contrast prediction map and the reference speckle contrast map is calculated, and the parameters of the vascular prior network to be trained are adjusted according to the loss until the training termination condition is met, thus obtaining the trained vascular prior network. In this embodiment, short-window laser speckle contrast imaging reconstruction is defined as a continuous value regression task in the contrast domain. A sample four-channel feature map is constructed as input. By learning the statistical mapping between the few-frame short-window temporal contrast map and the long-window high-stability reference speckle contrast map, the vascular prior network is trained to obtain a more stable speckle contrast map under low latency conditions.
[0105] In step S301 of this embodiment, multiple sets of sample speckle sequences and their corresponding reference speckle contrast images can be obtained. Each set of sample speckle sequences contains a preset number of sample speckle images. The preset number can be set according to actual needs, such as 50 frames, 60 frames, or 80 frames. The speckle contrast image of the long-term window corresponding to the sample speckle sequence is used as the reference speckle contrast image, and the same operation is performed on each set of sample speckle sequences.
[0106] In step S302 of this embodiment, taking a preset number of 50 frames as an example, for a sample speckle sequence containing 50 sample speckle images, the 2nd to 49th frames of the sample speckle sequence are selected sequentially as reference frames using a sliding window. Then, the forward and backward frames adjacent to the reference frames are selected respectively. The length of the sliding window can be set according to actual needs, such as 1 frame, 2 frames, or 3 frames. For example, when the sliding window length is 1 frame, such as the reference frame being the second frame in the sample speckle sequence, then the adjacent forward frame (i.e., the first frame in the sample speckle sequence) and the adjacent backward frame (i.e., the third frame in the sample speckle sequence) are selected respectively to construct two two-frame (first and second frames, and second and third frames) short windows and one three-frame (first to third frames) short window. When the sliding window length is 2 frames, such as the reference frames being the second and third frames in the sample speckle sequence, then the adjacent forward frame (i.e., the first frame in the sample speckle sequence) and the adjacent backward frame (i.e., the fourth frame in the sample speckle sequence) are selected respectively to construct two three-frame (first to third frames, and second to fourth frames) short windows and one four-frame (first to fourth frames) short window; and so on. The shorter the sliding window length, the lower the latency; the longer the sliding window length, the more stable the resulting speckle contrast map.
[0107] Then, based on the time contrast of the reference frame and its preceding frame, the time contrast of the reference frame and its following frame, and the time contrast of the reference frame and its preceding and following frames, respectively, a fourth time contrast map, a fifth time contrast map, and a sixth time contrast map are obtained. This implementation process can refer to the above. Figure 1 The implementation of steps S101-S103 in the illustrated embodiment will not be repeated here.
[0108] Step S303 in this embodiment can be referred to the above. Figure 1 Step S104 or in the illustrated embodiment Figure 2 The embodiments shown are implemented as described above, and the embodiments of this application will not be repeated here.
[0109] In step S304 of this embodiment, the above-described expression can be used as a reference. By stitching together the first, second, and third time-contrast images and the target edge feature map along the channel dimension, and then stitching together the fourth, fifth, and sixth time-contrast images and the sample edge feature map along the channel dimension, a four-channel feature map of the sample is obtained. , That is, the first The speckle image of the frame sample is the target four-channel feature map obtained from the reference frame.
[0110] In step S305 of this embodiment, the prior network for training blood vessels can adopt a UNet++ network structure. This network uses a nested encoder-decoder structure for feature extraction and feature fusion, and the network backbone adopts a lightweight nested skip-connection structure. Specifically, the encoder is used to extract multi-scale short-window contrast features, with each layer consisting of convolution, batch normalization, and ReLU activation functions, and downsampling is performed through max pooling. The decoder is used to restore spatial resolution and fuse features at different scales, employing bilinear upsampling and dense skip connections in a concatenated form for feature fusion. Multi-scale short-window contrast features can include texture features, boundary response features, and directional features of slender blood vessels, etc.
[0111] For example, the sample four-channel feature map The image is input into the prior network of the blood vessels to be trained for image reconstruction to obtain a speckle contrast prediction map. , Indicates the first The speckle contrast prediction map obtained from the reference frame can be represented as follows: , The parameters of the network are: The prior network of blood vessels to be trained.
[0112] In step S306 of this embodiment, the loss between the speckle contrast prediction map and the reference speckle contrast map is calculated, and the parameters of the vascular prior network to be trained are adjusted according to the loss until the training termination condition is met. The training termination condition may be that the loss reaches a preset loss value, or the number of iterations reaches a preset number of iterations, etc., thereby obtaining the trained vascular prior network.
[0113] In one possible embodiment, the vascular prior network to be trained may include an encoder and a decoder, such as Figure 4 As shown, the blood vessel prior network to be trained reconstructs the four-channel feature map of the sample in the following way:
[0114] Step S401: The encoder extracts features from the four-channel feature map of the sample to obtain contrast features. Step S402: The decoder decodes the local texture features and boundary response features in the contrast features to obtain the first feature, and decodes the directional features of slender blood vessels in the contrast features to obtain the second feature. The first and second features are fused to obtain the blood vessel preservation and enhancement features. Based on the blood vessel preservation and enhancement features, feature mapping is performed to obtain the speckle contrast prediction map. Using this embodiment, local texture features, boundary response features, and directional features of slender blood vessels can be extracted. Feature fusion can restore the microvascular structure, thereby reducing common problems in short-window image reconstruction such as blood vessel breakage, boundary blurring, and bifurcation disappearance.
[0115] In step S401 of this embodiment, the encoder sequentially performs convolution, batch normalization, ReLU activation function and max pooling to extract features from the four-channel feature map of the sample to obtain contrast features. These contrast features include multi-scale features such as texture features, boundary response features and directional features of slender blood vessels.
[0116] In step S402 of this embodiment, to improve the ability to preserve microvascular structures, a vessel preservation module (VPM) is deployed in the shallow path of the decoder. The VPM module includes two complementary branches. The first branch uses standard 3×3 convolution to decode the local texture features and boundary response features in the contrast features obtained by the encoder to extract the local texture features and boundary response features to obtain the first feature. The second branch uses depthwise convolution, namely depthwise 3×3 convolution and pointwise 1×1 convolution, to decode the directional features of slender blood vessels in the contrast features obtained by the encoder, to capture the local directional features of slender blood vessel structures with a low parameter count and to achieve inter-channel information fusion to obtain the second feature. Subsequently, the first and second features obtained from the VPM module are concatenated and then fused through 1×1 convolution to obtain the vessel preservation enhancement feature. The vessel preservation enhancement feature is further processed by the deep nodes of the decoder (also known as subsequent nodes or feature processing layers), and then mapped by the output layer 1×1 convolution to a single-channel speckle contrast map output to obtain the speckle contrast prediction map.
[0117] Of course, the VPM module in this embodiment can also be deployed at any stage of the decoder, not just in shallow paths.
[0118] This embodiment takes into account that the boundaries, bifurcation and terminal structures of capillaries mainly rely on high-resolution shallow feature recovery, and deploys the VPM module in the shallow path of the decoder, so as to achieve a balance between structure preservation and computational efficiency.
[0119] In one possible embodiment, the goal of training the vessel prior network is to make the speckle contrast prediction map approximate a reference speckle contrast map. The loss considering the difference between the speckle contrast prediction map and the reference speckle contrast map can include at least one of the following: pixel-level L1 reconstruction loss, gradient L1 loss, vessel region-weighted L1 loss, topological constraint loss, and mean squared error loss. For example, the loss between the speckle contrast prediction map and the reference speckle contrast map can be any combination of pixel-level L1 reconstruction loss, gradient L1 loss, vessel region-weighted L1 loss, topological constraint loss, and mean squared error loss.
[0120] In one example, the loss between the speckle contrast prediction map and the reference speckle contrast map can be calculated using the following expression:
[0121] ;
[0122] ;
[0123] ;
[0124] ;
[0125] ;
[0126] ;
[0127] ;
[0128] ;
[0129] ;
[0130] in, This represents the loss between the speckle contrast prediction map and the reference speckle contrast map. Indicates pixel-level L1 reconstruction loss. This represents gradient L1 loss. Indicates vascular region-weighted L1 loss. Represents the topological constraint loss. This represents the mean squared error loss; , , , and They are respectively , , , and The weights; This represents the pixel values of the speckle contrast prediction map. Represents the pixel values of the reference speckle contrast image; Describing the L1 norm, This represents the gradient of the speckle contrast prediction map. This represents the gradient of the reference speckle contrast plot; For the image spatial domain, Represents spatial pixel coordinates, This represents a vascular region mask with a value of 0 or 1. This represents the contrast value of the speckle contrast prediction map at pixel coordinates (x, y). This represents the contrast value of the reference speckle contrast image at pixel coordinates (x, y). This is used to prevent extremely small positive numbers with a denominator of zero; Indicates prediction of vascular masking Similarity of the centerline Dice between the reference vascular mask G and the reference vascular mask G; This represents the mean square error obtained by subtracting the pixel values of the speckle contrast prediction map and the reference speckle contrast map pixel by pixel, where N represents the number of differences obtained by subtracting the pixel values of the speckle contrast prediction map and the reference speckle contrast map pixel by pixel. This represents the predicted vascular mask generated from the speckle contrast prediction map in the topological constraint loss. This represents the reference vascular mask generated from the reference speckle contrast map. Indicates prediction of vascular masking The centerline skeleton, This represents the central axis framework of the reference vascular mask G. Indicates the topological precision of the centerline. Indicates the centerline topological sensitivity. Tprec represents the harmonic mean of Tsens, used to characterize the topological consistency between the predicted vascular structure and the reference vascular structure.
[0131] One possible embodiment involves obtaining a reference speckle contrast map corresponding to a sample speckle sequence, including: obtaining a seventh temporal contrast map based on the temporal contrast of all sample speckle images contained in the sample speckle sequence; and denoising the seventh temporal contrast map to obtain the reference speckle contrast map corresponding to the sample speckle sequence. By using this embodiment, denoising the seventh temporal contrast map obtained based on the temporal contrast of all sample speckle images contained in the sample speckle sequence yields the reference speckle contrast map corresponding to the sample speckle sequence. The resulting reference speckle contrast map exhibits high stability, enabling the trained vascular prior network to more accurately predict the speckle contrast map.
[0132] The process of obtaining the seventh time-contrast image can refer to the above implementation process of obtaining the first time-contrast image to the sixth time-contrast image, and will not be repeated here in the embodiments of this application.
[0133] For example, MD-ABM3D (Modified Directional ABM3D, an algorithm for image denoising) can be used to denoise the seventh temporal contrast map. Taking a sample speckle sequence containing 50 frames of sample speckle images as an example, the resulting seventh temporal contrast map is represented as follows. The denoising process for the seventh time-contrast image can be expressed as follows: , This indicates MD-ABM3D noise reduction processing.
[0134] In one possible embodiment, after obtaining the target speckle contrast map, the relative blood flow index can also be calculated using the following expression. :
[0135]
[0136] For example, For a very small constant, such as This is to prevent the denominator from being zero when calculating the relative blood flow index. The calculated relative blood flow index... It can be used for blood perfusion analysis, generating blood flow index maps, etc.
[0137] In one possible embodiment, after obtaining the target speckle contrast map, the obtained target speckle contrast map can be color reconstructed to obtain a pseudo-color map for characterizing the relative blood flow index or relative tissue perfusion level.
[0138] For example, such as Figure 5 As shown, the laser speckle contrast imaging method provided in this application includes: acquiring a speckle image frame sequence, and using the speckle image frame acquired at the target time as the target frame; calculating the temporal contrast of the target frame and its preceding frame to obtain a first two-frame temporal contrast map; calculating the temporal contrast of the target frame and its following frame to obtain a second two-frame temporal contrast map; calculating the temporal contrast of the target frame and its preceding and following frames to obtain a three-frame temporal contrast map; stitching the first, second, and third temporal contrast maps along the channel dimension to obtain a three-channel input; and using a guide map, processing the first, second, and third temporal contrast maps of the three-channel input along the channel dimension. Guided image filtering is applied to the second and third time-contrast maps to obtain the first, second, and third filtered maps. Image fusion is then performed on the first, second, and third filtered maps to obtain the target edge feature map. The three-channel input first, second, and third time-contrast maps are concatenated with the target edge feature map along the channel dimension to obtain a four-channel input. The four-channel input is then fed into the vascular prior network for image reconstruction to obtain the target speckle contrast map output by the vascular prior network. The relative blood flow index is calculated based on the target speckle contrast map, and a pseudo-color image is generated for display or storage.
[0139] In this embodiment, short-window laser speckle contrast imaging reconstruction based on spatiotemporal fusion of two or three consecutive frames and edge features is defined as a continuous value regression task in the contrast domain, rather than a regular image denoising task or a direct prediction task of the blood flow index. By learning the statistical mapping between the few-frame short-window temporal contrast map and the long-window high-stability reference speckle contrast map, a more stable speckle contrast map can be obtained under low latency conditions.
[0140] For example, such as Figure 6As shown in the embodiments of this application, the principle of laser speckle contrast imaging is as follows: The control and display system (such as a computer device) drives the flow of the flowing phantom through an injection pump and triggers a laser source to output coherent laser light to the tissue or flowing phantom under test, wherein the tissue under test can be, for example, biological tissue. The lens assembly of the imaging acquisition module acquires the speckle intensity sequence formed by reflection or scattering after the coherent laser irradiates the tissue or flowing phantom under test, through an image sensor. The sequence is then processed by deep learning using the laser speckle contrast imaging method provided in this application to obtain a target speckle contrast map. Subsequently, the control and display system outputs the flow image of scattered particles in the tissue or flowing phantom under test.
[0141] For example, the laser speckle contrast imaging method provided in this application embodiment uses a 780nm near-infrared laser as the light source. The laser, with an output power of approximately 100 milliwatts, illuminates the target area after beam expansion and homogenization. Backscattered light from the target area is collected by a near-infrared monochrome industrial camera. This industrial camera has a resolution of 3840×2160 pixels, a bit depth of 12 bits, an exposure time of 5ms, and a frame rate of 60fps. The industrial camera and laser are synchronized using an external trigger, continuously acquiring 50 frames of the original speckle sequence in a single session. Of course, this application embodiment only uses a 780nm near-infrared laser as the light source, an industrial camera with a resolution of 3840×2160 pixels, a bit depth of 12 bits, an exposure time of 5ms, and a frame rate of 60fps as an example. Other light sources and industrial cameras, as long as the acquired original speckle sequence can achieve the laser speckle contrast imaging method provided in this application embodiment, are also within the scope of protection of this application. This application does not limit the specific parameters of the light source and industrial camera.
[0142] Taking frame m as a reference, three consecutive speckle images I(x,y,m-1), I(x,y,m), and I(x,y,m+1) are taken. The first two-frame temporal contrast map is calculated from frames m-1 and m, the second from frames m and m+1, and the third from frames m-1, m, and m+1. These three are then concatenated to form a three-channel short-window spatiotemporal input. Guided map filtering is then applied to each of the three input channels to generate a single-channel edge feature map (i.e., a physical prior map). This edge feature map is then concatenated with the three-channel input to form a four-channel input, which is fed into a vascular prior network. The vascular prior network outputs a highly stable speckle contrast prediction map. Furthermore, the output speckle contrast prediction map can be displayed / stored, or a relative blood flow index can be calculated based on the speckle contrast prediction map, or a pseudo-color image can be generated and displayed.
[0143] For example, in the training phase of the vascular prior network, multiple sets of raw speckle sequences can be acquired, each set containing 50 frames of raw speckle images. For each set of raw speckle sequences, the network is constructed according to the method described above in the embodiments of this application. , , and target edge feature map This forms a four-channel network input, where the target edge feature map is also the physical prior map; on the other hand, the temporal contrast map of 50 frames of original speckle images is calculated, and a high-stability reference speckle contrast map is obtained by MD-ABM3D denoising. In the embodiments of this application and The meanings are consistent; they are all reference speckle contrast maps represented by pixel values at pixel coordinates. Other speckle contrast maps have similar meanings.
[0144] Furthermore, using four-channel input as the network input, with To supervise the labeling, the network parameters are jointly optimized using pixel-level L1 reconstruction loss, gradient L1 loss, blood vessel region-weighted L1 loss, topological constraint loss, and mean squared error loss. After training, the blood vessel prior network can complete short-window reconstruction using only three consecutive frames of original speckle images during the online inference phase.
[0145] For example, embodiments of this application can be applied to phantom flow rate calibration and verification. Specifically, a controllable flow rate tubing device driven by a precision syringe pump is used for phantom experiments. For instance, a 1% intralipid solution is circulated within a capillary glass tube with an inner diameter of 500 μm to simulate the dynamic speckle statistical characteristics generated by erythrocyte movement within blood vessels. Multiple pump speed settings are set, and speckle sequences are repeatedly acquired at each speed. For each set of speckle sequences, a high-stability speckle contrast map is reconstructed using the laser speckle contrast imaging method provided in this application embodiment, and the relative blood flow index (BFI) is calculated from the reconstructed speckle contrast map. The average BFI is statistically analyzed at different pump speeds, and linear fitting is performed to calculate the Pearson correlation coefficient and coefficient of determination. This experiment verifies whether the speckle contrast map output by the embodiments of this application can maintain a stable monotonic mapping relationship with the actual pump speed in physical terms.
[0146] For example, embodiments of this application can be applied to the verification of in vivo animal tissue reconstruction, such as using rabbit ear and rabbit mesenteric exposure models to collect microcirculation speckle sequences. For the 50 frames of the acquired raw speckle sequence, two consecutive two-frame temporal contrast maps and one three-frame temporal contrast map are constructed according to the laser speckle contrast imaging method provided in this application embodiment, and then input into VPNET to obtain a highly stable speckle contrast prediction map. The comparison results between the laser speckle contrast imaging method provided in this application embodiment and traditional filtering methods and other deep learning methods are as follows: Figure 7 As shown, Figure 7 In the image, (a) shows the temporal contrast of three short time windows selected from the original speckle sequence. (a) as the short window baseline; (b) for the... The result obtained after TV regularization; (c) is the result of TV regularization. The result obtained after processing with Non-Local Means (NLM); (d) is the result after processing with Non-Local Means (NLM). The result obtained after reconstruction using the DRSNet network; (e) is the result of... (f) The result obtained after reconstruction by the LDSCI-GAN network; , , The target edge feature map is used as the input to a four-channel network, and the reconstruction result is obtained after reconstruction by VPNET; (g) is the speckle contrast map of the original 50-frame speckle sequence without denoising; (h) is the high-stability reference speckle contrast map obtained after MD-ABM3D denoising of the speckle contrast map of the original 50-frame speckle sequence. Compared with traditional filtering methods and other deep learning methods, the laser speckle contrast imaging method provided in this application embodiment is closer to the long-window high-stability reference map in terms of background noise suppression, blood vessel continuity, boundary sharpness, and bifurcation structure preservation.
[0147] Based on the same inventive concept, this application also provides a laser speckle contrast imaging device, see [link to relevant documentation]. Figure 8The device includes: a first time contrast image acquisition module 801, used to obtain a first time contrast image based on the time contrast of a target frame and its preceding frame; the target frame is a speckle image frame acquired at a target time; a second time contrast image acquisition module 802, used to obtain a second time contrast image based on the time contrast of the target frame and its following frame; a third time contrast image acquisition module 803, used to obtain a third time contrast image based on the time contrast of the target frame and its preceding and following frames; an edge feature extraction module 804, used to extract edge features from the first time contrast image, the second time contrast image, and the third time contrast image to obtain a target edge feature map; and an image reconstruction module 805, used to reconstruct an image based on the first time contrast image, the second time contrast image, the third time contrast image, and the target edge feature map to obtain a target speckle contrast image. In this embodiment, a first time contrast map and a second time contrast map are obtained by comparing the time contrast of the target frame and its preceding frame, and the time contrast of the target frame and its following frame. This allows for the extraction of speckle dynamic change information within adjacent time periods before and after the target frame. A third time contrast map is obtained by comparing the time contrast of the target frame and its preceding and following frames. This allows for the extraction of relatively stable short-window statistical anchor points. Edge features are extracted from the first, second, and third time contrast maps to obtain a target edge feature map. This preserves local structures such as blood vessel boundaries, bifurcations, and terminals. Image reconstruction is then performed based on the first, second, and third time contrast maps and the target edge feature map to obtain a target speckle contrast map. This allows for the acquisition of a more stable speckle contrast map under low latency conditions.
[0148] In one possible embodiment, the edge feature extraction module 804 is specifically used for: obtaining a guide map; the guide map is a time contrast map generated based on the time contrast of all speckle image frames contained in the target speckle sequence; the target speckle sequence is a continuous speckle image frame sequence of a preset length containing the target frame and its preceding and following frames; using the guide map, the first time contrast map, the second time contrast map, and the third time contrast map are respectively subjected to guide map filtering to obtain a first filtered map, a second filtered map, and a third filtered map; and image fusion is performed on the first filtered map, the second filtered map, and the third filtered map to obtain a target edge feature map.
[0149] In one possible embodiment, the image reconstruction module 805 is specifically used to: stitch together the first time-contrast image, the second time-contrast image, the third time-contrast image, and the target edge feature image along the channel dimension to obtain a target four-channel feature image; and input the target four-channel feature image into a pre-trained vascular prior network for image reconstruction to obtain a target speckle contrast image.
[0150] In one possible embodiment, the above-described apparatus further includes a network training module, configured to: acquire a sample speckle sequence and its corresponding reference speckle contrast map, wherein the sample speckle sequence contains a preset number of sample speckle images; sequentially select the second to second-to-last sample speckle images in the sample speckle sequence as reference frames using a sliding window, and obtain a fourth time contrast map, a fifth time contrast map, and a sixth time contrast map based on the time contrast of the reference frame and its preceding frame, the time contrast of the reference frame and its following frame, and the time contrast of the reference frame and its preceding and following frames, respectively; and perform a fourth time contrast map on the fourth time contrast map. Edge features are extracted from the contrast map, the fifth time-contrast map, and the sixth time-contrast map to obtain sample edge feature maps. The fourth time-contrast map, the fifth time-contrast map, the sixth time-contrast map, and the sample edge feature maps are concatenated along the channel dimension to obtain sample four-channel feature maps. The sample four-channel feature maps are input into the vascular prior network to be trained for image reconstruction to obtain speckle contrast prediction maps. The loss between the speckle contrast prediction maps and the reference speckle contrast maps is calculated, and the parameters of the vascular prior network to be trained are adjusted according to the loss until the training termination condition is met, resulting in a trained vascular prior network.
[0151] In one possible embodiment, the aforementioned vascular prior network to be trained includes an encoder and a decoder; the vascular prior network to be trained performs image reconstruction on the sample four-channel feature map in the following manner: the encoder extracts features from the sample four-channel feature map to obtain contrast features; the decoder decodes the local texture features and boundary response features in the contrast features to obtain a first feature, and decodes the directional features of the elongated blood vessels in the contrast features to obtain a second feature; the first feature and the second feature are fused to obtain vascular preservation enhancement features; and feature mapping is performed based on the vascular preservation enhancement features to obtain a speckle contrast prediction map.
[0152] In one possible embodiment, the loss between the speckle contrast prediction map and the reference speckle contrast map includes at least one of the following: pixel-level L1 reconstruction loss, gradient L1 loss, vascular region weighted L1 loss, topological constraint loss, and mean squared error loss.
[0153] In one possible embodiment, obtaining a reference speckle contrast map corresponding to the sample speckle sequence includes: obtaining a seventh temporal contrast map based on the temporal contrast of all sample speckle images contained in the sample speckle sequence; and performing noise reduction processing on the seventh temporal contrast map to obtain a reference speckle contrast map corresponding to the sample speckle sequence.
[0154] This application also provides an electronic device, such as... Figure 9As shown, it includes a processor 901, a communication interface 902, a memory 903, and a communication bus 904, wherein the processor 901, the communication interface 902, and the memory 903 communicate with each other through the communication bus 904.
[0155] Memory 903 is used to store computer programs;
[0156] When the processor 901 executes the program stored in the memory 903, it implements the laser speckle contrast imaging method of any of the above embodiments to achieve the same technical effect.
[0157] The communication bus mentioned in the above electronic devices can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.
[0158] The communication interface is used for communication between the aforementioned electronic devices and other devices.
[0159] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.
[0160] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0161] In another embodiment provided in this application, a computer-readable storage medium is also provided, which stores a computer program. When the computer program is executed by a processor, it implements the laser speckle contrast imaging method of any of the above embodiments to achieve the same technical effect.
[0162] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute the laser speckle contrast imaging method of any of the above embodiments to achieve the same technical effect.
[0163] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)).
[0164] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0165] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device / electronic device embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0166] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application are included within the scope of protection of this application.
Claims
1. A laser speckle contrast imaging method, characterized in that, The method includes: A first temporal contrast map is obtained based on the temporal contrast of the target frame and its preceding frame; the target frame is a speckle image frame acquired at the target time. A second temporal contrast map is obtained based on the temporal contrast of the target frame and its subsequent frames. A third time contrast map is obtained based on the time contrast of the target frame and its preceding and following frames. Edge features are extracted from the first time contrast map, the second time contrast map, and the third time contrast map to obtain a target edge feature map; Image reconstruction is performed based on the first time contrast map, the second time contrast map, the third time contrast map, and the target edge feature map to obtain the target speckle contrast map.
2. The method according to claim 1, characterized in that, The step of extracting edge features from the first time-contrast map, the second time-contrast map, and the third time-contrast map to obtain a target edge feature map includes: Obtain a guide image; the guide image is a time contrast image generated based on the time contrast of all speckle image frames contained in the target speckle sequence; the target speckle sequence is a continuous speckle image frame sequence of a preset length containing the target frame and its preceding and following frames. Using the guide graph, guide graph filtering is performed on the first time contrast graph, the second time contrast graph, and the third time contrast graph respectively to obtain a first filtered graph, a second filtered graph, and a third filtered graph; Image fusion is performed on the first filtered image, the second filtered image, and the third filtered image to obtain a target edge feature map.
3. The method according to claim 1 or 2, characterized in that, The image reconstruction based on the first temporal contrast map, the second temporal contrast map, the third temporal contrast map, and the target edge feature map to obtain the target speckle contrast map includes: The first time contrast map, the second time contrast map, the third time contrast map, and the target edge feature map are stitched together along the channel dimension to obtain a target four-channel feature map; The target four-channel feature map is input into a pre-trained vascular prior network for image reconstruction to obtain a target speckle contrast map.
4. The method according to claim 3, characterized in that, The training process of the vascular prior network includes: Obtain a sample speckle sequence and its corresponding reference speckle contrast image, wherein the sample speckle sequence contains a preset number of sample speckle images; Using a sliding window, the second to penultimate frame of the sample speckle sequence is selected as reference frames. Based on the time contrast of the reference frame and its preceding frame, the time contrast of the reference frame and its following frame, and the time contrast of the reference frame and its preceding and following frames, a fourth time contrast map, a fifth time contrast map, and a sixth time contrast map are obtained respectively. Edge features are extracted from the fourth, fifth, and sixth time-contrast maps to obtain sample edge feature maps; The fourth time contrast map, the fifth time contrast map, the sixth time contrast map, and the sample edge feature map are stitched together along the channel dimension to obtain a four-channel feature map of the sample. The sample four-channel feature map is input into the blood vessel prior network to be trained for image reconstruction to obtain the speckle contrast prediction map. The loss between the speckle contrast prediction map and the reference speckle contrast map is calculated, and the parameters of the vascular prior network to be trained are adjusted according to the loss until the training termination condition is met, thus obtaining the trained vascular prior network.
5. The method according to claim 4, characterized in that, The blood vessel prior network to be trained includes an encoder and a decoder; the blood vessel prior network to be trained performs image reconstruction on the sample four-channel feature map in the following manner: The encoder is used to extract features from the four-channel feature map of the sample to obtain contrast features; The decoder performs feature decoding on the local texture features and boundary response features in the contrast features to obtain a first feature, and performs feature decoding on the directional features of the slender blood vessels in the contrast features to obtain a second feature; the first feature and the second feature are fused to obtain a blood vessel preservation enhancement feature; and feature mapping is performed based on the blood vessel preservation enhancement feature to obtain a speckle contrast prediction map.
6. The method according to claim 4, characterized in that, The loss between the speckle contrast prediction map and the reference speckle contrast map includes at least one of the following: pixel-level L1 reconstruction loss, gradient L1 loss, vascular region weighted L1 loss, topological constraint loss, and mean squared error loss.
7. The method according to claim 4, characterized in that, The step of obtaining the reference speckle contrast map corresponding to the sample speckle sequence includes: A seventh time-contrast map is obtained based on the temporal contrast of all sample speckle images contained in the sample speckle sequence. The seventh time-contrast map is denoised to obtain a reference speckle contrast map corresponding to the sample speckle sequence.
8. A laser speckle contrast imaging device, characterized in that, The device includes: The first time contrast image acquisition module is used to obtain a first time contrast image based on the time contrast of the target frame and its preceding frame; the target frame is a speckle image frame acquired at the target time. The second time contrast map acquisition module is used to obtain a second time contrast map based on the time contrast of the target frame and its subsequent frames. The third time contrast map acquisition module is used to obtain a third time contrast map based on the time contrast of the target frame and its preceding and following frames. An edge feature extraction module is used to extract edge features from the first time contrast map, the second time contrast map, and the third time contrast map to obtain a target edge feature map; The image reconstruction module is used to perform image reconstruction based on the first time contrast map, the second time contrast map, the third time contrast map and the target edge feature map to obtain a target speckle contrast map.
9. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the method described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method described in any one of claims 1-7.
