Ultrasonic knife working state recognition model training method, recognition method, power control method and equipment
Through the ultrasonic knife working state recognition model, the cutting status of the ultrasonic knife is identified and the power is adjusted, which solves the problems of thermal damage and knife rod breakage caused by the ultrasonic knife during the cutting process, and achieves a safer and more reliable cutting process.
Patent Information
- Application Number
- CN202411081066.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-10-11
AI Technical Summary
Existing ultrasonic knives with constant power output generate a large amount of heat during the cutting process, causing thermal damage to the tissue. Moreover, the material mechanical properties of the titanium alloy tool shank weaken as the temperature increases, which can easily lead to the breakage of the tool shank.
Using the training method of the ultrasonic scalpel working state identification model, by collecting and processing voltage signals, time series features are extracted, such as outliers, local minima and power spectrum density averages, etc., which are used to identify the working state of the ultrasonic scalpel, and based on Identify the results and adjust the power to avoid thermal damage and cutter holder breakage.
It effectively avoids thermal damage to tissues caused by the ultrasonic scalpel and reduces the risk of knife rod breakage. It dynamically adjusts the power to adapt to different tissue conditions.
Smart Images

Figure CN118760966A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical equipment, and in particular to a training method, an identification method, a power control method and equipment for an ultrasonic knife working state identification model. Background Art
[0002] At present, ultrasonic surgical equipment uses constant power output, which is constant power under different tissue states. In this state, even if the tissue has been cut or is about to be cut, the power output is constant, which causes the ultrasonic scalpel head to generate a lot of heat. The ultrasonic scalpel rod is made of titanium alloy (Ti-6Al-4V), which has a relatively low thermal conductivity (7.955W / m·K). During the cutting process, the large amount of heat generated by the ultrasonic scalpel cannot be transmitted through the scalpel rod, so that a large amount of heat is diffused to the tissue during the cutting process, causing serious thermal damage to the tissue. In addition, since the mechanical properties of the titanium alloy material used in the ultrasonic scalpel rod, including tensile strength and yield strength, weaken with increasing temperature, if the heat generation is not reduced in time, it is easy to cause the ultrasonic scalpel rod to break. Summary of the invention
[0003] The present application provides a training method, an identification method, a power control method and a device for an ultrasonic scalpel working state identification model to solve the technical problems that the existing ultrasonic scalpel with constant power output may cause serious thermal damage to the tissue and easily cause the ultrasonic scalpel rod to break.
[0004] In order to achieve the above-mentioned purpose, this application adopts the following technical solution.
[0005] On the one hand, a method for training an ultrasonic knife working state recognition model is provided, the method comprising the following steps:
[0006] S101, collecting a voltage signal when the ultrasonic knife works under a specific current;
[0007] S102, extracting time series features from the voltage signal to obtain time series features; the time series features include at least one of outliers, local minima, relative variability of the mean of power spectrum density on subintervals, the gap between the maximum value of the fitting curve and the maximum value of the kernel smooth distribution curve, and relative entropy between extreme value distribution model fitting data and kernel smooth distribution;
[0008] S103, training the original model according to the time series features and corresponding labels to obtain an ultrasonic knife working state recognition model.
[0009] The ultrasonic scalpel working state recognition model obtained by the above method can realize the recognition of the ultrasonic scalpel working state, thereby identifying whether the ultrasonic scalpel has completed cutting, providing technical support for the adjustment of the ultrasonic scalpel power, thereby avoiding the ultrasonic scalpel from causing serious thermal damage to the tissue and making the ultrasonic scalpel rod less likely to break.
[0010] In some embodiments, the outlier Obtained through the following formula:
[0011]
[0012] Among them, y i is the i-th data point in the time series data y of the voltage signal, L<y i <U,N rem is the number of non-outlier data points; L and U are the upper and lower quantiles, respectively;
[0013] Local minimum y meanabsmin Obtained through the following formula:
[0014]
[0015] Among them, n w is the number of local windows, y w Represents all data in the jth window;
[0016] Relative variability of the mean of the power spectral density on the subintervals y statav2 Obtained through the following formula:
[0017]
[0018] Where S is the power spectrum density, which is divided into equal-length subintervals denoted as S1 and S2, σ S1 is the standard deviation σ of subinterval S1 S1 , σ S1 is the standard deviation σ of the total interval S S1 ;
[0019] The difference y between the maximum value of the fitted curve and the maximum value of the kernel smoothed distribution curve kscn_peaksepy Obtained through the following formula:
[0020]
[0021] Among them, E peak,y is the peak error of the Gaussian fit of the time series data y of the voltage signal, is the detrended time series y d The peak error of the Gaussian fit;
[0022] Relative entropy y between extreme value distribution model fitting data and kernel smoothing distribution relent Obtained through the following formula:
[0023]
[0024] The time series data y of the voltage signal contains n observation values, y k is the kth observation in y, K h is the kernel function, h is the bandwidth, Y is the random variable, and the kernel density of the empirical distribution of Y is estimated To approximate the probability density distribution of the true distribution of Y, for the fitted extreme value distribution, its probability density function is f EV (y;θ) represents, θ is the distribution parameter.
[0025] On the other hand, a method for identifying the working state of an ultrasonic knife is provided, the method comprising the following steps:
[0026] S201, collecting a voltage signal when the ultrasonic knife works under a specific current;
[0027] S202, extracting time series features from the voltage signal to obtain time series features; the time series features include at least one of linear outlier features, local extreme minimum values, relative variability of the mean of power spectrum density on subintervals, the gap between the maximum value of the fitting curve and the maximum value of the kernel smooth distribution curve, and relative entropy between extreme value distribution model fitting data and kernel smooth distribution;
[0028] S203: Input the time series features into the ultrasonic knife working state recognition model to obtain a recognition result.
[0029] In some embodiments, the voltage signal is a voltage signal generated when an ultrasonic knife cuts different objects.
[0030] In some embodiments, the identification result includes blood vessel-cut, other tissue-cut, blood vessel-uncut and other tissue-uncut; preferably, the identification result also includes a gasket.
[0031] In another aspect, a method for controlling ultrasonic knife power is provided, the method comprising the following steps:
[0032] When the identification result is blood vessel-cut or other tissue-cut, the power of the ultrasonic knife is adjusted to 0;
[0033] When the identification result is that the blood vessel is not cut, the power of the ultrasonic knife is adjusted to a first set value;
[0034] When the identification result is other tissues-not cut, the power of the ultrasonic knife is adjusted to be greater than the initial setting value;
[0035] Among them, the first set value is smaller than the initial set value; and the recognition result is obtained by the above-mentioned working state recognition method.
[0036] In some embodiments, when the identification result is a gasket, the power of the ultrasonic knife is adjusted to a second set value; wherein the first set value is smaller than the second set value, and the second set value is smaller than the initial set value.
[0037] On the other hand, a computer device is provided, comprising a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the above method.
[0038] On the other hand, a computer-readable storage medium is provided, on which a computer program / instruction is stored, characterized in that the computer program / instruction implements the steps of the above method when executed by a processor.
[0039] On the other hand, a computer program product is provided, comprising a computer program / instruction, characterized in that the computer program / instruction implements the steps of the above method when executed by a processor.
[0040] The present application has at least the following technical effects or advantages: the working state of the ultrasonic scalpel is identified by an ultrasonic scalpel working state recognition model, and the power of the ultrasonic scalpel is adjusted according to the working state of the ultrasonic scalpel, which not only avoids serious thermal damage to the tissue caused by the ultrasonic scalpel, but also makes the ultrasonic scalpel rod less likely to break. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a flowchart of a method for training an ultrasonic knife working state recognition model in one embodiment of the present application;
[0042] Figure 2 This is a schematic diagram of the ranking of the contribution rate of time series features to sample classification in one embodiment of the present application;
[0043] Figure 3 The figure is a flow chart of using the SVM model to train the state recognition model in one embodiment of the present application. DETAILED DESCRIPTION
[0044] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0045] Embodiment 1
[0046] See also Figure 1 A training method for an ultrasonic knife working state recognition model comprises the following steps:
[0047] S101, collecting a voltage signal when the ultrasonic knife works under a specific current;
[0048] Preferably, after collecting the voltage signal of the ultrasonic knife working under a specific current, further preprocessing can be performed. Since the amount of current and voltage data collected from biological tissues is huge, the data processing volume is large and the efficiency is low, it is necessary to perform preprocessing operations such as downsampling and shearing on the original data, and mark each data category for subsequent classification model training and performance evaluation of the trained model.
[0049] By selecting points at regular intervals in the data set, the number of data points can be reduced. This helps reduce the amount of computation when processing large data sets and reduces the storage requirements of the data without significant loss of information.
[0050] In order to meet the application requirements of real-time detection, the collected data is cut and processed to simulate the state of sliding window detection in actual operation. At the same time, it has the effect of increasing the amount of data samples. In order to avoid the interference of invalid data before and after power-off on model training, the cutting start and cutting end thresholds are set to remove the amount of invalid data.
[0051] S102, extracting time series features from the voltage signal to obtain time series features; the time series features include at least one of outliers, local minima, relative variability of the mean of power spectrum density on subintervals, the gap between the maximum value of the fitting curve and the maximum value of the kernel smooth distribution curve, and relative entropy between extreme value distribution model fitting data and kernel smooth distribution;
[0052] Under a fixed current, different voltage signals that change with time will be generated when ultrasonic knife is used to cut different objects. By extracting and analyzing the time series features of the voltage signal, the top five time series features with high contribution rate to sample classification and moderate correlation are selected from 1080 time series features (outliers, local minima, relative variability of the mean of power spectrum density on the sub-interval, the gap between the maximum value of the fitting curve and the maximum value of the kernel smooth distribution curve, and the relative entropy between the extreme value distribution model fitting data and the kernel smooth distribution). Figure 2 As shown, the first five time series are used to train and predict the classification model, so that the algorithm can take into account both real-time and accuracy requirements.
[0053] Outliers: In statistics, outliers refer to data points that deviate significantly from other observations. In some cases, data points may not conform to the expected linear trend and linear model, and are thus identified as outliers. Before extracting linear outlier features, the data needs to be detrended. Difference in the detrending method is a commonly used time series preprocessing technique, which is mainly used to eliminate the trend component in the data, thereby making the data more stable and reducing the autocorrelation of the data. At the same time, through difference processing, the time series model can better capture the periodicity and random fluctuations in the data, thereby improving the prediction accuracy of the model. Linear outlier features are extracted from the data after differential detrending for subsequent machine learning training and classification models.
[0054]
[0055] Among them, y i is the i-th data point in the time series data y of the voltage signal, L<y i <U,N rem is the number of remaining (non-outlier) data points. is the mean after outliers are removed, which is the linear outlier feature. L and U are the upper and lower quantiles, respectively. In this algorithm, the calculation formula is as follows:
[0056] L = prctile(y,p)
[0057] U=prctile(y,100-p),p=5
[0058] Prctile is a built-in function in MATLAB, where p represents the pth percentile of the data set y, which means that p% of the observations in the data set are less than or equal to L, and (100-p)% of the observations are less than or equal to U.
[0059] Local minimum: In time series analysis, local extreme values refer to the local maximum and local minimum in a time series. A local minimum is a point in a time series whose value is less than or equal to the value of its adjacent points within a certain interval.
[0060]
[0061] Among them, n w is the number of local windows, y w represents all the data in the jth window, and the absolute values of the local minimum values of each window are accumulated and then averaged to obtain y meanabsmin , which is used to represent the local extreme minimum characteristics of the input data y.
[0062] Relative variability of the mean of the power spectral density (PSD) on the subintervals: The standard deviation reflects the variability or stability of the interval. The standard deviation of the mean of the PSD of the two subintervals is calculated and compared with the standard deviation of the entire power spectrum. This ratio can be used to measure the stability or variability of the power spectral density on the two subintervals relative to the variability of the entire power spectral density.
[0063]
[0064] Assume that the power spectrum density is S, and divide it into equal-length subintervals, denoted as S1 and S2, respectively. The relative variability y statav2 Use the standard deviation σ of subinterval S1 S1 and the total interval S S The ratio of the two shows the comparison between the dispersion of the power of the first part and the dispersion of the whole power spectrum when the power spectrum is divided into two parts. If this ratio is close to 1, it means that the two parts of the power spectrum change relatively consistently; if the ratio is larger or smaller, it means that the first part may be more dispersed or concentrated in power than the whole power spectrum.
[0065] The difference between the maximum value of the fitted curve and the maximum value of the kernel smooth distribution curve: Use the filter function to perform a 2nd-order running average to preprocess the data, then fit a normal distribution to the data, and calculate the difference between the maximum value of the fitted curve and the maximum value of the kernel smooth distribution curve.
[0066]
[0067] E peak,y is the peak error of the Gaussian fit of the time series data y of the voltage signal, is the detrended time series y d The peak error of the Gaussian fit of y kscn_peaksepy Measures how close the distribution of a time series is to a Gaussian distribution.
[0068] Relative entropy between extreme value distribution model fitting data and kernel smooth distribution: Use extreme values to simulate the probability distribution of maximum or minimum values, and compare the simulated data with the kernel smooth distribution data to calculate the relative entropy, which is used to measure the difference between the fitted extreme value distribution and the kernel smooth distribution of the data.
[0069]
[0070]
[0071] The time series data y of the voltage signal contains n observations, y k is the kth observation in y, K his the kernel function, h is the bandwidth. Y is a random variable, and the kernel density of Y’s empirical distribution is used to estimate To approximate the probability density distribution of the true distribution of Y, for the fitted extreme value distribution, its probability density function is f EV (y; θ) represents the distribution parameter. relent That is, the relative entropy characteristic between the extreme value distribution model fitting data and the kernel smooth distribution.
[0072] S103, training the original model according to the time series features and the corresponding labels to obtain an ultrasonic knife working state recognition model.
[0073] Among them, the labels may include blood vessels-cut, other tissues-cut, blood vessels-uncut and other tissues-uncut. In this case, it is necessary to obtain the voltage signal when the ultrasonic knife cuts different biological tissues under a specific current as the input data of the model. Preferably, the labels may also be blood vessels-cut, other tissues-cut, blood vessels-uncut, other tissues-uncut and gasket. In this case, it is necessary to obtain the voltage signal when the ultrasonic knife cuts different biological tissues and gaskets under a specific current as the input data of the model. Figure 1 The training method of the ultrasonic knife working state recognition model shown in has five labels, which is the optimal solution. It should be noted that the protection scope of this application is not only five labels, but also includes four labels: blood vessel-cut, other tissue-cut, blood vessel-uncut and other tissue-uncut.
[0074] Preferably, the SVM model can be used as the original model. Figure 1 and 3 As shown in the figure, SVM (Support Vector Machine) is a supervised learning binary classification model. Its core idea is to find a separation hyperplane with the largest interval in the feature space to achieve binary classification of data. After feature extraction and screening, the data is a five-dimensional feature vector. The feature vector is mapped to a high-dimensional space using a kernel function, and finally a hyperplane is found to achieve the optimal segmentation effect. For classification problems, the goal of SVM is to maximize the interval between two types of data points. First, the original problem is transformed into a dual problem using the Lagrange multiplier method, and then the support vector that plays a decisive role in the decision boundary is selected. According to the support vector and the Lagrange multiplier, the final decision function can be constructed.
[0075] Kernel function: Kernel function can map feature vectors to high-dimensional space and segment data in high-dimensional space. In view of the fact that the number of features of data samples is always small, the radial basis function (RBF) kernel is used to deal with nonlinear problems. By mapping data to high-dimensional space, the RBF kernel makes the data that was originally linearly inseparable in low-dimensional space linearly separable in high-dimensional space, thereby enhancing the ability of SVM to deal with nonlinear problems.
[0076] Cross-validation: Cross-validation is used in model performance evaluation. The dataset is randomly divided into K equal-sized subsets (or as equal as possible). For each iteration: select one of the subsets as the test set and combine the remaining K-1 subsets as the training set. Train the SVM model and evaluate its performance on the test set. Repeat K times, selecting a different subset as the test set each time.
[0077] Cross-validation can evaluate the performance of a model on unseen data, that is, the generalization ability of the model. By training and testing the model on different data subsets, you can more accurately understand the performance of the model in actual applications. Through cross-validation, you can detect whether the model has been overfitted to the training data. If the model has good classification performance on the training set, but low classification accuracy on the cross-validation set, this may indicate that the model has been overfitted. Finally, you can use cross-validation to optimize the model parameters.
[0078] The ultrasonic scalpel working state recognition model obtained by the above method can realize the recognition of the ultrasonic scalpel working state, thereby identifying whether the ultrasonic scalpel has completed cutting, providing technical support for the adjustment of the ultrasonic scalpel power, thereby avoiding the ultrasonic scalpel from causing serious thermal damage to the tissue and making the ultrasonic scalpel rod less likely to break.
[0079] Embodiment 2
[0080] After obtaining the trained ultrasonic scalpel working state recognition model, the model can be used to recognize the ultrasonic scalpel working state. The present application also discloses an ultrasonic scalpel working state recognition method, which includes the following steps:
[0081] S201, collecting a voltage signal when the ultrasonic knife works under a specific current;
[0082] S202. Extract time series features of the voltage signal to obtain time series features; the time series features include at least one of linear outlier features, local extreme minimum values, relative variability of the mean of power spectrum density on subintervals, the gap between the maximum value of the fitting curve and the maximum value of the kernel smooth distribution curve, and the relative entropy between the extreme value distribution model fitting data and the kernel smooth distribution; S203. Input the time series features into the above-mentioned ultrasonic knife working state recognition model to obtain the recognition result.
[0083] Among them, the recognition results can be four types: blood vessels-cut, other tissues-cut, blood vessels-not cut and other tissues-not cut. At this time, it is necessary to obtain the voltage signal of the ultrasonic knife when cutting different biological tissues under a specific current as the input data of the model. Preferably, the recognition results can also be five types: blood vessels-cut, other tissues-cut, blood vessels-not cut, other tissues-not cut and gaskets. At this time, it is necessary to obtain the voltage signal of the ultrasonic knife when cutting different biological tissues and gaskets under a specific current as the input data of the model. Figure 1 The training method of the ultrasonic knife working state recognition model shown in has five recognition results, which is the optimal solution. It should be noted that the protection scope of this application is not only five recognition results, but also includes four recognition results: blood vessel-cut, other tissue-cut, blood vessel-not cut and other tissue-not cut.
[0084] Embodiment 3
[0085] After obtaining the recognition result of the ultrasonic scalpel working state according to the method in the second embodiment, the output power of the ultrasonic scalpel can be adjusted according to the recognition result. The present application also discloses an ultrasonic scalpel power control method, including the ultrasonic scalpel working state recognition method, and also including the following steps:
[0086] When the identification result is blood vessel-cut or other tissue-cut, the power of the ultrasonic knife is adjusted to 0;
[0087] When the identification result is that the blood vessel is not cut, the power of the ultrasonic knife is adjusted to a first setting value;
[0088] When the identification result is other tissues-not cut, the power of the ultrasonic knife is adjusted to be greater than the initial setting value;
[0089] The first setting value is smaller than the initial setting value. Specifically, the first setting value can be set to 50% of the initial value. When the identification result is other tissues-not cut, the power of the ultrasonic knife is adjusted to 125% of the initial setting value.
[0090] Preferably, the specific operation of adjusting the power of the ultrasonic scalpel to 0 may be to turn off the excitation switch of the ultrasonic scalpel and adjust the power of the ultrasonic scalpel to the initial setting value.
[0091] Embodiment 4
[0092] After obtaining the recognition result of the ultrasonic scalpel working state according to the method in the second embodiment, the output power of the ultrasonic scalpel can be adjusted according to the recognition result. The present application also discloses an ultrasonic scalpel power control method, including the ultrasonic scalpel working state recognition method, and also including the following steps:
[0093] When the identification result is blood vessel-cut or other tissue-cut, the power of the ultrasonic knife is adjusted to 0;
[0094] When the identification result is that the blood vessel is not cut, the power of the ultrasonic knife is adjusted to a first setting value;
[0095] When the identification result is other tissues-not cut, the power of the ultrasonic knife is adjusted to be greater than the initial setting value;
[0096] When the identification result is a gasket, adjusting the power of the ultrasonic knife to a second set value;
[0097] The first setting value is less than the second setting value, and the second setting value is less than the initial setting value. Specifically, the first setting value can be set to 50% of the initial value, and the second setting value can be set to 75% of the initial setting value. When the recognition result is other tissue-not cut, the power of the ultrasonic knife is adjusted to 125% of the initial setting value.
[0098] Preferably, the specific operation of adjusting the power of the ultrasonic scalpel to 0 may be to turn off the excitation switch of the ultrasonic scalpel and adjust the power of the ultrasonic scalpel to the initial setting value.
[0099] Embodiment 5
[0100] This embodiment provides a computer device corresponding to the method in the above-mentioned embodiment one, two, three or four, and the computer device includes a memory, a processor and a computer program stored in the memory; the processor executes the computer program in the memory to implement the steps of the method in the above-mentioned embodiment one, two, three or four.
[0101] In some implementations, the memory may be a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory.
[0102] In some other implementations, the processor may be a central processing unit (CPU), a digital signal processor (DSP), or other general-purpose processors of various types, which are not limited herein.
[0103] Embodiment 6
[0104] This embodiment provides a computer-readable storage medium corresponding to the method in the above-mentioned embodiment one, two, three or four, on which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, the steps of the method in the above-mentioned embodiment one, two, three or four are implemented.
[0105] Computer readable storage media can be tangible devices that hold and store instructions used by instruction execution devices. Computer readable storage media can be, for example, but not limited to, electronic storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any combination thereof.
[0106] Embodiment 7
[0107] This embodiment provides a computer program product corresponding to the method in the above-mentioned embodiment one, two, three or four, including a computer program / instruction, which implements the steps of the method in the above-mentioned embodiment one, two, three or four when executed by a processor.
[0108] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0109] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the intention that the claimed invention requires more features than those expressly recited in each claim. Rather, as reflected in the claims, inventive aspects lie in less than all of the features of the individual embodiments previously disclosed. Therefore, the claims that follow the detailed description are hereby expressly incorporated into the detailed description, with each claim itself serving as a separate embodiment of the present invention.
[0110] Those skilled in the art will appreciate that the modules or units or groups of the devices in the examples disclosed herein may be arranged in the device as described in the embodiment, or alternatively may be located in one or more devices different from the devices in the example. The modules in the foregoing examples may be combined into one module or may be divided into multiple submodules.
[0111] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or groups in the embodiments may be combined into one module or unit or group, and in addition they may be divided into a plurality of submodules or subunits or subgroups. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0112] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0113] In addition, some of the embodiments are described herein as methods or combinations of method elements that can be implemented by a processor of a computer system or by other devices that perform the functions. Therefore, a processor with necessary instructions for implementing the method or method elements forms a device for implementing the method or method elements. In addition, the elements described herein of the device embodiments are examples of devices for implementing the functions performed by the elements for the purpose of implementing the invention.
[0114] The various techniques described herein may be implemented in combination with hardware or software, or a combination thereof. Thus, the method and apparatus of the present invention, or some aspects or portions of the method and apparatus of the present invention may be in the form of program codes (i.e., instructions) embedded in a tangible medium, such as a floppy disk, a CD-ROM, a hard disk drive, or any other machine-readable storage medium, wherein when the program is loaded into a machine such as a computer and executed by the machine, the machine becomes a device for practicing the present invention.
[0115] In the case where the program code is executed on a programmable computer, the computing device generally includes a processor, a storage medium readable by the processor (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device. The memory is configured to store the program code; the processor is configured to execute the method of the present invention according to the instructions in the program code stored in the memory.
[0116] By way of example and not limitation, computer readable media include computer storage media and communication media. Computer readable media include computer storage media and communication media. Computer storage media stores information such as computer readable instructions, data structures, program modules or other data. Communication media generally embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and includes any information delivery medium. Any combination of the above is also included within the scope of computer readable media.
[0117] As used herein, unless otherwise specified, the use of ordinal numbers "first," "second," "third," etc. to describe common objects merely indicates that different instances of similar objects are involved, and is not intended to imply that the objects so described must have a given order in time, space, order, or in any other manner.
[0118] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the invention thus described. In addition, it should be noted that the language used in this specification is selected primarily for readability and teaching purposes, rather than for explaining or defining the subject matter of the present invention. Therefore, many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is illustrative, not restrictive, with respect to the scope of the present invention, which is defined by the appended claims.
[0119] Finally, it should be noted that the present invention does not explain in detail the common knowledge recognized by technicians in this field. The above is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A training method for an ultrasonic scalpel working state recognition model, characterized in that: The method comprises the following steps: S101, collecting a voltage signal when the ultrasonic knife works under a specific current; S102, extracting time series features from the voltage signal to obtain time series features; the time series features include at least one of outliers, local minima, relative variability of the mean of power spectrum density on subintervals, the gap between the maximum value of the fitting curve and the maximum value of the kernel smooth distribution curve, and relative entropy between extreme value distribution model fitting data and kernel smooth distribution; S103: Train the original model using the time series features and corresponding labels to obtain an ultrasonic knife working state recognition model.
2. The training method of the ultrasonic knife working state recognition model according to claim 1 is characterized in that: Outlier y rem Obtained through the following formula: Among them, y i is the i-th data point in the time series data y of the voltage signal, L<y i <U,N rem is the number of non-outlier data points; L and U are the upper and lower quantiles, respectively; Local minimum y meanabsmin Obtained through the following formula: Among them, n w is the number of local windows, y w Represents all data in the jth window; Relative variability of the mean of the power spectral density on the subintervals y statav2 Obtained through the following formula: Where S is the power spectrum density, which is divided into equal-length subintervals denoted as S1 and S2, σ S1 is the standard deviation σ of subinterval S1 S1 , σ S1 is the standard deviation σ of the total interval S S1 ; The difference y between the maximum value of the fitted curve and the maximum value of the kernel smoothed distribution curve kscn_peaksepy Obtained through the following formula: Among them, E peak,y is the peak error of the Gaussian fit of the voltage signal time series data y, E peak,yd is the detrended time series y d The peak error of the Gaussian fit; Relative entropy y between extreme value distribution model fitting data and kernel smoothing distribution relent Obtained through the following formula: The time series data y of the voltage signal contains n observation values, y k is the kth observation in y, K h is the kernel function, h is the bandwidth, Y is the random variable, and the kernel density of the empirical distribution of Y is estimated To approximate the probability density distribution of the true distribution of Y, for the fitted extreme value distribution, its probability density function is f EV (y;θ) represents, θ is the distribution parameter.
3. A method for identifying the working state of an ultrasonic knife, characterized in that: The method comprises the following steps: S201, collecting a voltage signal when the ultrasonic knife works under a specific current; S202, extracting time series features from the voltage signal to obtain time series features; the time series features include at least one of linear outlier features, local extreme minimum values, relative variability of the mean of power spectrum density on subintervals, the gap between the maximum value of the fitting curve and the maximum value of the kernel smooth distribution curve, and relative entropy between extreme value distribution model fitting data and kernel smooth distribution; S203, inputting the time series features into the ultrasonic knife working state recognition model as described in claim 1 or 2 to obtain a recognition result.
4. The ultrasonic scalpel working status recognition method according to claim 3, characterized in that: The voltage signal is a voltage signal generated when the ultrasonic knife cuts different objects.
5. The ultrasonic scalpel working status recognition method according to claim 4, characterized in that: The identification result includes blood vessel-cut, other tissue-cut, blood vessel-uncut and other tissue-uncut; preferably, the identification result also includes a gasket.
6. A method for controlling ultrasonic knife power, characterized in that: The method comprises the following steps: When the identification result is blood vessel-cut or other tissue-cut, the power of the ultrasonic knife is adjusted to 0; When the identification result is that the blood vessel is not cut, the power of the ultrasonic knife is adjusted to a first set value; When the identification result is other tissues-not cut, the power of the ultrasonic knife is adjusted to be greater than the initial setting value; Among them, the first set value is smaller than the initial set value; the recognition result is obtained by the working status recognition method according to any one of claims 3-6.
7. The ultrasonic knife power control method according to claim 6, characterized in that: The method further comprises the steps of: When the identification result is a gasket, adjusting the power of the ultrasonic knife to a second set value; The first setting value is smaller than the second setting value, and the second setting value is smaller than the initial setting value.
8. A computer device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 7.
9. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
