Training and identification method and device, equipment, medium and program product
By training the machine learning model to identify bone drill working conditions, it assists doctors in drilling operations, solving the problem of strong dependence on doctors' experience during drilling operations, improving operating safety, and reducing accidents.
Patent Information
- Application Number
- CN202310195734.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-24
- Publication Date
- 2024-08-27
AI Technical Summary
In orthopedic surgery, the drilling operation relies on the doctor's touch and experience, which leads to frequent surgical accidents caused by the drill bit breaking through too long, and there is a lack of effective reference basis.
By acquiring bone drill sensor data, the machine learning model is trained to identify drilling conditions, and a target recognition model is provided to assist doctors in identifying the drilling process and reduce surgical accidents.
It reduces the doctor's dependence on experience during the drilling process, improves the safety of drilling operations, and effectively reduces the occurrence of surgical accidents.
Smart Images

Figure CN118553380A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a training and recognition method, device, equipment, medium and program product. Background Art
[0002] In orthopedic surgery, the drilling operation is usually completed by the doctor holding a bone drill, or the doctor guides the robot arm with the help of a navigation device. At present, the control of the bone drill depends entirely on the doctor's feel, and the doctor's subjective judgment plays a decisive role. This also places strict requirements on the doctor's clinical experience and professional knowledge. Since the drilling site may be close to important nerves, capillaries, etc., if the drill bit breaks through too long during the bone drilling process, it may cause serious surgical accidents. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a training and identification method, device, equipment, medium and program product to reduce the strong dependence of bone drilling surgery on the doctor's experience, assist the doctor in identifying the working condition of the bone drill, understand the bone drilling process, and effectively reduce the occurrence of surgical accidents.
[0004] The technical solution of this application is as follows:
[0005] In a first aspect, a training method is provided, the method comprising:
[0006] Obtain sample data at A moments, wherein the sample data at each moment includes data of B candidate features and labeled data corresponding to the moment, where A is a positive integer greater than 1, and B is a positive integer;
[0007] The training model is trained based on sample data at A moments to obtain a target recognition model.
[0008] In a second aspect, an identification method is provided, the method comprising:
[0009] Get the sensor data of the bone drill sensor at the current moment;
[0010] The sensor data is input into a pre-trained target recognition model to identify the bone drill working condition information corresponding to the current moment, wherein the target recognition model is determined based on any of the above training methods.
[0011] In a third aspect, a training device is provided, the device comprising:
[0012] An acquisition module is used to acquire sample data at A moments, wherein the sample data at each moment includes data of B candidate features and labeled data corresponding to the moment, A is a positive integer greater than 1, and B is a positive integer;
[0013] The training module is used to train the training model based on sample data at A moments to obtain a target recognition model.
[0014] In a fourth aspect, an identification device is provided, the device comprising:
[0015] An acquisition module is used to acquire sensor data of the bone drill sensor at the current moment;
[0016] The recognition module is used to input the sensor data into a pre-trained target recognition model to identify the bone drill working condition information corresponding to the current moment, wherein the target recognition model is determined based on any of the above-mentioned training devices.
[0017] In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, and when the program or instruction is executed by the processor, the steps of any training and recognition method of the embodiment of the present application are implemented.
[0018] In a sixth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of any training and recognition method of the embodiment of the present application are implemented.
[0019] In a seventh aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device can perform the steps of any training and recognition method of the embodiment of the present application.
[0020] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0021] In an embodiment of the present application, a target recognition model is obtained by training a training model based on sample data obtained at A moments, so as to guide bone drilling based on the target recognition model. Thus, the target recognition model obtained by the embodiment of the present application through a training method based on machine learning solves the problem that doctors have no reference basis during bone drilling, reduces the strong dependence of bone drilling surgery on doctors' experience to a certain extent, assists doctors in identifying the working conditions of the bone drill, understands the progress of bone drilling, and effectively reduces the occurrence of surgical accidents.
[0022] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.
[0024] Figure 1 It is a flowchart of a training method provided by an embodiment of the first aspect of the present application;
[0025] Figure 2 is a schematic diagram of the labeling data involved in the embodiment of the first aspect of the present application;
[0026] Figure 3 It is a flowchart of an identification method provided by an embodiment of the second aspect of the present application;
[0027] Figure 4 It is a schematic diagram of the embodiment of the first aspect of the present application, drawn from idle to drill data using a random forest model;
[0028] Figure 5 It is a schematic diagram of drawing from idle to drill data using a decision tree model according to an embodiment of the first aspect of the present application;
[0029] Figure 6 It is a schematic diagram of drawing from idling to drilling data using a multi-sensor model according to an embodiment of the first aspect of the present application;
[0030] Figure 7 It is a structural schematic diagram of a training device provided by an embodiment of the third aspect of the present application;
[0031] Figure 8 It is a structural schematic diagram of an identification device provided by an embodiment of the fourth aspect of the present application;
[0032] Fig. 9 It is a structural schematic diagram of an electronic device provided in the seventh embodiment of the present application. DETAILED DESCRIPTION
[0033] In order to make those of ordinary skill in the art better understand the technical scheme of the present application, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are only examples consistent with some aspects of the present application as detailed in the attached claims.
[0035] As described in the background technology section, there is a problem in the prior art that during the bone drilling process, the drill bit breaks through the bone due to excessive length, thereby causing serious surgical accidents. In order to solve the above problem, the embodiments of the present application provide a training and recognition method, device, equipment, medium and program product. By training the training model according to the sample data obtained at A moments, a target recognition model is obtained to guide bone drilling based on the target recognition model. In this way, the target recognition model obtained by the embodiment of the present application through the training method based on machine learning solves the problem that doctors have no reference basis during the bone drilling process, reduces the strong dependence of bone drilling surgery on the doctor's experience to a certain extent, assists doctors in identifying the working condition of the bone drill, understands the bone drilling process, and effectively reduces the occurrence of surgical accidents.
[0036] The following is a detailed description of the training and recognition method provided in the embodiment of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0037] Figure 1 is a flow chart of a training method provided in an embodiment of the present application, such as Figure 1 As shown, the training method provided in the embodiment of the present application may include steps 110 to 120.
[0038] Step 110: Obtain sample data at A moments, wherein the sample data at each moment includes data of B candidate features and annotation data corresponding to the data of the B candidate features at the moment.
[0039] Wherein, A is a positive integer greater than 1, and B is a positive integer.
[0040] The candidate feature may refer to a feature used for training a model, and the data of the candidate feature may be specific data corresponding to the candidate feature. The data of a specific candidate feature may be feature data of a candidate feature used for training a training model, for example, various feature data acquired by a bone drill sensor, such as coordinate information of the drill bit (twist drill) during bone drilling, displacement information of the drill bit, force information in the three directions of X, Y and Z, torque information in the three directions of X, Y and Z, motor drive current, motor speed, etc. The data of B candidate features means that for each moment, each of the B candidate features has its corresponding data.
[0041] In one example, the candidate features include height and weight. If the height of an object is 161 cm, the data of the height candidate feature is 161 cm.
[0042] The labeled data may be data for marking the information corresponding to each of the A moments, and specifically may be bone drill working condition data, that is, working condition data of the drill bit during the bone drilling process. For example, working conditions include idling / breakthrough (meaning that the drill bit is outside the bone, idling means that the drill bit has not yet drilled into the bone, and breakthrough means that the drill bit has drilled out of the bone), cortical bone, and cancellous bone (two bone structures corresponding to the drill bit in the bone).
[0043] In some embodiments of the present application, different bone drill working condition data can be distinguished by different numbers. When labeling data, the bone drill working condition data corresponding to that moment can be directly represented by numbers, for example, idling / breakthrough is marked as 2, cortical bone is marked as 1, and cancellous bone is marked as 0, which serves as a digital classification label.
[0044] In some embodiments of the present application, taking drilling a hole as an example, the bone drilling process (corresponding to the complete bone drilling condition) is described in detail: during the drilling process, the drill bit continues to go deeper, and when it does not contact the bone, it is idle. After contacting the bone, it passes through the cortical bone, cancellous bone, and cortical bone in sequence, and finally drills through (that is, breaks through the bone). During the formal operation, the bone drilling depth is preferably not more than 80% of the total depth of the bone, that is, the bone drilling is stopped before entering the second layer of cortical bone.
[0045] It should be noted that the sample data at A moments may include data from a bone drill sensor read at fixed time intervals (such as 0.015 seconds) during the process of drilling different holes on different bones or the same bone, that is, the sample data at A moments may be data obtained by the bone drill sensor at multiple moments when drilling a hole and data at multiple moments when drilling different holes. The data obtained at multiple moments of the same hole can be saved in time sequence, and the data at different moments of the same hole are also saved together. In some embodiments of the present application, the sample data at A moments include data obtained by drilling holes in pig bones, sheep bones, and cattle bones using a bone drill sensor. In some embodiments of the present application, the sample data is disrupted during training, that is, the neighboring data of a sample data may be data at any moment of other holes. This reduces the influence of the time sequence on the trained model and ensures that the reasoning result at any moment does not depend on the data at adjacent moments.
[0046] In some embodiments of the present application, the sample data of A moments include at least the complete bone drill working condition data corresponding to two holes. It can be understood that the complete bone drill working condition data corresponding to one hole is the sample data of E moments (that is, if the E moments are arranged in time sequence, they have the same fixed time interval, and if the sample data of E moments are arranged according to the bone drilling process, they include the data corresponding to idling, the data corresponding to the first layer of cortical bone, the data corresponding to the cancellous bone, the data corresponding to the second layer of cortical bone, and the data corresponding to drilling), and the sample data of each moment includes the data of B candidate features, and the annotation data corresponding to the moment, and E is a positive integer greater than 1; the same is true for another hole, and the corresponding complete bone drill working condition data is the sample data of F moments, and F is a positive integer greater than 1. The E moments may have the same moment as the F moments.
[0047] In some embodiments of the present application, in order to accurately obtain sample data at A moments, step 110 may specifically include:
[0048] Acquire data of B candidate features corresponding to each of A moments through a bone drill sensor;
[0049] Based on the data of B candidate features corresponding to each of A moments, the labeled data corresponding to each moment is determined.
[0050] In some embodiments of the present application, the data of B candidate features corresponding to each of A moments can be obtained through a bone drill sensor, and then the data of the B candidate features corresponding to each moment can be labeled to obtain the labeled data corresponding to each moment.
[0051] In an embodiment of the present application, data of B candidate features corresponding to each of A moments are obtained through a bone drill sensor, and then the data of the B candidate features corresponding to each moment are labeled to obtain the labeled data corresponding to each moment, so that the sample data of A moments can be accurately obtained.
[0052] In some embodiments of the present application, the data of the B candidate features may include bone drill displacement data, that is, displacement data of the bone drill during the bone drilling process.
[0053] In order to further accurately guide the doctor to drill the bone, based on the data of B candidate features corresponding to each of the A moments, the label data corresponding to each moment may specifically include:
[0054] The bone drill displacement data are sorted according to the time series to obtain the relationship between the displacement of the bone drill and time;
[0055] Based on the relationship between the displacement of the bone drill and time and the characteristics of the bone structure, the bone drill working condition data corresponding to A moments are determined.
[0056] The bone structure characteristics may be structural characteristics of each level of the bone, for example, the bones from outside to inside are: cortical bone, cancellous bone, cortical bone.
[0057] In some embodiments of the present application, after obtaining the bone drill displacement data at A moments, the bone drill displacement data can be sorted according to the time series to obtain the relationship between the displacement of the bone drill and time, and then based on the relationship between the displacement of the bone drill and time and the characteristics of the bone structure, the bone drill working condition data corresponding to the A moments can be determined, that is, it can be determined at which layer of the bone the current bone drilling is drilling, and then based on the bone drill working condition data corresponding to the A moments, the bone drill working condition data corresponding to each moment can be determined, and it can be identified whether it is cancellous bone or cortical bone. If it is the second layer of cortical bone, the doctor will choose to stop drilling the bone. If it is cancellous bone, the doctor will be alert and decide whether to continue drilling the bone.
[0058] In some embodiments of the present application, the feeding speed of the bone drill in the cancellous bone is greater than the feeding speed in the cortical bone. Based on this characteristic, the boundary line between the cortical bone and the cancellous bone can be well distinguished.
[0059] In one example, reference Figure 2 , Figure 2 is the relationship between the displacement of the bone drill and time, with the horizontal axis being time and the vertical axis being displacement. Its slope can be approximated as the feed speed of the bone drill. The boundary between the cortical bone and the cancellous bone can be distinguished based on the fact that the feed speed of the bone drill in the cancellous bone is greater than that in the cortical bone. Figure 2 The marked data shown. Figure 2In FIG. 2 , curve 21 is used to characterize the cortical bone, curve 22 is used to characterize the cancellous bone, and curve 23 is used to characterize the idling / breakthrough.
[0060] In some embodiments of the present application, after determining the labeled data, the labeled results can also be verified. Specifically, the collected data of candidate features can be analyzed to estimate the thickness of the cortical bone. Specifically, there are two measurement methods: (1) The borehole is cut open to measure the thickness of each layer of cortical bone and cancellous bone, and the working condition to which the data belongs is accurately marked based on the displacement data. However, this method is more cumbersome, time-consuming, and dependent on the accuracy of the measurement. (2) After labeling certain data, use these data to train the model, input the new data into the model, roughly separate the cortical bone and cancellous bone, and then verify based on the displacement visualization results. The specific verification method can be selected according to user needs and is not limited here.
[0061] In an embodiment of the present application, the bone drill displacement data is sorted according to a time series to obtain the relationship between the displacement of the bone drill and time, and then based on the relationship between the displacement of the bone drill and time and the characteristics of the bone structure, the bone drill working condition data corresponding to A moments are determined, so that the doctor can be accurately guided to drill the bone.
[0062] Step 120: Train the training model based on sample data at A moments to obtain a target recognition model to guide bone drilling based on the target recognition model.
[0063] Among them, the target recognition model can be a recognition model that can be used to determine the working condition information of the bone drill after the training model is trained, so as to guide the bone drilling. The target recognition model can be a classification model in machine learning, that is, outputting data directly representing different working conditions of the bone drill to distinguish different working conditions, such as idling / breakthrough marked as 2, cortical bone marked as 1, and cancellous bone marked as 0; the target recognition model can also be a regression model in machine learning, such as outputting the probability of various bone drill working conditions, combining this probability data to judge the working condition information.
[0064] In some embodiments of the present application, the training model may be trained based on sample data at A moments to obtain a target recognition model to guide bone drilling based on the target recognition model.
[0065] The training model here can be a neural network model, or a support vector machine, etc. Any model that can be used to identify the working condition data of the bone drill is within the scope of protection of this application.
[0066] In some embodiments of the present application, in order to accurately determine the target recognition model, after obtaining the data of B candidate features corresponding to each of A moments through the bone drill sensor, the training method involved above may also include:
[0067] Screen the data of B candidate features to obtain the data of D target candidate features;
[0068] Based on the data of B candidate features corresponding to each of A moments, determining the labeling data corresponding to each moment may specifically include:
[0069] Based on the data of D target candidate features corresponding to each of the A moments, the labeling data corresponding to each moment is determined.
[0070] The target candidate feature may be a candidate feature obtained after screening the candidate features.
[0071] In some embodiments of the present application, B candidate features are screened, such as using a lasso model or other method to perform dimensionality reduction processing on the B candidate features, and after the secondary features are screened out and deleted, the above seven features [Fx, Fy, Fz, Mx, My, Mz, R_Speed, Current] (forces in three directions of XYZ, torques in three directions of XYZ, and motor drive current) are determined. The data corresponding to the above seven features are used to train models that do not have built-in feature screening functions (such as K-nearest neighbor models and k-means clustering models), and the target recognition model obtained has the best effect and accurate results when making predictions.
[0072] In some embodiments of the present application, when labeling the data of candidate features, if the bone structure characteristics are not obvious, for example, the cortical bone-cancellous bone-cortical bone bone cannot be well identified, the data corresponding to the bone is deleted.
[0073] In an embodiment of the present application, by screening the data of B candidate features, data of D target candidate features that are convenient for identifying cortical bone-cancellous bone-cortical bone are obtained, so that the training model can be accurately trained to obtain an accurate target recognition model.
[0074] In some embodiments of the present application, before step 120, the training method mentioned above may further include:
[0075] Determine the training model.
[0076] In an embodiment of the present application, a training model that is suitable for training is determined by determining a training model, so as to perform targeted training on the training model and obtain an accurate recognition model.
[0077] In some embodiments of the present application, in order to determine a training model that is more suitable for training, determining the training model may specifically include:
[0078] Based on the sample data at time A, the Pearson correlation coefficient between each candidate feature in B candidate features and the annotation information is determined respectively;
[0079] The training model is determined based on the Pearson correlation coefficient between each candidate feature and the annotation information.
[0080] In some embodiments of the present application, the Pearson correlation coefficient between each candidate feature and the annotation information can be calculated respectively, and the correlation between the annotation information and each candidate feature can be determined according to the Pearson correlation coefficients corresponding to the B candidate features. Specifically, the larger the Pearson correlation coefficient, the stronger the correlation between the two data, thereby determining a training model that is more suitable for the data of the training candidate features.
[0081] It is also possible to determine feature data that is strongly correlated with the annotation information based on the Pearson correlation coefficient between each candidate feature and the annotation information, so as to determine which sample data should be obtained when obtaining sample data.
[0082] In an embodiment of the present application, the Pearson correlation coefficient between each candidate feature and the annotation information is calculated respectively, and a training model is determined according to the Pearson correlation coefficient, so that the training model can be accurately determined.
[0083] In some embodiments of the present application, in order to further accurately select a training model, the training model is determined based on the Pearson correlation coefficient between each candidate feature and the annotation information, which may specifically include:
[0084] When the Pearson correlation coefficient between each candidate feature and the annotation information is less than a preset coefficient threshold, the nonlinear model is selected as the training model.
[0085] The preset coefficient threshold may be a preset minimum threshold of the Pearson correlation coefficient between each candidate feature and the annotation information. Different thresholds may also be set for each candidate feature.
[0086] In some embodiments of the present application, the correlation between a single candidate feature and the annotation information is relatively weak, that is, the Pearson correlation coefficient between a single candidate feature and the annotation information is generally relatively small, so the relationship between a single candidate feature and the annotation information should be nonlinear. Therefore, when the Pearson correlation coefficient between each candidate feature and the annotation information is less than the preset coefficient threshold, a nonlinear model should be selected as the training model, and the linear model cannot predict the bone drill working condition information well.
[0087] In an embodiment of the present application, by selecting a nonlinear model as a training model when the Pearson correlation coefficient between each candidate feature and the annotation information is less than a preset coefficient threshold, a training model that can accurately predict the bone drill working condition information can be accurately selected.
[0088] In some embodiments of the present application, the training model may include C candidate models, where C is a positive integer greater than 1. In order to accurately select the target recognition model, step 120 may specifically include:
[0089] For each candidate model in the training model, the candidate model is trained based on the sample data at A times to obtain the recognition model corresponding to the candidate model;
[0090] The target recognition model is selected from the recognition models corresponding to each candidate model.
[0091] In some embodiments of the present application, the candidate models here can specifically be an ensemble model, a multilayer perceptron (MLP) model (for example, it can be a fully connected neural network), a K-nearest neighbor (KNN) model, a k-means clustering algorithm, a decision tree, a random forest, etc.
[0092] In some embodiments of the present application, there may be multiple candidate models, and then the candidate models are trained using sample data at A moments respectively to obtain the trained model of each candidate model (i.e., recognition model), and then the target recognition model is selected from the recognition model corresponding to each candidate model. Specifically, a recognition model with the best training accuracy can be selected from the recognition models corresponding to each candidate model as the target recognition model. In an embodiment of the present application, for each candidate model in the training model, the candidate model is trained based on sample data at A moments to obtain the recognition model corresponding to the candidate model, and then the target recognition model can be selected from the recognition model corresponding to each candidate model, so that an accurate target recognition model for guiding bone drilling can be obtained.
[0093] It should be noted that when training the candidate model, the loss between the current predicted structure and the true value can be calculated according to the loss function. The selection of the loss function may vary according to the candidate model, including but not limited to the square difference, hinge loss function (hings loss), square difference with L1 regularization term, square difference combining L1 and L2 regularization terms, cross entropy, expected loss, etc.
[0094] When training the candidate model, the gradient descent method can be used to update the model parameters of the candidate model, complete one iteration, and repeat the training to a preset number of iterations.
[0095] In some embodiments of the present application, after experimental verification, a model that can automatically screen candidate features (such as an integrated model, a multi-sensor model, a decision tree, and a random forest model, etc.) is selected in the embodiments of the present application as a training model for training to obtain its corresponding target recognition model. Because it has the characteristic of automatically adjusting the weights of each feature, there is no need to screen the candidate features, but all the candidate feature data can be input into the model to allow the model to automatically adjust the weights of each candidate feature. In this way, for the case where all candidate features have a weak correlation with the label information, all candidate features are used to input into the target recognition model generated by the training, and the effect is best. In some embodiments of the present application, the candidate features also include drill diameter data, feed force data, etc.
[0096] It should be noted that the training method provided in the embodiment of the present application can be executed by a training device, or a control module in the training device for executing the training method.
[0097] The above is the training process of the target recognition model. The following is a detailed description of the process of obtaining the working condition information of the bone drill using the target recognition model.
[0098] Figure 3 is a flow chart of an identification method provided in an embodiment of the present application, such as Figure 3 As shown, the identification method provided in the embodiment of the present application may include steps 310 to 320.
[0099] Step 310: Acquire sensor data of the bone drill sensor at the current moment.
[0100] The sensor data may be the working data at the current moment acquired by the bone drill sensor, for example, including data of each coordinate axis, displacement data, a timestamp of each set of data, etc., which is the data of the candidate features in the above embodiment.
[0101] Step 320: Input the sensor data into a pre-trained target recognition model to identify the bone drill working condition information corresponding to the current moment.
[0102] The target recognition model may be a recognition model finally determined based on the training method of the above embodiment.
[0103] In an embodiment of the present application, by inputting the sensor data of the bone drill sensor at the current moment into a pre-trained target recognition model, the bone drill working condition information corresponding to the current moment can be quickly and accurately identified, thereby improving the recognition efficiency and accuracy of the bone drill working condition information.
[0104] In some embodiments of the present application, in order to improve user experience, after step 320, the above-mentioned identification method may further include:
[0105] Record historical moments and the bone drill working condition information corresponding to the historical moments;
[0106] A schematic diagram is drawn based on the historical moment and the bone drill working condition information corresponding to the historical moment, and the current moment and the bone drill working condition information corresponding to the current moment.
[0107] Among them, the historical moment may be a moment before the current moment.
[0108] In some embodiments of the present application, historical moments and the bone drill working condition information corresponding to the historical moments, as well as the current moment and the bone drill working condition information corresponding to the current moment, can be drawn into a schematic diagram so that the doctor can intuitively view the bone drill working condition information during the bone drilling process.
[0109] In one example, reference Figure 4-Figure 6 , which are schematic diagrams drawn by using the corresponding trained models to identify the complete bone drilling working conditions after training different models. Figure 4 Schematic diagram of the random forest model from empty to drill data. Figure 5 A schematic diagram of the decision tree model from empty to drill through data. Figure 6 A schematic diagram of the multi-perceptron model from idling to drilling data. Figure 4-Figure 6 The comparison confirms that the random forest model is selected as the training model for training, and the target recognition model corresponding to the random forest model is obtained. This model is used to identify the working information of the bone drill. The connection area from the cancellous bone to the second layer of cortical bone has the smallest noise, the most accurate data, and the best effect. Figure 4-Figure 6 Among them, 41 is used to characterize idling, 42 is used to characterize after breakthrough, 43 is used to characterize cortical bone, and 44 is used to characterize cancellous bone.
[0110] In an embodiment of the present application, a schematic diagram can be drawn by recording historical moments and the bone drill working condition information corresponding to the historical moments, as well as the current moment and the bone drill working condition information corresponding to the current moment, so that the doctor can intuitively view the bone drill working condition information during the bone drilling process in real time, thereby improving the user experience.
[0111] It should be noted that the identification method provided in the embodiment of the present application can be executed by an identification device, or a control module in the identification device for executing the identification method.
[0112] Based on the same inventive concept as the above-mentioned training method, the present application also provides a training device. Figure 4 The training device provided in the embodiment of the present application is described in detail.
[0113] Figure 7 It is a schematic structural diagram of a training device according to an exemplary embodiment.
[0114] like Figure 7 As shown, the training device 700 may include:
[0115] The acquisition module 710 is used to acquire sample data at A moments, wherein the sample data at each moment includes data of B candidate features and annotation data corresponding to the moment, where A is a positive integer greater than 1 and B is a positive integer;
[0116] The training module 720 is used to train the training model based on sample data at A moments to obtain a target recognition model to guide bone drilling based on the target recognition model.
[0117] In an embodiment of the present application, a training model is trained on sample data acquired at A moments to obtain a target recognition model to guide bone drilling based on the target recognition model. The target recognition model obtained by the embodiment of the present application through a training method based on machine learning solves the problem of doctors having no reference basis during bone drilling, reduces the strong dependence of bone drilling surgery on doctors' experience to a certain extent, assists doctors in identifying the working conditions of the bone drill, understands the bone drilling process, and effectively reduces the occurrence of surgical accidents.
[0118] In some embodiments of the present application, the training device mentioned above may also include:
[0119] The determination module is used to determine the training model.
[0120] In some embodiments of the present application, in order to accurately determine the training model, the determination module may specifically include:
[0121] A first determination unit is used to determine the Pearson correlation coefficient between each candidate feature in the B candidate features and the annotation information based on the sample data at A moments;
[0122] The second determining unit is used to determine the training model based on the Pearson correlation coefficient between each candidate feature and the annotation information.
[0123] In some embodiments of the present application, in order to further accurately select the training model, the second determination unit is specifically used to:
[0124] When the Pearson correlation coefficient between each candidate feature and the annotation information is less than a preset coefficient threshold, the nonlinear model is selected as the training model.
[0125] In some embodiments of the present application, the training model includes C candidate models, where C is a positive integer greater than 1. In order to accurately select the target recognition model, the training module 420 involved above may specifically include:
[0126] A training unit is used to train each candidate model in the training model based on sample data at A times to obtain a recognition model corresponding to the candidate model;
[0127] The selection unit is used to select a target recognition model from the recognition models corresponding to each candidate model.
[0128] In some embodiments of the present application, in order to accurately obtain sample data at A moments, the acquisition module 710 may specifically include:
[0129] An acquisition unit, used for acquiring data of B candidate features corresponding to each of A moments through a bone drill sensor;
[0130] The third determination unit is used to determine the labeled data corresponding to each moment based on the data of B candidate features corresponding to each moment in A moments, wherein the labeled data is the bone drill working condition data.
[0131] In some embodiments of the present application, the data of the B candidate features may include bone drill displacement data. In order to further accurately guide the doctor to perform bone drilling, the third determination unit is specifically used to:
[0132] The bone drill displacement data are sorted according to the time series to obtain the relationship between the displacement of the bone drill and time;
[0133] Based on the relationship between the displacement of the bone drill and time and the characteristics of the bone structure, the bone drill working condition data corresponding to A moments are determined.
[0134] The training device provided in the embodiment of the present application can be used to execute the training methods provided in the above-mentioned method embodiments. The implementation principles and technical effects are similar and will not be described in detail here for the sake of simplicity.
[0135] Based on the same inventive concept as the above-mentioned identification method, the present application also provides an identification device. Figure 8 The identification device provided in the embodiment of the present application is described in detail.
[0136] Figure 8 The figure is a schematic diagram showing the structure of an identification device according to an exemplary embodiment.
[0137] like Figure 8 As shown, the identification device 800 may include:
[0138] An acquisition module 810 is used to acquire sensor data of the bone drill sensor at the current moment;
[0139] The recognition module 820 is used to input the sensor data into a pre-trained target recognition model to identify the bone drill working condition information corresponding to the current moment, wherein the target recognition model is determined based on any of the above-mentioned training devices.
[0140] In an embodiment of the present application, by inputting the sensor data of the bone drill sensor at the current moment into a pre-trained target recognition model, the bone drill working condition information corresponding to the current moment can be quickly and accurately identified, thereby improving the recognition efficiency and accuracy of the bone drill working condition information.
[0141] In some embodiments of the present application, in order to improve user experience, the above-mentioned identification device may further include:
[0142] A recording module, used to record historical moments and bone drill working condition information corresponding to the historical moments;
[0143] The drawing module is used to draw a schematic diagram based on the historical moment and the bone drill working condition information corresponding to the historical moment, and the current moment and the bone drill working condition information corresponding to the current moment.
[0144] The identification device provided in the embodiment of the present application can be used to execute the identification methods provided in the above-mentioned method embodiments. The implementation principles and technical effects are similar and will not be described here for the sake of simplicity.
[0145] Based on the same inventive concept, an embodiment of the present application also provides an electronic device.
[0146] Fig. 9 Schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig. 9 As shown, the electronic device may include a processor 901 and a memory 902 storing computer programs or instructions.
[0147] Specifically, the processor 901 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.
[0148] The memory 902 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 902 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 902 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 902 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 902 is a non-volatile solid-state memory. The memory may include a read-only memory (ROM), a random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described in the training methods and / or recognition methods provided in the above-described embodiments.
[0149] The processor 901 implements any one of the training methods and / or recognition methods in the above embodiments by reading and executing computer program instructions stored in the memory 902 .
[0150] In one example, the electronic device may further include a communication interface 903 and a bus 910. Fig. 9 As shown, the processor 901, the memory 902, and the communication interface 903 are connected via a bus 910 and communicate with each other.
[0151] The communication interface 903 is mainly used to implement the communication between the modules, devices, units and / or devices in the embodiment of the present invention.
[0152] Bus 910 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 910 may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.
[0153] The electronic device can execute the training method and / or recognition method in the embodiments of the present invention, thereby realizing the training method and / or recognition method described in any of the above embodiments.
[0154] In addition, in combination with the training method and / or recognition method in the above embodiments, the embodiments of the present invention may provide a readable storage medium for implementation. The readable storage medium stores program instructions; when the program instructions are executed by a processor, any one of the training methods and / or recognition methods in the above embodiments is implemented.
[0155] In addition, in combination with the training method and / or recognition method in the above embodiments, an embodiment of the present invention may provide a computer program product, characterized in that when the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes any one of the training methods and / or recognition methods in the above embodiments.
[0156] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0157] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0158] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.
[0159] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.
[0160] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.
Claims
1. A training method, characterized in that: The method comprises: Obtain sample data at A moments, wherein the sample data at each moment includes data of B candidate features and labeled data corresponding to the moment, where A is a positive integer greater than 1, and B is a positive integer; The training model is trained based on the sample data at the A moments to obtain a target recognition model, so as to guide bone drilling based on the target recognition model.
2. The method according to claim 1, characterized in that Before training the training model based on the sample data at the A moments to obtain the target recognition model, the method further includes: Determine the training model.
3. The method according to claim 2, characterized in that The determining of the training model comprises: Based on the sample data at the A moments, respectively determine the Pearson correlation coefficient between each of the B candidate features and the annotation information; A training model is determined based on the Pearson correlation coefficient between each candidate feature and the annotation information.
4. The method according to claim 3, characterized in that The determining of the training model based on the Pearson correlation coefficient between each candidate feature and the annotation information includes: When the Pearson correlation coefficient between each candidate feature and the annotation information is less than a preset coefficient threshold, a nonlinear model is selected as the training model.
5. The method according to claim 1, characterized in that The training model includes C candidate models, where C is a positive integer greater than 1. The training model is trained based on the sample data at the A moments to obtain a target recognition model, including: For each candidate model in the training model, the candidate model is trained based on the sample data at the A time points to obtain a recognition model corresponding to the candidate model; The target recognition model is selected from the recognition models corresponding to each candidate model.
6. The method according to claim 1, characterized in that The step of obtaining sample data at A times includes: Acquire data of B candidate features corresponding to each of A moments through a bone drill sensor; Based on the data of the B candidate features corresponding to each of the A moments, the labeled data corresponding to each moment is determined, wherein the labeled data is the bone drill working condition data.
7. The method according to claim 6, characterized in that The data of the B candidate features include bone drill displacement data, and the determining of the annotation data corresponding to each moment based on the data of the B candidate features corresponding to each moment in the A moments includes: Sorting the bone drill displacement data according to the time series to obtain the relationship between the displacement of the bone drill and time; Based on the relationship between the displacement of the bone drill and time and the characteristics of the bone structure, the bone drill working condition data corresponding to the A moments are determined.
8. A recognition method, characterized in that: The method comprises: Get the sensor data of the bone drill sensor at the current moment; The sensor data is input into a pre-trained target recognition model to identify the bone drill working condition information corresponding to the current moment, wherein the target recognition model is determined based on the training method described in any one of claims 1 to 7.
9. The method according to claim 8, characterized in that After inputting the sensor data into a pre-trained target recognition model to identify the bone drill working condition information corresponding to the current moment, the method further includes: Recording historical moments and bone drill working condition information corresponding to the historical moments; A schematic diagram is drawn based on the historical moment and the bone drill working condition information corresponding to the historical moment, and the current moment and the bone drill working condition information corresponding to the current moment.
10. A training device, characterized in that: The device comprises: An acquisition module is used to acquire sample data at A moments, wherein the sample data at each moment includes data of B candidate features and labeled data corresponding to the moment, A is a positive integer greater than 1, and B is a positive integer; The training module is used to train the training model based on the sample data at the A moments to obtain a target recognition model to guide bone drilling based on the target recognition model.
11. The device according to claim 10, characterized in that The device also includes: The determination module is used to determine the training model.
12. The device according to claim 11, characterized in that The determination module comprises: A first determining unit, configured to determine, based on the sample data at the A moments, a Pearson correlation coefficient between each of the B candidate features and the annotation information; The second determining unit is used to determine the training model based on the Pearson correlation coefficient between each candidate feature and the annotation information.
13. The device according to claim 12, characterized in that The second determining unit is specifically configured to: When the Pearson correlation coefficient between each candidate feature and the annotation information is less than a preset coefficient threshold, a nonlinear model is selected as the training model.
14. The device according to claim 10, characterized in that The training model includes C candidate models, where C is a positive integer greater than 1, and the training module includes: A training unit, configured to train each candidate model in the training model based on the sample data at the A time points to obtain a recognition model corresponding to the candidate model; The selection unit is used to select a target recognition model from the recognition models corresponding to each candidate model.
15. The device according to claim 10, characterized in that The acquisition module comprises: An acquisition unit, used for acquiring data of B candidate features corresponding to each of A moments through a bone drill sensor; The third determination unit is used to determine the labeled data corresponding to each moment based on the data of the B candidate features corresponding to each moment in the A moments, wherein the labeled data is the bone drill working condition data.
16. The device according to claim 15, characterized in that The data of the B candidate features include bone drill displacement data, and the third determination unit is specifically used for: Sorting the bone drill displacement data according to the time series to obtain the relationship between the displacement of the bone drill and time; Based on the relationship between the displacement of the bone drill and time and the characteristics of the bone structure, the bone drill working condition data corresponding to the A moments are determined.
17. An identification device, characterized in that: The device comprises: An acquisition module is used to acquire sensor data of the bone drill sensor at the current moment; An identification module is used to input the sensor data into a pre-trained target recognition model to identify the bone drill working condition information corresponding to the current moment, wherein the target recognition model is determined based on the training device described in any one of claims 10 to 16.
18. The device according to claim 17, characterized in that The device also includes: A recording module, used to record historical moments and bone drill working condition information corresponding to the historical moments; A drawing module is used to draw a schematic diagram based on the historical moment and the bone drill working condition information corresponding to the historical moment, and the current moment and the bone drill working condition information corresponding to the current moment.
19. An electronic device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the training method described in any one of claims 1 to 7, and / or the steps of the recognition method described in any one of claims 8 to 9.
20. A readable storage medium, characterized in that: The readable storage medium stores programs or instructions, and when the programs or instructions are executed by the processor, the steps of the training method described in any one of claims 1-7 and / or the steps of the recognition method described in any one of claims 8-9 are implemented.
21. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the steps of the training method described in any one of claims 1-7, and / or the steps of the recognition method described in any one of claims 8-9.
