Ultrasonic instrument with dynamic energy density control function and control method

By analyzing skin and contact impact data in real time, deep neural networks and RNN models are used to generate ultrasonic parameters, achieving dynamic energy density control of ultrasonic beauty equipment, solving the problem of inaccurate energy control in the existing technology, and improving the stability of the treatment effect. accuracy and accuracy.

CN118831270AInactive Publication Date: 2024-10-25河南立科达医疗用品科技有限公司
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410823033.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-10-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing ultrasonic beauty equipment cannot dynamically adjust energy density according to individual skin type and real-time response, resulting in the inability to achieve personalized and precise energy control, which may result in excessive or insufficient treatment effects.

Method used

Real-time collection of skin and contact impact data is used to analyze energy density and uniformity through a deep neural network model to generate ultrasonic parameters to achieve dynamic energy density control. It is combined with the RNN model for frequency and intensity compensation to ensure precise control of energy density.

Benefits of technology

It achieves personalized and more precise dynamic energy control, solves the problem of performance degradation of ultrasonic instruments during long-term use, and improves the stability and accuracy of treatment effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118831270A_ABST
    Figure CN118831270A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of energy density control, and discloses an ultrasonic instrument with a dynamic energy density control function and a control method. Comprising the steps that energy density influence data are collected in real time, and the energy density influence data comprise skin influence data and contact influence data; processing the contact influence data to obtain energy uniformity; analyzing the energy density influence data and the energy uniformity, and judging whether an abnormal instruction is generated or not; if the abnormal instruction is not generated, ultrasonic parameters are generated according to the energy density influence data and the energy uniformity, and the ultrasonic instrument is controlled to operate according to the ultrasonic parameters; according to the method, adjustment can be carried out in time according to the real skin response condition of each person, and personalized dynamic energy regulation and control with higher precision are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of energy density control, and more specifically, to an ultrasonic instrument with a dynamic energy density control function and a control method thereof. Background Art

[0002] In recent years, ultrasonic technology has been widely used in the field of beauty due to its non-invasiveness and significant effects. Traditional ultrasonic beauty equipment, such as "ultrasonic cannon" and "supersonic cannon", mainly emit high-frequency ultrasonic waves to activate the skin's self-repair ability, promote tissue regeneration and blood circulation, and accelerate metabolism, thereby achieving beauty effects such as firming the skin and eliminating fine lines. With the advancement of technology, high-dimensional ultrasonic beauty technologies such as "7D" and "8D" have emerged. These technologies can more accurately control the depth and distribution of energy, such as performing specific beauty treatments on skin layers of different depths. This precise control greatly improves the safety and effectiveness of beauty treatments. However, it is impossible to dynamically and individually adjust the energy density of ultrasonic waves according to each person's skin type, thickness and specific problems.

[0003] The Chinese patent with the authorization announcement number CN1 09045490B discloses a beauty system integrating ultrasound and skin quantification; it includes an information acquisition and control system, an ultrasound system and a quantification system; the quantification system acquires skin quantification parameters and sends them to the information acquisition and control system, the information acquisition and control system receives the skin quantification parameters to generate a three-dimensional structural image and three-dimensional data of human skin wrinkles; the ultrasound system includes a mode control and an ultrasound transducer electrically connected to the information acquisition and control system, the mode control is also electrically connected to a main oscillation circuit, a driving circuit, a power amplification circuit and a matching circuit in sequence; by acquiring each person's skin quantification parameters to generate a three-dimensional structural image and three-dimensional data of human skin wrinkles, the ultrasound output mode and energy are changed, so that the ultrasound acts more evenly on the entire face, and better beauty effects can be achieved;

[0004] Although the above technology can generate three-dimensional structural images and three-dimensional data of human skin wrinkles according to each person's skin quantitative parameters to change the output energy of ultrasound, the three-dimensional structural images and three-dimensional data of human skin wrinkles are collected before the start of ultrasonic beauty treatment, and can only control the energy output at the beginning of ultrasonic beauty treatment, and cannot provide real-time and effective decision-making support for the energy output during ultrasonic beauty treatment. It is necessary to monitor the real-time response of the skin during the actual treatment process (such as temperature changes, color index changes, etc.) to control the energy density in real time to avoid over-treatment or under-treatment.

[0005] In view of this, the present invention proposes an ultrasonic instrument with dynamic energy density control function and a control method to solve the above problems. Summary of the invention

[0006] In order to overcome the above-mentioned defects of the prior art and to achieve the above-mentioned purpose, the present invention provides the following technical solution: an ultrasonic instrument control method with a dynamic energy density control function, comprising:

[0007] Real-time collection of energy density impact data, including skin impact data and contact impact data;

[0008] Process the contact impact data to obtain energy uniformity;

[0009] Analyze the energy density impact data and energy uniformity to determine whether abnormal instructions are generated;

[0010] If no abnormal instruction is generated, ultrasonic parameters are generated according to the energy density affecting data and energy uniformity, and the operation of the ultrasonic instrument is controlled according to the ultrasonic parameters.

[0011] Further, the skin impact data includes skin structure data and skin condition data;

[0012] The skin structure data includes oil content, water content and elasticity; the skin condition data includes temperature and color index;

[0013] The contact impact data includes contact pressure and sound wave distribution; the contact pressure is the pressure applied by the ultrasonic probe on the skin surface; the energy distribution is the distribution of ultrasonic energy in each layer of the skin.

[0014] Furthermore, the method for obtaining the color index is as follows: a multispectral camera is used to sample and photograph the skin, wherein the multispectral camera has a built-in filter combination of multiple different wavelengths, and a total of m skin images are obtained, wherein the skin images correspond to the wavelengths one by one; n pixel windows are preset, wherein one skin image includes n pixel windows; the light intensity value corresponding to each pixel window is extracted from each skin image; a reference light intensity value of each pixel window in each skin image is obtained, wherein the reference light intensity value is the light intensity value corresponding to each pixel window in each skin image under the condition that there is no skin in the skin image; the absorbance in each skin image is calculated according to the light intensity value corresponding to each pixel window in each skin image and the reference light intensity value; the calculation formula of the absorbance is: In the formula, A i is the absorbance of the i-th skin image, I ij is the light intensity value of the jth pixel window in the i-th skin image, I′ ijis the reference light intensity value of the jth pixel window in the i-th skin image, i∈[1,m], j∈[1,n]; w pigments and corresponding molar absorbances in each skin image are obtained, that is, a skin image includes w pigments, where the molar absorbances of different pigments at different wavelengths are fixed values; the optical path length L is preset; according to the molar absorbance, optical path length and absorbance, the concentration value of each pigment in each skin image is calculated; the expression of the concentration value is: In the formula, C ri is the concentration value of the rth pigment in the i-th skin image, ε ri is the molar absorbance of the rth pigment in the i-th skin image, r∈[1,w];

[0015] The concentration values ​​corresponding to the M pigments in each skin image are used as evaluation data, and the evaluation data are input into the trained color prediction model to predict the corresponding color index;

[0016] The training process of the color prediction model includes:

[0017] Pre-collecting the color indexes corresponding to a group of evaluation data, converting the evaluation data and the corresponding color indexes into a corresponding set of feature vectors, where a is an integer greater than 1;

[0018] Each group of feature vectors is used as the input of the color prediction model. The color prediction model takes a group of predicted color indexes corresponding to each group of evaluation data as output, and takes the actual color index corresponding to each group of evaluation data as the prediction target. The actual color index is the pre-collected color index corresponding to the evaluation data; minimizing the sum of the prediction errors of all evaluation data is used as the training goal; the color prediction model is a deep neural network model.

[0019] Furthermore, the method for obtaining energy uniformity includes:

[0020] The energy distribution is converted into an M×N matrix, where M represents M layers of skin and N represents N positions in a layer of skin;

[0021] Subtract the energy of each layer of skin corresponding to each position from the energy of the remaining M-1 layers of skin corresponding to the same position in turn to obtain the energy difference of each position in each layer of skin: add the energy difference corresponding to each position in each layer of skin and divide it by M-1 to obtain the energy mean of each position in each layer of skin; add the energy mean of the same position in each layer of skin and divide it by M to obtain the position difference, and take the mean of all position differences as the first energy uniformity;

