Image-based moving object boundary interpolation and prediction method and its related components

The dynamic mode decomposition algorithm is used to interpolate and predict the boundary data of moving objects, which solves the problem of difficulty in obtaining other time node data of the boundary of moving objects in the existing technology, and achieves effective prediction and data sample enhancement of irregular deformable object boundaries. .

CN114494333BActive Publication Date: 2024-09-13HUNAN NORMAL UNIVERSITY
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210082038.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-24
Publication Date
2024-09-13
Estimated Expiration
2042-01-24

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively obtain the boundary data of other time nodes during the movement of objects with certain periodicity, irregular shape and possible deformation. Especially when acquiring image analysis at fixed time intervals, it is difficult to obtain the boundary data of unknown time nodes. Boundary data.

Method used

By acquiring the boundary data of moving objects at multiple time nodes based on image collection, using the preset sampling method to extract sampling points, the dynamic mode decomposition algorithm interpolates and predicts the snapshot group, and establishes a linear model to obtain the boundaries of moving objects at other time nodes. .

Benefits of technology

It realizes the interpolation and prediction of boundary data of irregular deformable objects with approximate periodic motion, enhances the richness of data samples, and is suitable for prediction of motion trajectories of multi-degree-of-freedom, irregular, deformable objects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114494333B
    Figure CN114494333B
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and medium for interpolating and predicting the boundaries of moving objects based on images, including: obtaining moving object boundary data at multiple time nodes based on image acquisition, and reconstructing the boundaries of moving objects based on the moving object boundary data; extracting a preset number of sampling points from each moving object boundary using a preset sampling method, and obtaining a snapshot group arranged in time sequence based on the coordinates of the sampling points; interpolating and predicting the snapshot group using a dynamic mode decomposition algorithm to obtain the boundaries of moving objects at other time nodes. The present application reconstructs the boundaries of moving objects at multiple time nodes based on the moving object boundary data acquired by images, obtains a snapshot group arranged in time sequence based on the moving object boundary, and finally interpolates and predicts the snapshot group using a dynamic mode decomposition algorithm to obtain the boundaries of moving objects at other time nodes, and the above technical solution is particularly suitable for multi-degree-of-freedom, irregular, and deformable objects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to an image-based moving object boundary interpolation and prediction method, device, equipment and medium. Background Art

[0002] Currently, for objects whose motion states are periodic, irregular in shape and may deform, such as swinging flexible wings, floating breakwaters that move with the waves, and lung tumors affected by breathing movements, the boundaries of the objects will deform during the movement.

[0003] Previous interpolation and prediction methods for object motion trajectories are only applicable to rigid objects. When the object boundary deforms over time, the capture of the motion boundary often depends on the image data at that moment.

[0004] When acquiring images of moving objects at fixed time intervals and performing corresponding analysis, it is difficult to obtain the moving object boundary data at other time nodes other than the known time nodes due to the setting of the time interval size. In summary, for moving irregular objects, how to use the moving object boundary at a known time node to obtain the moving object boundary at other time nodes is a problem that needs to be solved. Summary of the invention

[0005] In view of this, the purpose of the present invention is to provide a method, device, equipment and medium for interpolating and predicting the boundary of a moving object based on an image, which can obtain the boundary data of the moving object at other time nodes other than the known time nodes by using the boundary of the moving object at the known time nodes for irregular deformable objects with approximately periodic motion. The specific scheme is as follows:

[0006] In a first aspect, the present application discloses a method for interpolating and predicting boundaries of moving objects based on images, comprising:

[0007] Acquire moving object boundary data at multiple time nodes based on image acquisition, and reconstruct the moving object boundary based on the moving object boundary data;

[0008] Extracting a preset number of sampling points from each boundary of the moving object using a preset sampling method, and obtaining a snapshot group arranged in time sequence based on the coordinates of the sampling points;

[0009] The snapshot group is interpolated and predicted using a dynamic mode decomposition algorithm to obtain moving object boundaries at other time nodes.

[0010] Optionally, extracting a preset number of sampling points from each boundary of the moving object by using a preset sampling method includes:

[0011] Determine the preset interval angle between adjacent sampling points and the sampling point positions;

[0012] A preset number of sampling points is determined based on the preset interval angle, and a corresponding number of sampling points are extracted from each boundary of the moving object based on the preset number and the positions of the sampling points.

[0013] Optionally, determining a preset interval angle between adjacent sampling points and sampling point positions includes:

