A method for detecting and controlling the rotation speed of a tube core rotating anode target
Through digital signal processing and sinusoidal pulse width modulation technology, the rotation speed of the anode target of the die is detected, the imaging quality mapping relationship is established, and the rotation speed is adjusted using genetic algorithms, which solves the problems of detection error and adjustment difficulties in the existing technology, and improves the imaging quality and stability.
Patent Information
- Application Number
- CN202411237681.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2044-09-05
AI Technical Summary
The prior art cannot accurately detect the rotation speed of the die anode target, resulting in the inability to estimate the service life and affect the imaging quality. There are errors in traditional designs and the rotation speed cannot be adjusted reasonably.
Using digital signal processing technology and sinusoidal pulse width modulation technology, the rotation speed of the rotating anode target is calculated by induced electromotive force, and the mapping relationship between the rotation speed and imaging quality is established. The optimal working point is obtained based on the genetic algorithm and the rotation speed is adjusted to achieve the Best imaging effect.
Accurate detection and adjustment of the rotation speed of the rotating anode target is achieved, and imaging quality and stability of the X-ray source are improved.
Smart Images

Figure CN118760250B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of anode target rotation speed detection, and more specifically to a tube core rotating anode target rotation speed detection and control method. Background Art
[0002] At present, with the continuous increase of tube core power, the rotation speed of the tube core anode is also gradually increasing. Most of the high-power tube cores on the market work at a speed of 7200 rpm or 9000 rpm or more. To this end, it is necessary to have a relatively accurate measurement of the rotation speed of the anode target in the tube core during design and production; in practice, it is found that in actual use, it is impossible to use speed sensors such as photoelectric encoders to detect the rotation speed and feedback the rotation speed signal. It is impossible to collect the movement speed of the tube core in real time, and it is impossible to estimate the service life of the tube core target disk.
[0003] At present, in traditional designs, synchronous mechanical vibration equipment is often used to detect the speed of the anode target in the tube core. However, in the detection, the tube core and the tube core are isolated by insulating materials such as transformer oil, which makes the detection result unclear and has a large error. The public document with publication number CN110488038B discloses a rotating anode tube rotor speed detection method and device, including an MCU controller, a drive circuit, a three-phase inverter, a voltage sampling circuit, a back electromotive force signal extraction circuit, a comparator and an isolation circuit. The MCU controller controls the three-phase inverter to intermittently generate an SPWM control sequence, and the three-phase inverter is electrically connected to the stator coil of the X-ray tube to generate a rotating magnetic field. field, driving the X-ray tube rotor to rotate; through the voltage sampling circuit, the induced voltage is obtained from the two AC output terminals of the three-phase inverter, and the reverse electromotive force voltage with the same frequency as the X-ray tube rotor can be obtained from the induced voltage; the X-ray tube rotor speed information is obtained by using the reverse electromotive force through intervention, and the X-ray tube rotor has the functions of accurate reading and real-time monitoring of the rotor speed; however, the rotor speed cannot be reasonably adjusted and controlled; the rotor speed directly affects the performance, life and imaging quality of the tube, and too high or too low speed will affect the imaging quality, so it is necessary to reasonably adjust and control the rotor speed to ensure the stability of the X-ray source, thereby improving the imaging quality. Summary of the invention
[0004] In order to overcome the above-mentioned defects of the prior art, the present invention provides a method for detecting and controlling the rotation speed of a tube core rotating anode target to solve the problems existing in the above-mentioned background technology.
[0005] The present invention provides the following technical solution: a method for detecting and controlling the rotation speed of a tube core rotating anode target, comprising the following steps:
[0006] Step S01: according to a preset time period, the speed data of the rotating anode target of the tube core is obtained and preprocessed to obtain the speed data that can be directly used after preprocessing;
[0007] Step S02: using a digital signal processing technology DSP algorithm to divide the pre-processed speed data into multiple groups of data corresponding to different working states;
[0008] Step S03: Based on the sinusoidal pulse width modulation (SPWM) technology and introducing the induced electromotive force, the rotation speed of the rotating anode target matching the induced electromotive force is calculated;
[0009] Step S04: analyzing the imaging quality of the tube core anode target at different rotation speed data;
[0010] Step S05: establishing a mapping relationship between the rotation speed of the rotating anode target and the imaging quality based on the multiple groups of rotation speed data corresponding to different working states in step S02 and the imaging quality in step S04;
[0011] Step S06: Obtain the current rotation speed data of the rotating anode target, establish a control model to control the rotation speed of the rotating anode target, and obtain the optimal working point of the rotation speed within the set range of the current rotation speed; if the imaging quality of the optimal working point is higher than the imaging quality of the current rotation speed, adjust the current rotation speed to the optimal working point, otherwise keep the current rotation speed unchanged.
[0012] Preferably, the specific manner in which the control model controls the rotation speed of the rotating anode target in step S06 is:
[0013] The rotation speed of the successfully matched rotating anode target and the corresponding matching entity are obtained through the mapping relationship and based on the optimal working point, and then the induced electromotive force is changed by changing the current, voltage and other data in the circuit to achieve consistency with the corresponding matching entity, thereby changing the rotation speed of the rotating anode target to achieve the best imaging effect; the optimal working point is obtained based on a preset imaging image quality evaluation coefficient, and the preset imaging image quality evaluation coefficient is the imaging image target quality level to be achieved;
[0014] A preset imaging image quality assessment coefficient is set, and based on the mapping relationship established in step S05, the rotating anode target speed that reaches the imaging image quality assessment coefficient is obtained, and the speed is recorded as the optimal working point. If the current speed does not reach the optimal working point, the tube core rotating anode target is controlled to adjust the current speed to the optimal working point, otherwise the current speed remains unchanged.
[0015] Preferably, in step S03, the rotation speed of the rotating anode target matching the induced electromotive force is calculated based on the target DC voltage, specifically in the following manner:
[0016] The target DC voltage is converted into an induced electromotive force through DSP; based on the induced electromotive force, the cut-off time of the SPWM drive circuit, the number of turns of the motor coil, the magnetic field strength of the rotating magnetic field and the coil area, the rotation speed of the rotating anode target is obtained by reversing formula ①;
[0017] The formula ① is expressed as: , where e is the induced electromotive force, t is the cut-off time of the SPWM drive circuit, N is the number of turns of the motor coil, B is the magnetic field strength of the rotating magnetic field, S is the coil area, and ω is the rotation speed of the rotating anode target; therefore, the rotation speed of the rotating anode target can be obtained by inverting formula ①.
[0018] Preferably, the analysis of the imaging quality in step S04 includes the following steps:
[0019] Step S11: mark the value of the rotating anode target rotation speed as V 1 、V 2 、V 3 ……V n , each V i The corresponding rotating anode target rotation speed values are all different, and one speed value corresponds to one marking symbol; i=1, 2, 3...n; V i The corresponding images are marked as P 1 , P 2 , P 3 ...P n ;
[0020] Step S12: Calculate the image quality: The calculation formula of the image quality is: , where δ Pi P i The corresponding imaging image quality assessment coefficient, M and N are the number of pixels in the length and width of the imaging image, g(x,y) is the gray value of the standard image at the pixel point (x,y), P i (x,y) is P i The gray value of the corresponding image at the pixel point (x, y); i=1, 2, 3...n;
[0021] Step S13: Record each P i The corresponding δ Pi and compare it with the rotating anode target rotation speed V i One to one correspondence.
[0022] Preferably, the specific method of constructing the mapping relationship between the rotation speed of the rotating anode target and the imaging quality in step S05 is:
[0023] Obtain the rotation speed value of each rotating anode target and the corresponding imaging image quality assessment coefficient, and form a mapping relationship; define a three-dimensional matrix Mapping[H][U][L] to represent the mapping relationship, where H is the rotation speed of the rotating anode target, U is the imaging image label, and L is the imaging image quality assessment coefficient;
[0024] After obtaining the imaging image quality assessment coefficient through the mapping relationship, a knowledge graph is constructed, and the rotation speed of the rotating anode target is matched based on the preset imaging image quality assessment coefficient;
[0025] Matching the preset imaging image quality assessment coefficient with the entity in the knowledge graph of the rotating anode target rotation speed, the matching method includes string matching and semantic matching; string matching includes exact matching and approximate matching;
[0026] After the match is successful, the successfully matched entities in the rotating anode target rotation speed knowledge graph are marked as matching entities, that is, the successfully matched induced electromotive force, the cut-off time of cutting off the SPWM drive circuit, the number of motor coil turns, the magnetic field strength of the rotating magnetic field and the coil area; the matching entities obtained by the two methods are merged, and the entity attribute information corresponding to the matching entities is obtained from the rotating anode target rotation speed knowledge graph.
[0027] Preferably, the optimal working point is obtained based on a genetic algorithm, specifically in the following manner:
[0028] Step S21: obtaining the rotation speed data of the tube core anode target and the corresponding imaging image quality assessment coefficient; inputting the preset imaging image quality assessment coefficient;
[0029] Step S22: Encode the rotation speed of the tube core anode target, obtain chromosomes, and construct an initial population;
[0030] Step S23: determining the fitness function;
[0031] Step S24: performing natural selection on chromosomes in the population;
[0032] Step S25: performing crossover recombination on chromosomes in the population;
[0033] Step S26: mutating the chromosomes in the population;
[0034] Step S27: obtain a new population, preset the population generation to be D, the fitness threshold to be Q, D is an integer greater than 0, and Q is a real number greater than 0; loop steps S24 to S26 until the generation corresponding to the new population is D or the fitness corresponding to the chromosome in the new population is greater than or equal to the fitness threshold Q, the loop ends, and the rotating anode target speed corresponding to the chromosome corresponding to the maximum fitness in the new population is obtained as the optimal working point.
[0035] Preferably, in step S22, the rotation speed of the tube core anode target is encoded as X, where X is a chromosome, and M chromosomes are randomly generated to form an initial population μ={X 1 ,X 2 ,X 3 ,…,X M}; The fitness function in step S23 is expressed as: ε i =PP iδ ; Among them, ε i is the fitness corresponding to the i-th chromosome, PP iδ is the matching degree corresponding to the i-th chromosome, and the matching degree is the matching degree with the preset imaging image quality assessment coefficient; wherein i=1, 2, 3...M;
[0036] The method for obtaining the matching degree is:
[0037] The rotation speed data of the tube core anode target and the imaging image quality assessment coefficient are used as analysis data, and the analysis data are input into the trained matching degree analysis model to preset the corresponding matching degree;
[0038] The specific training process of the matching degree analysis model is as follows:
[0039] The matching degrees corresponding to multiple groups of analysis data are collected in advance, and the analysis data and the corresponding matching degrees are converted into a corresponding set of feature vectors. Each set of feature vectors is used as input data. The matching degree analysis model uses a set of predicted matching degrees corresponding to each set of analysis data as output, and the actual matching degree corresponding to each set of analysis data as the prediction target. The actual matching degree is the matching degree corresponding to the analysis data collected in advance, and the training target is to minimize the sum of the prediction errors of all analysis data; wherein, the calculation formula of the prediction error is: , where W K is the prediction error, K is the group number of the eigenvector corresponding to the analyzed data, d K is the predicted matching degree corresponding to the Kth group of analysis data, o K is the actual matching degree corresponding to the Kth group of analysis data.
[0040] Preferably, the derivation formula of formula ① includes:
[0041] If the coil rotates at a constant speed in a uniform magnetic field, an induced electromotive force that changes according to the sinusoidal law is generated in the coil. The magnetic induction intensity is B, and the direction is horizontal to the right. The coil is simplified to a single-turn rectangular coil abcd, and the side lengths of the coil are ab=L 1 , bc=L 2 ; If the coil abcd rotates around the horizontal central axis OO´ in the counterclockwise direction at a uniform angular velocity ω, then:
[0042] After time t, the angle the coil has rotated is ωt;
[0043] The angle θ between the linear velocity of the ab side and the direction of the magnetic induction line is: θ=ωt;
[0044] The linear velocity v of the ab side is: Among them, L 2 is the length of bc;
[0045] The induced electromotive force e(ab) generated by the ab side is: Among them, L 1 is the length of ab;
[0046] The electromotive force e generated by the entire coil d for: ;
[0047] If the coil has N turns, the total electromotive force generated by the N turns of the coil is e: .
[0048] Technical effects and advantages of the present invention:
[0049] The present invention is provided with step S04 and step S05, which is conducive to collecting the imaging under the rotating anode target rotation speed on the basis of detecting the rotating speed of the rotating anode target through the induced electromotive force, analyzing the imaging quality, and constructing a mapping relationship between the rotating anode target rotation speed and the imaging quality, adjusting the anode target rotation speed based on the imaging quality, obtaining the rotating anode target rotation speed and the corresponding matching entity that are successfully matched through the mapping relationship and based on the preset imaging image quality evaluation coefficient, and then changing the induced electromotive force by changing the current voltage and other data in the circuit to achieve consistency with the corresponding matching entity, thereby changing the rotating anode target rotation speed to achieve the best imaging effect; and obtaining the optimal working point based on the genetic algorithm, and reasonably adjusting and controlling the rotating anode target rotation speed to ensure the stability of the X-ray source, thereby improving the imaging quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 This is a flow chart of the tube core rotating anode target rotation speed detection and control method of the present invention.
[0051] Figure 2 It is a schematic diagram of the induced electromotive force of the present invention. DETAILED DESCRIPTION
[0052] The following will clearly and completely describe the technical solution of the present invention in conjunction with the accompanying drawings in the present invention. In addition, the forms of the various structures recorded in the following embodiments are merely illustrative. The tube core rotating anode target rotation speed detection and control method involved in the present invention is not limited to the various structures recorded in the following embodiments. All other implementations obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present invention.
[0053] like Figure 1 As shown, the present invention provides a tube core rotating anode target speed detection and control method, comprising the following steps:
[0054] Step S01: according to a preset time period, the speed data of the tube core rotating anode target is obtained and preprocessed to obtain the speed data that can be directly used after the preprocessing; the speed data is the speed of the tube core anode target; the preset time period is set by a person skilled in the art, and the speed of the tube core anode target in any time period can be obtained;
[0055] Step S02: using a digital signal processing technology DSP algorithm, the pre-processed speed data is divided into a plurality of groups of data corresponding to different working states; that is, each speed data corresponds to a group of working state data, and the working state data includes but is not limited to induced electromotive force, the cut-off time of cutting off the SPWM drive circuit, the number of turns of the motor coil, the magnetic field strength of the rotating magnetic field and the coil area;
[0056] Step S03: Based on the sinusoidal pulse width modulation (SPWM) technology and introducing the induced electromotive force, the rotation speed of the rotating anode target matching the induced electromotive force is calculated;
[0057] Step S04: analyzing the imaging quality of the tube core anode target at different rotation speed data;
[0058] Step S05: establishing a mapping relationship between the rotation speed of the rotating anode target and the imaging quality based on the multiple groups of rotation speed data corresponding to different working states in step S02 and the imaging quality in step S04;
[0059] Step S06: Obtain the speed data of the current rotating anode target, establish a control model to control the speed of the rotating anode target, and obtain the optimal working point of the speed within the set range of the current speed, that is, the optimal speed with the best imaging quality; if the imaging quality of the optimal working point is higher than the imaging quality of the current speed, adjust the current speed to the optimal working point, otherwise keep the current speed unchanged.
[0060] In this embodiment, it should be specifically explained that the speed data of the tube core rotating anode target is obtained by detecting the speed of the tube core rotating anode target. The method for detecting the speed of the tube core rotating anode target is to disconnect the SPWM inverter drive circuit, and use the DSP to use digital judgment of the SPWM inverter drive circuit in real time, and use the magnetic components in the tube core Rotor. The magnetic lines of force of the high-speed rotating Rotor cut the fixed coil in the tube core Stator to generate an induced electromotive force to measure the speed of the rotating anode target in the tube core of the ball tube, wherein the DSP control circuit can be electrically connected to the SPWM inverter drive circuit and the coil electromotive force collection circuit, the SPWM inverter drive circuit can be electrically connected to the coil electromotive force collection circuit, the SPWM inverter drive circuit and the coil electromotive force collection circuit can be connected to the tube core Stator, and the tube core Stator is connected to the tube core Rotor;
[0061] Among them, since all motors are composed of stators and rotors, in DC motors, in order to make the rotor rotate, the current direction needs to be constantly changed, otherwise the rotor can only rotate half a circle. All DC motors require converters, and DC motors solve the above problem very well; the motor shell is the stator, and there are three-phase symmetrical AC windings on the stator; due to the change in the sequence of the three-phase electricity, a rotating synthetic magnetic field is formed, and the rotation speed of the magnetic field is the synchronous speed; while the asynchronous motor has a simple structure, and the rotor is a closed coil, such as a squirrel cage type; the rotor coil cuts the rotating magnetic field, generates an induced electromotive force, and then generates an induced current, and finally generates a rotating magnetic field, so that the rotor becomes an electromagnet and will rotate with the stator magnetic field, so the rotor speed is less than the rotating magnetic field of the stator, so that it can cut the magnetic flux lines;
[0062] The current tube core design uses magnetic materials that can be magnetized during the rotation process. When the DSP in the drive circuit digitally cuts off the SPWM drive circuit; at this time, there is no current and magnetic field on the stator, and the rotor will rotate freely by inertia; at this time, the rotor needs a long time to demagnetize due to the previous induced electromotive force magnetization, so under high-speed rotation, a rotating magnetic field B is formed; the drive coil on the stator will cut the rotating magnetic field B at this time and generate an induced electromotive force on the stator coil;
[0063] Among them, the induced electromotive force generated on the stator coil is collected using a sampling circuit, the induced electromotive force on the stator is converted into a DC voltage through a rectifier and filter circuit, and then converted into data recognized by DSP using DA.
[0064] In this embodiment, it should be specifically explained that in step S03, the rotation speed of the rotating anode target matching the induced electromotive force is calculated based on the target DC voltage, specifically in the following manner:
[0065] The target DC voltage is converted into an induced electromotive force through DSP; based on the induced electromotive force, the cut-off time of the SPWM drive circuit, the number of turns of the motor coil, the magnetic field strength of the rotating magnetic field and the coil area, the rotation speed of the rotating anode target is obtained by reversing formula ①;
[0066] The formula ① is expressed as: , where e is the induced electromotive force, t is the cut-off time of the SPWM drive circuit, N is the number of turns of the motor coil, B is the magnetic field strength of the rotating magnetic field, S is the coil area, and ω is the rotation speed of the rotating anode target; therefore, the rotation speed of the rotating anode target can be obtained by inverting formula ①.
[0067] In this embodiment, it should be specifically explained that the analysis of the imaging quality in step S04 includes the following steps:
[0068] Step S11: mark the value of the rotating anode target rotation speed as V 1 、V 2 、V 3 ……V n , each V i The corresponding rotating anode target rotation speed values are all different, and one speed value corresponds to one marking symbol; i=1, 2, 3...n; V i The corresponding images are marked as P 1 , P 2 , P 3 ...P n ;
[0069] Step S12: Calculate the image quality: The calculation formula of the image quality is: , where δ Pi P i The corresponding imaging image quality assessment coefficient, M and N are the number of pixels in the length and width of the imaging image, g(x,y) is the gray value of the standard image at the pixel point (x,y), P i (x,y) is P i The gray value of the corresponding image at the pixel point (x, y); i=1, 2, 3...n;
[0070] The standard image is an imaging image used as a reference, and the image quality meets the imaging requirements; the larger the value of the imaging image quality evaluation coefficient, the higher the P i The corresponding imaging image quality is better;
[0071] Step S13: Record each P i The corresponding δ Pi and compare it with the rotating anode target rotation speed V i One to one correspondence.
[0072] In this embodiment, it should be specifically explained that the specific method of constructing the mapping relationship between the rotation speed of the rotating anode target and the imaging quality in step S05 is:
[0073] Obtain the rotation speed value of each rotating anode target and the corresponding imaging image quality assessment coefficient, and form a mapping relationship; define a three-dimensional matrix Mapping[H][U][L] to represent the mapping relationship, where H is the rotation speed of the rotating anode target, U is the imaging image label, and L is the imaging image quality assessment coefficient;
[0074] After obtaining the imaging image quality assessment coefficient through the mapping relationship, a knowledge graph is constructed, and the rotation speed of the rotating anode target is matched based on the preset imaging image quality assessment coefficient;
[0075] A knowledge graph of the rotation speed of a rotating anode target is constructed based on the induced electromotive force, the cut-off time of the SPWM drive circuit, the number of turns of the motor coil, the magnetic field strength of the rotating magnetic field, and the coil area; the knowledge graph of the rotation speed of a rotating anode target includes entities, entity attribute information, relationships between entities, and entity types; the entity attribute information is a label describing the entity attributes; the relationship between entities represents the semantic connection between different entities, and describes various associations and interactions between entities in the knowledge graph; the entity type defines the category to which the entity belongs, and defines the common attributes and relationships between entities;
[0076] The preset imaging image quality assessment coefficient is matched with the entity in the rotating anode target rotation speed knowledge graph, and the matching methods include string matching and semantic matching; string matching includes exact matching and approximate matching; exact matching is to compare the string corresponding to the preset imaging image quality assessment coefficient obtained with the string corresponding to the entity in the rotating anode target rotation speed knowledge graph, and if they are exactly the same, then matching is performed; approximate matching is to use a string similarity algorithm to calculate the similarity between the string corresponding to the preset imaging image quality assessment coefficient and the string corresponding to the entity in the rotating anode target rotation speed knowledge graph, and match the entity in the rotating anode target rotation speed knowledge graph with the highest similarity with the preset imaging image quality assessment coefficient; semantic matching is to use a word embedding method, which converts the preset imaging image quality assessment coefficient and the entity in the rotating anode target rotation speed knowledge graph into a vector form through a word embedding model, and matches by calculating the similarity between the vectors;
[0077] After the match is successful, the successfully matched entities in the rotating anode target rotation speed knowledge graph are marked as matching entities, that is, the successfully matched induced electromotive force, the cut-off time of cutting off the SPWM drive circuit, the number of motor coil turns, the magnetic field strength of the rotating magnetic field and the coil area; the matching entities obtained by the two methods are merged, and the entity attribute information corresponding to the matching entities is obtained from the rotating anode target rotation speed knowledge graph.
[0078] In this embodiment, it should be specifically explained that the specific manner in which the control model in step S06 controls the rotation speed of the rotating anode target is:
[0079] The rotation speed of the successfully matched rotating anode target and the corresponding matching entity are obtained through the mapping relationship and based on the optimal working point, and then the induced electromotive force is changed by changing the current, voltage and other data in the circuit to achieve consistency with the corresponding matching entity, thereby changing the rotation speed of the rotating anode target to achieve the best imaging effect; the optimal working point is obtained based on a preset imaging image quality evaluation coefficient, and the preset imaging image quality evaluation coefficient is the imaging image target quality level to be achieved, which can be freely set;
[0080] A preset imaging image quality assessment coefficient is set, and based on the mapping relationship established in step S05, the rotating anode target speed that reaches the imaging image quality assessment coefficient is obtained, and the speed is recorded as the optimal working point. If the current speed does not reach the optimal working point, the tube core rotating anode target is controlled to adjust the current speed to the optimal working point, otherwise the current speed remains unchanged.
[0081] In this embodiment, it should be specifically explained that the optimal working point is obtained based on a genetic algorithm, specifically in the following manner:
[0082] Step S21: obtaining the rotation speed data of the tube core anode target and the corresponding imaging image quality assessment coefficient; inputting the preset imaging image quality assessment coefficient;
[0083] Step S22: Encode the rotation speed of the tube core anode target, obtain chromosomes, and construct an initial population;
[0084] Step S23: determining the fitness function;
[0085] Step S24: performing natural selection on chromosomes in the population;
[0086] Step S25: performing crossover recombination on chromosomes in the population;
[0087] Step S26: mutating the chromosomes in the population;
[0088] Step S27: obtaining a new population, with the preset population generation number being D, the fitness threshold being Q, where D is an integer greater than 0, and Q is a real number greater than 0; looping through steps S24 to S26 until the generation number corresponding to the new population is D or the fitness corresponding to the chromosome in the new population is greater than or equal to the fitness threshold Q, the loop ends, and the rotating anode target speed corresponding to the chromosome with the maximum fitness in the new population is obtained as the optimal working point; illustratively, if the preset population generation number is 1, the chromosomes in the initial population are subjected to natural selection, crossover recombination, and mutation to obtain a new population, at which point the generation number corresponding to the new population is 1, and thus the loop ends;
[0089] The fitness threshold is preset by those skilled in the art according to the algorithm accuracy. The population algebra D is obtained by those skilled in the art under multiple sets of different anode target rotation speeds and imaging image quality assessment coefficients by using a genetic algorithm multiple times to obtain the optimal anode target rotation speed corresponding to the imaging image quality assessment coefficient. In each process of using the genetic algorithm, when the fitness corresponding to the chromosome in the new population is greater than or equal to the fitness threshold, the cycle ends and the algebra corresponding to the new population is obtained; the largest algebra among the multiple algebras is taken as the population algebra D.
[0090] In this embodiment, it should be specifically explained that in step S22, the rotation speed of the tube core anode target is encoded as X, X is a chromosome, and M chromosomes are randomly generated to form an initial population μ={X 1 ,X 2 ,X 3 ,…,X M}; The fitness function in step S23 is expressed as: ε i =PP iδ ; Among them, ε i is the fitness corresponding to the i-th chromosome, PP iδ is the matching degree corresponding to the i-th chromosome, and the matching degree is the matching degree with the preset imaging image quality assessment coefficient; wherein i=1, 2, 3...M;
[0091] The method for obtaining the matching degree is:
[0092] The rotation speed data of the tube core anode target and the imaging image quality assessment coefficient are used as analysis data, and the analysis data are input into the trained matching degree analysis model to preset the corresponding matching degree;
[0093] The specific training process of the matching degree analysis model is as follows:
[0094] The matching degrees corresponding to multiple groups of analysis data are collected in advance, and the analysis data and the corresponding matching degrees are converted into a corresponding set of feature vectors. Each set of feature vectors is used as input data. The matching degree analysis model uses a set of predicted matching degrees corresponding to each set of analysis data as output, and the actual matching degree corresponding to each set of analysis data as the prediction target. The actual matching degree is the matching degree corresponding to the analysis data collected in advance, and the training target is to minimize the sum of the prediction errors of all analysis data; wherein, the calculation formula of the prediction error is: , where W K is the prediction error, K is the group number of the eigenvector corresponding to the analyzed data, d K is the predicted matching degree corresponding to the Kth group of analysis data, o K is the actual matching degree corresponding to the Kth group of analysis data; the matching degree analysis model is trained until the sum of the prediction errors reaches convergence, and the training is stopped; the matching degree analysis model is specifically a deep neural network model;
[0095] In step S24, natural selection is performed by combining the elite method and the rotation method, wherein the elite method generates F1 offspring chromosomes, and for a population with a capacity of M, the fitness corresponding to the M chromosomes is arranged from large to small, and each of the F1 chromosomes at the front generates a offspring chromosome, and the rotation method generates F2 offspring chromosomes, that is, M chromosomes generate F2 offspring chromosomes according to the corresponding rotation probability; F1+F2=M, so as to keep the offspring population capacity M unchanged and the population generation number increases;
[0096] The formula for the rotation probability is expressed as: , where η i is the rotation probability corresponding to the i-th chromosome;
[0097] In the step S25, U chromosomes are randomly selected from the population for crossover recombination to obtain U new chromosomes; the crossover recombination adopts the PMX method, which is a prior art and will not be described in detail in this embodiment. After the chromosome crossover recombination, the fitness of the U new chromosomes is calculated, and the fitness of the U new chromosomes and the fitness of the U chromosomes are sorted from large to small to generate a sorting table, and the U chromosomes in the sorting table are replaced with the U chromosomes in the population for crossover recombination in positive order; in this embodiment, U=0.7M is selected, and if the calculated U is not an integer, U is rounded up to ensure that the calculated U is an integer;
[0098] In step S26, the mutation probability is preset to τ, and the M chromosomes in the population are mutated according to the mutation probability. The mutation method is to randomly select the positions of two genes in the chromosome and exchange the values of the two genes. In this embodiment, τ is preferably 0.02. The mutation probability is preset by a person skilled in the art according to the algorithm efficiency and algorithm accuracy.
[0099] like Figure 2 As shown, in this embodiment, the coil rotates at a constant speed in a uniform magnetic field, and an induced electromotive force that changes according to the sinusoidal law is generated in the coil. The magnetic induction intensity is B, and the direction is horizontal to the right. The coil is simplified to a single-turn rectangular coil abcd, and the side lengths of the coil are ab=L 1 , bc=L 2 ; If the coil abcd rotates around the horizontal central axis OO´ in the counterclockwise direction at a uniform angular velocity ω, then:
[0100] After time t, the angle the coil has rotated is ωt;
[0101] The angle θ between the linear velocity of the ab side and the direction of the magnetic induction line is: θ=ωt;
[0102] The linear velocity v of the ab side is: Among them, L 2 is the length of bc;
[0103] The induced electromotive force e(ab) generated by the ab side is: Among them, L 1 is the length of ab;
[0104] The electromotive force e generated by the entire coil d for: ;
[0105] If the coil has N turns, the total electromotive force e generated by the N turns of the coil is: ;
[0106] Therefore, based on the above formula, the rotation speed of the rotating anode target can be derived and calculated in combination with the induced electromotive force, the cut-off time of the SPWM drive circuit, the number of turns of the motor coil, the magnetic field strength of the rotating magnetic field and the coil area.
[0107] In the present embodiment, it should be specifically explained that the difference between the present embodiment and the prior art lies mainly in that the present embodiment has step S06 and step S07, and based on the detection of the rotation speed of the rotating anode target by induced electromotive force, the imaging under the rotation speed of the rotating anode target is collected, and the imaging quality is analyzed, and a mapping relationship between the rotation speed of the rotating anode target and the imaging quality is constructed, and the rotation speed of the anode target is adjusted based on the imaging quality, and the rotation speed of the successfully matched rotating anode target and the corresponding matching entity are obtained through the mapping relationship and based on the preset imaging image quality evaluation coefficient, and then the induced electromotive force is changed by changing the current, voltage and other data in the circuit to achieve consistency with the corresponding matching entity, thereby changing the rotation speed of the rotating anode target to achieve the best imaging effect; the rotation speed of the rotating anode target is reasonably adjusted and controlled to ensure the stability of the X-ray source, thereby improving the imaging quality.
[0108] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
[0109] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for detecting and controlling the rotation speed of a tube core rotating anode target, characterized in that: The following steps are involved: Step S01: according to a preset time period, the speed data of the rotating anode target of the tube core is obtained and preprocessed to obtain the speed data that can be directly used after preprocessing; Step S02: using a digital signal processing technology DSP algorithm, the pre-processed speed data is divided into multiple groups of data corresponding to different working states; Step S03: Based on the sinusoidal pulse width modulation (SPWM) technology and introducing the induced electromotive force, the rotation speed of the rotating anode target matching the induced electromotive force is calculated; Step S04: analyzing the imaging quality of the tube core anode target at different rotation speed data; Step S05: establishing a mapping relationship between the rotation speed of the rotating anode target and the imaging quality based on the multiple groups of rotation speed data corresponding to different working states in step S02 and the imaging quality in step S04; Step S06: obtaining the current rotation speed data of the rotating anode target, establishing a control model to control the rotation speed of the rotating anode target, and obtaining the optimal working point of the rotation speed within the setting range of the current rotation speed; if the imaging quality of the optimal working point is higher than the imaging quality of the current rotation speed, adjusting the current rotation speed to the optimal working point, otherwise keeping the current rotation speed unchanged; The specific method in which the control model controls the rotation speed of the rotating anode target in step S06 is: The rotation speed of the successfully matched rotating anode target and the corresponding matching entity are obtained through the mapping relationship and based on the optimal working point, and then the induced electromotive force is changed by changing the current and voltage data in the circuit to achieve consistency with the corresponding matching entity, thereby changing the rotation speed of the rotating anode target to achieve the best imaging effect; the optimal working point is obtained based on a preset imaging image quality evaluation coefficient, and the preset imaging image quality evaluation coefficient is the imaging image target quality level to be achieved; A preset imaging image quality assessment coefficient is set, and based on the mapping relationship established in step S05, the rotating anode target speed that reaches the imaging image quality assessment coefficient is obtained, and the speed is recorded as the optimal working point. If the current speed does not reach the optimal working point, the tube core rotating anode target is controlled to adjust the current speed to the optimal working point, otherwise the current speed remains unchanged.
2. A method for detecting and controlling the rotation speed of a tube core rotating anode target according to claim 1, characterized in that: In step S03, the rotation speed of the rotating anode target matching the induced electromotive force is calculated based on the target DC voltage, specifically in the following manner: The target DC voltage is converted into an induced electromotive force through DSP; based on the induced electromotive force, the cut-off time of the SPWM drive circuit, the number of turns of the motor coil, the magnetic field strength of the rotating magnetic field and the coil area, the rotation speed of the rotating anode target is obtained by reversing formula ①; The formula ① is expressed as: , where e is the induced electromotive force, t is the cut-off time of the SPWM drive circuit, N is the number of turns of the motor coil, B is the magnetic field strength of the rotating magnetic field, S is the coil area, and ω is the rotation speed of the rotating anode target; therefore, the rotation speed of the rotating anode target can be obtained by inverting formula ①.
3. The method for detecting and controlling the rotation speed of a tube core rotating anode target according to claim 1, characterized in that: The analysis of the imaging quality in step S04 includes the following steps: Step S11: Mark the values of the rotation speed of the rotating anode target as V1, V2, V3...V n , each V i The corresponding rotating anode target rotation speed values are all different, and one speed value corresponds to one marking symbol; i=1, 2, 3...n; V i The corresponding images are marked as P1, P2, P3, ... n ; Step S12: Calculate the image quality: The calculation formula of the image quality is: , where δ Pi P i The corresponding imaging image quality assessment coefficient, X and Y are the number of pixels in the length and width of the imaging image, g(x,y) is the gray value of the standard image at the pixel point (x,y), P i (x,y) is P i The gray value of the corresponding image at the pixel point (x, y); i=1, 2, 3...n; Step S13: Record each P i The corresponding δ Pi and compare it with the rotating anode target rotation speed V i One to one correspondence.
4. The method for detecting and controlling the rotation speed of a tube core rotating anode target according to claim 1, characterized in that: The specific method of constructing the mapping relationship between the rotation speed of the rotating anode target and the imaging quality in step S05 is: Obtain the rotation speed value of each rotating anode target and the corresponding imaging image quality assessment coefficient, and form a mapping relationship; define a three-dimensional matrix Mapping[H][U][L] to represent the mapping relationship, where H is the rotation speed of the rotating anode target, U is the imaging image label, and L is the imaging image quality assessment coefficient; After obtaining the imaging image quality assessment coefficient through the mapping relationship, a knowledge graph is constructed, and the rotation speed of the rotating anode target is matched based on the preset imaging image quality assessment coefficient; Matching the preset imaging image quality assessment coefficient with the entity in the knowledge graph of the rotating anode target rotation speed, the matching method includes string matching and semantic matching; string matching includes exact matching and approximate matching; After the match is successful, the successfully matched entities in the rotating anode target rotation speed knowledge graph are marked as matching entities, that is, the successfully matched induced electromotive force, the cut-off time of cutting off the SPWM drive circuit, the number of motor coil turns, the magnetic field strength of the rotating magnetic field and the coil area; the matching entities obtained by the two methods are merged, and the entity attribute information corresponding to the matching entities is obtained from the rotating anode target rotation speed knowledge graph.
5. The method for detecting and controlling the rotation speed of a tube core rotating anode target according to claim 1, characterized in that: The optimal working point is obtained based on a genetic algorithm, specifically in the following way: Step S21: obtaining the rotation speed data of the tube core anode target and the corresponding imaging image quality assessment coefficient; inputting the preset imaging image quality assessment coefficient; Step S22: Encode the rotation speed of the tube core anode target, obtain chromosomes, and construct an initial population; Step S23: determining the fitness function; Step S24: performing natural selection on chromosomes in the population; Step S25: performing crossover recombination on chromosomes in the population; Step S26: mutating the chromosomes in the population; Step S27: obtain a new population, preset the population generation to be D, the fitness threshold to be Q, D is an integer greater than 0, and Q is a real number greater than 0; loop steps S24 to S26 until the generation corresponding to the new population is D or the fitness corresponding to the chromosome in the new population is greater than or equal to the fitness threshold Q, the loop ends, and the rotating anode target speed corresponding to the chromosome corresponding to the maximum fitness in the new population is obtained as the optimal working point.
6. A tube core rotating anode target speed detection and control method according to claim 5, characterized in that: In step S22, the rotation speed of the tube core anode target is encoded as X, where X is a chromosome, and M chromosomes are randomly generated to form an initial population μ={X1, X2, X3, ..., X M }; The fitness function in step S23 is expressed as ε i =PP iδ ; where ε i is the fitness corresponding to the i-th chromosome, PP iδ is the matching degree corresponding to the i-th chromosome, and the matching degree is the matching degree with the preset imaging image quality assessment coefficient; wherein i=1, 2, 3...M; The method for obtaining the matching degree is: The rotation speed data of the tube core anode target and the imaging image quality assessment coefficient are used as analysis data, and the analysis data are input into the trained matching degree analysis model to preset the corresponding matching degree; The specific training process of the matching degree analysis model is as follows: The matching degrees corresponding to multiple groups of analysis data are collected in advance, and the analysis data and the corresponding matching degrees are converted into a corresponding set of feature vectors. Each set of feature vectors is used as input data. The matching degree analysis model uses a set of predicted matching degrees corresponding to each set of analysis data as output, and the actual matching degree corresponding to each set of analysis data as the prediction target. The actual matching degree is the matching degree corresponding to the analysis data collected in advance, and the training target is to minimize the sum of the prediction errors of all analysis data; wherein, the calculation formula of the prediction error is: , where W K is the prediction error, K is the group number of the eigenvector corresponding to the analyzed data, d K is the predicted matching degree corresponding to the Kth group of analysis data, o K is the actual matching degree corresponding to the Kth group of analysis data.
7. The method for detecting and controlling the rotation speed of a tube core rotating anode target according to claim 2, characterized in that: The derivation formula of formula ① includes: If the coil rotates at a constant speed in a uniform magnetic field, an induced electromotive force that changes according to the sinusoidal law is generated in the coil, and the magnetic induction intensity is B, and the direction is horizontal to the right. The coil is simplified to a single-turn rectangular coil abcd, and the side lengths of the coils are ab=L1 and bc=L2 respectively; if the coil abcd rotates at a constant angular velocity ω in the counterclockwise direction around the horizontal central axis OO´, then: After time t, the angle the coil has rotated is ωt; The angle θ between the linear velocity of the ab side and the direction of the magnetic induction line is θ=ωt; The linear velocity v of the ab side is: ; Wherein, L2 is the length of bc; The induced electromotive force e(ab) generated by the ab side is: ; Wherein, L1 is the length of ab; The electromotive force e generated by the entire coil d for: ; If the coil has N turns, the total electromotive force generated by the N turns of the coil is: .