[0022] The energy of the same layer of skin is added up and divided by N to obtain the energy mean of M layers of skin; the energy standard deviation of each layer of skin is calculated. The expression of the energy standard deviation is: In the formula, NBi′ is the energy standard deviation of the i′th layer of skin, P′ i′j′ is the energy at the j′th position in the i′th layer of skin, is the energy mean of the i′th layer of skin, i′∈[1,M],j′∈[1,N]; the mean of the energy standard deviation of the M layers of skin is taken as the second energy uniformity;

[0023] The average of the first energy uniformity and the second energy uniformity is taken as the energy uniformity.

[0024] Furthermore, the method for determining whether an abnormal instruction is generated includes:

[0025] The energy distribution in the energy density impact data is replaced with energy uniformity, and the energy impact data after the replacement is used as analysis data. The analysis data is input into the trained anomaly analysis model to predict whether there is data anomaly;

[0026] The training process of the anomaly analysis model includes:

[0027] Pre-setting corresponding judgment results for b groups of analysis data, where b is an integer greater than 1, and the judgment results include abnormal data and normal data, and different digital labels are set for the abnormal data and the normal data; marking the digital labels of the judgment results as judgment labels, and converting the analysis data and the corresponding judgment labels into a corresponding set of feature vectors;

[0028] Each group of feature vectors is used as the input of the anomaly analysis model. The anomaly analysis model uses a group of prediction judgment labels corresponding to each group of analysis data as output, and uses the actual judgment labels corresponding to each group of analysis data as the prediction target. The actual judgment labels are the digital labels of the judgment results corresponding to the analysis data set in advance. Minimizing the sum of the prediction errors of all analysis data is used as the training target. The anomaly analysis model is a deep belief network model.

[0029] If the judgment result corresponding to the output judgment label is data abnormality, an abnormal instruction is generated;

[0030] If the judgment result corresponding to the output judgment label is that the data is normal, no abnormal instruction is generated.

[0031] Furthermore, the ultrasonic parameters include frequency, intensity and action time;

[0032] The step of generating ultrasonic parameters comprises:

[0033] Step 1: Randomly generate an initial antibody population X(0) of size q = {X1, X2, X3, ... X q};Preset iteration threshold;

[0034] Step 2: Determine the fitness function;

[0035] Step 3: Calculate the fitness of each antibody in the initial antibody population (0), select e antibodies with the largest fitness, and construct a memory population X m (t);

[0036] Step 4: Memory population X m Each antibody in (t) is cloned according to the calculated clone size to generate a clone antibody population in is the qth cloned antibody in the clonal antibody group;

[0037] Step 5: Cloning Antibody Group X c Each antibody in (t) is subjected to cloud adaptive mutation using a cloud adaptive mutation operator to generate a mutant antibody group X d (t);

[0038] Step 6: Cloning Antibodies from Population X c (t) randomly selects h antibodies as parent antibodies for antibody recombination to generate offspring antibodies S c , until the cloned antibody group X c When the number of unselected antibodies in (t) is less than h, antibody recombination is stopped and a recombinant antibody group X is generated. r (t); Recombinant antibody group X r (t) includes multiple progeny antibodies S c ;

[0039] Step 7: Merge variant antibody group X d (t) and recombinant antibody group X r (t), generate a combined antibody population X L (t);

[0040] Step 8: Randomly generate g new antibodies and merge antibody group X L The g antibodies with the smallest fitness in (t) are replaced by g new antibodies generated randomly;

[0041] Step 9: If the number of cycles t is less than the iteration threshold, set t = t + 1 and select the merged antibody group X L The e antibodies with the largest fitness in (t) form a new memory population X m (t+1), loop steps 3 to 8; if the number of iterations t is equal to the iteration threshold, the loop ends and the combined antibody group X is obtained. L Ultrasonic parameters corresponding to the antibody with the largest fitness in (t).

[0042] Furthermore, in step 1, the antibodies in the initial antibody group X(0) correspond to R groups of ultrasonic parameters in the preset parameter set, R>q, and one antibody corresponds to a set of historical ultrasonic parameters; the range of the antibody is the R groups of historical ultrasonic parameters;

[0043] In step 2, the fitness function is expressed as: I =PP I ;

[0044] In the formula, f I is the fitness of the first antibody, PP I is the matching degree of the I-th antibody, I∈[1,q];

[0045] The matching degree is obtained by using the ultrasonic parameters corresponding to the analysis data and the antibody as test data, inputting the test data into a trained matching degree prediction model, and predicting the corresponding matching degree; the training process of the matching degree prediction model is consistent with the training process of the color prediction model, and is also a deep neural network model;

[0046] In step 4, the method for calculating the clone size includes:

[0047]

[0048] Φ I =min(exp(||X I -X J ||));

[0049] In the formula, R I is the clone size of the first antibody, Int is the rounding function, q is the size of the antibody group, Φ I is the affinity of the first antibody, min is the minimum function, exp is the natural exponential function, ||X I -X J || is the Euclidean distance between the I-th antibody and the J-th antibody, I≠J, J∈[1,q];

[0050] In step 6, the progeny antibody S c The calculation methods include:

[0051]

[0052] In the formula, X′ h is the hth parent antibody, s h is the hth scale factor, which is a randomly generated real number and all h scale factors are not zero.

[0053] Further, the operation time of the ultrasonic instrument is collected;

[0054] The running time includes single running time and total running time; single running time is the time from the start of use of the ultrasonic instrument to the current real-time collection of energy density impact data; total running time is the time from the start of use of the ultrasonic instrument to the current real-time collection of energy density impact data.

[0055] Further, according to the running time, a compensation amount of the ultrasonic parameter is obtained, and the ultrasonic parameter is compensated;

[0056] The compensation amount includes frequency compensation amount and intensity compensation amount;

[0057] The method for obtaining the compensation amount of ultrasonic parameters includes:

[0058] The total running time and the frequency in the generated ultrasonic parameters are used as the first research data, and the total running time and the intensity in the generated ultrasonic parameters are used as the second research data; the first research data is input into the trained frequency compensation analysis model to predict the frequency compensation amount and mark it as the first frequency compensation amount; the second research data is input into the trained intensity compensation analysis model to predict the intensity compensation amount and mark it as the first intensity compensation amount; the training process of the frequency compensation analysis model and the intensity compensation analysis model are consistent with the training process of the color prediction model, and both are deep neural network models;

[0059] The total running time is subtracted from the single running time to obtain the historical running time. T consecutive time points are selected from the historical running time, where T is an integer greater than 1, and are marked as selected points. The usage time corresponding to each selected point is obtained. The usage time corresponding to each selected point is the time from when the ultrasonic instrument is put into use to when each selected point is obtained. The ultrasonic parameters corresponding to each selected point are then obtained. The frequency compensation amount corresponding to each selected point is obtained through the frequency compensation analysis model, and is marked as the selected frequency compensation amount. The intensity compensation amount corresponding to each selected point is obtained through the intensity compensation analysis model, and is marked as the selected intensity compensation amount.

[0060] The time point corresponding to the current real-time collected energy density impact data is marked as the current time point; the selected frequency compensation amount corresponding to each selected point is input into the trained frequency compensation prediction model, the frequency compensation amount corresponding to the current time point is predicted, and it is marked as the second frequency compensation amount; the selected intensity compensation amount corresponding to each selected point is input into the trained intensity compensation prediction model, the intensity compensation amount corresponding to the current time point is predicted, and it is marked as the second intensity compensation amount;

[0061] The training process of the frequency compensation prediction model includes:

[0062] Pre-collect T′ continuous frequency compensation amounts, where T′>T; preset a sliding step size L′ and a sliding window length; convert T′ continuous frequency compensation amounts into corresponding training samples using a sliding window method, use the training samples as inputs of a frequency compensation prediction model, predict the frequency compensation amount after the sliding step size L′ as output, use the subsequent frequency compensation amount of each training sample as a prediction target, use the mean absolute percentage error MAPE to evaluate the model accuracy of the prediction results, and when the calculated MAPE is less than the preset MAPE, the frequency compensation prediction model training is completed; generate a frequency compensation prediction model that predicts the frequency compensation amount at future moments based on the frequency compensation amount; wherein the frequency compensation prediction model is an RNN neural network model;

[0063] The training process of the intensity compensation prediction model is consistent with that of the frequency compensation prediction model, and is also an RNN neural network model;

[0064] The average of the first frequency compensation amount and the second frequency compensation amount is used as the frequency compensation amount, and the average of the first intensity compensation amount and the second intensity compensation amount is used as the intensity compensation amount.