[0014] Calculating the average coordinates of all coordinate points located inside the boundary line in the boundary of each moving object to obtain the coordinates of the center point;

[0015] A preset interval angle between adjacent sampling points is determined, and the Cartesian coordinates of each sampling point in the boundary of the moving object are calculated based on the center point coordinates and the preset interval angle to obtain the sampling point position.

[0016] Optionally, obtaining a snapshot group arranged in time sequence based on the coordinates of the sampling points includes:

[0017] The Cartesian coordinates of the sampling points are obtained, and the Cartesian coordinates are classified according to coordinate axis categories to obtain snapshot groups of different coordinate axis categories arranged in time sequence.

[0018] Optionally, after classifying the Cartesian coordinates according to coordinate axis categories to obtain snapshot groups of different coordinate axis categories arranged in time sequence, the method further includes:

[0019] Obtaining a snapshot matrix according to the time series in the snapshot group;

[0020] Accordingly, the use of the dynamic mode decomposition algorithm to interpolate and predict the snapshot group to obtain the moving object boundaries at other time nodes includes:

[0021] The snapshot matrix is ​​decomposed by using a dynamic mode decomposition algorithm, and a linear model capable of interpolation and prediction is established, so as to obtain the boundaries of the moving objects at other time nodes based on the linear model.

[0022] Optionally, the step of performing matrix decomposition on the snapshot matrix using a dynamic mode decomposition algorithm to establish a linear model capable of interpolation and prediction, so as to obtain the boundaries of moving objects at other time nodes based on the linear model, includes:

[0023] Calculating a target matrix associated with the snapshot matrix using a singular value decomposition algorithm;

[0024] The eigenvalues ​​and eigenvectors of the target matrix are calculated to obtain corresponding modes that characterize the changes of the object boundary over time, so as to interpolate and predict the boundaries of the moving object at other time nodes based on the modes.

[0025] In a second aspect, the present application discloses a moving object boundary interpolation and prediction device based on an image, comprising:

[0026] A boundary reconstruction module, used to obtain the boundary data of the moving object at multiple time nodes based on image acquisition, and reconstruct the boundary of the moving object based on the boundary data of the moving object;

[0027] A sampling module, configured to extract a preset number of sampling points from the boundary of each moving object using a preset sampling method, and obtain a snapshot group arranged in time sequence based on the coordinates of the sampling points;

[0028] The interpolation prediction module is used to interpolate and predict the snapshot group using a dynamic mode decomposition algorithm to obtain the boundaries of the moving object at other time nodes.

[0029] Optionally, the sampling module includes:

[0030] A parameter determination unit, used to determine a preset interval angle between adjacent sampling points and the sampling point positions;

[0031] The sampling point extraction unit is used to determine a preset number of sampling points based on the preset interval angle, and extract a corresponding number of sampling points from each of the moving object boundaries based on the preset number and the sampling point positions.

[0032] Optionally, the parameter determination unit includes:

[0033] A coordinate calculation unit, used to calculate the average coordinates of all coordinate points located inside the boundary line in the boundary of each moving object to obtain the coordinates of the center point;

[0034] The position determination unit is used to determine a preset interval angle between adjacent sampling points, and calculate the Cartesian coordinates of each sampling point in the boundary of the moving object based on the center point coordinates and the preset interval angle to obtain the sampling point position.

[0035] Optionally, the sampling module includes:

[0036] The snapshot group acquisition unit is used to acquire the Cartesian coordinates of the sampling points and classify the Cartesian coordinates according to the coordinate axis categories to obtain snapshot groups of different coordinate axis categories arranged in time sequence.

[0037] Optionally, after the sampling module, the following is further included:

[0038] A snapshot matrix acquisition unit, used to obtain a snapshot matrix according to the time series in the snapshot group;

[0039] Correspondingly, the interpolation prediction module further includes:

[0040] The first interpolation prediction unit is used to perform matrix decomposition on the snapshot matrix by using a dynamic mode decomposition algorithm, and establish a linear model that can be interpolated and predicted, so as to obtain the boundaries of the moving objects at other time nodes based on the linear model.

[0041] Optionally, the first interpolation prediction unit includes:

[0042] A matrix calculation unit, used for calculating a target matrix associated with the snapshot matrix using a singular value decomposition algorithm;

[0043] The second interpolation prediction unit is used to calculate the eigenvalues ​​and eigenvectors of the target matrix to obtain the corresponding mode that characterizes the change of the object boundary over time, so as to interpolate and predict the moving object boundary at other time nodes based on the mode.

