Terahertz time-domain spectral signal imaging method, device, equipment and medium

Through the imaging method of terahertz time domain spectral signals, combined with deconvolution filtering and kriging processing technology, the problems of poor internal information recognition effect and focal position offset are solved, and more accurate pathological analysis and image characteristics are achieved. Enhanced.

CN119067858APending Publication Date: 2024-12-03CAPITAL NORMAL UNIVERSITY +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411168669.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The existing terahertz pulse imaging method has poor information recognition effect in the sample, making it difficult to distinguish between lesion and healthy areas. At the same time, the problem of the focal position offset of the imaging device makes image analysis difficult.

Method used

Using the imaging method of terahertz time domain spectroscopy signals, biological samples are scanned by terahertz pulse imager, initial time domain spectroscopy signals are processed using deconvolution filtering and kriging method to generate target images, and feature enhancement of images deal with.

Benefits of technology

It improves signal fidelity and image smoothness, enhances the ability to analyze the pathological results of the sample tissue, and can more accurately identify and analyze pathological features in the image.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119067858A_ABST
    Figure CN119067858A_ABST
Patent Text Reader

Abstract

The invention provides a terahertz time-domain spectral signal imaging method, device, equipment and medium, and relates to the technical field of terahertz imaging, and the method comprises the steps: obtaining a plurality of initial time-domain spectral signals; processing the plurality of initial time-domain spectral signals based on deconvolution filtering to obtain a plurality of target time-domain spectral signals; performing interpolation processing on the target time-domain spectral signal based on a Kriging method, and performing integration processing on all spectral signals after interpolation processing to obtain an initial image; and performing image feature enhancement processing on the initial image to generate a target image. According to the method, the time-domain spectral signals collected from the sample tissue are processed through deconvolution filtering, the fidelity of the signals can be balanced and noise can be suppressed in the signal recovery process, the missing value of the image is filled through the Kriging method, the image is smoother, the edges and details of the image are kept, and the image quality is improved. And finally, gray scale transformation feature enhancement is performed on the image, so that the pathological result of the sample tissue can be accurately analyzed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of terahertz imaging technology, and in particular to an imaging method, device, equipment and medium for terahertz time-domain spectral signals. Background Art

[0002] The existing terahertz pulse imaging method is to obtain the terahertz spectrum and use optical parameters such as time domain peak, frequency domain peak, and half-maximum full width as features for imaging. However, the information recognition effect of the terahertz image sample obtained by this traditional method is poor. Specifically, although the sample shows light and dark changes, the information contained in these light and dark changes is difficult to truly distinguish the sample into a diseased area or a healthy area.

[0003] In addition, there is a common problem when terahertz pulse imaging instruments are used for imaging. That is, when performing point-by-point imaging, although the distance that the focus position of the device moves each time is set in advance, due to the accuracy of the device, the specific position where the detection beam is focused will have a small deviation from the predetermined position. Although we can plot these dense points in the form of a scatter plot, the scatter plot is not conducive to subsequent image analysis and processing operations. Summary of the invention

[0004] The purpose of the present invention is to provide an imaging method, device, equipment and medium for terahertz time-domain spectroscopy signals to improve the above problems. In order to achieve the above purpose, the technical solution adopted by the present invention is as follows:

[0005] In a first aspect, the present application provides a method for imaging a terahertz time-domain spectroscopy signal, comprising:

[0006] Scanning and processing the target biological sample based on a terahertz pulse imager to obtain a plurality of initial time-domain spectral signals, wherein the target biological sample is divided into a regular grid, and the initial time-domain spectral signals are located at the intersection of the grids;

[0007] Processing the multiple initial time-domain spectral signals based on deconvolution filtering to obtain multiple target time-domain spectral signals;

[0008] Performing interpolation processing on the target time-domain spectral signal based on the Kriging method, and integrating all the spectral signals after the interpolation processing to obtain an initial image;

[0009] Perform image feature enhancement processing on the initial image to generate a target image.

[0010] In a second aspect, the present application also provides an imaging device for a terahertz time-domain spectroscopy signal, comprising:

[0011] A scanning unit, used for scanning and processing a target biological sample based on a terahertz pulse imager to obtain a plurality of initial time-domain spectrum signals, wherein the target biological sample is divided into a regular grid, and the initial time-domain spectrum signals are located at the intersection of the grids;