[0065] An ultrasonic instrument with a dynamic energy density control function, implementing the ultrasonic instrument control method with a dynamic energy density control function, comprises:

[0066] An impact data acquisition module is used to collect energy density impact data in real time, and the energy density impact data includes skin impact data and contact impact data;

[0067] An impact data processing module is used to process the contact impact data and obtain energy uniformity;

[0068] An impact data analysis module is used to analyze energy density impact data and energy uniformity to determine whether to generate abnormal instructions;

[0069] The parameter adjustment module generates ultrasonic parameters according to the energy density impact data and energy uniformity if no abnormal instruction is generated, and controls the operation of the ultrasonic instrument according to the ultrasonic parameters.

[0070] The technical effects and advantages of the ultrasonic instrument and control method with dynamic energy density control function of the present invention are as follows:

[0071] 1. By collecting energy density impact data such as temperature and color index during the use of the instrument in real time, processing and analyzing the energy density impact data, it is determined whether there are any abnormalities during the use of the instrument, so as to adjust the ultrasonic parameters in real time and realize dynamic control of energy density; it can make timely adjustments based on each person's actual skin reaction, realizing personalized and more accurate dynamic energy regulation.

[0072] 2. By collecting operating data and combining it with the established deep neural network model, the frequency compensation and intensity compensation are predicted; at the same time, the frequency compensation and intensity compensation are predicted in combination with the established RNN neural network model; the final frequency compensation and intensity compensation are obtained by combining the two; using the time data in the instrument's usage history, a system learning closed loop is established to achieve dynamic correction of ultrasonic parameters to compensate for the error between the actual output and the set value, ensure precise control of energy density, effectively solve the problem of long-term performance degradation of ultrasonic instruments, and improve the stability and accuracy of instrument use. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] Figure 1 This is a schematic diagram of an ultrasonic instrument with a dynamic energy density control function according to Embodiment 1 of the present invention;

[0074] Figure 2 This is a schematic diagram of an ultrasonic instrument with a dynamic energy density control function according to Embodiment 2 of the present invention;

[0075] Figure 3 This is a flow chart of an ultrasonic instrument control method with a dynamic energy density control function according to Embodiment 3 of the present invention;

[0076] Figure 4 This is a schematic diagram of an electronic device according to Embodiment 4 of the present invention;

[0077] Figure 5 This is a schematic diagram of a storage medium according to Embodiment 5 of the present invention. DETAILED DESCRIPTION

[0078] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0079] Example 1

[0080] See also Figure 1 As shown, the ultrasonic instrument with dynamic energy density control function described in this embodiment includes an impact data acquisition module, an impact data processing module, an impact data analysis module and a parameter adjustment module; each module is connected by wired and / or wireless means to realize data transmission between modules;

[0081] Impact data acquisition module, used for real-time acquisition of energy density impact data;

[0082] Energy density impact data include skin impact data and contact impact data;

[0083] Skin impact data includes skin structure data and skin condition data;

[0084] Skin structure data include oil content, water content, and elasticity;

[0085] The oil content refers to the amount of oily substances (sebum) secreted by the skin surface and sebaceous glands. The higher the oil content, the more frequent scattering and reflection of ultrasound waves will occur in the skin tissue, causing greater attenuation, thereby reducing the degree to which energy penetrates into the skin. Therefore, the energy density needs to be increased, and vice versa.

[0086] Moisture content refers to the amount of water contained in and on the surface of the skin tissue; water is the medium for ultrasound to propagate in the skin tissue. The lower the water content, the greater the impedance of the skin tissue, which makes the propagation resistance of ultrasound in the skin tissue greater, so the energy density needs to be increased, and vice versa.

[0087] Elasticity is the property of skin tissue that it can reversibly deform and return to its original state when subjected to external forces. The worse the elasticity, the worse the focusing effect of ultrasound in the skin tissue, so the energy density needs to be increased, and vice versa.

[0088] The skin structure data are acquired by infrared sensors installed on the ultrasound instrument;

[0089] Skin condition data includes temperature and color index;

[0090] The temperature is the skin surface temperature; the temperature is obtained by the thermocouple sensor installed on the ultrasonic instrument; when the temperature rises, the energy density needs to be reduced to reduce the heat load on the skin and avoid damaging the skin, and vice versa;

[0091] The color index is the overall color condition of the skin surface; the darker the color index, the more melanin synthesis in the skin. In order to make ultrasound penetrate into the skin tissue and promote deep skin metabolism, the energy density needs to be increased, and vice versa.

[0092] The method for obtaining the color index is as follows: a multispectral camera installed on an ultrasonic instrument is used to obtain a sample of the skin and take a photo. The multispectral camera has a built-in filter combination of multiple different wavelengths, and a total of m skin images are obtained, wherein the skin images correspond to the wavelengths one by one; n pixel windows are preset, and the n pixel windows are pre-set by a technician in this field according to actual conditions, wherein a skin image includes n pixel windows; the light intensity value corresponding to each pixel window is extracted from each skin image; a reference light intensity value of each pixel window in each skin image is obtained, and the reference light intensity value is the light intensity value corresponding to each pixel window in each skin image under the condition that there is no skin in the skin image; the absorbance in each skin image is calculated according to the light intensity value corresponding to each pixel window in each skin image and the reference light intensity value; the calculation formula of the absorbance is: In the formula, A i is the absorbance of the i-th skin image, I ij is the light intensity value of the jth pixel window in the i-th skin image, I′ ij is the reference light intensity value of the jth pixel window in the i-th skin image, i∈[1,m], j∈[1,n]; w pigments and corresponding molar absorbances in each skin image are obtained, that is, a skin image includes w pigments, where the molar absorbances of different pigments at different wavelengths are fixed values; the optical path length L is preset, and the preferred optical path length L in this embodiment is 1 cm; the concentration value of each pigment in each skin image is calculated according to the molar absorbance, optical path length and absorbance; the expression of the concentration value is: In the formula, C ri is the concentration value of the rth pigment in the i-th skin image, ε ri is the molar absorbance of the rth pigment in the i-th skin image, r∈[1,w];

[0093] The concentration values ​​corresponding to the M pigments in each skin image are used as evaluation data, and the evaluation data are input into the trained color prediction model to predict the corresponding color index;

[0094] The specific training process of the color prediction model includes:

[0095] Preliminarily collect the color index corresponding to a group of evaluation data, and convert the evaluation data and the corresponding color index into a corresponding set of feature vectors, where a is an integer greater than 1; wherein the color index corresponding to the evaluation data is collected by a person skilled in the art during the dynamic control of historical energy density by a group of different evaluation data, and the corresponding color index is analyzed respectively under the conditions of each group of evaluation data in combination with actual experience;

[0096] Each set of feature vectors is used as the input of the color prediction model. The color prediction model uses a set of predicted color indexes corresponding to each set of evaluation data as output, and uses the actual color index corresponding to each set of evaluation data as the prediction target. The actual color index is the color index corresponding to the evaluation data collected in advance. The training target is to minimize the sum of the prediction errors of all evaluation data. The calculation formula of the prediction error is Z k =(α k -μ k ) 2 , where Z k is the prediction error, k is the group number of the feature vector corresponding to the evaluation data, α k is the predicted color index corresponding to the kth group of evaluation data, μ k is the actual color index corresponding to the kth group of evaluation data; the color prediction model is trained until the sum of the prediction errors reaches convergence and the training is stopped;

[0097] The color prediction model is specifically a deep neural network model, which includes an input layer, a hidden layer, and an output layer; each hidden layer includes multiple neurons, each neuron is connected to the neurons in the next layer, and the connection contains weights, which determine the importance and influence of data transmission in the neural network; each neuron between the hidden layer and the output layer is applied with an activation function, and the activation function is mapped into nonlinearity, allowing the network to learn more complex patterns and features;

[0098] Contact impact data include contact pressure and acoustic wave distribution;

[0099] The contact pressure is the pressure applied by the ultrasonic probe on the skin surface. The contact pressure is obtained by the pressure sensor installed in the ultrasonic probe. The smaller the contact pressure, the more dispersed the energy is on the skin surface, so the energy density needs to be increased, and vice versa.

[0100] Energy distribution refers to the distribution of ultrasonic energy in each layer of the skin. Energy distribution is obtained by using Doppler ultrasound imaging technology, which uses the Doppler effect of ultrasound to depict the movement of fluids and tissues inside the skin, thereby obtaining the distribution of ultrasonic energy in each layer of the skin. Doppler ultrasound imaging technology is an existing technology and will not be described in detail here.