[0044] In a third aspect, the present application discloses an electronic device, comprising:

[0045] Memory, used to store computer programs;

[0046] The processor is used to execute the computer program to implement the steps of the above-disclosed method for interpolating and predicting the boundary of a moving object based on an image.

[0047] In a fourth aspect, a computer-readable storage medium is disclosed for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the aforementioned image-based moving object boundary interpolation and prediction method are implemented.

[0048] It can be seen that the present application first obtains the moving object boundary data of multiple time nodes based on image acquisition, and reconstructs the moving object boundary based on the moving object boundary data; then uses a preset sampling method to extract a preset number of sampling points from each of the moving object boundaries, and obtains a snapshot group arranged in time sequence based on the coordinates of the sampling points; finally, the snapshot group is interpolated and predicted using a dynamic mode decomposition algorithm to obtain the moving object boundary at other time nodes. It can be seen that the present application reconstructs the moving object boundary at multiple time nodes by using the moving object boundary data based on image acquisition, and then obtains a snapshot group arranged in time sequence based on the moving object boundary, and finally uses a dynamic mode decomposition algorithm to interpolate and predict the snapshot group to obtain the moving object boundary at other time nodes. In this way, under the premise of lacking image data, the data samples of the moving object boundary can be increased through the above technical solution, so as to use more abundant data samples to predict the motion trajectory of the object, and the present application is particularly suitable for multi-degree-of-freedom, irregular, and deformable objects. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0050] Figure 1 A flow chart of a moving object boundary interpolation and prediction method based on an image disclosed in this application;

[0051] Figure 2 A flowchart of a specific image-based moving object boundary interpolation and prediction method disclosed in this application;

[0052] Figure 3 A flowchart of a specific image-based moving object boundary interpolation and prediction method disclosed in this application;

[0053] Figure 4 A diagram of an interpolation process of a moving tumor boundary under the influence of respiratory motion disclosed in the present application;

[0054] Figure 5 This is the tumor boundary interpolation result diagram disclosed in this application;

[0055] Figure 6 This is a schematic diagram of the structure of a moving object boundary interpolation and prediction device based on image disclosed in this application;

[0056] Figure 7 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0057] 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.

[0058] Currently, for objects whose motion states have a certain periodicity, irregular shapes, and may be deformed, such as swinging flexible wings, floating breakwaters that move with waves, and lung tumors affected by respiratory movements, the boundaries of the objects will deform during the motion process, and when the images of the moving objects are obtained at fixed time intervals and analyzed accordingly, it will be difficult to obtain the moving object boundary data at other time nodes other than the known time nodes due to the setting of the time interval size. To this end, the embodiments of the present application disclose a moving object boundary interpolation and prediction method, device, equipment, and medium based on images, which can use the moving object boundaries of known time nodes to obtain the moving object boundaries of other time nodes.

[0059] See also Figure 1 As shown, the embodiment of the present application discloses a moving object boundary interpolation and prediction method based on an image, the method comprising:

[0060] Step S11: acquiring moving object boundary data at multiple time nodes based on image acquisition, and reconstructing the moving object boundary based on the moving object boundary data.

[0061] In this embodiment, it is necessary to obtain moving object boundary data based on image acquisition, and the moving object boundary data includes multiple time nodes. Then, the moving object boundary is reconstructed based on the moving object boundary data to obtain the moving object boundaries at multiple time nodes.

[0062] Step S12: extracting a preset number of sampling points from each boundary of the moving object using a preset sampling method, and obtaining a snapshot group arranged in time sequence based on the coordinates of the sampling points.

[0063] In this embodiment, a preset number of sampling points need to be extracted from the boundary of the moving object at each time node using a preset sampling method, and then a snapshot group arranged in time sequence is obtained based on the coordinates of these sampling points. It should be noted that the number of sampling points extracted from the boundary of each moving object is the same, and each snapshot in the snapshot group corresponds to a time node, and a snapshot is a state vector representing the state of the data at a time node. In the dynamic modal algorithm, the state vector is often referred to as a snapshot.

[0064] Step S13: interpolating and predicting the snapshot group using a dynamic mode decomposition algorithm to obtain moving object boundaries at other time nodes.

[0065] In this embodiment, the snapshot group is interpolated using the dynamic mode decomposition (DMD) algorithm to obtain the boundary graph of the moving object at other time nodes. It should be noted that the dynamic mode decomposition method assumes that the two state vectors before and after, that is, the snapshots in this embodiment, can always be associated through a linear operator A, that is:

[0066] x i+1 ≈Ax i (i=1,2…N);

[0067] Among them, x i is the snapshot at the previous time node, x i+1 It is a snapshot at the next time point;

[0068] Then all snapshots form a Krylov sequence:

[0069] {x1,Ax1,…A N-1 x1};

[0070] The problem is transformed into finding the Frobenius norm ||X'-AX|| F The best fit of the smallest linear operator A, where:

[0071] X=[x1,x2,…x N-1 ],X'=[x2,x3,…x N ];

[0072] Assuming that the system is a linear system, the observed data [x1, x2, …x N ]Restore the system, that is, in this embodiment, use the moving object boundaries of known time nodes to obtain the moving object boundaries of other time nodes.

[0073] It can be seen that the embodiment of the present application first obtains the moving object boundary data of multiple time nodes based on image acquisition, and reconstructs the moving object boundary based on the moving object boundary data; then uses a preset sampling method to extract a preset number of sampling points from each of the moving object boundaries, and obtains a snapshot group arranged in time sequence based on the coordinates of the sampling points; finally, the snapshot group is interpolated and predicted using a dynamic mode decomposition algorithm to obtain the moving object boundaries of other time nodes. It can be seen that the present application reconstructs the moving object boundaries of multiple time nodes by moving object boundary data based on image acquisition, and then obtains a snapshot group arranged in time sequence based on the moving object boundary, and finally uses a dynamic mode decomposition algorithm to interpolate and predict the snapshot group to obtain the moving object boundaries of other time nodes. In this way, under the premise of lacking image data, the data samples of the moving object boundary can be increased through the above technical solution, so as to use more abundant data samples to predict the motion trajectory of the object, and the present application is particularly suitable for multi-degree-of-freedom, irregular, and deformable objects.

[0074] See also Figure 2 As shown, the embodiment of the present application discloses a specific method for interpolating and predicting the boundary of a moving object based on an image. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution. Specifically, it includes:

[0075] Step S21: acquiring moving object boundary data at multiple time nodes based on image acquisition, and reconstructing the moving object boundary based on the moving object boundary data.

[0076] Step S22: Determine the preset interval angle between adjacent sampling points and the sampling point positions.

[0077] In this embodiment, the above-mentioned determination of the preset interval angle between adjacent sampling points and the sampling point position may include: calculating the coordinate average of all coordinate points located inside the boundary line in each of the moving object boundaries to obtain the center point coordinates; determining the preset interval angle between adjacent sampling points, and calculating the Cartesian coordinates of each sampling point in the moving object boundary based on the center point coordinates and the preset interval angle to obtain the sampling point position. It can be understood that the coordinate average of all coordinate points located inside the boundary line in the moving object boundary corresponding to each time node is first calculated to obtain the center point coordinates of the moving object boundary, which is recorded as (x c ,y c ,z c ), and then based on the center point coordinates of each time state Calculate the Cartesian coordinates of each sampling point, where k represents the time state, and the calculation formula of the Cartesian coordinates is defined as:

[0078]

[0079] in are the x, y, and z coordinates of different sampling points on the boundary of the moving object at different time states, s represents a snapshot, and θ=α, 2α, …π-α, ψ=0, α, …2π-α; where α is the preset interval angle, r is the distance from the center point to the surface of the moving object, and t represents time.

[0080] The Cartesian coordinates of the points to be sampled in the boundary of each moving object can be obtained by the above method, that is, the position coordinates of the sampling points can be obtained.

[0081] Step S23: determining a preset number of sampling points based on the preset interval angle, and extracting a corresponding number of sampling points from each of the moving object boundaries based on the preset number and the sampling point positions.

[0082] In this embodiment, the number of sampling points is determined by a preset interval angle.

[0083] It can be understood that, for a two-dimensional plane graph, the relationship between the preset number of sampling points and the preset interval angle is:

[0084]

[0085] For three-dimensional space graphics, the relationship between the preset number of sampling points and the preset interval angle is:

[0086]

[0087] Wherein, N is the preset number of sampling points, and α is the preset interval angle.

[0088] Therefore, a corresponding number of sampling points are extracted from the boundary of the moving object at each time node based on the preset number of sampling points and the positions of the sampling points.

[0089] Step S24: obtaining a snapshot group arranged in time sequence based on the coordinates of the sampling points.