[0012] A convolution processing unit, used for processing the multiple initial time-domain spectral signals based on deconvolution filtering to obtain multiple target time-domain spectral signals;

[0013] An interpolation processing unit, used for performing interpolation processing on the target time-domain spectral signal based on the Kriging method, and integrating all the spectral signals after the interpolation processing to obtain an initial image;

[0014] The enhancement processing unit is used to perform image feature enhancement processing on the initial image to generate a target image.

[0015] In a third aspect, the present application also provides an imaging device for terahertz time-domain spectroscopy signals, comprising:

[0016] Memory for storing computer programs;

[0017] A processor is used to implement the steps of the imaging method of the terahertz time-domain spectroscopy signal when executing the computer program.

[0018] In a fourth aspect, the present application further provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the above-mentioned imaging method based on terahertz time-domain spectroscopy signal are implemented.

[0019] The beneficial effects of the present invention are:

[0020] The present invention first processes the time domain spectral signal collected from the sample tissue through deconvolution filtering, which can balance the signal fidelity and noise suppression in the process of signal recovery, and then fills the missing values ​​of the image through the Kriging method to make the image smoother and maintain the edges and details of the image. Finally, the image is enhanced by grayscale transformation features, so that the pathological results of the sample tissue can be accurately analyzed.

[0021] Other features and advantages of the present invention will be described in the following description, and other features and advantages will become apparent from the description, or will be understood by implementing the embodiments of the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 It is a schematic flow chart of the imaging method of terahertz time-domain spectroscopy signal described in an embodiment of the present invention;

[0024] Figure 2 A schematic diagram of the distribution of scatter plots in a grid according to an embodiment of the present invention;

[0025] Figure 3 A schematic diagram comparing the imaging result of the existing terahertz time-domain spectroscopy signal in the embodiment of the present invention and the imaging result of the terahertz time-domain spectroscopy signal in the present application;

[0026] Figure 4 Schematic diagram of pathological microscopic imaging described in an embodiment of the present invention;

[0027] Figure 5 Schematic diagram of the structure of the imaging device of the terahertz time-domain spectroscopy signal described in an embodiment of the present invention;

[0028] Figure 6 Schematic diagram of the structure of the imaging device of the terahertz time-domain spectroscopy signal described in an embodiment of the present invention.

[0029] The following are marked in the figure:

[0030] 10. Scanning unit; 20. Convolution processing unit; 30. Interpolation processing unit; 40. Enhancement processing unit; 800. Imaging device for terahertz time-domain spectroscopy signal; 801. Processor; 802. Memory; 803. Multimedia component; 804. I / O interface; 805. Communication component. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0032] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0033] Embodiment 1:

[0034] This embodiment provides an imaging method for a terahertz time-domain spectroscopy signal.

[0035] See also Figure 1 , the figure shows that the method includes step S10, step S20, step S30 and step S40.

[0036] Step S10. Scanning and processing the target biological sample based on the terahertz pulse imager to obtain a plurality of initial time-domain spectral signals, the target biological sample is divided into a regular grid, and the initial time-domain spectral signals are located at the intersection of the grids;

[0037] Specifically, the embodiment of the present application is terahertz imaging of liver cancer samples. First, terahertz spectral data of the liver cancer samples are collected to obtain terahertz time-domain spectral signals at each sampling point, and the background signal (no sample and glass) and reference signal (only no sample) of this experiment are obtained respectively. According to the low-frequency background noise contained in the background signal, the low-frequency noise is zeroed in the frequency domain, thereby realizing frequency domain filtering and obtaining an initial time-domain spectral signal.

[0038] Step S20. Processing the multiple initial time-domain spectral signals based on deconvolution filtering to obtain multiple target time-domain spectral signals;

[0039] Specifically, the sample transfer function based on deconvolution is:

[0040]

[0041] Wherein, h(t) is the transfer function; ω is the frequency; X(ω) is the reference time domain spectrum signal collected without placing samples; Y(ω) is the initial frequency domain spectrum signal after low-pass filtering of the sample signal collected with placing samples; F -1 is the inverse Fourier transform.

[0042] Specifically, step S20 specifically includes step S21, step S22, step S23, step S24, step S25, step S26 and step S27:

[0043] Step S21. Obtain a reference time-domain spectrum signal, where the reference time-domain spectrum signal is a reference signal obtained when the terahertz pulse imager is not placed with a sample, that is, air;

[0044] Step S22. Calculating the signal-to-noise ratio based on the multiple initial time-domain spectral signals and the reference time-domain spectral signals to obtain multiple signal-to-noise ratios;

[0045] Step S23. constructing multiple Wiener filter functions based on the reference time-domain spectral signal and multiple signal-to-noise ratios;

[0046] Specifically, considering that X(ω) may be very small in some frequency domain regions, the divergence can be avoided by using the Wiener filter as an inverse filter, so that the fidelity of the signal can be balanced and the noise can be suppressed in the process of recovering the signal. The Wiener filter function is:

[0047]

[0048] Where W(ω) is the Wiener filter function; X(ω) is the reference time domain spectrum signal collected without placing samples; λ is the inverse of the signal-to-noise ratio; is the conjugate of X(ω); ω is the frequency.

[0049] Step S24. Determine the peak width and time variable at half the peak height based on the initial time-domain spectrum signal, and obtain multiple target peak widths and multiple time variables;

[0050] Step S25. constructing multiple Gaussian pulse functions based on multiple target peak widths and corresponding multiple time variables;

[0051] Specifically, in order to suppress the additional response or ringing effect generated in addition to the main frequency response and obtain a time domain waveform without side lobes, a window function should also be used. The window function is expressed as follows based on the Gaussian pulse function:

[0052]

[0053] Among them, T FWHM is the peak width at half the peak height; t is the time variable.

[0054] Step S26. constructing multiple transfer functions based on the reference time-domain spectrum signal, the initial time-domain spectrum signal, multiple Wiener filter functions and multiple Gaussian pulse functions;

[0055] Step S27. Processing the corresponding initial time-domain spectral signal based on the transfer function to obtain a plurality of target time-domain spectral signals;

[0056] Specifically, the transfer function constructed based on the Wiener filter function and the Gaussian pulse function is:

[0057]

[0058] Wherein, h(t) is the transfer function; ω is the frequency; Y(ω) is the initial frequency domain spectrum signal after low-pass filtering of the sample signal collected by placing the sample; F -1 is the inverse Fourier transform; F is the Fourier transform; X(ω) is the reference time domain spectrum signal collected without placing samples; λ is the inverse of the signal-to-noise ratio; is the conjugate of X(ω); T FEHM is the peak width at half the peak height; t is the time variable.

[0059] Step S30: interpolating the target time-domain spectral signal based on the Kriging method, and integrating all the spectral signals after the interpolation to obtain an initial image;

[0060] Specifically, in this application, the Kriging method is used to restore the scanned scatter plot into an image, such as Figure 2 As shown in the figure, it is a schematic diagram of the distribution of scatter plots in the grid. In the process of gridding the data in the scattered points, the Kriging method not only takes into account the properties of the image space, but also allows the calculation of the confidence interval of each point in the grid, thereby obtaining a more accurate image result. The Kriging formula can be expressed as:

[0061]

[0062] in, is the estimated value of the time domain spectral signal at the prediction point, λ i is the weight coefficient of the i-th known point; z i is the time domain spectrum signal of the i-th known point; n is the number of known points.

[0063] Specifically, step S30 specifically includes step S31, step S32, step S33, step S34 and step S35:

[0064] Step S31. Obtain the estimated time-domain spectral signal and the actual time-domain spectral signal of the target intersection position, and construct an initial optimization function;

[0065] Specifically, step S31 specifically includes step S311, step S312 and step S313:

[0066] Step S311. construct a first function based on the estimated time-domain spectral signal and the actual time-domain spectral signal;

[0067] Specifically, the first function is as follows:

[0068]

[0069] Among them, Var(·) is the variance function; is the estimated value of the time-domain spectral signal at the prediction point; z0 is the actual value of the time-domain spectral signal at the prediction point; λ i is the weight coefficient of the i-th known point.

[0070] Step S312. Optimizing the first function based on the Kriging interpolation function and the covariance function to obtain a second function;

[0071] Specifically, assuming that the sample space of the image is stationary, the value of any point z(x,y) in the space is composed of the average value and random deviation of the area near the point, where the variance of the random deviation R(x,y) is a constant, and the formula is expressed as:

[0072]

[0073] Where z(x,y) is the estimated value of the spectral signal at point (x,y) in space; R(x,y) is the random deviation; c is the average value; σ 2 is a constant; E(·) is the expected function.

[0074] Further, using To represent the estimation error, the first function is optimized based on the covariance as shown below:

[0075]

[0076] Where J is the variance of the Kriging prediction error; Var(·) is the variance function; z i is the time domain spectral signal of the i-th known point; z0 is the time domain spectral signal of the predicted point; λ i is the weight coefficient of the i-th known point; j is the weight coefficient of the jth known point; C ij is the covariance between the time domain spectral signals of the i-th known point and the j-th known point; C i0 is the covariance between the time domain spectral signals of the i-th known point and the predicted point; C 00 is the covariance of the time-domain spectral signal of the prediction point itself; n is the number of known points.

[0077] Step S313. Optimize the second function based on the semivariance function and the variance value of the random deviation to obtain an initial optimization function;

[0078] Specifically, the semivariance function is further introduced as follows:

[0079] r ij =σ 2 -C ij

[0080] Among them, r ij is the semivariance between the time domain spectral signals of the i-th known point and the j-th known point; σ 2 is a constant; C ij is the covariance between the time domain spectral signals of the i-th known point and the j-th known point;

[0081] As can be seen from the above formula, the semivariance function reflects the similarity between two points in space. The function optimized based on the semivariance function is as follows:

[0082]

[0083] Where J is the variance of the Kriging prediction error; λ i is the weight coefficient of the i-th known point; j is the weight coefficient of the jth known point; r ij is the semivariance between the time domain spectral signals of the i-th known point and the j-th known point; r i0 is the semivariance between the time domain spectral signal of the i-th known point and the predicted point; r 00 is the semi-variance of the time-domain spectral signal of the prediction point; σ 2 is a constant; n is the number of known points.

[0084] Step S32. Constructing a constraint function based on the weight coefficient in the Kriging method, where the weight coefficient is used to characterize the correlation between the spectral signal at the target intersection position and the spectral signals at the surrounding intersection positions;

[0085] Specifically, according to the unbiased estimation condition, the constraint function can be further obtained:

[0086]

[0087] Among them, λ i is the weight coefficient of the i-th known point; n is the number of known points.

[0088] Step S33. Combining the initial optimization function and the constraint function based on Lagrange multipliers to obtain a target optimization function;

[0089] Specifically, in order to satisfy the unbiased constraint condition, the Lagrange multiplier method is used to update the optimization function and obtain the following function:

[0090]

[0091] Where J is the variance of the Kriging prediction error; λ i is the weight coefficient of the i-th known point; φ is the Lagrange multiplier; n is the number of known points.

[0092] Step S34. Solving and calculating the target optimization function to obtain multiple weight coefficient values;

[0093] Specifically, solve the following formula:

[0094]

[0095] Where J is the variance of the Kriging prediction error; λ i is the weight coefficient of the i-th known point; φ is the Lagrange multiplier; n is the number of known points;

[0096] Convert the rearranged system of equations into matrix form:

[0097]

[0098] Among them, λ n is the weight coefficient of the nth known point; r nn is the semivariance between the time domain spectral signals of the nth known point and the nth known point; r n0 is the semivariance between the time domain spectral signal of the nth known point and the predicted point; n is the number of known points;

[0099] All weight coefficient values ​​are solved from the above formula, and the time domain spectral signals of all prediction points are further calculated, so as to transform all scatter plots into initial images.

[0100] Step S35. Calculate the time domain spectrum signal of the target intersection position based on the weight coefficient value, and integrate all the time domain spectrum signals into an initial image;

[0101] Specifically, the time domain spectral signals calculated from all points are integrated according to the grid positions to obtain the initial image.

[0102] Step S40: Perform image feature enhancement processing on the initial image to generate a target image;

[0103] Specifically, step S40 specifically includes step S41, step S42, step S43 and step S44:

[0104] Step S41. Perform center cropping on the initial image to obtain a first image;

[0105] Specifically, center cropping is used to extract the part of interest from the central area of ​​the image and remove noise or irrelevant information that may exist at the edge.