[0101] An impact data processing module is used to process the contact impact data and obtain energy uniformity;

[0102] Methods for obtaining energy uniformity include:

[0103] The energy distribution is converted into an M×N matrix, where M represents M layers of skin and N represents N positions in a layer of skin;

[0104] Subtract the energy of each layer of skin corresponding to each position from the energy of the remaining M-1 layers of skin corresponding to the same position in turn to obtain the energy difference of each position in each layer of skin: add the energy difference corresponding to each position in each layer of skin and divide it by M-1 to obtain the energy mean of each position in each layer of skin; add the energy mean of the same position in each layer of skin and divide it by M to obtain the position difference, and take the mean of all position differences as the first energy uniformity;

[0105] The energy of the same layer of skin is added up and divided by N to obtain the energy mean of M layers of skin; the energy standard deviation of each layer of skin is calculated. The expression of the energy standard deviation is: In the formula, NB i′ is the energy standard deviation of the i′th layer of skin, P′ i′j′ is the energy at the j′th position in the i′th layer of skin, is the energy mean of the i′th layer of skin, i′∈[1,M],j′∈[1,N]; the mean of the energy standard deviation of the M layers of skin is taken as the second energy uniformity;

[0106] Taking the average of the first energy uniformity and the second energy uniformity as the energy uniformity;

[0107] An impact data analysis module is used to analyze energy density impact data and energy uniformity to determine whether to generate abnormal instructions;

[0108] Methods for determining whether an abnormal instruction is generated include:

[0109] The energy distribution in the energy density impact data is replaced with energy uniformity, and the energy impact data after the replacement is used as analysis data. The analysis data is input into the trained anomaly analysis model to predict whether there is data anomaly;

[0110] The specific training process of the anomaly analysis model includes:

[0111] The corresponding judgment results are set for the b group of analysis data in advance, where b is an integer greater than 1, and the judgment results include abnormal data and normal data. Different digital labels are set for the abnormal data and the normal data. For example, the digital label for the abnormal data is set to 0, and the digital label for the normal data is set to 1; the judgment results corresponding to the analysis data are collected by a technician in the field of technology in the process of dynamic control of historical energy density, and the technicians in the field of technology judge whether there is data abnormality in each group of analysis data in turn according to actual experience, and set corresponding judgment results for the b group of different analysis data in turn;

[0112] Mark the digital labels of the judgment results as judgment labels, and convert the analysis data and the corresponding judgment labels into a corresponding set of feature vectors;

[0113] Each set of feature vectors is used as the input of the abnormal analysis model. The abnormal analysis model uses a set of prediction judgment labels corresponding to each set of analysis data as output, and uses the actual judgment label corresponding to each set of analysis data as the prediction target. The actual judgment label is the digital label of the judgment result corresponding to the analysis data set in advance. The training goal is to minimize the sum of the prediction errors of all analysis data. The calculation formula of the prediction error is Z p =(α p -μ p ) 2 , where Z p is the prediction error, p is the group number of the eigenvector corresponding to the analyzed data, α p is the predicted judgment label corresponding to the p-th group of analysis data, μ p is the actual judgment label corresponding to the pth group of analysis data; the anomaly analysis model is trained until the sum of the prediction errors reaches convergence and the training is stopped;

[0114] The above anomaly analysis model is specifically a deep belief network model;

[0115] If the judgment result corresponding to the output judgment tag is data abnormality, an abnormal instruction is generated, indicating that there is abnormal data in the analysis data, and the use of the ultrasonic instrument needs to be stopped in time to avoid harm to the user;

[0116] If the judgment result corresponding to the output judgment tag is that the data is normal, no abnormal instruction is generated, indicating that there is no abnormal data in the analysis data and the ultrasonic instrument can continue to be used;

[0117] The parameter adjustment module generates ultrasonic parameters according to the energy density impact data and energy uniformity if no abnormal instruction is generated, and controls the operation of the ultrasonic instrument according to the ultrasonic parameters;

[0118] Ultrasonic parameters include frequency, intensity and action time; frequency is the number of times the ultrasonic waveform repeats; intensity is the ultrasonic power per unit area per unit time; action time is the duration of ultrasonic irradiation;

[0119] The steps to generate ultrasonic parameters include:

[0120] Step 1: Randomly generate an initial antibody population X(0) of size q = {X1, X2, X3, ... X q}; Preset iteration threshold, which is preset according to the algorithm accuracy;

[0121] Step 2: Determine the fitness function;

[0122] Step 3: Calculate the fitness of each antibody in the initial antibody population X(0), select e antibodies with the largest fitness, and construct a memory population X m(t);

[0123] Step 4: Memory population X m Each antibody in (t) is cloned according to the calculated clone size to generate a clone antibody population in is the qth cloned antibody in the clonal antibody group;

[0124] Step 5: Cloning Antibody Group X c Each antibody in (t) is subjected to cloud adaptive mutation using a cloud adaptive mutation operator to generate a mutant antibody group X d (t); The cloud adaptive mutation operator is a prior art and will not be described in detail here;

[0125] Step 6: Cloning Antibodies from Population X c (t) randomly selects h antibodies as parent antibodies for antibody recombination to generate offspring antibodies S c , until the cloned antibody group X c When the number of unselected antibodies in (t) is less than h, antibody recombination is stopped and a recombinant antibody group X is generated. r (t); In this embodiment, h is preferably 3; Recombinant antibody group X r (t) includes multiple progeny antibodies S c ;

[0126] Step 7: Merge variant antibody group X d (t) and recombinant antibody group X r (t), generate a combined antibody population X L (t);

[0127] Step 8: Randomly generate g new antibodies and merge antibody group X L The g antibodies with the smallest fitness in (t) are replaced by g new antibodies generated randomly;

[0128] Step 9: If the number of cycles t is less than the iteration threshold, set t = t + 1 and select the merged antibody group X L The e antibodies with the largest fitness in (t) form a new memory population X m (t+1), loop steps 3 to 8; if the number of iterations t is equal to the iteration threshold, the loop ends and the combined antibody group X is obtained. L (t) corresponds to the ultrasonic parameters of the antibody with the largest fitness; wherein t = t + 1 is a computer language, that is, the value of the iteration number t is added by 1 and then assigned to the iteration number t;

[0129] In the above step 1, the antibodies in the initial antibody group X(0) correspond to R groups of ultrasonic parameters in the preset parameter set, R>q, one of the antibodies corresponds to a set of historical ultrasonic parameters, and the R groups of ultrasonic parameters in the parameter set are the ultrasonic parameters when the ultrasonic instrument is used normally in the past; the range of the antibody is the R groups of historical ultrasonic parameters;

[0130] In step 2 above, the fitness function is expressed as: f I =PP I ;

[0131] In the formula, f I is the fitness of the first antibody, PP I is the matching degree of the I-th antibody, I∈[1,q];

[0132] The matching degree is obtained by using the ultrasonic parameters corresponding to the analysis data and the antibody as test data, inputting the test data into the trained matching degree prediction model, and predicting the corresponding matching degree; the specific training process of the matching degree prediction model is consistent with the training process of the color prediction model, and it is also a deep neural network model;

[0133] In the above step 4, the calculation method of the clone size includes:

[0134]

[0135] Φ I =min(exp(||X I -X J ||));

[0136] In the formula, R I is the clone size of the first antibody, Int is the rounding function, q is the size of the antibody group, Φ I is the affinity of the first antibody, min is the minimum function, exp is the natural exponential function, ||X I -X J || is the Euclidean distance between the I-th antibody and the J-th antibody, I≠J, J∈[1,q];

[0137] It should be noted that when calculating the Euclidean distance between the I-th antibody and the J-th antibody, normalization is performed so that 0≤||X I -X J ||≤1;

[0138] In step 6 above, the progeny antibody S c The calculation methods include:

[0139]

[0140] In the formula, X′ his the hth parent antibody, s h is the hth scale factor, the scale factor is a randomly generated real number and the h scale factors are not all 0;

[0141] This embodiment collects energy density influence data such as temperature and color index during the use of the instrument in real time, processes and analyzes the energy density influence data, and determines whether there are any abnormalities during the use of the instrument, thereby adjusting the ultrasonic parameters in real time to achieve dynamic control of energy density; it can make timely adjustments based on each person's actual skin reaction, thereby achieving more personalized and accurate dynamic energy regulation.

