A method for ultra-high-speed radiographic image recognition based on photoelectric detectors
By building a backpropagation neural network and bias processor on the photodetector, ultra-high-speed X-ray image recognition of the laser processing process is achieved, solving the problem of monitoring the internal structure of materials in laser processing, and improving processing accuracy and real-time monitoring capabilities. .
Patent Information
- Application Number
- CN202210035471.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-13
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-01-13
AI Technical Summary
During laser processing, it is difficult to monitor the internal structure of the material in real time, resulting in low processing accuracy. It is especially difficult to detect defects in the depth direction, which can easily cause material failure.
Using an ultra-high-speed ray image recognition method based on photodetectors, by building a back-propagation neural network, using multi-pixel pixelated probes and bias processors, signal processing is performed directly on the photodetectors to achieve real-time X-ray images Recognition and feedback improve image recognition speed to ns level.
It realizes real-time monitoring and high-speed feedback of the laser processing process, has real-time monitoring capabilities in the processing depth direction, improves processing accuracy, and avoids the complex analog-to-digital conversion and computer processing in traditional methods.
Smart Images

Figure CN114595740B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of online monitoring of laser processing, and in particular, to an ultra-high-speed ray image recognition method based on a photoelectric detector. Background Art
[0002] Laser thermal processing refers to the use of the thermal effect generated by projecting a laser beam onto the surface of a material to complete the processing process, including laser welding, laser engraving and cutting, surface modification, laser laser marking, laser drilling and micro-processing. During the laser processing process, due to differences in processing materials and processing requirements, it is often necessary to adjust the process parameters in real time to improve the processing quality. However, the properties of materials vary greatly, and the internal structures vary greatly. In addition, it is difficult to obtain the internal structure of the processing through real-time monitoring during the processing process, which makes it difficult to adjust the parameters in real time.
[0003] In order to obtain the internal working conditions of materials during laser processing, the changes in light, electricity, heat and other signals are often used to judge. However, this method is easily affected by the external environment, resulting in deviations in the results. Secondly, it is also easy to cause distortion due to different material properties. In addition, the current online monitoring technology for laser processing mainly monitors surface phenomena, and lacks effective monitoring of defects in the depth direction, which is the key factor causing material failures such as cracks.
[0004] Therefore, it is necessary to develop a device that can not only monitor the inside of the laser-processed material in real time to prevent defects, but also make timely adjustments to different materials and environments, and solve various problems in the laser processing process to improve the accuracy of the laser processing process. Summary of the invention
[0005] In view of the shortcomings of the prior art, the present invention provides an ultra-high-speed radiation image recognition method based on a photoelectric detector, comprising: S1, obtaining a plurality of input images obtained by the photoelectric detector after the X-ray passes through the object; S2, building a neural network according to the probe pixels of a pixelated photoelectric detector with multiple pixels and the classification number of the input image, and using the plurality of the input images to train and verify the neural network to obtain a neural network after training and verification, wherein the neural network after training and verification includes weight information and can output the category information of the input image; S3, extracting the weight information, constructing a bias processor of the photoelectric detector corresponding to the plurality of the input images, the bias processor can realize the weight calculation process of the neural network by making corresponding adjustments to the output pulse photoelectric signal of the photoelectric detector; S4, using the bias device to make different bias adjustments to the voltage of the photoelectric detector, so that the pulse photoelectric signal generated by each pixel detected by the adjusted photoelectric detector is also adjusted accordingly, and then connected according to the corresponding relationship in the neural network after training and verification, so as to obtain the recognition result of the X-ray image of the target object.
[0006] Furthermore, the method for extracting weight information in a neural network to construct a bias processor includes: in a trained neural network, calculating and outputting the category information of the input image according to the following formula:
[0007]
[0008] Among them, C represents the target category, C i represents the i-th category, n represents the number of image pixels, t m represents the mth pixel, represents the weight of the mth pixel of the i-class image, b i represents bias, f is the activation function corresponding to the summing node to the final output value, the activation function does not change the relative size of the output value, but only makes the large value larger and the small value smaller, so as to obtain a clearer and more accurate classification result;
[0009] Extract each time obtained in the formula A weight value is obtained, and the weight value is trained to obtain the bias device corresponding to the weight value.
[0010] The present application relates to a high-speed X-ray image recognition device comprising: a photodetector, which detects a pulse photoelectric signal of a pixel; a bias processor, which executes any of the above-mentioned recognition methods and outputs the pulse photoelectric signal as target state information.
[0011] The present application also relates to a device, comprising: a processor; and a memory storing computer instructions, wherein when the computer instructions are executed by the processor, the processor executes the identification method as described in any one of 1-7 and outputs the pulse photoelectric signal as target state information.
[0012] The present application also relates to a non-transitory computer storage medium storing a computer program. When the computer program is executed by one or more processors, the processors execute any of the above-mentioned identification methods and output the pulse photoelectric signal as target state information.
[0013] In view of the low monitoring accuracy and difficulty in monitoring in the processing depth direction in the current online monitoring of laser processing. This application proposes an artificial intelligence high-speed radiographic image recognition technology based on a photodetector combined with X-ray imaging technology. Relying on the relatively mature back propagation neural network (BPNN) in the current artificial intelligence algorithm, the weights in the trained neural network are combined with the characteristics that the output signal of the photodetector changes with the applied bias voltage, and the weights of the neural network are equivalent to the bias voltage applied to the photodetector, so that the original X-ray image data after entering the pixelated probe becomes an electrical signal with image feature information processed by the weight. After that, the detector integrates the above-mentioned difference signals received and directly outputs the electrical signal, and the target can be immediately judged according to this signal. Compared with traditional image recognition technology, this technology does not require the cumbersome process of complex analog-to-digital conversion and subsequent information processing on the computer CPU. At present, according to the emission frequency of X-rays and the width of the pulse electrical signal, this technology can reach the image recognition and instant feedback rate of ns level at the highest. It can perform real-time monitoring and high-speed feedback in the laser processing process, and has the real-time monitoring capability that conventional optical means cannot observe in the processing depth and other directions.
[0014] This method uses X-rays that have a certain degree of penetration into materials, combined with an artificial neural network algorithm, to transplant the conventional image recognition algorithm that needs to be processed in digital chips such as computer CPUs into a hardware analog circuit for implementation, so that the analog signal output at the moment when the pixelated detector receives the X-rays that pass through the object to be measured can be used to judge the state and morphology of the target object, and immediately feed back to the processing equipment to adjust the processing parameters in real time.
[0015] In summary, based on mathematical principles and methods, this application transfers the neural network algorithm that originally needs to be implemented in a computer to the pixelated probe and bias adjustment of the photodetector, so that when the algorithm is used for image recognition, there is no need for signal analog-to-digital conversion and processing by computer chips, etc., and the image recognition rate can be increased from ms to ns.
[0016] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 This is a schematic diagram of the process of the ultra-high-speed imaging method based on photodetectors in this application.
[0018] Figure 2 Schematic diagram of the initial target image and the image after adding Gaussian noise selected in the embodiment of the present application.
[0019] Figure 3 The graph shows the relationship between the pulse photoelectric signal output by each pixel of the photodetector array and the bias voltage.
[0020] Figure 4 Shows the one-dimensionalization process of the input image.
[0021] Figure 5 The process of calculating and outputting category information for the neural network structure used in this method.
[0022] Figure 6 An example of the correspondence between network weight extraction and photodetector bias is shown.
[0023] Figure 7 The photodetector array pixel connection relationship is shown.
[0024] Figure 8 This is a structural diagram of a high-speed X-ray image recognition device.
[0025] Fig. 9 A model diagram of monitoring using the rapid imaging device of the present application during laser processing. DETAILED DESCRIPTION
[0026] The following is a more detailed description of the specific embodiments of the present invention in conjunction with the accompanying drawings and examples, so that the scheme of the present invention and its advantages in various aspects can be better understood. However, the specific embodiments and examples described below are only for the purpose of illustration, rather than for limiting the present invention.
[0027] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, "multiple" means two or more, unless otherwise clearly and specifically defined.
[0028] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or can communicate with each other; it can be directly connected, or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0029] The disclosure below provides many different embodiments or examples to realize different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or reference letters in different examples, and this repetition is for the purpose of simplicity and clarity, which itself does not indicate the relationship between the various embodiments and / or settings discussed. In addition, the present invention provides various specific examples of processes and materials, but those of ordinary skill in the art can be aware of the application of other processes and / or the use of other materials.
[0030] Figure 1 This is a schematic diagram of the process of the rapid ray imaging method based on photoelectric detectors in this application.
[0031] like Figure 1 As shown, the method for rapid ray imaging based on a photoelectric detector in the present application mainly includes the following steps:
[0032] S1, obtaining a target to be identified, which is a plurality of input images obtained by a detector after X-rays pass through an object in reality, such as images detected in non-destructive testing technology. Gaussian noise is then added to the plurality of input images respectively to obtain a sufficient amount of image data, which is the target to be identified.
[0033] S2, build a neural network, use the target to be identified, that is, the number of image data classifications mentioned above and the probe pixel size in the pixelated detector with multiple pixels in the actual state, build a neural network, and use the above image data to train and verify the neural network to obtain a trained and verified neural network. The trained and verified neural network can output the target to be identified, that is, the category of the input image, based on which the corresponding original image information can be known. Among them, the trained and verified neural network includes weight information, which is equivalent to the processing process of the original input image, which will be described in detail later.
[0034] S3, constructing a bias processor of the photodetectors corresponding to the multiple input images according to the above weight information, the bias processor can adjust the output pulse photoelectric signal of the photodetector, which corresponds to the weight calculation process of the neural network.
[0035] S4, due to the characteristic that the amplitude of the output pulse photoelectric signal of the photoelectric detector changes with the magnitude of the applied bias voltage, a bias processor can be added to the photoelectric detector to adjust the bias voltage, so that the pulse photoelectric signal generated by each pixel detected by the adjusted detector is also adjusted accordingly, and the adjustment process is similar to the weight processing process. Then, according to the corresponding relationship in the neural network after training and verification, the recognition result of the target object X-ray image can be obtained.
[0036] Each step will be described in detail below.
[0037] Step S1, obtaining the target to be identified, that is, sufficient training data. Figure 2 Schematic diagram of the initial target image and the image after adding Gaussian noise selected in the embodiment of the present application. Figure 2 As shown in the figure, the initial target is 4, namely A, F, I, and J. The number of images is too small. The data volume is expanded and Gaussian noise is added to the image. As shown in the figure, the input image is 4*4 pixels, and noise with signal-to-noise ratios of 3, 1, and 0.5 is added to it. The image obtained is as follows Figure 2As shown on the right. It can be seen that by adding noise, the clarity of the image is reduced to a certain extent. The lower the signal-to-noise ratio, the worse the clarity. Through the above method and combined with the actual number of target classifications, graphic complexity, etc., the input data can be expanded to the order of tens of thousands or even millions of images. Training in this way can greatly improve the fault tolerance of the detection equipment when the uniformity of the input graphic is not ideal or there are other interference factors.
[0038] Step S2, building a neural network and training the neural network. Building a neural network according to the pixel size of the probe in actual conditions and the number of classifications of the image of the training data. And using the training data image to train the neural network, a trained neural network is obtained.
[0039] The number of image categories can be set according to actual conditions. For example, in this embodiment, the image category is 4, that is, the number of categories is 4. The method of building a neural network based on the input image and the number of categories is a well-known method in the industry and will not be described in detail here.
[0040] To train a neural network, the initial data needs to be divided into a training set and a validation set. The training set is responsible for training the neural network to obtain the data set with the most optimized output results, and the validation set is needed to verify the accuracy of the trained neural network. The training set: validation set ratio set in this article is 0.8:0.2 (it can be divided into other ratios according to the actual application effect, that is, 80% of all data is used for training and the rest is used for validation).
[0041] Step S3, extracting weight information in the neural network for making a bias processor.
[0042] Figure 3 The graph shows the relationship between the pulse photoelectric signal output by each pixel of the photodetector array and the change of the bias voltage. It can be inferred that the image processing process in the neural network can be corresponded to the process of the pulse photoelectric signal output by the image changing through the bias voltage adjustment. Therefore, the weight information is extracted, which corresponds to the bias voltage adjustment.
[0043] Specifically, when training a neural network, the input image is converted into a one-dimensional image and then processed to output the category information of the input image. During this computational process, the neural network parameters, i.e., weight information, are extracted, which is required to build a bias processor.
[0044] Figure 4 The one-dimensionalization process of the input image is shown. Figure 4 As shown, the leftmost image is the original image, the middle image is the image after adding Gaussian noise to simulate the image detected by rays. The rightmost image is the pixel matrix parameters generated after the image is one-dimensionalized.
[0045] It is important to note that some parameters in the neural network are selected as follows: a fully connected method is used between all inputs and neurons. The cross entropy loss function is used as the loss function, and the softmax is used as the activation function of the neural network. At the same time, the random gradient descent and learning rate decay methods are used for network training. In order to prevent overfitting, the L2 regularization method is also applied. After 1000 iterations, the loss value is stabilized at around 0.75, and the final verification algorithm accuracy is 97.8%. The network output uses the one-hot encoding method, that is, only one value is "lit up" in each output result. This method can maximize the accuracy of the output value.
[0046] Figure 5 The process of calculating and outputting category information for the neural network structure used in this method. Figure 5 The calculation process represented can be explained by the following formula.
[0047] According to the following formula:
[0048]
[0049] Among them, C represents the target category, C i represents the i-th category, n represents the number of image pixels, t m represents the mth pixel, represents the weight of the mth pixel of the i-class image, b i represents bias, f is the activation function corresponding to the summing node to the final output value, the activation function does not change the relative size of the output value, but only makes the large value larger and the small value smaller, so as to obtain a clearer and more accurate classification result;
[0050] The trained neural network weights are then extracted and the corresponding bias processor is made in proportion.
[0051] Furthermore, for example, Figure 5 When the input to the bias processor is a specific pattern, each pixel value in the pattern represents the corresponding pixel n in the computer. i ,Right now Figure 5 The white circle on the left is the n in computer language i *P ni In the detector, it is equivalent to adjusting the corresponding bias voltage of the electrical signal fed back by a certain pixel. After summing up with different weights, we get Figure 4 The four values of 0.1, 0.6, 0, and 0.1 are processed by the f function to obtain the
[0100] matrix result. This result corresponds to the C2 graph in the setting. Then, we can use Figure 2 There are four image categories in the inference. The original image of the image is F.
[0052] Furthermore, if n=9 and the number of categories is 4, all 9 image pixels need to perform corresponding n*P operations. So for each category to output category information, 9 sets of n*P operations need to be performed. That is, for a specific image pixel, there are several output image categories (several Cs), which need to be multiplied by several weights P. The intensity change of the image by the weight P is equivalent to the change of the pulse photoelectric signal of each pixel, which corresponds to the bias change of the photodetector. Therefore, the weight information P is extracted to build a bias processor. Figure 6 As shown, an example of the correspondence between network weight extraction and photodetector bias is shown.
[0053] And if Figure 6 As shown, the calculation of the bias processor is formed by the calculation of the array. The number of bias arrays that the bias processor edits the pixels is the same as the total number of weights, that is, the product of the number of elements and the number of categories. If the number of categories is 4 and the number of input pixels is n=9, then the number of bias arrays is a 6*6 matrix arrangement.
[0054] By calculating and connecting the array pixels in the bias-adjusted photodetector according to the corresponding relationship in the verified neural network, a ray detector capable of target recognition can be obtained. Figure 7 , the connection relationship of the pixels of the photodetector array is shown.
[0055] Step S4, adding a bias processor to the photodetector, outputting the pulse photoelectric signal of the pixel on the photodetector, and performing corresponding bias adjustment, and the adjusted electrical signal has image category or status information.
[0056] The present application also relates to a high-speed X-ray image recognition device such as Figure 8 As shown, it includes: a photodetector and a bias processor. The pixel array detector detects the pulse photoelectric signal of each pixel. The bias processor executes the above-mentioned recognition method and outputs the output pulse photoelectric signal as the target state information. The photodetector has a pixel probe with a neural network image recognition function. In addition, a scintillator is provided, which fits closely with the photodetector and is responsible for converting X-rays into scintillation light, which then enters the photodetector and is converted into an electrical signal. It also includes a signal readout system for easy reading.
[0057] Fig. 9 This is a simulation diagram of the application of the bias processor in actual detection.
[0058] The process of online monitoring of laser processing using the fast image recognition device in this application is as follows: Fig. 9 During the laser processing process, the X-ray image recognition device in this application is set near the workpiece to perform real-time monitoring while the laser beam is processing the workpiece.
[0059] The present application also relates to a device, including a processor; and a memory storing computer instructions. When the computer instructions are executed by the processor, the processor executes the recognition method as described above and outputs the pulse photoelectric signal as target state information.
[0060] A non-transitory computer storage medium stores a computer program. When the computer program is executed by one or more processors, the processors execute the above-mentioned identification method and output the pulse photoelectric signal as target state information.
[0061] By using this application and method, not only the image recognition rate is increased from the ms level to the ns level, but also the neural network algorithm that was originally required to be implemented in the computer is transferred to the pixelated probe and bias processor from the mathematical principle and method, so that when the algorithm is used for image recognition, there is no need to perform subsequent signal analog-to-digital conversion and computer chip processing, which is more convenient. In addition, the hardware construction of the neural network is realized by designing a bias adjustment method on the detector. The bias adjustment method is conducive to the training of the neural network, and the neural network can be quickly transformed according to actual application requirements.
[0062] Obviously, the above embodiments are merely examples for clearly explaining the present invention, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the protection scope of the present invention.
Claims
1. An ultra-high-speed radiographic image recognition method based on a photoelectric detector, characterized in that: include: S1, obtaining a plurality of input images obtained by a photoelectric detector after X-rays pass through an object; S2, building a neural network according to the probe pixels of the pixelated photodetector with multiple pixels and the classification number of the input image, and training and verifying the neural network using a plurality of the input images to obtain a trained and verified neural network, wherein the trained and verified neural network includes weight information and can output the category information of the input image; In the trained neural network, the category information of the input image is calculated and output according to the following formula: Among them, C represents the target category, C i represents the i-th category, n represents the number of image pixels, t m represents the mth pixel, represents the weight of the mth pixel of the i-class image, b i represents bias, f is the activation function corresponding to the summing node to the final output value, the activation function does not change the relative size of the output value, but only makes the large value larger and the small value smaller, so as to obtain a clearer and more accurate classification result; S3, extracting the weight information, constructing bias processors of the photodetectors corresponding to the plurality of input images, wherein the bias processor can realize the weight calculation process of the neural network by making corresponding adjustments to the output pulse photoelectric signals of the photodetectors; The method of extracting weight information in a neural network to construct a bias processor includes forming a bias processor by calculating an array, wherein the number of bias arrays is the same as the total number of weights, which is the product of the number of elements and the number of categories; S4, using the bias processor to perform different bias adjustments on the voltage of the photodetector, so that the pulse photoelectric signal generated by each pixel detected by the adjusted photodetector is also adjusted accordingly, and then connected according to the corresponding relationship in the trained and verified neural network, the recognition result of the target object X-ray image can be obtained.
2. A high-speed X-ray image recognition device, characterized in that: include: A photodetector detects the pulse photoelectric signal of the pixel; A bias processor, wherein the bias processor executes the identification method according to claim 1 and outputs the pulse photoelectric signal as target state information.
3. A device comprising: processor; as well as A memory stores computer instructions, and when the computer instructions are executed by the processor, the processor executes the identification method as claimed in claim 1 and outputs the pulse photoelectric signal as target state information.
4. A non-transitory computer storage medium storing a computer program, which, when executed by one or more processors, enables the processors to execute the identification method as claimed in claim 1 and output the pulse photoelectric signal as target state information.