[0106] Step S42: Perform negative logarithmic transformation on the pixel values ​​in the first image to obtain a second image;

[0107] Specifically, the negative logarithmic transformation can be used to enhance the details in the image and improve the contrast of the display, and can effectively stretch the low grayscale area to make the image details more prominent.

[0108] Step S43: performing restriction processing on the second image based on the set pixel value threshold range to obtain a third image;

[0109] Specifically, by limiting the range of pixel values, noise and outliers in the background can be effectively removed.

[0110] Step S44: performing linear mapping processing on the pixel values ​​of the third image to obtain a target image;

[0111] Specifically, linear mapping stretches the contrast of the image by mapping the minimum value of the image to 0 and the maximum value to 255, making the details originally in a smaller grayscale range more obvious.

[0112] Specifically, step S44 specifically includes step S441, step S442, step S443, step S444, step S445, step S446 and step S447:

[0113] Step S441. Divide the third image into blocks to obtain a plurality of initial modules;

[0114] Step S442. Calculate the pixel value of each initial module and combine and split multiple initial modules based on the pixel value to obtain multiple target modules;

[0115] Step S443. Calculate the average pixel value of all target modules to obtain an average pixel value;

[0116] Step S444. Calculate the difference between the pixel value of each target module and the average pixel value to obtain a plurality of first values;

[0117] Step S445. Calculate the ratio of the first values ​​to the average pixel value to obtain the second values;

[0118] Step S446. Calculate the product of the plurality of second values ​​and the set threshold value to obtain a plurality of third values;

[0119] Step S447. Using the third value as the pixel value of the corresponding target module to obtain a target image;

[0120] Specifically, the calculation formula of linear mapping is:

[0121]

[0122] Among them, I mapped is the pixel value after linear mapping; I is the original pixel value; I ping is the average pixel value in the original image.

[0123] For the human eye, images after linear mapping usually have better visual effects. The existing terahertz imaging method uses optical parameters such as time domain peak, frequency domain peak or half-maximum full width as features for imaging after acquiring the terahertz spectrum signal. Figure 3 (a) shows the image, and the imaging method in this application can obtain the following Figure 3 The image shown in (b) is combined with Figure 4 The pathological microscopic imaging shown shows that the image obtained by the method shown in the present application can effectively enhance the contrast and detail display, making it easier to identify and analyze important features in the image.

[0124] Embodiment 2:

[0125] like Figure 5 As shown, this embodiment provides an imaging device for terahertz time-domain spectroscopy signals, the device comprising:

[0126] The scanning unit 10 is used to scan and process the target biological sample based on the terahertz pulse imager to obtain a plurality of initial time-domain spectrum signals, wherein the target biological sample is divided into a regular grid, and the initial time-domain spectrum signals are located at the intersection of the grids;

[0127] A convolution processing unit 20, configured to process the multiple initial time-domain spectral signals based on deconvolution filtering to obtain multiple target time-domain spectral signals;

[0128] An interpolation processing unit 30 is used to perform interpolation processing on the target time-domain spectral signal based on the Kriging method, and integrate all the spectral signals after the interpolation processing to obtain an initial image;

[0129] The enhancement processing unit 40 is used to perform image feature enhancement processing on the initial image to generate a target image.

[0130] In a specific implementation disclosed in the present application, the convolution processing unit 20 includes:

[0131] A first acquisition unit is used to acquire a reference time-domain spectrum signal, where the reference time-domain spectrum signal is a reference signal obtained when the terahertz pulse imager is not placed with a sample;

[0132] A first calculation unit is used to calculate a signal-to-noise ratio based on a plurality of initial time-domain spectral signals and a reference time-domain spectral signal to obtain a plurality of signal-to-noise ratios;

[0133] A first construction unit is used to construct multiple Wiener filter functions based on a reference time-domain spectral signal and multiple signal-to-noise ratios;

[0134] A determination unit, used to determine the peak width and time variable at half the peak height based on the initial time-domain spectrum signal, and obtain multiple target peak widths and multiple time variables;

[0135] A second construction unit is used to construct multiple Gaussian pulse functions based on multiple target peak widths and corresponding multiple time variables;

[0136] A third construction unit is used to construct multiple transfer functions based on the reference time-domain spectrum signal, the initial time-domain spectrum signal, multiple Wiener filter functions and multiple Gaussian pulse functions;