[0090] In this embodiment, the snapshot groups arranged in time sequence based on the coordinates of the sampling points may include: obtaining the Cartesian coordinates of the sampling points, and classifying the Cartesian coordinates according to the coordinate axis categories to obtain snapshot groups of different coordinate axis categories arranged in time sequence. It is understandable that the above classification of the coordinates of the sampling points according to the coordinate axis categories to obtain snapshot groups arranged in time sequence under different coordinate axis categories are also called original snapshots (OS). For example, for a three-dimensional space graphic, the sampling points are classified into The coordinates are classified into x, y, and z to obtain three groups of time snapshots or three dynamic systems {x os (T),y os(T),z os (T)}, where k represents the time state. In this embodiment, k is taken as an even time phase, such as 0, 2, 4, 6, 8, and the corresponding snapshot groups are respectively represented as

[0091] Step S25: interpolating and predicting the snapshot group using a dynamic mode decomposition algorithm to obtain moving object boundaries at other time nodes.

[0092] Among them, for more specific processing procedures of the above steps S21 and S25, reference can be made to the corresponding contents disclosed in the above embodiments, which will not be repeated here.

[0093] It can be seen that when extracting sampling points from the boundary of a moving object, the embodiment of the present application first needs to determine the preset interval angle and sampling point position between adjacent sampling points, and then determine the preset number of points to be sampled by the preset interval angle, and extract the corresponding number of sampling points from the boundary of the moving object at each time node based on the preset number and the sampling point position. In addition, when obtaining the sampling point position, it is obtained by calculating the Cartesian coordinates of each sampling point, first calculating the coordinates of the center point in the boundary of each moving object, and then obtaining the Cartesian coordinates based on the coordinates of the center point and the preset interval angle. In this way, the position of each point to be sampled in the boundary of each moving object can be determined by the Cartesian coordinates, and sampling can be performed.

[0094] See also Figure 3 As shown, the embodiment of the present application discloses a specific method for interpolating and predicting the boundary of a moving object based on an image. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution. Specifically, it includes:

[0095] Step S31: acquiring moving object boundary data at multiple time nodes based on image acquisition, and reconstructing the moving object boundary based on the moving object boundary data.

[0096] Step S32: extracting a preset number of sampling points from each boundary of the moving object using a preset sampling method, and obtaining a snapshot group arranged in time sequence based on the coordinates of the sampling points.

[0097] Step S33: obtaining a snapshot matrix according to the time series in the snapshot group.

[0098] In this embodiment, after obtaining the snapshot group classified according to the coordinate axis category, assuming that the current snapshot group is a time node at an even phase, such as a snapshot group about the x coordinate at 0%, 20%, 40%, 60%, and 80% phases, the snapshot matrix [x0, x2, x4, x6, x8] can be obtained.

[0099] Step S34: Decomposing the snapshot matrix by using a dynamic mode decomposition algorithm, and establishing a linear model that can be interpolated and predicted, so as to obtain the boundaries of the moving objects at other time nodes based on the linear model.

[0100] In this embodiment, the above-mentioned use of the dynamic mode decomposition algorithm to perform matrix decomposition on the snapshot matrix, establish a linear model that can be interpolated and predicted, and obtain the boundaries of moving objects at other time nodes based on the linear model, can include: using a singular value decomposition algorithm to calculate the target matrix associated with the snapshot matrix; calculating the eigenvalues ​​and eigenvectors of the target matrix to obtain the corresponding mode that characterizes the change of the object boundary over time, so as to interpolate and predict the boundaries of moving objects at other time nodes based on the mode. It can be understood that the snapshot matrix obtained above can be matrix decomposed. For example, the snapshot matrix about the x coordinate at the even phase time node is [x0, x2, x4, x6, x8];

[0101] In a specific embodiment, the X matrix and the X' matrix can be obtained through the snapshot matrix, such as X = [x0, x1, x2, x3], X' = [x1, x2, x3, x4];

[0102] In another specific embodiment, the X matrix and the X′ matrix can be obtained through the snapshot matrix, such as X=[x0, x1], X′=[x1, x2].

[0103] The number of snapshots in the snapshot matrix needs to be determined according to the number of data points. If the number of data points is small, the number of snapshots in the snapshot matrix is ​​also small accordingly, and the interpolation and prediction results are more accurate.

[0104] When using the dynamic mode decomposition algorithm for interpolation and prediction, it is necessary to estimate the linear operator A in the following formula:

[0105] x k+1 =Ax k (k=1,2,…M);

[0106] where x k and x k+1 are the two state vectors before and after, x k ∈R N , A∈R N×N , N is x k The length of is the number of sampling points extracted from the boundary of the moving object, and M is the number of snapshots, that is, the number of time phases.

[0107] After obtaining two snapshot matrices X and X', calculate the singular value decomposition of X: N×M =U N×r Σ r×r (VM×r ) * , where * represents the conjugate matrix and r is the rank of the matrix X;

[0108] Then calculate the reduced-order approximation of the linear operator A: And Perform eigenvalue decomposition:

[0109] Then calculate the non-zero eigenvalues ​​φ = X'VΣ -1 The exact DMD mode corresponding to ω, and the amplitude of the DMD mode is φ + x1, where φ + is the pseudo-inverse of φ, x1 is the first column vector of X;

[0110] Through the above process, the time t k The power system at x is reconstructed as: k =φΛ k-1 φ + x1; and time t k+0.5 The power system at x is reconstructed as: k+0.5 =φΛ k-0.5 φ + x1; in this way, the interpolation of other time nodes is completed.

[0111] Therefore, after obtaining the snapshot matrix, this embodiment uses the singular value decomposition algorithm to calculate the target matrix associated with the snapshot matrix, and then performs eigenvalue decomposition on the target matrix to obtain its eigenvalues ​​and corresponding eigenvectors. In the dynamic mode decomposition algorithm, its eigenvector is defined as the DMD mode, and the Vandermonde matrix composed of the corresponding eigenvalues ​​reflects the time evolution characteristics of the mode. According to the linear system theory, by calculating the eigenvalues ​​and eigenvectors of the target matrix, it is possible to obtain how the "modes" in different spaces are "transmitted" in time (exponential growth, decay or oscillation), and then interpolate the boundaries of objects at other time nodes based on the mode. At the same time, combined with the motion parameter curve, it is also possible to predict the motion trajectory of the object in the next motion cycle; and the serial operation time of the dynamic mode decomposition algorithm is less than 1 second, so that the dynamic mode decomposition method may be applied to real-time prediction of the trajectory of moving objects.

[0112] For more specific processing procedures of the above steps S31 and S32, reference may be made to the corresponding contents disclosed in the above embodiments, which will not be described in detail here.

[0113] It can be seen that after obtaining the snapshot group classified according to the coordinate axis category, the snapshot matrix is ​​obtained according to the time series in the snapshot group, and then the snapshot matrix is ​​decomposed using the dynamic mode decomposition algorithm to establish a linear model that can be interpolated and predicted, so as to obtain the boundaries of moving objects at other time nodes based on the linear model. Through the dynamic mode decomposition algorithm, in the absence of image data, the boundaries of moving objects at known time nodes can be used to obtain the boundaries of moving objects at other time nodes, and because the dynamic mode decomposition algorithm has the characteristic of serial operation time of less than 1 second, it can also be used to predict the trajectory of moving objects.

[0114] In the identification of tumor contours based on medical images, identifying the moving tumor contours under respiratory motion images through 4D-CT (four-dimensional computed tomography) data is very important for formulating accurate personalized radiotherapy plans. When collecting 4D-CT images of tumor motion within a respiratory cycle, usually only 5 or 10 time nodes of CT images are collected, and then the motion contour of the tumor is outlined from the CT images through automatic segmentation algorithms, maximum intensity projection methods, or deformable image registration methods. However, the motion contours of tumors at other time nodes that are not collected cannot be obtained in this way. See Figure 4 As shown, the embodiment of the present application discloses an interpolation process of a moving tumor boundary of a human lung under the influence of respiratory motion, comprising: firstly, based on the manually drawn tumor boundary, reconstructing the moving tumor boundary under the influence of respiratory motion, that is, obtaining the Gross Tumor V (GTV) Volume, tumor volume); then sample each tumor boundary depicted. In this process, the average value of all internal point coordinates in the GTV area is first calculated to obtain the center point coordinates, and then the Cartesian coordinates of the sampling points are obtained based on the center point coordinates and the preset sampling interval angle, so as to extract a preset number of sampling points according to the Cartesian coordinates, and these sampling points are classified according to the coordinate axis type to obtain snapshot groups arranged in time sequence under the three coordinate axis types of x, y, and z, that is, the original snapshots of 0%, 20%, 40%, 60%, and 80% phases are obtained, and the snapshots of 10%, 30%, 50%, 70%, and 90% phases are used to verify the interpolation and prediction results; finally, the DMD algorithm is used to interpolate the original snapshots to obtain interpolated snapshots of 10%, 30%, 50%, 70%, and 90% phases. The interpolation results are shown in FIG. Figure 5 shown.