[0142] Example 2

[0143] See also Figure 2 As shown, this embodiment further improves the design on the basis of embodiment 1. After long-term use, the internal components of the ultrasonic instrument will age, resulting in a decrease in the performance of the ultrasonic instrument. Therefore, during the use of the ultrasonic instrument, the actual intensity and frequency generated by the ultrasonic instrument cannot reach the set intensity and frequency, which reduces the accuracy of dynamic regulation of energy density, thereby affecting the use effect of the instrument. Therefore, this embodiment provides an ultrasonic instrument with a dynamic energy density control function, which also includes a time acquisition module and a parameter compensation module.

[0144] A time acquisition module is used to collect the running time of the ultrasonic instrument;

[0145] The running time includes the single running time and the total running time; the single running time is the time from the start of use of the ultrasonic instrument to the current real-time collection of energy density impact data; the total running time is the time from the start of use of the ultrasonic instrument to the current real-time collection of energy density impact data; the running time is obtained by the two timers built into the ultrasonic instrument. Both timers start timing when the ultrasonic instrument starts running and stop timing when the ultrasonic instrument stops running. The difference is that the value of one timer is reset to zero when it stops, while the value of the other timer is reset to zero when it stops;

[0146] A parameter compensation module is used to obtain the compensation amount of the ultrasonic parameter according to the running time and compensate the ultrasonic parameter;

[0147] The compensation amount includes frequency compensation amount and intensity compensation amount;

[0148] The method for obtaining the compensation amount of ultrasonic parameters includes:

[0149] The total running time and the frequency in the generated ultrasonic parameters are used as the first research data, and the total running time and the intensity in the generated ultrasonic parameters are used as the second research data; the first research data is input into the trained frequency compensation analysis model to predict the frequency compensation amount and mark it as the first frequency compensation amount; the second research data is input into the trained intensity compensation analysis model to predict the intensity compensation amount and mark it as the first intensity compensation amount; the specific training processes of the frequency compensation analysis model and the intensity compensation analysis model are consistent with the training process of the color prediction model, and both are deep neural network models;

[0150] The total running time is subtracted from the single running time to obtain the historical running time. T consecutive time points are selected from the historical running time, where T is an integer greater than 1, and are marked as selected points. The usage time corresponding to each selected point is obtained. The usage time corresponding to each selected point is the time from when the ultrasonic instrument is put into use to when each selected point is obtained. The ultrasonic parameters corresponding to each selected point are then obtained. The frequency compensation amount corresponding to each selected point is obtained through the frequency compensation analysis model, and is marked as the selected frequency compensation amount. The intensity compensation amount corresponding to each selected point is obtained through the intensity compensation analysis model, and is marked as the selected intensity compensation amount.

[0151] The time point corresponding to the current real-time collected energy density impact data is marked as the current time point; the selected frequency compensation amount corresponding to each selected point is input into the trained frequency compensation prediction model, the frequency compensation amount corresponding to the current time point is predicted, and it is marked as the second frequency compensation amount; the selected intensity compensation amount corresponding to each selected point is input into the trained intensity compensation prediction model, the intensity compensation amount corresponding to the current time point is predicted, and it is marked as the second intensity compensation amount;

[0152] The specific training process of the frequency compensation prediction model includes:

[0153] Collect T′ continuous frequency compensation amounts in advance, where T′>T; preset the sliding step size L′ and the sliding window length according to the actual experience of those skilled in the art; convert T′ continuous frequency compensation amounts into corresponding training samples using the sliding window method, use the training samples as the input of the frequency compensation prediction model, predict the frequency compensation amount after the sliding step size L′ as the output, and use the subsequent frequency compensation amount of each training sample as the prediction target. Use the mean absolute percentage error MAPE to evaluate the model accuracy of the prediction results. When the calculated MAPE is less than the preset MAPE, the frequency compensation prediction model training is completed; wherein the calculation formula of the mean absolute percentage error MAPE is: Among them, α d is the predicted target corresponding to the dth predicted frequency compensation amount, μ dis the dth predicted frequency compensation amount, and U is the number of predicted frequency compensation amounts; a frequency compensation prediction model is generated for predicting the frequency compensation amount at a future moment according to the frequency compensation amount; wherein the frequency compensation prediction model is an RNN neural network model; it should be noted that the preset MAPE is preset by those skilled in the art according to the accuracy required by the frequency compensation prediction model;

[0154] Exemplarily, the compensation amount set D includes 10 frequency compensation amounts, D = {D1, D2, D3, ..., D 10}, D v For the vth frequency compensation, v∈[1,10], a sliding window is used to construct multiple training samples, the length of the sliding window is defined as 3, the sliding step L′ is defined as 1, each training sample contains 3 consecutive frequency compensations, and the next frequency compensation of the 3 consecutive frequency compensations is used as the prediction target; for example:

[0155] {D1, D2, D3} is used as training data, and the prediction target corresponding to {D1, D2, D3} is D4;

[0156] {D2, D3, D4} is used as training data, and the prediction target corresponding to {D2, D3, D4} is D5; and so on, it is used to train the frequency compensation prediction model;

[0157] The specific training process of the intensity compensation prediction model is consistent with the training process of the frequency compensation prediction model, and it is also an RNN neural network model;

[0158] Taking the average of the first frequency compensation amount and the second frequency compensation amount as the frequency compensation amount, and taking the average of the first intensity compensation amount and the second intensity compensation amount as the intensity compensation amount;

[0159] This embodiment collects operating data and combines it with the established deep neural network model to predict the frequency compensation amount and the intensity compensation amount. At the same time, it also combines it with the established RNN neural network model to predict the frequency compensation amount and the intensity compensation amount. The final frequency compensation amount and the intensity compensation amount are obtained by combining the two. The time data in the instrument's usage history is used to establish a system learning closed loop to achieve dynamic correction of ultrasonic parameters to compensate for the error between the actual output and the set value, ensure accurate control of energy density, effectively solve the problem of long-term performance degradation of ultrasonic instruments, and improve the stability and accuracy of treatment effects.

[0160] Example 3

[0161] See also Figure 3 As shown, the part not described in detail in this embodiment can be seen from the description of embodiments 1 and 2, and a method for controlling an ultrasonic instrument with a dynamic energy density control function is provided, the method comprising:

[0162] Real-time collection of energy density impact data, including skin impact data and contact impact data;

[0163] Process the contact impact data to obtain energy uniformity;

[0164] Analyze the energy density impact data and energy uniformity to determine whether abnormal instructions are generated;

[0165] If no abnormal instruction is generated, ultrasonic parameters are generated according to the energy density affecting data and energy uniformity, and the operation of the ultrasonic instrument is controlled according to the ultrasonic parameters.

[0166] Further, the skin impact data includes skin structure data and skin condition data;

[0167] The skin structure data includes oil content, water content and elasticity; the skin condition data includes temperature and color index;

[0168] The contact impact data includes contact pressure and sound wave distribution; the contact pressure is the pressure applied by the ultrasonic probe on the skin surface; the energy distribution is the distribution of ultrasonic energy in each layer of the skin.

[0169] Furthermore, the method for obtaining the color index is as follows: a multispectral camera is used to sample and photograph the skin, wherein the multispectral camera has a built-in filter combination of multiple different wavelengths, and a total of m skin images are obtained, wherein the skin images correspond to the wavelengths one by one; n pixel windows are preset, wherein one skin image includes n pixel windows; the light intensity value corresponding to each pixel window is extracted from each skin image; a reference light intensity value of each pixel window in each skin image is obtained, wherein the reference light intensity value is the light intensity value corresponding to each pixel window in each skin image under the condition that there is no skin in the skin image; the absorbance in each skin image is calculated according to the light intensity value corresponding to each pixel window in each skin image and the reference light intensity value; the calculation formula of the absorbance is: In the formula, A i is the absorbance of the i-th skin image, I ij is the light intensity value of the jth pixel window in the i-th skin image, I′ ij is the reference light intensity value of the jth pixel window in the i-th skin image, i∈[1,m], j∈[1,n]; w pigments and corresponding molar absorbances in each skin image are obtained, that is, a skin image includes w pigments, where the molar absorbances of different pigments at different wavelengths are fixed values; the optical path length L is preset; according to the molar absorbance, optical path length and absorbance, the concentration value of each pigment in each skin image is calculated; the expression of the concentration value is: In the formula, C riis the concentration value of the rth pigment in the i-th skin image, ε ri is the molar absorbance of the rth pigment in the i-th skin image, r∈[1,w];