[0137] The processing unit is used to process the corresponding initial time-domain spectral signal based on the transfer function to obtain multiple target time-domain spectral signals.

[0138] In a specific embodiment disclosed in the present application, the interpolation processing unit 30 includes:

[0139] A second acquisition unit is used to acquire an estimated time-domain spectral signal and an actual time-domain spectral signal of a target intersection position, and construct an initial optimization function;

[0140] A fourth construction unit is used to construct a constraint function based on a weight coefficient in a Kriging method, where the weight coefficient is used to characterize the correlation between the spectral signal at the target intersection position and the spectral signals at the surrounding intersection positions;

[0141] A combining unit, used for combining the initial optimization function and the constraint function based on Lagrange multipliers to obtain a target optimization function;

[0142] A second calculation unit is used to solve and calculate the target optimization function to obtain multiple weight coefficient values;

[0143] The third calculation unit is used to calculate the time domain spectrum signal of the target intersection position based on the weight coefficient value, and integrate all the time domain spectrum signals into an initial image.

[0144] In a specific embodiment disclosed in the present application, the second acquisition unit includes:

[0145] A fifth constructing unit, configured to construct a first function based on the estimated time-domain spectral signal and the actual time-domain spectral signal;

[0146] A first optimization unit is used to optimize the first function based on the Kriging difference function and the covariance function to obtain a second function;

[0147] The second optimization unit is used to optimize the second function based on the semivariance function and the variance value of the random deviation to obtain an initial optimization function.

[0148] In a specific embodiment disclosed in the present application, the enhancement processing unit 40 includes:

[0149] A cropping unit, used for performing center cropping processing on the initial image to obtain a first image;

[0150] A transformation unit, used for performing negative logarithmic transformation on pixel values ​​in the first image to obtain a second image;

[0151] A limiting unit, used for performing limiting processing on the second image based on a set pixel value threshold range to obtain a third image;

[0152] The mapping unit is used to perform linear mapping processing on the pixel values ​​of the third image to obtain a target image.

[0153] In a specific embodiment disclosed in the present application, the mapping unit includes:

[0154] A block division unit, used for performing block processing on the third image to obtain a plurality of initial modules;

[0155] A fourth calculation unit, used for calculating the pixel value of each initial module and combining and splitting the multiple initial modules based on the pixel value to obtain multiple target modules;

[0156] A fifth calculation unit, used to calculate an average value of pixel values ​​of all target modules to obtain an average pixel value;

[0157] a sixth calculation unit, configured to calculate a difference between a pixel value of each target module and an average pixel value, to obtain a plurality of first values;

[0158] a seventh calculation unit, configured to calculate ratios of a plurality of first values ​​to an average pixel value to obtain a plurality of second values;

[0159] an eighth calculation unit, configured to calculate the product of the plurality of second values ​​and a set threshold value to obtain a plurality of third values;

[0160] As a unit, it is used to use the third value as the pixel value of the corresponding target module to obtain the target image.

[0161] It should be noted that, regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.

[0162] Embodiment 3:

[0163] Corresponding to the above method embodiment, this embodiment also provides an imaging device for a terahertz time-domain spectroscopy signal. The imaging device for a terahertz time-domain spectroscopy signal described below and the imaging method for a terahertz time-domain spectroscopy signal described above can refer to each other.

[0164] Figure 6 FIG. 8 is a block diagram of an imaging device 800 for a terahertz time-domain spectroscopy signal according to an exemplary embodiment. Figure 6 As shown, the imaging device 800 of the terahertz time-domain spectroscopy signal may include: a processor 801 and a memory 802. The imaging device 800 of the terahertz time-domain spectroscopy signal may also include one or more of a multimedia component 803, an I / O interface 804, and a communication component 805.

[0165] The processor 801 is used to control the overall operation of the imaging device 800 for terahertz time-domain spectroscopy signals to complete all or part of the steps in the above-mentioned imaging method for terahertz time-domain spectroscopy signals. The memory 802 is used to store various types of data to support the operation of the imaging device 800 for terahertz time-domain spectroscopy signals, such as instructions for any application or method operating on the imaging device 800 for terahertz time-domain spectroscopy signals, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 802 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or optical disk. The multimedia component 803 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in the memory 802 or sent via the communication component 805. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 804 provides an interface between the processor 801 and other interface modules, and the above-mentioned other interface modules can be keyboards, mice, buttons, etc. These buttons can be virtual buttons or physical buttons. The communication component 805 is used for wired or wireless communication between the imaging device 800 of the terahertz time-domain spectroscopy signal and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so the corresponding communication component 805 can include: Wi-Fi module, Bluetooth module, NFC module.