[0115] See also Figure 6As shown, the embodiment of the present application discloses a moving object boundary interpolation and prediction device based on an image, the device comprising:

[0116] The boundary reconstruction module 11 is used to obtain the boundary data of the moving object at multiple time nodes based on the image acquisition, and reconstruct the boundary of the moving object based on the boundary data of the moving object;

[0117] A sampling module 12, configured to extract a preset number of sampling points from the boundary of each moving object using a preset sampling method, and obtain a snapshot group arranged in time sequence based on the coordinates of the sampling points;

[0118] The interpolation prediction module 13 is used to interpolate and predict the snapshot group using a dynamic mode decomposition algorithm to obtain the boundaries of the moving object at other time nodes.

[0119] It can be seen that the present application first obtains the moving object boundary data of multiple time nodes based on image acquisition, and reconstructs the moving object boundary based on the moving object boundary data; then uses a preset sampling method to extract a preset number of sampling points from each of the moving object boundaries, and obtains a snapshot group arranged in time sequence based on the coordinates of the sampling points; finally, the snapshot group is interpolated and predicted using a dynamic mode decomposition algorithm to obtain the moving object boundary at other time nodes. It can be seen that the present application reconstructs the moving object boundary at multiple time nodes by using the moving object boundary data based on image acquisition, and then obtains a snapshot group arranged in time sequence based on the moving object boundary, and finally uses a dynamic mode decomposition algorithm to interpolate and predict the snapshot group to obtain the moving object boundary at other time nodes. In this way, under the premise of lacking image data, the data samples of the moving object boundary can be increased through the above technical solution, so as to use more abundant data samples to predict the motion trajectory of the object, and the present application is particularly suitable for multi-degree-of-freedom, irregular, and deformable objects.

[0120] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Specifically, it may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the image-based moving object boundary interpolation and prediction method performed by a computer device disclosed in any of the aforementioned embodiments.

[0121] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the computer device 20; the communication interface 24 can create a data transmission channel between the computer device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0122] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0123] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222 and data 223, etc. The storage method can be temporary storage or permanent storage.

[0124] Among them, the operating system 221 is used to manage and control the hardware devices and computer programs 222 on the computer device 20, so as to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21, which can be Windows, Unix, Linux, etc. In addition to including a computer program that can be used to complete the image-based moving object boundary interpolation and prediction method performed by the computer device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks. In addition to data received by the computer device and transmitted from an external device, the data 223 can also include data collected by its own input and output interface 25, etc.

[0125] Furthermore, an embodiment of the present application also discloses a storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the method steps performed in the image-based moving object boundary interpolation and prediction process disclosed in any of the aforementioned embodiments are implemented.

[0126] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0127] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0128] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0129] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0130] The above is a detailed introduction to the image-based moving object boundary interpolation and prediction method, device, equipment and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A moving object boundary interpolation and prediction method based on image, characterized in that: include: Acquire moving object boundary data at multiple time nodes based on image acquisition, and reconstruct the moving object boundary based on the moving object boundary data; Extracting a preset number of sampling points from each boundary of the moving object using a preset sampling method, and obtaining a snapshot group arranged in time sequence based on the coordinates of the sampling points; Interpolating and predicting the snapshot group using a dynamic mode decomposition algorithm to obtain the boundaries of the moving object at other time nodes; The obtaining of the snapshot groups arranged in time sequence based on the coordinates of the sampling points includes: obtaining the Cartesian coordinates of the sampling points, and classifying the Cartesian coordinates according to the coordinate axis categories to obtain snapshot groups of different coordinate axis categories arranged in time sequence; After classifying the Cartesian coordinates according to the coordinate axis categories to obtain snapshot groups of different coordinate axis categories arranged in time sequence, the method further includes: obtaining a snapshot matrix according to the time series in the snapshot group; Correspondingly, the interpolation and prediction of the snapshot group by using the dynamic mode decomposition algorithm to obtain the boundaries of the moving objects at other time nodes includes: performing matrix decomposition on the snapshot matrix by using the dynamic mode decomposition algorithm, establishing a linear model that can be interpolated and predicted, and obtaining the boundaries of the moving objects at other time nodes based on the linear model; The method uses a dynamic mode decomposition algorithm to decompose the snapshot matrix and establish a linear model that can be interpolated and predicted to obtain the boundaries of moving objects at other time nodes based on the linear model, including: using a singular value decomposition algorithm to calculate a target matrix associated with the snapshot matrix; calculating the eigenvalues ​​and eigenvectors of the target matrix to obtain the corresponding mode that characterizes the change of the object boundary over time, so as to interpolate and predict the boundaries of moving objects at other time nodes based on the mode.

