Model training method, data processing method, device, client and storage medium
By pre-training and federated learning on ultrasound image data, an efficient ultrasound image data processing model is constructed, which solves the problems of low detection results and data islands in the existing technology, and achieves higher accuracy and privacy protection.
Patent Information
- Application Number
- CN202011389787.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-01
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-12-01
AI Technical Summary
The detection effect and accuracy of existing ultrasound imaging data processing models in the medical field are not high, mainly due to the limited scale and quality of sample data sets, and the privacy of medical data leading to data islands, making it difficult to effectively utilize data from multiple hospitals. .
By obtaining the ultrasound image data containing the target detection object, pre-train the preset neural network, extract multiple ultrasound image data for training, determine the gradient data and encrypt it and send it to the federated learning server for joint learning, and update the neural network parameters until convergence to build an efficient ultrasound imaging data processing model.
It improves the detection effect and accuracy of the ultrasound imaging data processing model, makes full use of data from multiple hospitals, protects the privacy and security of medical data, and solves the problem of data islands.
Smart Images

Figure CN112465786B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of model building in artificial intelligence, and in particular to a model training method, a data processing method, a device, a client, and a storage medium. Background Art
[0002] At present, doctors perform ultrasound examinations on target objects such as the liver, spleen, and kidneys of the human body to obtain ultrasound images of the target objects. Doctors check the characteristics of key parts in the ultrasound images to obtain the ultrasound examination results of the patient's liver and other target objects. In existing deep learning algorithms, ultrasound image data processing models can be established through ultrasound image data of target objects to determine ultrasound examination results of target objects. However, due to the privacy of medical data, the quality of existing ultrasound image data processing models is often limited by the scale and quality of sample data sets, resulting in low detection effect and accuracy of the established ultrasound image data processing models for target objects. Summary of the invention
[0003] The main purpose of this application is to provide a model training method, data processing method, device, client and storage medium, which aims to improve the detection effect and accuracy of the ultrasonic image data processing model of the target detection object, and can be applied to the smart medical field of smart cities, thereby promoting the construction of smart cities.
[0004] In a first aspect, the present application provides a model training method, which is applied to a client, comprising:
[0005] Acquire ultrasonic image data containing the target detection object, and pre-train a preset neural network through the ultrasonic image data to obtain a target neural network;
[0006] Extracting a plurality of ultrasonic image data from the ultrasonic image data, and training the target neural network through the plurality of ultrasonic image data to obtain a training result;
[0007] Determining the gradient data of the target neural network based on the training result, and encrypting the gradient data and sending it to the federated learning server;
[0008] Receiving target gradient data sent by the federated learning server, where the target gradient data is determined by the federated learning server through joint learning based on gradient data sent by multiple clients;
[0009] The model parameters of the target neural network are updated according to the target gradient data until the updated target neural network converges to obtain an ultrasonic image data processing model of the target detection object.
[0010] In a second aspect, the present application also provides an ultrasound image data processing method, comprising:
[0011] Acquire ultrasonic image data of the target object;
[0012] The ultrasonic image data of the target object is detected by using an ultrasonic image data processing model to obtain an ultrasonic image data processing result of the target object;
[0013] Wherein, the ultrasound image data processing model is trained according to the model training method described above.
[0014] In a third aspect, the present application further provides a model training device, the model training device comprising:
[0015] An acquisition module, used to acquire ultrasonic image data containing a target detection object;
[0016] A pre-training module, used to pre-train a preset neural network using the ultrasound image data to obtain a target neural network;
[0017] A training module, used to extract a plurality of ultrasonic image data from the ultrasonic image data, and train the target neural network through the plurality of ultrasonic image data to obtain a training result;
[0018] A determination module, configured to determine the gradient data of the target neural network based on the training result;
[0019] A sending module, used for encrypting the gradient data and sending it to a federated learning server;
[0020] A receiving module, configured to receive target gradient data sent by the federated learning server, wherein the target gradient data is determined by the federated learning server through joint learning based on gradient data sent by multiple clients;
[0021] An updating module is used to update the model parameters of the target neural network according to the target gradient data until the updated target neural network converges to obtain the ultrasonic image data processing model of the target detection object.
[0022] In a fourth aspect, the present application also provides a client, comprising a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the model training method or the ultrasound image data processing method as described above are implemented.
[0023] In a fifth aspect, the present application also provides a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the model training method or the ultrasound image data processing method as described above are implemented.
[0024] The present application provides a model training method, a data processing method, a device, a client, and a storage medium. The present application obtains ultrasonic image data containing a target detection object, and pre-trains a preset neural network through the ultrasonic image data to obtain a target neural network, extracts multiple ultrasonic image data from the ultrasonic image data, and then trains the target neural network through the multiple ultrasonic image data to obtain a training result, determines the gradient data of the target neural network based on the training result, and encrypts the gradient data and sends it to a federated learning server, and then receives the target gradient data sent by the federated learning server, the target gradient data is determined by the federated learning server based on the gradient data sent by multiple clients, and updates the model parameters of the target neural network according to the target gradient data until the updated target neural network converges to obtain the ultrasonic image data processing model of the target detection object. The neural network is trained collaboratively through ultrasonic image data and ultrasonic image data, and through the method of federated learning, which greatly improves the utilization rate of the sample data set and improves the detection effect and accuracy of the ultrasonic image data processing model of the target detection object. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0026] Figure 1 A schematic diagram of the steps of a model training method provided in an embodiment of the present application;
[0027] Figure 2 for Figure 1 A flowchart of the sub-steps of the model training method in ;
[0028] Figure 3 A schematic diagram of a scenario for implementing the model training method provided in this embodiment;
[0029] Figure 4 A schematic diagram of the steps of a method for processing ultrasound image data provided in an embodiment of the present application;
[0030] Figure 5 A schematic block diagram of a model training device provided in an embodiment of the present application;
[0031] Figure 6 A schematic block diagram of an ultrasound image data processing device provided in an embodiment of the present application;
[0032] Figure 7 A schematic block diagram of the structure of a client provided in an embodiment of the present application.
[0033] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0035] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor do they have to be executed in the order described. For example, some operations / steps can also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions. In addition, although the functional modules are divided in the device schematic, in some cases, the module division can be different from that in the device schematic.
[0036] The embodiment of the present application provides a model training method, a data processing method, an apparatus, a client, and a storage medium. The model training method can be applied to a client, which includes a terminal device or a server. The terminal device can be an electronic device such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device; the server can be a single server or a server cluster composed of multiple servers.
[0037] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0038] Please refer to Figure 1 , Figure 1 A schematic flowchart of the steps of a model training method provided in an embodiment of the present application.
[0039] like Figure 1 As shown, the model training method includes steps S101 to S105.
[0040] Step S101: Acquire ultrasonic image data containing a target detection object, and pre-train a preset neural network using the ultrasonic image data to obtain a target neural network.
[0041] Traditionally, the detection methods of target objects such as the human liver, spleen, kidney, and pancreas include invasive detection methods and non-invasive detection methods. Among them, the non-invasive detection method is mainly ultrasound examination. Doctors use ultrasound equipment to perform ultrasound examinations on the organs in the patient's abdominal area, and can obtain ultrasound image data containing the above-mentioned target objects. Doctors can learn about the patient's liver fibrosis through the characteristics of key parts in the ultrasound image. However, the efficiency of manual observation is low, which is not conducive to large-scale and accurate screening of diseases related to liver fibrosis. In addition, the detection effect and accuracy of constructing an ultrasound image data processing model for detection in the prior art are not high. Therefore, it is necessary to propose a technical solution to improve the detection effect and accuracy of the ultrasound image data processing model of the above-mentioned target objects.
[0042] In one embodiment, the target detection objects include organs such as the liver, spleen, kidneys, and pancreas. Ultrasound image data of relevant parts of the patient's target detection objects are collected through ultrasound equipment, and the collected ultrasound image data are stored in a memory or cloud to facilitate subsequent retrieval of the ultrasound image data.
[0043] It should be noted that in order to further ensure the privacy and security of the above-mentioned ultrasound image data and other related medical data, the above-mentioned ultrasound image data and other related information can also be stored in a node of a blockchain. The technical solution of the present application can also be applied to add other data files stored on the blockchain. The blockchain referred to in the present invention is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. The blockchain can include the blockchain underlying platform, the platform product service layer, and the application service layer.
[0044] In one embodiment, due to the privacy of medical data, the traditional ultrasound imaging detection method has the problems of large sample data repetition, small model data volume, and low model accuracy. To this end, the present application also proposes a model training method based on federated learning, which shares ultrasound imaging data of multiple hospitals through federated learning and uses neural networks for joint modeling. It can improve the training effect of the neural network while protecting the privacy and security of medical data, thereby improving the detection effect and accuracy of the ultrasound imaging data processing model constructed by the neural network.
[0045] In one embodiment, the ultrasound image data owned by each hospital (client) has the same data type, but the user information corresponding to each ultrasound image data is different, so horizontal federated learning can be used for joint training. That is, when the user features of two sample data sets (ultrasound image data) overlap more but the user information overlaps less, we divide the data set horizontally (i.e., the user information dimension) and take out the part of the data with the same user features but different user information for training.
[0046] In one embodiment, the preset neural network is pre-trained by ultrasound image data to obtain a target neural network. It should be noted that by pre-training the preset neural network with ultrasound image data containing the target detection object, such as transfer learning, self-supervised learning and fine-tuning, the model parameters of the neural network can be optimized, and the deep network can be trained more smoothly, so that the model training effect of the neural network is better, so as to improve the detection effect and accuracy of the subsequent ultrasound image data processing model.
[0047] In one embodiment, if Figure 2 As shown, the preset neural network is pre-trained through ultrasonic image data to obtain a target neural network, including: sub-step S1011 to sub-step S1012.
[0048] Sub-step S1011: extract multiple frames of image data from the ultrasound image data, and obtain key information from each frame of the image data.
[0049] Among them, multiple frames of image data can be randomly extracted from the ultrasound image data, or frame images can be extracted from the ultrasound image data at intervals of a preset number of frames to obtain multiple frames of image data, which is not specifically limited in the embodiments of the present application. The key information in each frame of image data is the characteristic information of the key parts in the ultrasound image. For example, the key parts include the left liver, the right liver, the spleen, the portal vein, the hepatic vein, the spleen, the gallbladder wall, etc. The key information is the liver parenchyma echo and the hepatic vein morphology. The liver parenchyma echo includes rough echo, asymmetric echo and fragmented echo. The hepatic vein morphology includes rigid morphology and normal morphology.
[0050] In one embodiment, a client is pre-installed with a neural network, and the neural network includes an image extraction sublayer and a classification recognition sublayer; multiple frames of image data are extracted from the ultrasound image data through the image extraction sublayer; and the multiple frames of image data are input into the classification recognition sublayer to identify key information in each frame of image data. It should be noted that multiple frames of image data can be extracted from the ultrasound image data randomly or at intervals of a preset number of frames through the image extraction sublayer, and the part features in each frame of image data can be quickly and accurately classified and recognized through the classification recognition sublayer, thereby obtaining key information.
[0051] In one embodiment, the key information includes at least one of the left liver angle morphology, liver area, right liver deviation, liver parenchyma echo, spleen area, portal vein diameter, portal vein blood flow direction, hepatic vein morphology, spleen thickness, spleen length, gallbladder wall thickness and gallbladder wall morphology. The left liver angle morphology includes obtuse angle morphology and acute angle morphology, the liver parenchyma echo includes rough echo, asymmetric echo and fragmented echo, the hepatic vein morphology includes stiff morphology and normal morphology, and the gallbladder wall morphology includes rough morphology and smooth morphology. The classification and recognition sublayer in the neural network can accurately classify and recognize the key information in each frame of image data.
[0052] Sub-step S1012: updating the model parameters of the preset neural network according to the key information in each frame of the image data to obtain the target neural network.
[0053] Exemplarily, the neural network includes convolutional neural network CNN, recurrent neural network RNN and deep neural network DNN, etc. The neural network includes multiple convolutional layers, pooling layers and fully connected layers, and the preset neural network is fine-tuned. Specifically, the key information in each frame of image data is used to train the neural network to obtain a training result, and the model gradient data is determined by the training result and the input key information. Then, the model parameters such as the weights of multiple convolutional layers, pooling layers and fully connected layers are updated according to the model gradient data to obtain the target neural network. Thereby, the model parameters of the target neural network are optimized, the sensitivity of the target neural network to the key information is improved, and the model training effect of the target neural network is better, so as to improve the detection effect and accuracy of the subsequent ultrasound image data processing model.
[0054] In one embodiment, a preset neural network is pre-trained using ultrasound image data to obtain a target neural network, including: pre-training the preset neural network using ultrasound image data to obtain a pre-training result, and determining candidate gradient data of the target neural network based on the pre-training result; encrypting the candidate gradient data and sending it to a federated learning server, so that the federated learning server performs joint learning based on the candidate gradient data sent by multiple clients to obtain joint gradient data; and updating the model parameters of the neural network according to the joint gradient data returned by the federated learning server until the updated neural network converges to obtain the target neural network.
[0055] It should be noted that the gradient data of the target neural network can be determined according to the pre-training results of the target neural network and the input sample data set, and the gradient data is used as candidate gradient data. In the process of federated learning, the federated learning server will send public keys to the clients of multiple hospitals, and the clients of each hospital will establish a secure connection with the federated learning server, and encrypt the calculated gradient data according to the public key, and then send the encrypted gradient data to the federated learning server. The federated learning server performs a federated average on the gradient data sent by multiple clients to obtain updated joint gradient data, and returns the joint gradient data to the clients of each hospital so that each client can receive the joint gradient data, and update the model parameters of the neural network according to the joint gradient data, and then perform a new round of model training on the updated neural network until the updated neural network converges to obtain the target neural network. The target neural network has undergone federated learning and pre-training, and is more sensitive to key information, which greatly improves the pre-training effect of the neural network, and is conducive to improving the detection effect and accuracy of the subsequent ultrasound image data processing model.
[0056] Step S102: extract multiple ultrasound image data from the ultrasound image data, and train the target neural network using the multiple ultrasound image data to obtain a training result.
[0057] Among them, the client can extract multiple ultrasound image data from the ultrasound image data randomly or at preset time intervals, or can also extract multiple ultrasound image data from the ultrasound image data through the ultrasound image extraction sublayer in the neural network, which is not specifically limited in the embodiments of the present application.
[0058] It should be noted that by inputting multiple ultrasound image data into the target neural network, the target neural network is trained through multiple ultrasound image data, and multiple training results can be output, and the training results are, for example, classification labels of characteristic information of key parts in the ultrasound image. This training phase will go through multiple iterations, and the pre-training process of the aforementioned ultrasound image data is usually only once. Therefore, the embodiment of the present application mainly uses ultrasound image data and supplemented by ultrasound image data to jointly train the target neural network and obtain training results, which can effectively improve the detection effect and accuracy of the target neural network on liver fibrosis of the target detection object to be detected.
[0059] Step S103: determining the gradient data of the target neural network based on the training result, and encrypting the gradient data and sending it to the federated learning server.
[0060] Exemplarily, a conversion function of a target neural network is created; the target neural network is forward-propagated and trained using a plurality of ultrasound image data as training samples to determine the loss function of all fully-connected layers of the conversion function in the forward propagation; the minimum value of the loss function of all fully-connected layers of the conversion function in the forward propagation is determined, and the minimum loss function is used as the target function; the target function is calculated by element-by-element multiplication to determine the error function of the target function; the error function is calculated by the stochastic gradient descent method to determine the gradient data of the target neural network; the gradient data is encrypting using the public key sent by the federated learning server, and the encrypted gradient data is sent to the federated learning server.
[0061] In one embodiment, the client uses multiple ultrasound image data as training samples to perform forward propagation training on the target neural network to obtain all conversion functions from the first layer to the last fully connected layer in the forward propagation, and then continues training according to the training samples to obtain all loss functions from the first layer to the last fully connected layer; then, according to the value of the loss function, the loss function corresponding to the minimum value is determined as the objective function, wherein the objective function includes a bias parameter, and then the objective function is calculated according to element multiplication to obtain an error function corresponding to the objective function, the error function includes the error function of the objective function of the last fully connected layer corresponding to the minimum value of the loss function, and the error function of the objective function of the non-last fully connected layer corresponding to the minimum value of the loss function, and finally the stochastic gradient descent method in the gradient descent method is used to obtain the gradient data of the target neural network, wherein the benefit of using the stochastic gradient descent method is to improve the calculation speed, and the batch gradient method can also be used for calculation, which is not specifically limited in the embodiments of the present application.
[0062] Step S104: receiving target gradient data sent by the federated learning server, where the target gradient data is determined by the federated learning server through joint learning based on gradient data sent by multiple clients.
[0063] In one embodiment, the federated learning server receives gradient data sent by multiple clients, performs federated averaging on the gradient data sent by the multiple clients, obtains target gradient data, and returns the target gradient data to each client.
[0064] For example, the federated learning server performs weighted average on multiple gradient data sent by multiple clients, and the target gradient data Among them, k represents the number of iterations, n represents the number of clients participating in the joint learning, and n k Represents the number of gradient data uploaded by multiple clients in each iteration.
[0065] In one embodiment, a client receives target gradient data sent by a federated learning server. The target gradient data is determined by the federated learning server through joint learning based on gradient data sent by multiple clients. The model parameters of the aforementioned target neural network can be updated through the target gradient data, which greatly speeds up the update frequency of the target neural network. The target neural network can be automatically updated during idle time, combining the gradient data of clients from multiple hospitals, thereby improving the growth upper limit of the ultrasound image data processing model of each client and solving the problem of too little data during model training.
[0066] Step S105, updating the model parameters of the target neural network according to the target gradient data until the updated target neural network converges to obtain the ultrasonic image data processing model of the target detection object.
[0067] The client receives the updated joint gradient data and performs a new round of model training based on the joint gradient data, thereby updating the model parameters of the target neural network until the updated target neural network converges to obtain the ultrasound image data processing model. The ultrasound image data processing model has undergone federated learning and pre-training, and has a high sensitivity to key information, which greatly improves the training effect of the target neural network and can greatly improve the detection effect and accuracy of the ultrasound image data processing model.
[0068] In one embodiment, a conversion function of a target neural network is created based on target gradient data; model parameters of the target neural network are adjusted according to the conversion function to obtain adjusted model parameters; the target neural network is trained based on the adjusted model parameters, and it is determined whether the target neural network is in a convergence state; if it is determined that the target neural network is in a convergence state, the target neural network is used as an ultrasound image data processing model.
[0069] Wherein, determining whether the target neural network is in a convergence state includes: determining whether the number of iterations of the target neural network reaches a preset number of iterations, if it is determined that the number of iterations of the target neural network reaches (equal to) the preset number of iterations, then determining that the target neural network is in a convergence state; if it is determined that the number of iterations of the target neural network does not reach (less than) the preset number of iterations, then determining that the target neural network is not in a convergence state; or, determining whether the iteration time of the target neural network is greater than or equal to the preset iteration time, if the iteration time of the target neural network is greater than or equal to the preset iteration time, then determining that the target neural network is in a convergence state; if the iteration time of the target neural network is less than the preset iteration time, then determining that the target neural network is not in a convergence state. The preset iteration time and the preset number of iterations can be flexibly set by the user, and this application specification does not make specific restrictions.
[0070] Furthermore, if it is determined that the target neural network is not in a converged state, the target local model continues to be trained according to the training samples, and the updated model parameters are determined; the target neural network is trained according to the updated model parameters until the updated target neural network converges.
[0071] Please refer to Figure 3 , Figure 3 A schematic diagram of a scenario for implementing the model training method provided in this embodiment.
[0072] like Figure 3 As shown, the client obtains ultrasonic image data containing the target detection object, and pre-trains the preset neural network through the ultrasonic image data to obtain the target neural network, extracts multiple ultrasonic image data from the ultrasonic image data, and then trains the target neural network through the multiple ultrasonic image data to obtain the training result, determines the gradient data of the target neural network based on the training result, and encrypts the gradient data and sends it to the federated learning server, and then receives the target gradient data sent by the federated learning server. The target gradient data is determined by the federated learning server based on the gradient data sent by multiple clients through joint learning, and the model parameters of the target neural network are updated according to the target gradient data until the updated target neural network converges, so that each client obtains the ultrasonic image data processing model of the target detection object.
[0073] The model training method provided in the above embodiment obtains ultrasonic image data containing the target detection object, and pre-trains the preset neural network through the ultrasonic image data to obtain the target neural network, extracts multiple ultrasonic image data from the ultrasonic image data, and then trains the target neural network through the multiple ultrasonic image data to obtain the training result, determines the gradient data of the target neural network based on the training result, and encrypts the gradient data and sends it to the federated learning server, and then receives the target gradient data sent by the federated learning server, the target gradient data is determined by the federated learning server based on the gradient data sent by multiple clients through joint learning, and updates the model parameters of the target neural network according to the target gradient data until the updated target neural network converges to obtain the ultrasonic image data processing model of the target detection object. The neural network is trained collaboratively through ultrasonic image data and ultrasonic image data, and through the method of federated learning, which greatly improves the utilization rate of the sample data set and improves the detection effect and accuracy of the ultrasonic image data processing model.
[0074] Please refer to Figure 4 , Figure 4 A schematic flowchart of the steps of an ultrasound image data processing method provided in an embodiment of the present application.
[0075] like Figure 4As shown, the ultrasound image data processing method includes steps S201 to S202.
[0076] Step S201: Acquire ultrasonic image data of the target object.
[0077] Traditionally, doctors use ultrasound equipment to perform ultrasound examinations on the patient's abdominal area, which can obtain ultrasound image data of target objects such as the liver, spleen, kidneys, and pancreas. Doctors can learn about the patient's liver fibrosis status through the characteristics of key parts in the ultrasound image. However, manual observation is inefficient and is not conducive to large-scale and accurate screening of diseases related to liver fibrosis.
[0078] In one embodiment, the target detection objects include organs such as the liver, spleen, kidney, and pancreas. Ultrasonic image data of the patient's target detection objects are collected by ultrasound equipment, and the collected ultrasound image data is stored in a memory or cloud for subsequent retrieval of the ultrasound image data. It should be noted that in order to further ensure the privacy and security of the above-mentioned ultrasound image data and other related medical data, the above-mentioned ultrasound image data and other related information can also be stored in a node of a blockchain, and the technical solution of this application can also be applied to adding other data files stored on the blockchain.
[0079] Step S202: Detect the ultrasonic image data of the target detection object through the ultrasonic image data processing model to obtain the ultrasonic image data processing result of the target detection object.
[0080] The ultrasound image data processing model is trained according to the model training method in the above embodiment. The target detection object is, for example, the target detection object, and the ultrasound image data processing model is, for example, a convolutional neural network CNN, a recurrent neural network RNN, a deep neural network DNN, etc.
[0081] In one embodiment, the ultrasonic image data of the target detection object is detected through an ultrasonic image data processing model to obtain the ultrasonic image data processing result of the target detection object, including: extracting multiple ultrasonic image data from the ultrasonic image data of the target detection object; inputting the multiple ultrasonic image data into the classification and recognition sublayer of the ultrasonic image data processing model to extract key information in each ultrasonic image data; and determining the ultrasonic image data processing result of the target detection object according to the key information in each ultrasonic image data through the normalization sublayer of the ultrasonic image data processing model.
[0082] It should be noted that the client can extract multiple ultrasound image data from the ultrasound image data randomly or at preset intervals, or can extract multiple ultrasound image data from the ultrasound image data through the ultrasound image extraction sublayer in the neural network. The key information is the characteristic information of the key parts in the ultrasound image, and the key parts include the left liver, right liver, spleen, portal vein, hepatic vein, spleen, gallbladder wall, etc. Through the normalization sublayer of the ultrasound image data processing model, the ultrasound image data processing results of the target detection object are determined according to the key information in each ultrasound image data. The ultrasound image data processing results include normal, liver fibrosis or cirrhosis, which can effectively improve the detection efficiency and accuracy of liver fibrosis.
[0083] In one embodiment, the key information includes at least one of the left liver angle morphology, liver area, right liver deviation, liver parenchyma echo, spleen area, portal vein diameter, portal vein blood flow direction, hepatic vein morphology, spleen thickness, spleen length, gallbladder wall thickness and gallbladder wall morphology. The left liver angle morphology includes obtuse angle morphology and acute angle morphology, the liver parenchyma echo includes rough echo, asymmetric echo and fragmented echo, the hepatic vein morphology includes rigid morphology and normal morphology, and the gallbladder wall morphology includes rough morphology and smooth morphology. The classification and recognition sublayer in the neural network can accurately classify and recognize the key information in the ultrasound image data.
[0084] In one embodiment, the normalization sublayer uses a normalization function such as a softmax function to normalize key information in each ultrasound image data to output an ultrasound image data processing result, wherein the ultrasound image data processing result includes normal, liver fibrosis or liver cirrhosis, or includes the probability corresponding to each processing result (normal, liver fibrosis or liver cirrhosis), or includes feature information of multiple key parts of the target detection object, for example, the ultrasound image data processing result includes the left liver angle morphology, the right liver deviation and the liver parenchyma echo.
[0085] In one embodiment, multiple ultrasound image data are extracted from the ultrasound image data of the target object; the multiple ultrasound image data and the ultrasound image data are input into the classification and recognition sublayer of the ultrasound image data processing model to extract key information in each ultrasound image data; and the ultrasound image data processing result of the target object is determined according to the key information in each ultrasound image data through the normalization sublayer of the ultrasound image data processing model. It should be noted that the joint training and recognition of image data and video data can improve the efficiency and accuracy of ultrasound image data processing.
[0086] The ultrasonic image data processing method provided in the above embodiment obtains the ultrasonic image data of the target detection object, and detects the ultrasonic image data of the target detection object using the ultrasonic image data processing model trained by the model training method in the above embodiment to obtain the ultrasonic image data processing result of the target detection object. Through federated learning, the data island problem caused by the privacy of medical data is solved. Under the premise of protecting the privacy of patients, the medical data owned by each hospital can be fully utilized, and the efficiency and accuracy of the ultrasonic image data processing of the target detection object can be improved.
[0087] Please refer to Figure 5 , Figure 5 A schematic block diagram of a model training device provided in an embodiment of the present application.
[0088] like Figure 5 As shown, the model training device 300 includes: an acquisition module 301, a pre-training module 302, a training module 303, a determination module 304, a sending module 305, a receiving module 306 and an updating module 307.
[0089] An acquisition module 301 is used to acquire ultrasonic image data containing a target detection object;
[0090] A pre-training module 302 is used to pre-train a preset neural network using the ultrasound image data to obtain a target neural network;
[0091] A training module 303 is used to extract a plurality of ultrasound image data from the ultrasound image data, and train the target neural network through the plurality of ultrasound image data to obtain a training result;
[0092] A determination module 304, configured to determine the gradient data of the target neural network based on the training result;
[0093] A sending module 305, configured to encrypt the gradient data and then send it to a federated learning server;
[0094] A receiving module 306 is used to receive target gradient data sent by the federated learning server, where the target gradient data is determined by the federated learning server through joint learning based on gradient data sent by multiple clients;
[0095] The updating module 307 is used to update the model parameters of the target neural network according to the target gradient data until the updated target neural network converges to obtain the ultrasonic image data processing model of the target detection object.
[0096] In one embodiment, the pre-training module 302 includes:
[0097] The extraction submodule is used to extract multiple frames of image data from the ultrasonic image data and obtain key information from each frame of the image data.
[0098] The updating submodule is used to update the model parameters of the preset neural network according to the key information in the image data of each frame to obtain the target neural network.
[0099] In one embodiment, the neural network includes an image extraction sublayer and a classification recognition sublayer; the extraction submodule is further used to:
[0100] Extracting multiple frames of image data from the ultrasound image data through the image extraction sublayer;
[0101] The multiple frames of image data are input into the classification and recognition sublayer to recognize key information in each frame of the image data.
[0102] In one embodiment, the updating module 307 includes:
[0103] Creating a transfer function of the target neural network according to the target gradient data;
[0104] Adjusting the model parameters of the target neural network according to the conversion function to obtain adjusted model parameters;
[0105] Training the target neural network according to the adjusted model parameters, and determining whether the trained target neural network is in a convergence state;
[0106] If it is determined that the trained target neural network is in a convergence state, the trained target neural network is used as an ultrasound image data processing model.
[0107] In one embodiment, the pre-training module 302 is further used to:
[0108] Pre-training a preset neural network using the ultrasound image data to obtain a pre-training result, and determining candidate gradient data of the target neural network according to the pre-training result;
[0109] Encrypting the candidate gradient data and sending it to a federated learning server, so that the federated learning server performs joint learning based on the candidate gradient data sent by multiple clients to obtain joint gradient data;
[0110] According to the joint gradient data returned by the federated learning server, the model parameters of the neural network are updated until the updated neural network converges to obtain the target neural network.
[0111] Please refer to Figure 6 , Figure 6A schematic block diagram of an ultrasound image data processing device provided in an embodiment of the present application.
[0112] like Figure 6 As shown, the ultrasonic image data processing device 400 includes:
[0113] An acquisition module 401 is used to acquire ultrasonic image data of a target object;
[0114] The detection module 402 is used to detect the ultrasonic image data of the target detection object through the ultrasonic image data processing model to obtain the ultrasonic image data processing result of the target detection object;
[0115] The ultrasound image data processing model is trained according to the model training method in the aforementioned embodiment.
[0116] In one embodiment, the detection module 402 is further configured to:
[0117] Extracting a plurality of ultrasonic image data from the ultrasonic image data of the target detection object;
[0118] Inputting the plurality of ultrasound image data into the classification and recognition sublayer of the ultrasound image data processing model to extract key information from each of the ultrasound image data;
[0119] The normalization sublayer of the ultrasound image data processing model is used to determine the ultrasound image data processing result of the target detection object according to the key information in each ultrasound image data.
[0120] It should be noted that technical personnel in the relevant field can clearly understand that, for the convenience and conciseness of description, the specific working process of the above-described device and each module and unit can refer to the corresponding process in the aforementioned model training method or ultrasound image data processing method embodiment, and will not be repeated here.
[0121] The apparatus provided in the above embodiment may be implemented in the form of a computer program. The computer program may be Figure 7 Run on the client shown.
[0122] See also Figure 7 , Figure 7 This is a schematic block diagram of the structure of a client provided in an embodiment of the present application. The client may be a server or a terminal device.
[0123] like Figure 7 As shown, the client includes a processor, a memory, and a network interface connected via a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.
[0124] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any model training method or ultrasound image data processing method.
[0125] The processor is used to provide computing and control capabilities to support the operation of the entire client.
[0126] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any model training method or ultrasound image data processing method.
[0127] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the client to which the solution of the present application is applied. The specific client may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0128] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0129] In one embodiment, the processor is used to run a computer program stored in the memory to implement the following steps:
[0130] Acquire ultrasonic image data containing the target detection object, and pre-train a preset neural network through the ultrasonic image data to obtain a target neural network;
[0131] Extracting a plurality of ultrasonic image data from the ultrasonic image data, and training the target neural network through the plurality of ultrasonic image data to obtain a training result;
[0132] Determining the gradient data of the target neural network based on the training result, and encrypting the gradient data and sending it to the federated learning server;
[0133] Receiving target gradient data sent by the federated learning server, where the target gradient data is determined by the federated learning server through joint learning based on gradient data sent by multiple clients;
[0134] The model parameters of the target neural network are updated according to the target gradient data until the updated target neural network converges to obtain an ultrasonic image data processing model of the target detection object.
[0135] In one embodiment, when the processor implements the pre-training of a preset neural network through the ultrasound image data to obtain a target neural network, it is used to implement:
[0136] Extracting multiple frames of image data from the ultrasonic image data, and obtaining key information from each frame of the image data;
[0137] According to the key information in each frame of the image data, the model parameters of the preset neural network are updated to obtain the target neural network.
[0138] In one embodiment, the processor implements the neural network including an image extraction sublayer and a classification recognition sublayer; when the processor implements the extraction of multiple frames of image data from the ultrasound image data and obtains key information in each frame of the image data, it is used to implement:
[0139] Extracting multiple frames of image data from the ultrasound image data through the image extraction sublayer;
[0140] The multiple frames of image data are input into the classification and recognition sublayer to recognize key information in each frame of the image data.
[0141] In one embodiment, when the processor implements updating the model parameters of the target neural network according to the target gradient data until the updated target neural network converges to obtain the ultrasonic image data processing model of the target detection object, it is also used to implement:
[0142] Creating a transfer function of the target neural network according to the target gradient data;
[0143] Adjusting the model parameters of the target neural network according to the conversion function to obtain adjusted model parameters;
[0144] Training the target neural network according to the adjusted model parameters, and determining whether the trained target neural network is in a convergence state;
[0145] If it is determined that the trained target neural network is in a convergence state, the trained target neural network is used as an ultrasound image data processing model.
[0146] In one embodiment, the processor performs pre-training on a preset neural network through the ultrasound image data to obtain a target neural network for implementing:
[0147] Pre-training a preset neural network using the ultrasound image data to obtain a pre-training result, and determining candidate gradient data of the target neural network according to the pre-training result;
[0148] Encrypting the candidate gradient data and sending it to a federated learning server, so that the federated learning server performs joint learning based on the candidate gradient data sent by multiple clients to obtain joint gradient data;
[0149] According to the joint gradient data returned by the federated learning server, the model parameters of the neural network are updated until the updated neural network converges to obtain the target neural network.
[0150] In one embodiment, the processor is used to run a computer program stored in the memory to implement the following steps:
[0151] Acquire ultrasonic image data of the target object;
[0152] The ultrasonic image data of the target object is detected by using an ultrasonic image data processing model to obtain an ultrasonic image data processing result of the target object;
[0153] Wherein, the ultrasound image data processing model is trained according to the model training method described in any one of the aforementioned embodiments.
[0154] In one embodiment, when the processor detects the ultrasonic image data of the target detection object through the ultrasonic image data processing model to obtain the ultrasonic image data processing result of the target detection object, it is used to implement:
[0155] Extracting a plurality of ultrasonic image data from the ultrasonic image data of the target detection object;
[0156] Inputting the plurality of ultrasound image data into the classification and recognition sublayer of the ultrasound image data processing model to extract key information from each of the ultrasound image data;
[0157] The normalization sublayer of the ultrasound image data processing model is used to determine the ultrasound image data processing result of the target detection object according to the key information in each ultrasound image data.
[0158] It should be noted that technical personnel in the relevant field can clearly understand that, for the convenience and conciseness of description, the specific working process of the client described above can refer to the corresponding process in the aforementioned model training method or ultrasound image data processing method embodiment, and will not be repeated here.
[0159] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. The computer program includes program instructions. The method implemented when the program instructions are executed can refer to the various embodiments of the model training method or ultrasound image data processing method of the present application.
[0160] The computer-readable storage medium may be an internal storage unit of the client described in the foregoing embodiment, such as a hard disk or memory of the client. The computer-readable storage medium may also be an external storage device of the client, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the client.
[0161] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0162] It should also be understood that the term "and / or" used in the specification of this application and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system including the element.
[0163] The serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A model training method, characterized in that: Applied to the client, including: Acquire ultrasonic image data containing the target detection object, and pre-train a preset neural network through the ultrasonic image data to obtain a pre-training result, and determine candidate gradient data of the target neural network according to the pre-training result; The candidate gradient data is encrypted and sent to a federated learning server, so that the federated learning server performs joint learning based on the candidate gradient data sent by multiple clients to obtain joint gradient data; according to the joint gradient data returned by the federated learning server, the model parameters of the neural network are updated until the updated neural network converges to obtain a target neural network; Extracting a plurality of ultrasonic image data from the ultrasonic image data, and training the target neural network through the plurality of ultrasonic image data to obtain a training result; Determining the gradient data of the target neural network based on the training result, and encrypting the gradient data and sending it to the federated learning server; Receiving target gradient data sent by the federated learning server, where the target gradient data is determined by the federated learning server through joint learning based on gradient data sent by multiple clients; The model parameters of the target neural network are updated according to the target gradient data until the updated target neural network converges to obtain an ultrasonic image data processing model of the target detection object.
2. The model training method according to claim 1, characterized in that: The updating of the model parameters of the target neural network according to the target gradient data until the updated target neural network converges to obtain the ultrasonic image data processing model of the target detection object includes: Creating a transfer function of the target neural network according to the target gradient data; Adjusting the model parameters of the target neural network according to the conversion function to obtain adjusted model parameters; Training the target neural network according to the adjusted model parameters, and determining whether the trained target neural network is in a convergence state; If it is determined that the trained target neural network is in a convergence state, the trained target neural network is used as an ultrasound image data processing model.
3. A method for processing ultrasonic image data, characterized in that: include: Acquire ultrasonic image data of the target object; The ultrasonic image data of the target object is detected by using an ultrasonic image data processing model to obtain an ultrasonic image data processing result of the target object; Wherein, the ultrasound image data processing model is trained according to the model training method according to any one of claims 1 to 2.
4. The method for processing ultrasonic image data according to claim 3, wherein: The ultrasonic image data processing model is used to detect the ultrasonic image data of the target detection object to obtain the ultrasonic image data processing result of the target detection object, including: Extracting a plurality of ultrasonic image data from the ultrasonic image data of the target detection object; Inputting the plurality of ultrasound image data into the classification and recognition sublayer of the ultrasound image data processing model to extract key information from each of the ultrasound image data; The normalization sublayer of the ultrasound image data processing model is used to determine the ultrasound image data processing result of the target detection object according to the key information in each ultrasound image data.
5. A model training device, characterized in that: The model training device comprises: An acquisition module, used to acquire ultrasonic image data containing a target detection object; A pre-training module is used to pre-train a preset neural network through the ultrasound image data to obtain a pre-training result, and determine candidate gradient data of a target neural network according to the pre-training result; encrypt the candidate gradient data and send it to a federated learning server, so that the federated learning server can perform joint learning based on the candidate gradient data sent by multiple clients to obtain joint gradient data; update the model parameters of the neural network according to the joint gradient data returned by the federated learning server until the updated neural network converges to obtain a target neural network; A training module, used to extract a plurality of ultrasonic image data from the ultrasonic image data, and train the target neural network through the plurality of ultrasonic image data to obtain a training result; A determination module, configured to determine the gradient data of the target neural network based on the training result; A sending module, used for encrypting the gradient data and sending it to a federated learning server; A receiving module, configured to receive target gradient data sent by the federated learning server, wherein the target gradient data is determined by the federated learning server through joint learning based on gradient data sent by multiple clients; An updating module is used to update the model parameters of the target neural network according to the target gradient data until the updated target neural network converges to obtain the ultrasonic image data processing model of the target detection object.
6. A client, characterized in that: The client includes a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, it implements the model training method as described in any one of claims 1 to 2, or implements the steps of the ultrasound image data processing method as described in any one of claims 3 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, it implements the model training method as described in any one of claims 1 to 2, or implements the steps of the ultrasound image data processing method as described in any one of claims 3 to 4.