[0166] In an exemplary embodiment, the imaging device 800 of the terahertz time-domain spectroscopy signal can be implemented by one or more application-specific integrated circuits (Application Specific Integrated Circuit, referred to as ASIC), digital signal processors (Digital Signal Processing Device, referred to as DSPD), programmable logic devices (Programmable Logic Device, referred to as PLD), field programmable gate arrays (Field Programmable Gate Array, referred to as FPGA), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned imaging method of terahertz time-domain spectroscopy signals.

[0167] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned imaging method of terahertz time-domain spectroscopy signals are implemented. For example, the computer-readable storage medium can be the above-mentioned memory 802 including program instructions, and the above-mentioned program instructions can be executed by the processor 801 of the imaging device 800 of terahertz time-domain spectroscopy signals to complete the above-mentioned imaging method of terahertz time-domain spectroscopy signals.

[0168] Embodiment 4:

[0169] Corresponding to the above method embodiment, a readable storage medium is also provided in this embodiment. The readable storage medium described below and the imaging method of the terahertz time-domain spectroscopy signal described above can refer to each other.

[0170] A readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the imaging method of terahertz time-domain spectroscopy signals of the above method embodiment.

[0171] The readable storage medium may specifically be a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or other readable storage medium that can store program codes.

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

[0173] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for imaging terahertz time-domain spectroscopy signals, characterized in that: include: Scanning and processing the target biological sample based on a terahertz pulse imager to obtain a plurality of initial time-domain spectral signals, wherein the target biological sample is divided into a regular grid, and the initial time-domain spectral signals are located at the intersection of the grids; Processing multiple initial time-domain spectral signals based on deconvolution filtering to obtain multiple target time-domain spectral signals; Performing interpolation processing on the target time-domain spectral signal based on the Kriging method, and integrating all the spectral signals after the interpolation processing to obtain an initial image; Perform image feature enhancement processing on the initial image to generate a target image.

2. The imaging method of terahertz time-domain spectroscopy signal according to claim 1, characterized in that , based on deconvolution filtering, the multiple initial time domain spectra are processed to obtain multiple target time domain spectra, including: Acquire a reference time-domain spectrum signal, where the reference time-domain spectrum signal is a reference signal obtained when the terahertz pulse imager is not placed with a sample; Performing signal-to-noise ratio calculation based on a plurality of initial time-domain spectral signals and the reference time-domain spectral signal to obtain a plurality of signal-to-noise ratios; Constructing multiple Wiener filter functions based on the reference time-domain spectral signal and multiple signal-to-noise ratios; Determine the peak width and time variable at half the peak height based on the initial time-domain spectrum signal, and obtain multiple target peak widths and multiple time variables; Constructing multiple Gaussian pulse functions based on multiple target peak widths and corresponding multiple time variables; Constructing multiple transfer functions based on the reference time-domain spectral signal, the initial time-domain spectral signal, multiple Wiener filter functions, and multiple Gaussian pulse functions; The corresponding initial time-domain spectral signal is processed based on the transfer function to obtain a plurality of target time-domain spectral signals.

3. The imaging method of terahertz time-domain spectroscopy signal according to claim 1, characterized in that , interpolating the target time-domain spectral signal based on the Kriging method, and integrating all the spectral signals after the interpolation to obtain an initial image, wherein the target time-domain spectral signal has the same position as the corresponding initial time-domain spectral signal, including: Obtain the estimated time-domain spectral signal and the actual time-domain spectral signal of the target intersection position, and construct an initial optimization function; Constructing a constraint function based on a weight coefficient in the Kriging method, wherein the weight coefficient is used to characterize the correlation between the spectral signal at the target intersection position and the spectral signals at the surrounding intersection positions; Combining the initial optimization function and the constraint function based on Lagrange multipliers to obtain a target optimization function; Solving and calculating the target optimization function to obtain multiple weight coefficient values; The time-domain spectral signal of the target intersection position is calculated based on the weight coefficient value, and all the time-domain spectral signals are integrated into the initial image.