[0170] The concentration values ​​corresponding to the M pigments in each skin image are used as evaluation data, and the evaluation data are input into the trained color prediction model to predict the corresponding color index;

[0171] The training process of the color prediction model includes:

[0172] Pre-collecting the color indexes corresponding to a group of evaluation data, converting the evaluation data and the corresponding color indexes into a corresponding set of feature vectors, where a is an integer greater than 1;

[0173] Each group of feature vectors is used as the input of the color prediction model. The color prediction model takes a group of predicted color indexes corresponding to each group of evaluation data as output, and takes the actual color index corresponding to each group of evaluation data as the prediction target. The actual color index is the pre-collected color index corresponding to the evaluation data; minimizing the sum of the prediction errors of all evaluation data is used as the training goal; the color prediction model is a deep neural network model.

[0174] Furthermore, the method for obtaining energy uniformity includes:

[0175] The energy distribution is converted into an M×N matrix, where M represents M layers of skin and N represents N positions in a layer of skin;

[0176] Subtract the energy of each layer of skin corresponding to each position from the energy of the remaining M-1 layers of skin corresponding to the same position in turn to obtain the energy difference of each position in each layer of skin: add the energy difference corresponding to each position in each layer of skin and divide it by M-1 to obtain the energy mean of each position in each layer of skin; add the energy mean of the same position in each layer of skin and divide it by M to obtain the position difference, and take the mean of all position differences as the first energy uniformity;

[0177] The energy of the same layer of skin is added up and divided by N to obtain the energy mean of M layers of skin; the energy standard deviation of each layer of skin is calculated. The expression of the energy standard deviation is: In the formula, NB i′ is the energy standard deviation of the i′th layer of skin, P′ i′j′ is the energy at the j′th position in the i′th layer of skin, is the energy mean of the i′th layer of skin, i′∈[1,M],j′∈[1,N]; the mean of the energy standard deviation of the M layers of skin is taken as the second energy uniformity;

[0178] The average of the first energy uniformity and the second energy uniformity is taken as the energy uniformity.

[0179] Furthermore, the method for determining whether an abnormal instruction is generated includes:

[0180] The energy distribution in the energy density impact data is replaced with energy uniformity, and the energy impact data after the replacement is used as analysis data. The analysis data is input into the trained anomaly analysis model to predict whether there is data anomaly;

[0181] The training process of the anomaly analysis model includes:

[0182] Pre-setting corresponding judgment results for b groups of analysis data, where b is an integer greater than 1, and the judgment results include abnormal data and normal data, and different digital labels are set for the abnormal data and the normal data; marking the digital labels of the judgment results as judgment labels, and converting the analysis data and the corresponding judgment labels into a corresponding set of feature vectors;

[0183] Each group of feature vectors is used as the input of the anomaly analysis model. The anomaly analysis model uses a group of prediction judgment labels corresponding to each group of analysis data as output, and uses the actual judgment labels corresponding to each group of analysis data as the prediction target. The actual judgment labels are the digital labels of the judgment results corresponding to the analysis data set in advance. Minimizing the sum of the prediction errors of all analysis data is used as the training target. The anomaly analysis model is a deep belief network model.

[0184] If the judgment result corresponding to the output judgment label is data abnormality, an abnormal instruction is generated;

[0185] If the judgment result corresponding to the output judgment label is that the data is normal, no abnormal instruction is generated.

[0186] Furthermore, the ultrasonic parameters include frequency, intensity and action time;

[0187] The step of generating ultrasonic parameters comprises:

[0188] Step 1: Randomly generate an initial antibody population X(0) of size q = {X1, X2, X3, ... X q};Preset iteration threshold;

[0189] Step 2: Determine the fitness function;

[0190] Step 3: Calculate the fitness of each antibody in the initial antibody population X(0), select e antibodies with the largest fitness, and construct a memory population X m (t);

[0191] Step 4: Memory population X m Each antibody in (t) is cloned according to the calculated clone size to generate a clone antibody population in is the qth cloned antibody in the clonal antibody group;

[0192] Step 5: Cloning Antibody Group X c Each antibody in (t) is subjected to cloud adaptive mutation using a cloud adaptive mutation operator to generate a mutant antibody group X d (t);

[0193] Step 6: Cloning Antibodies from Population X c (t) randomly selects h antibodies as parent antibodies for antibody recombination to generate offspring antibodies S c , until the cloned antibody group X c When the number of unselected antibodies in (t) is less than h, antibody recombination is stopped and a recombinant antibody group X is generated. r (t); Recombinant antibody group X r (t) includes multiple progeny antibodies S c ;

[0194] Step 7: Merge variant antibody group X d (t) and recombinant antibody group X r (t), generate a combined antibody population X L (t);

[0195] Step 8: Randomly generate g new antibodies and merge antibody group X L The g antibodies with the smallest fitness in (t) are replaced by g new antibodies generated randomly;

[0196] Step 9: If the number of cycles t is less than the iteration threshold, set t = t + 1 and select the merged antibody group X L The e antibodies with the largest fitness in (t) form a new memory population X m (t+1), loop steps 3 to 8; if the number of iterations t is equal to the iteration threshold, the loop ends and the combined antibody group X is obtained. L Ultrasonic parameters corresponding to the antibody with the largest fitness in (t).

[0197] Furthermore, in step 1, the antibodies in the initial antibody group X(0) correspond to R groups of ultrasonic parameters in the preset parameter set, R>q, and one antibody corresponds to a set of historical ultrasonic parameters; the range of the antibody is the R groups of historical ultrasonic parameters;

[0198] In step 2, the fitness function is expressed as: I =PP I ;

[0199] In the formula, f I is the fitness of the first antibody, PP I is the matching degree of the I-th antibody, I∈[1,q];

[0200] The matching degree is obtained by using the ultrasonic parameters corresponding to the analysis data and the antibody as test data, inputting the test data into a trained matching degree prediction model, and predicting the corresponding matching degree; the training process of the matching degree prediction model is consistent with the training process of the color prediction model, and is also a deep neural network model;

[0201] In step 4, the method for calculating the clone size includes:

[0202]

[0203] Φ I =min(exp(||X I -X J ||));

[0204] In the formula, R I is the clone size of the first antibody, Int is the rounding function, q is the size of the antibody group, Φ I is the affinity of the first antibody, min is the minimum function, exp is the natural exponential function, ||X I -X J || is the Euclidean distance between the I-th antibody and the J-th antibody, I≠J, J∈[1,q];

[0205] In step 6, the progeny antibody S c The calculation methods include:

[0206]

[0207] In the formula, X′ h is the hth parent antibody, s h is the hth scale factor, which is a randomly generated real number and all h scale factors are not zero.

[0208] Further, the operation time of the ultrasonic instrument is collected;

[0209] The running time includes single running time and total running time; single running time is the time from the start of use of the ultrasonic instrument to the current real-time collection of energy density impact data; total running time is the time from the start of use of the ultrasonic instrument to the current real-time collection of energy density impact data.

[0210] Further, according to the running time, a compensation amount of the ultrasonic parameter is obtained, and the ultrasonic parameter is compensated;

[0211] The compensation amount includes frequency compensation amount and intensity compensation amount;

[0212] The method for obtaining the compensation amount of ultrasonic parameters includes:

[0213] The total running time and the frequency in the generated ultrasonic parameters are used as the first research data, and the total running time and the intensity in the generated ultrasonic parameters are used as the second research data; the first research data is input into the trained frequency compensation analysis model to predict the frequency compensation amount and mark it as the first frequency compensation amount; the second research data is input into the trained intensity compensation analysis model to predict the intensity compensation amount and mark it as the first intensity compensation amount; the training process of the frequency compensation analysis model and the intensity compensation analysis model are consistent with the training process of the color prediction model, and both are deep neural network models;

[0214] The total running time is subtracted from the single running time to obtain the historical running time. T consecutive time points are selected from the historical running time, where T is an integer greater than 1, and are marked as selected points. The usage time corresponding to each selected point is obtained. The usage time corresponding to each selected point is the time from when the ultrasonic instrument is put into use to when each selected point is obtained. The ultrasonic parameters corresponding to each selected point are then obtained. The frequency compensation amount corresponding to each selected point is obtained through the frequency compensation analysis model, and is marked as the selected frequency compensation amount. The intensity compensation amount corresponding to each selected point is obtained through the intensity compensation analysis model, and is marked as the selected intensity compensation amount.