2. The method for interpolating and predicting moving object boundaries based on images according to claim 1, characterized in that: The extracting a preset number of sampling points from each boundary of the moving object using a preset sampling method includes: Determine the preset interval angle between adjacent sampling points and the sampling point positions; A preset number of sampling points is determined based on the preset interval angle, and a corresponding number of sampling points are extracted from each boundary of the moving object based on the preset number and the positions of the sampling points.

3. The moving object boundary interpolation and prediction method based on image according to claim 2, characterized in that: The step of determining the preset interval angle between adjacent sampling points and the sampling point positions includes: Calculating the average coordinates of all coordinate points located inside the boundary line in the boundary of each moving object to obtain the coordinates of the center point; A preset interval angle between adjacent sampling points is determined, and the Cartesian coordinates of each sampling point in the boundary of the moving object are calculated based on the center point coordinates and the preset interval angle to obtain the sampling point position.

4. A moving object boundary interpolation and prediction device based on image, characterized in that: include: A boundary reconstruction module, used to obtain the boundary data of the moving object at multiple time nodes based on image acquisition, and reconstruct the boundary of the moving object based on the boundary data of the moving object; A sampling module, configured to extract a preset number of sampling points from the boundary of each moving object using a preset sampling method, and obtain a snapshot group arranged in time sequence based on the coordinates of the sampling points; An interpolation prediction module, used to interpolate and predict the snapshot group using a dynamic mode decomposition algorithm to obtain the boundaries of the moving object at other time nodes; The sampling module includes: a snapshot group acquisition unit, which is used to acquire the Cartesian coordinates of the sampling points and classify the Cartesian coordinates according to the coordinate axis categories to obtain snapshot groups of different coordinate axis categories arranged in time sequence; After the sampling module, it also includes: a snapshot matrix acquisition unit, which is used to obtain a snapshot matrix according to the time series in the snapshot group; Correspondingly, the interpolation prediction module includes: a first interpolation prediction unit, which is used to perform matrix decomposition on the snapshot matrix using a dynamic mode decomposition algorithm, and establish a linear model that can be interpolated and predicted, so as to obtain the boundaries of the moving objects at other time nodes based on the linear model; The first interpolation prediction unit includes: a matrix calculation unit, which is used to calculate the target matrix associated with the snapshot matrix using a singular value decomposition algorithm; a second interpolation prediction unit, which is used to calculate the eigenvalues ​​and eigenvectors of the target matrix to obtain the corresponding mode that characterizes the change of the object boundary over time, so as to interpolate and predict the boundaries of moving objects at other time nodes based on the mode.

5. The moving object boundary interpolation and prediction device based on image according to claim 4, characterized in that: The sampling module comprises: A parameter determination unit, used to determine a preset interval angle between adjacent sampling points and the sampling point positions; The sampling point extraction unit is used to determine a preset number of sampling points based on the preset interval angle, and extract a corresponding number of sampling points from each of the moving object boundaries based on the preset number and the sampling point positions.

6. The moving object boundary interpolation and prediction device based on image according to claim 5, characterized in that: The parameter determination unit comprises: A coordinate calculation unit, used to calculate the average coordinates of all coordinate points located inside the boundary line in the boundary of each moving object to obtain the coordinates of the center point; The position determination unit is used to determine a preset interval angle between adjacent sampling points, and calculate the Cartesian coordinates of each sampling point in the boundary of the moving object based on the center point coordinates and the preset interval angle to obtain the sampling point position.

7. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the steps of the image-based moving object boundary interpolation and prediction method as described in any one of claims 1 to 3.

8. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the steps of the image-based moving object boundary interpolation and prediction method as described in any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Controllable dynamic shape interpolation method with physical third dimension

    CN101833785A

  • Moving object detection method and device, computer equipment and storage medium

    CN109919008A

  • Method for predicting driving danger scene based on motion contour semantic graph

    CN111242015A

  • Interpolation of a sequence of images using motion analysis

    US20030035592A1