Network learning control method and device based on large slip ring cone beam dual source spectral CT
The PID adaptive control method and BP neural network learned through EtherCAT network solve the complex problem of synchronization control of large slip ring CT rotation speed and image detector, and improve the stability and diagnostic capabilities of CT scanning.
Patent Information
- Application Number
- CN202210059962.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-19
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-01-19
AI Technical Summary
Existing CT scanning technology is difficult to detect small lesions early in oncology examinations, and the control of the large-aperture CT simulation positioning system is complex. In particular, the synchronization and precise control of multiple sets of X-ray sources and image detectors is a difficult problem.
The PID adaptive control method based on EtherCAT network learning is used, and the BP neural network is used to adjust the parameters of the PID controller, control the speed of the large slip ring CT rotation, and trigger multiple sets of image detectors synchronously through a control signal.
It achieves the stability and accuracy of the large slip ring CT rotation speed, ensures the synchronous operation of multiple sets of X-ray sources and image detectors, and improves the diagnostic capabilities and adaptability of CT scanning.
Smart Images

Figure CN114527649B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of accelerator radiotherapy, and in particular relates to a network learning control method based on large slip ring cone beam dual-source energy spectrum CT. Background Art
[0002] Since Hounsfield invented CT in 1971, CT upgrades have focused on optimizing image quality and improving the success rate of examinations. Performance indicators such as rotation speed, coverage width, spatial resolution, and acquisition channels have developed to near limits, resulting in increasingly obvious CT imaging problems: CT scans obtain differential images of tissue density, and cannot distinguish between tissues with similar material density, making it difficult to find tiny and hidden lesions. Especially when conducting oncology examinations, CT is more based on changes in the density of the lesion to determine the morphology, size, edge, and degree of enhancement of the lesion, which is more based on the anatomical structure of the lesion, and changes in the anatomical structure often mean that the disease has developed to the middle or late stages, and the best time for diagnosis and treatment has been missed.
[0003] The emergence of multi-energy spectral CT solves the above problems. It breaks through the limitations of isodense lesions of traditional CT and forms images that directly reflect the tissue components of the lesions. It can bring richer, more accurate and quantitative multi-parameter imaging information, and has unique value for the precise diagnosis of various diseases such as early tumor lesions, coronary heart disease, large vessel angiography, and musculoskeletal imaging.
[0004] With the development of modern computer technology and medical imaging technology, tumor radiotherapy has entered the era of precise radiotherapy. The basis of precise radiotherapy is the accurate acquisition of three-dimensional image information of patients. At present, CT is the main way to obtain three-dimensional / four-dimensional image information. It can not only provide information about the tumor target area, but also provide information about normal tissues around the tumor. At the same time, the radiotherapy planning system calculates and calibrates the irradiation dose through the electron density information provided by the reconstructed CT image, so as to achieve accurate tumor target area dose and reduce the irradiation dose of normal tissue. However, due to the limitation of the aperture of the conventional CT frame, it is impossible to simulate all patients in the ideal position. Therefore, the large-aperture CT simulation positioning system has gradually emerged in the field of radiotherapy. The large-aperture CT simulation positioning system is different from the conventional diagnostic CT. The scanning aperture is generally required to be ≥75cm. This is because radiotherapy simulation scanning, according to different parts, will have some special body positions and need to be combined with some radiotherapy frames. In many small hospitals, the radiotherapy department has just started, and there are not many patients. There may be 1-2 accelerators in the department, but there is no professional CT simulator suitable for the radiotherapy department.
[0005] The large-aperture CT simulation positioning system includes: multiple sets of X-ray sources and multiple sets of image detectors. Since the 1s image detector needs to uniformly collect multiple images, the CT slip ring rotation speed is required to be very stable and accurate, and the triggering timing of multiple sets of image detectors also needs to be very synchronized and accurate, which is a big challenge for the control of this large slip ring CT and a difficult problem to overcome in this field. Summary of the invention
[0006] In order to solve the above technical problems, the present invention proposes a network learning control method and device based on large slip ring cone beam dual-source energy spectrum CT.
[0007] In order to achieve the above object, the technical solution of the present invention is as follows:
[0008] On the one hand, the present invention discloses a network learning control method based on large slip ring cone beam dual-source energy spectrum CT, which is used to control multiple sets of X-ray sources and multiple sets of image detectors to perform dual-source energy spectrum CT scanning, including the following contents:
[0009] The PID adaptive control method based on EtherCAT network learning is used to control the rotation speed of the large slip ring CT, and the BP neural network is used to adjust the parameters of the PID controller.
[0010] Control multiple sets of X-ray sources to emit beams synchronously;
[0011] One control signal is used to control multiple sets of image detectors to trigger image acquisition synchronously.
[0012] Based on the above technical solution, the following improvements can be made:
[0013] As a preferred solution, a PID adaptive control method based on EtherCAT network learning is used to control the speed of the large slip ring CT rotation motion, which specifically includes the following steps:
[0014] S1.1: Select the structure of BP neural network;
[0015] S1.2: Real-time measurement of the position of the large slip ring CT;
[0016] S1.3: Calculate the real-time speed of the large slip ring CT, and calculate the speed error and acceleration;
[0017] S1.4: The velocity error and acceleration of the first M moments are used as the input of the motion controller BP neural network, and also as the input of the PID controller of the intelligent drive;
[0018] S1.5: Calculate the input and output of each layer of neurons in the BP neural network. The output of the output layer is the three adjustable parameters K of the PID controller. P , K I , KD ;
[0019] S1.6: Calculate the control output of the PID controller;
[0020] S1.7: Calculate the weight coefficient of the output layer of the modified BP neural network;
[0021] S1.8: Calculate the weight coefficients of the hidden layer of the modified BP neural network;
[0022] S1.9: Repeat steps S1.2 to S1.9 until all sampling points of the PID controller are corrected.
[0023] As a preferred solution, the PID controller forms a control deviation based on the set value r(t) and the actual output value y(t):
[0024] e(t)=r(t)-y(t);
[0025] The control output of the PID controller in the continuous case is:
[0026]
[0027] In the formula, k p is the proportionality coefficient, T I is the integration time constant, T D is the differential time constant;
[0028] The control output of the PID controller in the discrete case is:
[0029]
[0030] Δu(k)=k p (e(k)-e(k-1))+k i e(k)+k d (e(k)-2e(k-1)+e(k-2)); (2)
[0031] In the formula, k i =k p *T / T I , k d =k p *T / T D ;
[0032] T is the sampling period, and k is the sampling sequence number.
[0033] As a preferred solution, the structure of the BP neural network is specifically as follows:
[0034] The input layer input of the BP neural network is:
[0035]
[0036] Where M is the number of nodes in the input layer;
[0037] The hidden layer output of the BP neural network is:
[0038]
[0039] In the formula, w ij (2) is the hidden layer weight coefficient; w iM (2) is the threshold value, w iM (2) =θ i ,θ i represents the threshold of the i-th neuron in the hidden layer;
[0040] f[·] is the activation function, f[·] = tanh(x);
[0041] Q is the number of hidden layer nodes;
[0042] The input and output of the output layer of the BP neural network are:
[0043]
[0044] In the formula, w li (3) is the weight coefficient of the output layer; w lQ (3) is the threshold value, w lQ (3) =θ l ,θ l Represents the threshold of the lth neuron in the output layer;
[0045] g[·] is the activation function, satisfying g[·]=(1 / 2)[1+tanh(x)];
[0046] The superscripts (1), (2), and (3) represent the input layer, hidden layer, and output layer, respectively;
[0047] Assume the performance index function is:
[0048]
[0049] In the formula, r represents the expected speed, y represents the actual speed, and z represents the speed error;
[0050] The weighted coefficients of the network are corrected according to the steepest descent method, that is, the negative gradient direction of the weighted coefficients is searched and adjusted according to J, and an inertia term is added to search for fast convergence to the global minimum, and the following formula is obtained:
[0051]
[0052] Where: η is the learning rate, α is the inertia coefficient.
[0053] As a preferred solution, the structure of the BP neural network is selected, which specifically includes the following contents: selecting the number of nodes M in the input layer and the number of nodes Q in the hidden layer of the BP neural network, and giving the initial value w of the weight coefficient of the hidden layer of the BP neural network ij (2) (0), the initial value w of the output layer weight coefficient li (3) (0), select the learning rate η and the inertia coefficient α, k = 1.
[0054] As a preferred solution, the calculation formula of the weighted coefficient of the BP neural network output layer is:
[0055]
[0056] Where g'[·] = g(x)[1-g(x)];
[0057] In S1.7, the weight coefficient of the output layer of the modified BP neural network is calculated according to formula (8).
[0058] As a preferred solution, the calculation formula of the weighted coefficient of the hidden layer of the BP neural network is:
[0059]
[0060] In the formula, f'[·]=[1-f 2 (X)] / 2;
[0061] In S1.8, the weight coefficients of the hidden layer of the modified BP neural network are calculated according to formula (9).
[0062] As a preferred solution, the start time and end time of multiple sets of X-ray sources are synchronized.
[0063] As a preferred solution, multiple sets of image detectors are synchronously triggered to collect images, specifically including the following contents:
[0064] The large slip ring CT starts to rotate, sending image trigger pulses to trigger multiple sets of image detectors to collect images synchronously;
[0065] According to the real-time speed V of the large slip ring CT, the current position encoder value Y of the large slip ring CT and the position encoder value Y of the large slip ring CT at the previous moments i , use the cubic spline prediction algorithm to predict the position encoder value Y at the next moment j , and predict the rotation speed V at the next moment j , then the time of the next image trigger pulse is 360 / (T*p)*X / V j ;
[0066] Where: T is the time for the large slip ring CT to rotate one circle, p is the number of images uniformly collected by the image detector in 1s, and X is the encoder value for the large slip ring CT to rotate 1°.
[0067] On the other hand, the present invention also discloses a network learning control device based on large slip ring cone beam dual source energy spectrum CT, comprising:
[0068] one or more processors;
[0069] Memory;
[0070] And one or more programs, wherein the one or more programs are stored in a memory and configured to be executed by one or more processors, and the one or more programs include instructions of any of the above-mentioned network learning control methods based on large slip ring cone beam dual-source energy spectrum CT.
[0071] The present invention discloses a network learning control method and device based on a large slip ring cone beam dual source spectrum CT, which uses a PID adaptive control method based on EtherCAT network learning to control the speed of the large slip ring CT rotation movement, and uses a BP neural network to adjust the parameters of the PID controller. The adaptive adjustment of the PID controller parameters can take into account the rapidity, stability and robustness of the speed control, and use one control signal to simultaneously control the triggering of multiple sets of image detectors. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] 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.
[0073] Figure 1 A schematic diagram of the structure of a large slip-ring cone-beam dual-source spectral CT provided in an embodiment of the present invention.
[0074] Figure 2 A flow chart of a PID adaptive control method based on EtherCAT network learning provided by an embodiment of the present invention.
[0075] Figure 3 A structural diagram of a control system based on network learning provided in an embodiment of the present invention.
[0076] Figure 4 This is a structural diagram of a BP neural network (NN) provided in an embodiment of the present invention.
[0077] Figure 5 A diagram of the trigger control structure of the image plate during the rotation of the large slip ring CT provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0078] The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0079] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0080] The expression of “comprising” an element is an “open” expression, which merely means that a corresponding component or step exists, and should not be interpreted as excluding additional components or steps.
[0081] In order to achieve the purpose of the present invention, a network learning control method based on large slip ring cone beam dual source energy spectrum CT and some embodiments of the device are provided. The network learning control method based on large slip ring cone beam dual source energy spectrum CT is used to control Figure 1 The two sets of X-ray sources and four sets of image detectors shown are used for dual-source energy spectrum CT scanning, and the large slip ring CT rotates at a constant speed of 4s or 6s per circle.
[0082] The network learning control method includes the following:
[0083] The PID adaptive control method based on EtherCAT network learning is used to control the rotation speed of the large slip ring CT, and the BP neural network is used to adjust the parameters of the PID controller.
[0084] Control two sets of X-ray sources to emit beams synchronously;
[0085] One control signal is used to control four sets of image detectors to trigger image acquisition synchronously.
[0086] The X-ray source may be, but is not limited to, an X-ray tube, and the image detector may be, but is not limited to, a detection plate.
[0087] In order to further optimize the implementation effect of the present invention, in some other embodiments, the remaining characteristic technologies are the same, except that, Figure 2 As shown in the figure, the PID adaptive control method based on EtherCAT network learning is used to control the speed of the large slip ring CT rotation movement, which specifically includes the following steps:
[0088] S1.1: Select the structure of BP neural network;
[0089] S1.2: Real-time measurement of the position of the large slip ring CT;
[0090] S1.3: Calculate the real-time speed of the large slip ring CT, and calculate the speed error and acceleration;
[0091] S1.4: The velocity error and acceleration of the first M moments are used as the input of the motion controller BP neural network, and also as the input of the PID controller of the intelligent drive;
[0092] S1.5: Calculate the input and output of each layer of neurons in the BP neural network. The output of the output layer is the three adjustable parameters K of the PID controller. P , K I , K D ;
[0093] S1.6: Calculate the control output of the PID controller;
[0094] S1.7: Calculate the weight coefficient of the output layer of the modified BP neural network;
[0095] S1.8: Calculate the weight coefficients of the hidden layer of the modified BP neural network;
[0096] S1.9: Repeat steps S1.2 to S1.9 until all sampling points of the PID controller are corrected.
[0097] The speed control algorithm of the large slip ring CT rotation motion adopts the PID adaptive control method based on EtherCAT network learning. The optimization of PID control parameters is completed in the DSP+FPGA motion controller, and the PID controller is completed in the intelligent motion drive with EtherCAT network, such as Figure 3 As shown. PID control has the advantages of simple structure, good stability and high reliability, and is particularly suitable for deterministic control systems that can establish accurate mathematical models. However, in practical applications, most industrial processes have nonlinearity, time-varying parameters and model uncertainty to varying degrees. Therefore, general PID control cannot achieve accurate control of such processes.
[0098] The PID adaptive control method based on network learning has a weak dependence on mathematical models and does not require the establishment of an accurate mathematical model of the process. The network learning algorithm uses the BP neural network learning algorithm, which can be said to be the most successful neural network learning algorithm at present. The BP neural network is a "universal model + error correction function". Each time, the error analysis is performed based on the training results and the expected results, and then the weights and thresholds are modified to obtain a model that can output the expected results step by step.
[0099] Further, based on the above embodiment, the PID controller is a linear controller, which forms a control deviation according to the fixed value r(t) and the actual output value y(t):
[0100] e(t)=r(t)-y(t);
[0101] The control output of the PID controller in the continuous case is:
[0102]
[0103] In the formula, k p is the proportionality coefficient, T I is the integration time constant, T D is the differential time constant;
[0104] The control output of the PID controller in the discrete case is:
[0105]
[0106] Δu(k)=k p (e(k)-e(k-1))+k i e(k)+k d (e(k)-2e(k-1)+e(k-2)); (2)
[0107] In the formula, k i =k p *T / T I , k d =k p *T / T D ;
[0108] T is the sampling period, and k is the sampling sequence number.
[0109] The network learning link uses BP neural network controller, and the control loop uses ordinary PID controller. The system structure is as follows: Figure 3 shown.
[0110] The control system consists of two parts:
[0111] (1) Traditional PID controller: directly performs closed-loop control on the controlled object process, and the three parameters K P , K I , K D It is an online setting formula;
[0112] (2) Neural Network (NN): After learning the neural network, the information is expressed in the form of weighted coefficients. The generation of rules is transformed into the determination and modification of the initial value of the weighted coefficients. According to the operating state of the system, the parameters of the PID controller are adjusted to achieve the optimization of performance indicators. That is, the output state of the output layer neuron corresponds to the three adjustable parameters K of the PID controller. P , K I , K D, through the neural network's own learning and weighted coefficient adjustment, its stable state corresponds to the PID controller parameters under the optimal control law with the minimum sum of squared errors.
[0113] The present invention adopts a three-layer BP neural network, and its network structure is as follows Figure 4 As shown in Figure 1, there are M input nodes, Q hidden nodes, and 3 output nodes. The input nodes correspond to the system state variables E{i} after prediction processing. The output nodes correspond to the three adjustable parameters Kp, K I , K D . Due to K P , K I , K D It cannot be a negative value, so the activation function of the output layer neurons is a non-negative Sigmoid, while the activation function of the hidden layer neurons can be a positive and negative symmetric Sigmoid function.
[0114] Further, based on the above embodiment, the structure of the BP neural network is specifically as follows:
[0115] The input layer input of the BP neural network is:
[0116]
[0117] Where M is the number of nodes in the input layer, and the number of input variables M depends on the complexity of the controlled system;
[0118] The hidden layer output of the BP neural network is:
[0119]
[0120] In the formula, w ij (2) is the hidden layer weight coefficient; w iM (2) is the threshold value, w iM (2) =θ i ,θ i Represents the threshold of the i-th neuron in the hidden layer, that is, the maximum or minimum value;
[0121] f[·] is the activation function, f[·] = tanh(x);
[0122] Q is the number of hidden layer nodes;
[0123] The input and output of the output layer of the BP neural network are:
[0124]
[0125] In the formula, w li (3)is the weight coefficient of the output layer; w lQ (3) is the threshold value, w 1Q (3) =θ l ,θ l Represents the threshold of the lth neuron in the output layer, that is, the maximum or minimum value;
[0126] g[·] is the activation function, satisfying g[·]=(1 / 2)[1+tanh(x)];
[0127] The superscripts (1), (2), and (3) represent the input layer, hidden layer, and output layer, respectively;
[0128] Assume the performance index function is:
[0129]
[0130] In the formula, r represents the expected speed, y represents the actual speed, and z represents the speed error;
[0131] The weighted coefficients of the network are corrected according to the steepest descent method, that is, the negative gradient direction of the weighted coefficients is searched and adjusted according to J, and an inertia term is added to search for fast convergence to the global minimum, and the following formula is obtained:
[0132]
[0133] Where: η is the learning rate, α is the inertia coefficient.
[0134] Further, based on the above embodiment, the structure of the BP neural network is selected, which specifically includes the following contents: selecting the number of nodes M of the input layer and the number of nodes Q of the hidden layer of the BP neural network, and giving the initial value w of the weight coefficient of the hidden layer of the BP neural network ij (2) (0), the initial value w of the output layer weight coefficient li (3) (0), select the learning rate η and the inertia coefficient α, k = 1.
[0135] Further, based on the above embodiment, the calculation formula of the weighted coefficient of the BP neural network output layer is:
[0136]
[0137] Where g'[·] = g(x)[1-g(x)];
[0138] In S1.7, the weight coefficient of the output layer of the modified BP neural network is calculated according to formula (8).
[0139] Further, based on the above embodiment, the calculation formula of the weighted coefficient of the hidden layer of the BP neural network is:
[0140]
[0141] Where, f′[·]=[1-f2(X)] / 2;
[0142] In S1.8, the weight coefficients of the hidden layer of the modified BP neural network are calculated according to formula (9).
[0143] Specifically, the calculation steps of the network learning control method can be summarized as follows:
[0144] 1) Select the structure of the BP neural network, that is, select the number of nodes M in the input layer and the number of nodes Q in the hidden layer of the BP neural network, and give the initial value w of the weight coefficient of the hidden layer of the BP neural network ij (2) (0), the initial value w of the output layer weight coefficient li (3) (0), select the learning rate η and inertia coefficient α, k = 1;
[0145] 2) According to the known e1, e2, ..., e M , As well as the speed error and its differential in the previous period, they are used as the input of the BP neural network, e1, e2, ..., e M is the speed error at the actual moment, For its corresponding differential;
[0146] 3) According to equations (3)-(5), the input and output of each layer of neurons in the BP neural network are forward calculated. The output of the output layer is the three adjustable parameters K of the PID controller. P (N), K I (N), K D (N);
[0147] 4) According to the formula u(N)=u(N-1)+K P [e(N)-e(N-1)]+K I e(N)+K D [e(N)-2e(N-1)+e(N-2)] calculates the control output u(N) of the PID controller and participates in control and calculation;
[0148] 5) According to formula (8), calculate the weight coefficient W of the modified output layer li (3) (N);
[0149] 6) According to formula (9), calculate the weight coefficient W of the modified hidden layer ij (2) (N);
[0150] 7) Set k = k + 1, ei =e i+1 Return to step 2).
[0151] In the above steps: k=1, 2, ...N.
[0152] The present invention adopts a PID adaptive control method based on EtherCAT network learning. The optimization of PID control parameters is completed in the motion controller of DSP+FPGA, and the PID controller is completed in the intelligent motion driver with EtherCAT network. The basic control is completed in the driver to ensure the stability and reliability of the control. The PID controller parameter optimization is completed in the motion controller to ensure the optimization, accuracy and anti-interference robustness of the control performance.
[0153] In order to further optimize the implementation effect of the present invention, in some other implementations, the remaining characteristic technologies are the same, the difference is that the start time of the two sets of X-light sources is synchronized, and the end time is synchronized.
[0154] The two sets of X-ray tubes A and B emit beams synchronously and continuously, not pulsed beams, so it is sufficient to ensure that the start time and the end time are synchronized.
[0155] In order to further optimize the implementation effect of the present invention, in some other embodiments, the other characteristic technologies are the same, except that the triggering of the four image boards A1, A2, B1, and B2 needs to be synchronously and quickly triggered at equal intervals, and the control structure is as follows: Figure 5 shown.
[0156] The synchronous triggering of image acquisition by four image boards specifically includes the following contents:
[0157] The large slip ring CT starts to rotate, sending image trigger pulses to trigger multiple sets of image detectors to collect images synchronously;
[0158] According to the real-time speed V of the large slip ring CT, the current position encoder value Y of the large slip ring CT and the position encoder value Y of the large slip ring CT at the previous moments i , use the cubic spline prediction algorithm to predict the position encoder value Y at the next moment j , and predict the rotation speed V at the next moment j , then the time of the next image trigger pulse is 360 / (T*p)*X / V j ;
[0159] Where: T is the time for the large slip ring CT to rotate one circle, p is the number of images uniformly collected by the image detector in 1s, and X is the encoder value for the large slip ring CT to rotate 1°.
[0160] Specifically, taking the large slip ring CT rotating one circle for 4 seconds as an example, p = 80, then T*p = 320, 320 images can be collected, and 320 image trigger pulses are required. The image board trigger control process is as follows:
[0161] (1) The starting rotation angle of the large slip ring CT is -10° and the stopping rotation angle is 370°, ensuring uniform motion between 0° and 360°;
[0162] (2) When the large slip ring CT starts to rotate, X-tubes A and B start to emit beams continuously. When the CT stops rotating, X-tubes A and B stop emitting beams, ensuring normal beam emission between 0° and 360°.
[0163] (3) Based on the current real-time speed V, the current position encoder value Y and the position encoder value Y at the previous moments i , use the cubic spline prediction algorithm to predict the position encoder value Y at the next moment j , so that the rotation speed V at the next moment can be predicted j , the time of the next image trigger pulse is 360 / 320*X / V j ;
[0164] (4) The DSP controller has a high-precision timer, which can calculate the estimated time 360 / 320*X / V j Perform precise timing triggering.
[0165] With the prediction of rotation speed, it is possible to ensure accurate triggering of image board angles when there are slight speed fluctuations during the rotation process. If there is no prediction, theoretically pulse triggering is performed every 360 / 320*X intervals.
[0166] In addition, the embodiment of the present invention also discloses a network learning control device based on a large slip ring cone beam dual-source energy spectrum CT, comprising:
[0167] one or more processors;
[0168] Memory;
[0169] And one or more programs, wherein the one or more programs are stored in a memory and configured to be executed by one or more processors, and the one or more programs include instructions for the network learning control method based on large slip ring cone beam dual-source energy spectrum CT disclosed in any of the above embodiments.
[0170] The network learning control method and device based on large slip ring cone beam dual source spectrum CT of the present invention have the following beneficial effects:
[0171] First, dual-source energy spectrum CT scanning is performed using two sets of X-ray sources and four sets of image detectors. Each set of light source adds a set of image detectors, which increases the FOV of the image, making it possible to diagnose more cases and adapt to more people.
[0172] Second, the PID adaptive control method based on EtherCAT network learning is used to control the speed of the large slip ring CT rotation, and the BP neural network is used to adjust the parameters of the PID controller. The adaptive adjustment of the PID controller parameters can take into account the rapidity, stability and robustness of speed control. The rotation speed of the large slip ring dual source energy spectrum CT of the present invention is stable, reliable and accurate.
[0173] Third, a control signal is used to control the triggering of multiple sets of image detectors at the same time, ensuring the synchronization of image triggering. The timing control of the trigger signal uses the DSP controller with a high-precision timer and prediction of the speed at the next moment. The prediction algorithm uses a cubic spline prediction algorithm to predict the minimum sum of squared errors, ensuring that the image board is accurately triggered at the same angle when there is a slight fluctuation in speed during the rotation process.
[0174] It should be understood that the various techniques described herein can be implemented in combination with hardware or software, or a combination thereof. Thus, the method and apparatus of the present invention, or some aspects or portions of the method and apparatus of the present invention, can take the form of program codes (i.e., instructions) embedded in a tangible medium, such as a floppy disk, a CD-ROM, a hard disk drive, or any other machine-readable storage medium, wherein when the program is loaded into a machine such as a computer and executed by the machine, the machine becomes a device for practicing the present invention.
[0175] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable ordinary technicians in the field to understand the content of the present invention and implement it. They cannot be used to limit the protection scope of the present invention. All equivalent changes or modifications made according to the spirit of the present invention should be included in the protection scope of the present invention.
Claims
1. A network learning control method based on large slip ring cone beam dual source energy spectrum CT is used to control multiple sets of X-ray sources and multiple sets of image detectors to perform dual source energy spectrum CT scanning, characterized in that: Includes the following: The PID adaptive control method based on EtherCAT network learning is used to control the rotation speed of the large slip ring CT, and the BP neural network is used to adjust the parameters of the PID controller. Control multiple sets of X-ray sources to emit beams synchronously; A control signal is used to control multiple sets of image detectors to trigger image acquisition synchronously. A PID adaptive control method based on EtherCAT network learning is used to control the speed of the large slip ring CT rotation movement, which specifically includes the following steps: S1.1: Select the structure of BP neural network; S1.2: Real-time measurement of the position of the large slip ring CT; S1.3: Calculate the real-time speed of the large slip ring CT, and calculate the speed error and acceleration; S1.4: The velocity error and acceleration of the first M moments are used as the input of the motion controller BP neural network, and also as the input of the PID controller of the intelligent drive; S1.5: Calculate the input and output of each layer of neurons in the BP neural network. The output of the output layer is the three adjustable parameters K of the PID controller. P , K I , K D ; S1.6: Calculate the control output of the PID controller; S1.7: Calculate the weight coefficient of the output layer of the modified BP neural network; S1.8: Calculate the weight coefficients of the hidden layer of the modified BP neural network; S1.9: Repeat steps S1.2 to S1.9 until all sampling points of the PID controllers are corrected; The PID controller forms a control deviation based on the set value r(t) and the actual output value y(t): e(t)=r(t)-y(t); The control output of the PID controller in the continuous case is: In the formula, k p is the proportionality coefficient, T I is the integration time constant, T D is the differential time constant; The control output of the PID controller in the discrete case is: Δu(k)=k p (e(k)-e(k-1))+k i e(k)+k d (e(k)-2e(k-1)+e(k-2)); (2) In the formula, k i =k p ×T / T I , k d =k p ×T / T D ; T is the sampling period, k is the sampling number; The structure of BP neural network is as follows: The input layer input of the BP neural network is: Where M is the number of nodes in the input layer; The hidden layer output of the BP neural network is: In the formula, w ij (2) is the hidden layer weight coefficient; w iM (2) is the threshold value, w iM (2) =θ i ,θ i represents the threshold of the i-th neuron in the hidden layer; f[·] is the activation function, f[·] = tanh(x); Q is the number of hidden layer nodes; The input and output of the output layer of the BP neural network are: In the formula, w li (3) is the weight coefficient of the output layer; w lQ (3) is the threshold value, w lQ (3) =θ l ,θ l Represents the threshold of the first neuron in the output layer; g[·] is the activation function, satisfying g[·]=(1 / 2)[1+tanh(x)]; The superscripts (1), (2), and (3) represent the input layer, hidden layer, and output layer, respectively; Assume the performance index function is: In the formula, r represents the expected speed, y represents the actual speed, and z represents the speed error; The weighted coefficients of the network are corrected according to the steepest descent method, that is, the negative gradient direction of the weighted coefficients is searched and adjusted according to J, and an inertia term is added to search for fast convergence to the global minimum, and the following formula is obtained: Where: η is the learning rate, α is the inertia coefficient.
2. The network learning control method according to claim 1, characterized in that: The structure of the selected BP neural network includes the following contents: Select the number of nodes M in the input layer and the number of nodes Q in the hidden layer of the BP neural network, and give the initial value w of the weighted coefficient of the hidden layer of the BP neural network ij (2) (0), the initial value w of the output layer weight coefficient li (3) (0), select the learning rate η and the inertia coefficient α, k = 1.
3. The network learning control method according to claim 2, characterized in that: The calculation formula of the weighted coefficient of the output layer of the BP neural network is: Where g'[·] = g(x)[1-g(x)]; In S1.7, the weight coefficient of the output layer of the modified BP neural network is calculated according to formula (8).
4. The network learning control method according to claim 3, characterized in that: The calculation formula of the weighted coefficient of the hidden layer of the BP neural network is: In the formula, f'[·]=[1-f 2 (X)] / 2; In S1.8, the weight coefficients of the hidden layer of the modified BP neural network are calculated according to formula (9).
5. The network learning control method according to any one of claims 1 to 4, characterized in that: The start and end times of multiple sets of X-ray sources are synchronized.
6. The network learning control method according to any one of claims 1 to 4, characterized in that: The synchronous triggering and image acquisition of multiple sets of image detectors specifically includes the following contents: The large slip ring CT starts to rotate, sending image trigger pulses to trigger multiple sets of image detectors to collect images synchronously; According to the real-time speed V of the large slip ring CT, the current position encoder value Y of the large slip ring CT and the position encoder value Y of the large slip ring CT at the previous moments i , use the cubic spline prediction algorithm to predict the position encoder value Y at the next moment j , and predict the rotation speed V at the next moment j , then the time of the next image trigger pulse is 360 / (T*p)*X / V j ; Where: T is the time for the large slip ring CT to rotate one circle, p is the number of images uniformly collected by the image detector in 1s, and X is the encoder value for the large slip ring CT to rotate 1°.
7. A network learning control device based on large slip ring cone beam dual source spectral CT, characterized in that: include: one or more processors; Memory; And one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, and the one or more programs include instructions for the network learning control method based on large slip ring cone beam dual-source energy spectrum CT as described in any one of claims 1-6.
Citation Information
Patent Citations
Accuracy control system for rotational movement mechanism of radiotherapy simulator
CN105288867A
Multimodal radiation apparatus and methods
CN113164136A