[0215] The time point corresponding to the current real-time collected energy density impact data is marked as the current time point; the selected frequency compensation amount corresponding to each selected point is input into the trained frequency compensation prediction model, the frequency compensation amount corresponding to the current time point is predicted, and it is marked as the second frequency compensation amount; the selected intensity compensation amount corresponding to each selected point is input into the trained intensity compensation prediction model, the intensity compensation amount corresponding to the current time point is predicted, and it is marked as the second intensity compensation amount;

[0216] The training process of the frequency compensation prediction model includes:

[0217] Pre-collect T′ continuous frequency compensation amounts, where T′>T; preset a sliding step size L′ and a sliding window length; convert T′ continuous frequency compensation amounts into corresponding training samples using a sliding window method, use the training samples as inputs of a frequency compensation prediction model, predict the frequency compensation amount after the sliding step size L′ as output, use the subsequent frequency compensation amount of each training sample as a prediction target, use the mean absolute percentage error MAPE to evaluate the model accuracy of the prediction results, and when the calculated MAPE is less than the preset MAPE, the frequency compensation prediction model training is completed; generate a frequency compensation prediction model that predicts the frequency compensation amount at future moments based on the frequency compensation amount; wherein the frequency compensation prediction model is an RNN neural network model;

[0218] The training process of the intensity compensation prediction model is consistent with that of the frequency compensation prediction model, and is also an RNN neural network model;

[0219] The average of the first frequency compensation amount and the second frequency compensation amount is used as the frequency compensation amount, and the average of the first intensity compensation amount and the second intensity compensation amount is used as the intensity compensation amount.

[0220] Example 4

[0221] See also Figure 4 As shown, according to another aspect of the present application, an electronic device 500 is also provided. The electronic device 500 may include one or more processors and one or more memories. The memories store computer readable codes, and when the computer readable codes are run by one or more processors, the ultrasonic instrument control method with dynamic energy density control function as described above may be executed.

[0222] The method or system according to the embodiment of the present application can also be Figure 4 The electronic device architecture shown in FIG. Figure 4 As shown, the electronic device 500 may include a bus 501, one or more CPUs 502, ROM 503, RAM 504, a communication port 505 connected to a network, an input / output 506, a hard disk 507, etc. The storage device in the electronic device 500, such as ROM 503 or hard disk 507, may store the ultrasonic instrument control method with dynamic energy density control function provided by the present application. Furthermore, the electronic device 500 may also include a user interface 508. Of course, Figure 4 The architecture shown is only exemplary and can be omitted according to actual needs when implementing different devices. Figure 4 One or more components of an electronic device are shown.

[0223] Example 5

[0224] See also Figure 5 As shown, a computer-readable storage medium 600 according to an embodiment of the present application is shown. Computer-readable instructions are stored on the computer-readable storage medium 600. When the computer-readable instructions are executed by the processor, the ultrasonic instrument control method with dynamic energy density control function according to the embodiment of the present application described with reference to the above figures can be executed. The storage medium 600 includes, but is not limited to, for example, volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc.

[0225] In addition, according to the embodiments of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the present application provides a non-transitory machine-readable storage medium, which stores machine-readable instructions, and the machine-readable instructions can be executed by a processor to execute instructions corresponding to the method steps provided by the present application, for example: an ultrasonic instrument control method with a dynamic energy density control function. When the computer program is executed by a central processing unit (CPU), the above functions defined in the method of the present application are executed.

[0226] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

[0227] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An ultrasonic instrument control method with a dynamic energy density control function, characterized in that: include: Real-time collection of energy density impact data, including skin impact data and contact impact data; Process the contact impact data to obtain energy uniformity; Analyze the energy density impact data and energy uniformity to determine whether abnormal instructions are generated; If no abnormal instruction is generated, ultrasonic parameters are generated according to the energy density affecting data and energy uniformity, and the operation of the ultrasonic instrument is controlled according to the ultrasonic parameters.

2. The ultrasonic instrument control method with dynamic energy density control function according to claim 1, characterized in that: The skin impact data includes skin structure data and skin condition data; The skin structure data includes oil content, water content and elasticity; the skin condition data includes temperature and color index; The contact impact data includes contact pressure and sound wave distribution; the contact pressure is the pressure applied by the ultrasonic probe on the skin surface; the energy distribution is the distribution of ultrasonic energy in each layer of the skin.

3. The ultrasonic instrument control method with dynamic energy density control function according to claim 2, characterized in that: The method for obtaining the color index is as follows: a multispectral camera is used to sample and photograph the skin, wherein the multispectral camera has built-in filter combinations of multiple different wavelengths, and a total of m skin images are obtained, wherein the skin images correspond to the wavelengths one by one; n pixel windows are preset, wherein one skin image includes n pixel windows; Extracting the light intensity value corresponding to each pixel window from each skin image; Obtaining a reference light intensity value of each pixel window in each skin image, where the reference light intensity value is a light intensity value corresponding to each pixel window in each skin image under the condition that there is no skin in the skin image; According to the light intensity value corresponding to each pixel window in each skin image and the reference light intensity value, the absorbance in each skin image is calculated; the calculation formula of the absorbance is: In the formula, A i is the absorbance of the i-th skin image, I ij is the light intensity value of the jth pixel window in the i-th skin image, I′ ij is the reference light intensity value of the j-th pixel window in the i-th skin image, i∈[1,m], j∈[1,n]; Obtain w pigments and corresponding molar absorbances in each skin image, that is, a skin image includes w pigments, wherein the molar absorbances corresponding to different pigments at different wavelengths are fixed values; The optical path length L is preset; the concentration value of each pigment in each skin image is calculated according to the molar absorbance, the optical path length and the absorbance; the expression of the concentration value is: In the formula, C ri is the concentration value of the rth pigment in the i-th skin image, ε ri is the molar absorbance of the rth pigment in the i-th skin image, r∈[1,w]; The concentration values ​​corresponding to the M pigments in each skin image are used as evaluation data, and the evaluation data are input into the trained color prediction model to predict the corresponding color index; The training process of the color prediction model includes: Pre-collecting the color indexes corresponding to a group of evaluation data, converting the evaluation data and the corresponding color indexes into a corresponding set of feature vectors, where a is an integer greater than 1; Each group of feature vectors is used as the input of the color prediction model. The color prediction model takes a group of predicted color indexes corresponding to each group of evaluation data as output, and takes the actual color index corresponding to each group of evaluation data as the prediction target. The actual color index is the pre-collected color index corresponding to the evaluation data; minimizing the sum of the prediction errors of all evaluation data is used as the training goal; the color prediction model is a deep neural network model.

4. The ultrasonic instrument control method with dynamic energy density control function according to claim 3, characterized in that: The method for obtaining energy uniformity comprises: The energy distribution is converted into an M×N matrix, where M represents M layers of skin and N represents N positions in a layer of skin; Subtract the energy of each layer of skin corresponding to each position from the energy of the remaining M-1 layers of skin corresponding to the same position in turn to obtain the energy difference of each position in each layer of skin: add the energy difference corresponding to each position in each layer of skin and divide it by M-1 to obtain the energy mean of each position in each layer of skin; add the energy mean of the same position in each layer of skin and divide it by M to obtain the position difference, and take the mean of all position differences as the first energy uniformity; The energy of the same layer of skin is added up and divided by N to obtain the energy mean of M layers of skin; the energy standard deviation of each layer of skin is calculated. The expression of the energy standard deviation is: In the formula, NB i′ is the energy standard deviation of the i′th layer of skin, P′ i′j′ is the energy at the j′th position in the i′th layer of skin, is the energy mean of the i′th layer of skin, i′∈[1,M],j′∈[1,N]; the mean of the energy standard deviation of the M layers of skin is taken as the second energy uniformity; The average of the first energy uniformity and the second energy uniformity is taken as the energy uniformity.