4. The imaging method of terahertz time-domain spectroscopy signal according to claim 3, characterized in that , obtain the estimated time-domain spectral signal and the actual time-domain spectral signal of the target intersection position, and construct the initial optimization function, including: constructing a first function based on the estimated time-domain spectral signal and the actual time-domain spectral signal; Optimizing the first function based on the Kriging interpolation function and the covariance function to obtain a second function; The second function is optimized based on the semivariance function and the variance value of the random deviation to obtain the initial optimization function.

5. An imaging device for terahertz time-domain spectroscopy signals, characterized in that: include: A scanning unit, used for scanning and processing a target biological sample based on a terahertz pulse imager to obtain a plurality of initial time-domain spectrum signals, wherein the target biological sample is divided into a regular grid, and the initial time-domain spectrum signals are located at the intersection of the grids; A convolution processing unit, used for processing the multiple initial time-domain spectral signals based on deconvolution filtering to obtain multiple target time-domain spectral signals; An interpolation processing unit, used for performing interpolation processing on the target time-domain spectral signal based on the Kriging method, and integrating all the spectral signals after the interpolation processing to obtain an initial image; The enhancement processing unit is used to perform image feature enhancement processing on the initial image to generate a target image.

6. The imaging device of terahertz time-domain spectroscopy signal according to claim 5, characterized in that: The convolution processing unit comprises: A first acquisition unit is used to acquire a reference time-domain spectrum signal, where the reference time-domain spectrum signal is a reference signal obtained when the terahertz pulse imager is not placed with a sample; A first calculation unit, configured to calculate a signal-to-noise ratio based on a plurality of initial time-domain spectral signals and the reference time-domain spectral signal to obtain a plurality of signal-to-noise ratios; A first construction unit is used to construct multiple Wiener filter functions based on the reference time-domain spectrum signal and multiple signal-to-noise ratios; A determination unit, configured to determine a peak width and a time variable at half the peak height based on the initial time-domain spectrum signal, and obtain a plurality of target peak widths and a plurality of time variables; A second construction unit is used to construct multiple Gaussian pulse functions based on multiple target peak widths and corresponding multiple time variables; A third construction unit is used to construct multiple transfer functions based on the reference time-domain spectrum signal, the initial time-domain spectrum signal, multiple Wiener filter functions and multiple Gaussian pulse functions; A processing unit is used to process the corresponding initial time-domain spectral signal based on the transfer function to obtain a plurality of target time-domain spectral signals.

7. The imaging device of terahertz time-domain spectroscopy signal according to claim 5, characterized in that: The interpolation processing unit comprises: A second acquisition unit is used to acquire an estimated time-domain spectral signal and an actual time-domain spectral signal of a target intersection position, and construct an initial optimization function; A fourth construction unit is used to construct a constraint function based on a weight coefficient in the Kriging method, wherein the weight coefficient is used to characterize the correlation between the spectral signal at the target intersection position and the spectral signals at the surrounding intersection positions; A combining unit, used for combining the initial optimization function and the constraint function based on Lagrange multipliers to obtain a target optimization function; A second calculation unit is used to solve and calculate the target optimization function to obtain a plurality of weight coefficient values; The third calculation unit is used to calculate the time domain spectrum signal of the target intersection position based on the weight coefficient value, and integrate all the time domain spectrum signals into the initial image.

8. The imaging device of terahertz time-domain spectroscopy signal according to claim 7, characterized in that: The second acquiring unit includes: a fifth constructing unit, configured to construct a first function based on the estimated time-domain spectral signal and the actual time-domain spectral signal; A first optimization unit, configured to optimize the first function based on a Kriging difference function and a covariance function to obtain a second function; The second optimization unit is used to optimize the second function based on the semivariance function and the variance value of the random deviation to obtain the initial optimization function.

9. An imaging device for terahertz time-domain spectroscopy signals, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the imaging method of the terahertz time-domain spectroscopy signal as claimed in any one of claims 1 to 4 when executing the computer program.

10. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the imaging method of the terahertz time-domain spectroscopy signal according to any one of claims 1 to 4 are implemented.