5. The ultrasonic instrument control method with dynamic energy density control function according to claim 4, characterized in that: The method for determining whether an abnormal instruction is generated comprises: The energy distribution in the energy density impact data is replaced with energy uniformity, and the energy impact data after the replacement is used as analysis data. The analysis data is input into the trained anomaly analysis model to predict whether there is data anomaly; The training process of the anomaly analysis model includes: Pre-setting corresponding judgment results for b groups of analysis data, where b is an integer greater than 1, and the judgment results include abnormal data and normal data, and different digital labels are set for the abnormal data and the normal data; marking the digital labels of the judgment results as judgment labels, and converting the analysis data and the corresponding judgment labels into a corresponding set of feature vectors; Each group of feature vectors is used as the input of the anomaly analysis model. The anomaly analysis model uses a group of prediction judgment labels corresponding to each group of analysis data as output, and uses the actual judgment labels corresponding to each group of analysis data as the prediction target. The actual judgment labels are the digital labels of the judgment results corresponding to the analysis data set in advance. Minimizing the sum of the prediction errors of all analysis data is used as the training target. The anomaly analysis model is a deep belief network model. If the judgment result corresponding to the output judgment label is data abnormality, an abnormal instruction is generated; If the judgment result corresponding to the output judgment label is that the data is normal, no abnormal instruction is generated.

6. The ultrasonic instrument control method with dynamic energy density control function according to claim 5, characterized in that: The ultrasonic parameters include frequency, intensity and action time; The step of generating ultrasonic parameters comprises: Step 1: Randomly generate an initial antibody population X(0) of size q = {X1, X2, X3, ... X q };Preset iteration threshold; Step 2: Determine the fitness function; Step 3: Calculate the fitness of each antibody in the initial antibody population X(0), select e antibodies with the largest fitness, and construct a memory population X m (t); Step 4: Memory population X m Each antibody in (t) is cloned according to the calculated clone size to generate a clone antibody population in is the qth cloned antibody in the clonal antibody group; Step 5: Cloning Antibody Group X c Each antibody in (t) is subjected to cloud adaptive mutation using a cloud adaptive mutation operator to generate a mutant antibody group X d (t); Step 6: Cloning Antibodies from Group X c (t) randomly selects h antibodies as parent antibodies for antibody recombination to generate offspring antibodies S c , until the cloned antibody group X c When the number of unselected antibodies in (t) is less than h, antibody recombination is stopped and a recombinant antibody group X is generated. r (t); Recombinant antibody group X r (t) includes multiple progeny antibodies S c ; Step 7: Merge variant antibody group X d (t) and recombinant antibody group X r (t), generate a combined antibody population X L (t); Step 8: Randomly generate g new antibodies and merge antibody group X L The g antibodies with the smallest fitness in (t) are replaced by g new antibodies generated randomly; Step 9: If the number of cycles t is less than the iteration threshold, set t = t + 1 and select the merged antibody group X L The e antibodies with the largest fitness in (t) form a new memory population X m (t+1), loop steps 3 to 8; if the number of iterations t is equal to the iteration threshold, the loop ends and the combined antibody group X is obtained. L Ultrasonic parameters corresponding to the antibody with the largest fitness in (t).

7. The ultrasonic instrument control method with dynamic energy density control function according to claim 6, characterized in that: In step 1, the antibodies in the initial antibody group X(0) correspond to R groups of ultrasonic parameters in the preset parameter set, R>q, and one antibody corresponds to a set of historical ultrasonic parameters; the range of the antibodies is the R groups of historical ultrasonic parameters; In step 2, the fitness function is expressed as: I =PP I ; In the formula, f I is the fitness of the first antibody, PP I is the matching degree of the I-th antibody, I∈[1,q]; The matching degree is obtained by using the ultrasonic parameters corresponding to the analysis data and the antibody as test data, inputting the test data into a trained matching degree prediction model, and predicting the corresponding matching degree; the training process of the matching degree prediction model is consistent with the training process of the color prediction model, and is also a deep neural network model; In step 4, the method for calculating the clone size includes: F I =min(exp(||X I -X J ||)); In the formula, R I is the clone size of the first antibody, Int is the rounding function, q is the size of the antibody group, Φ I is the affinity of the first antibody, min is the minimum function, exp is the natural exponential function, ||X I -X J || is the Euclidean distance between the I-th antibody and the J-th antibody, I≠J, J∈[1,q]; In step 6, the progeny antibody S c The calculation methods include: In the formula, X′ h is the hth parent antibody, s h is the hth scale factor, which is a randomly generated real number and all h scale factors are not zero.

8. The ultrasonic instrument control method with dynamic energy density control function according to claim 7, characterized in that: Collect the operating time of the ultrasonic instrument; The running time includes single running time and total running time; single running time is the time from the start of use of the ultrasonic instrument to the current real-time collection of energy density impact data; total running time is the time from the start of use of the ultrasonic instrument to the current real-time collection of energy density impact data.

9. The ultrasonic instrument control method with dynamic energy density control function according to claim 8, characterized in that: According to the running time, the compensation amount of the ultrasonic parameter is obtained, and the ultrasonic parameter is compensated; The compensation amount includes frequency compensation amount and intensity compensation amount; The method for obtaining the compensation amount of ultrasonic parameters includes: The total running time and the frequency in the generated ultrasonic parameters are used as the first research data, and the total running time and the intensity in the generated ultrasonic parameters are used as the second research data; the first research data is input into the trained frequency compensation analysis model to predict the frequency compensation amount and mark it as the first frequency compensation amount; the second research data is input into the trained intensity compensation analysis model to predict the intensity compensation amount and mark it as the first intensity compensation amount; the training process of the frequency compensation analysis model and the intensity compensation analysis model are consistent with the training process of the color prediction model, and both are deep neural network models; The total running time is subtracted from the single running time to obtain the historical running time. T consecutive time points are selected from the historical running time, where T is an integer greater than 1, and are marked as selected points. The usage time corresponding to each selected point is obtained. The usage time corresponding to each selected point is the time from when the ultrasonic instrument is put into use to when each selected point is obtained. The ultrasonic parameters corresponding to each selected point are then obtained. The frequency compensation amount corresponding to each selected point is obtained through the frequency compensation analysis model, and is marked as the selected frequency compensation amount. The intensity compensation amount corresponding to each selected point is obtained through the intensity compensation analysis model, and is marked as the selected intensity compensation amount. The time point corresponding to the current real-time collected energy density impact data is marked as the current time point; the selected frequency compensation amount corresponding to each selected point is input into the trained frequency compensation prediction model, the frequency compensation amount corresponding to the current time point is predicted, and it is marked as the second frequency compensation amount; the selected intensity compensation amount corresponding to each selected point is input into the trained intensity compensation prediction model, the intensity compensation amount corresponding to the current time point is predicted, and it is marked as the second intensity compensation amount; The training process of the frequency compensation prediction model includes: Pre-collect T′ continuous frequency compensation amounts, where T′>T; preset a sliding step size L′ and a sliding window length; convert T′ continuous frequency compensation amounts into corresponding training samples using a sliding window method, use the training samples as inputs of a frequency compensation prediction model, predict the frequency compensation amount after the sliding step size L′ as output, use the subsequent frequency compensation amount of each training sample as a prediction target, use the mean absolute percentage error MAPE to evaluate the model accuracy of the prediction results, and when the calculated MAPE is less than the preset MAPE, the frequency compensation prediction model training is completed; generate a frequency compensation prediction model that predicts the frequency compensation amount at future moments based on the frequency compensation amount; wherein the frequency compensation prediction model is an RNN neural network model; The training process of the intensity compensation prediction model is consistent with that of the frequency compensation prediction model, and is also an RNN neural network model; The average of the first frequency compensation amount and the second frequency compensation amount is used as the frequency compensation amount, and the average of the first intensity compensation amount and the second intensity compensation amount is used as the intensity compensation amount.

10. An ultrasonic instrument with a dynamic energy density control function, implementing the ultrasonic instrument control method with a dynamic energy density control function according to any one of claims 1 to 9, characterized in that: include: An impact data acquisition module is used to collect energy density impact data in real time, and the energy density impact data includes skin impact data and contact impact data; An impact data processing module is used to process the contact impact data and obtain energy uniformity; An impact data analysis module is used to analyze energy density impact data and energy uniformity to determine whether to generate abnormal instructions; The parameter adjustment module generates ultrasonic parameters according to the energy density impact data and energy uniformity if no abnormal instruction is generated, and controls the operation of the ultrasonic instrument according to the ultrasonic parameters.

Citation Information

Patent Citations

  • A beauty system integrating ultrasound and skin quantification

    CN109045490B