A method for transmitting medical imaging data
By establishing an encrypted data transmission channel between the unified server and client in medical imaging data transmission, and using service matching coefficients and compressed package transmission, the security and accuracy issues in the medical imaging data transmission process are solved, achieving high efficiency, accuracy and security. data transmission.
Patent Information
- Application Number
- CN202410828710.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-25
AI Technical Summary
The transmission of medical imaging data between medical units has problems such as difficulty in ensuring safety, accuracy, and stability. Especially when patients are transferred to another hospital for treatment, the transmission process is inconvenient and prone to unclear and inaccurate data.
By establishing a unified server and client data transmission channel, assigning independent associated tags to each client, establishing an encrypted transmission channel, and transmitting medical imaging data through service matching coefficients and compression packages to ensure the security and accuracy of data transmission. performance, while performing image correction on the client side to avoid errors during compression, encoding and decoding.
It achieves efficient, accurate and safe transmission of medical imaging data, reduces the number of data transmissions, increases the transmission speed, and ensures the clarity and accuracy of the medical imaging data obtained by the client.
Smart Images

Figure CN118381859B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data transmission, and in particular to a method for transmitting medical imaging data. Background Art
[0002] Medical imaging refers to the technology and processing process of obtaining internal tissue images of the human body or a part of the human body in a non-invasive manner for medical treatment or medical research. This technology provides great help to doctors in diagnosing patients' conditions in current medical care. However, with the development of medical technology, more and more medical images are generated, which also poses a problem for the preservation, transmission and screening of medical image data. In the existing technology, the preservation, transmission and screening of medical image data are all based on a single medical unit as the carrier, and cross-use is carried out within it. The transmission of medical image data between medical units is often closed. Patients need to carry their own medical image data when they are transferred to another hospital for treatment, which will cause inconvenience in transferring to another hospital for treatment. Due to the complexity, huge size and privacy of medical image data, it is difficult to ensure the security, accuracy and stability of transmission between medical units. Summary of the invention
[0003] In view of the above-mentioned deficiencies in the prior art, the present invention provides a method for transmitting medical image data to solve the above-mentioned defects in the prior art.
[0004] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:
[0005] A method for transmitting medical image data is provided, which comprises the following steps:
[0006] S1: Establish a server to store and process various types of medical imaging data. The server establishes a data transmission channel with several clients and assigns an associated tag to each client.
[0007] S2: The client sends a connection request message to the server. The request message includes the client's association tag and a list of requested services. , n To request the number of service types in the service list, For the request service list n service type;
[0008] S3: The server first reads the association tag in the request information and determines whether the association tag is supported;
[0009] If yes, read the service list , execute step S4; otherwise, execute step S5;
[0010] S4: If the service list If at least one service type matches the server, the server generates matching information, which includes the matching service type, and executes step S6; otherwise, the server generates a pause message and sends it to the client. After receiving the pause message, the client temporarily cuts off the data transmission channel established with the client.
[0011] S5: The server generates a rejection message and sends it to the client. After receiving the rejection message, the client permanently disconnects the data transmission channel with the server.
[0012] S6: After receiving the matching information, the client calculates the service matching coefficient based on the matching service type f , and set the client to match expectations F ;
[0013] like , the client sends a release message to the server, and the server packages the medical imaging data according to the matching service type, establishes an encrypted transmission channel, and transmits the packaged medical imaging data to the client through the encrypted transmission channel;
[0014] like , the client sends a termination message to the server, and the client temporarily cuts off the data transmission channel established with the server.
[0015] Furthermore, the service matching coefficient f The calculation method is:
[0016] ;
[0017] in, i The service type number in the request service list. a i For the requested service list i Difficulty level of each service type, b i For the request service list i The weight coefficient of each service type, j is the ID of the matching service type, a j For the j The difficulty coefficient of the matching service types, b j For the j The weight coefficient of the matching service types, J is the total number of matching service types, B j For the j The difficulty coefficient of the matching service type for the server, e The number of the service type that the server can provide. Be For the server e Difficulty level of each service type, N is the total number of service types that the server can provide, k 1 is the matching evaluation weight corresponding to the client, k 2 is the matching evaluation weight corresponding to the server.
[0018] Furthermore, the method of transmitting medical image data to the client includes:
[0019] S41: Retrieve matching service types, including definition, compression method, image type, data type, and screening information. The server retrieves the corresponding medical image library according to the image type and data type, and selects medical films through the screening information.
[0020] S42: cropping the screened medical film to obtain a target area image, and graying the target area image to obtain an initial gray image;
[0021] S43: Establishing a pixel coordinate system in the initial grayscale image, and obtaining the grayscale value of each pixel in the initial grayscale image h and pixel coordinates , forming the pixel data of the target area image , m is the number of the pixel in the initial grayscale image;
[0022] S44: processing the screened medical film according to the definition within the matched service type to obtain a clear medical film, and compressing it according to the compression method within the matched service type to obtain a compressed file;
[0023] S45: Encode the compressed file and package it into a coded compressed file, which is transmitted to the client through an encrypted transmission channel. At the same time, the pixel data of the target area image Transmit to the client;
[0024] S46: The client receives the encoded compressed file and pixel data After that, the encoded compressed file is decoded to obtain a decoded compressed file, and then decompressed to obtain a decompressed medical film, and the decompressed medical film is gray-scaled to obtain a decompressed gray-scale image;
[0025] S47: Obtain pixel data of each pixel on the decompressed grayscale image according to the pixel coordinate system , M is the pixel number on the decompressed grayscale image, To decompress the pixels on the grayscale image M The gray value of PixelM Coordinates of the same pixel, compare the coordinates Gray value under , and calculate the matching degree between the two p ;
[0026] S48: Setting the matching threshold p 阈值 ,like , then the error between the decompressed grayscale image and the initial grayscale image does not meet the requirement, and the decompressed grayscale image needs to be corrected, and step S49 is executed; if , then the error between the decompressed grayscale image and the initial grayscale image meets the requirement, the current decompressed grayscale image is directly output, and the color of the current decompressed grayscale image is restored, and the client obtains a clear medical film;
[0027] S49: Error threshold according to gray value , calculate the gray value difference between the pixels at the same pixel coordinates on the decompressed gray image and the initial gray image;
[0028] like , then the grayscale value of the corresponding pixel on the decompressed grayscale image is set to h m ;
[0029] like , then the grayscale value of the corresponding pixel on the decompressed grayscale image is set to ;
[0030] S410: After the grayscale values of all pixels in the decompressed grayscale image are corrected, the corrected decompressed grayscale image is output and the color is restored, so that the client obtains a clear medical film.
[0031] Furthermore, the matching p The calculation method is:
[0032] ;
[0033] in, V is the total number of pixels on the decompressed grayscale image, v is the total number of pixels on the initial grayscale image.
[0034] Furthermore, a method of assigning an association tag to each client is as follows:
[0035] S11: The client independently designs its own class label based on the server's request Y r Class tags with other clients Y k The correlation value between and P value , the relevant value and P value Add to initial correlation set middle, d is the client ID, r and k is the class label number, For class labels Y r With class label Y k The difference between
[0036] S12: The client obtains an initial set of associations with other clients , the client will initially associate the set Send to the server;
[0037] S13: The server receives the initial association set After that, calculate the client's upper class label Y r and class tags with other clients Y k The weighted average of the P values ;
[0038] ;
[0039] in, is the weight of the P value, D is the total number of clients;
[0040] S14: If the weighted average Less than the significance level , then calculate all client class labels Y r With class label Y k The correlation value of The weighted average ;
[0041] ;
[0042] in, is the weight of the relevant value;
[0043] S15: The server will weight the average , weighted average and class labels Y k Also added to the initial association set In the above example, we get the global initial association set , the global initial association set Assigned to the client as an association tag.
[0044] The beneficial effects of the present invention are as follows: the present invention provides conditions for the long-distance and multi-data transmission of medical imaging data, establishes a unified server, allocates independent association tags for each client, ensures the differences in association tags between different clients, establishes a separate and secure data transmission channel between the server and the client, and the server and the client perform two-way selection to meet the client's service requests and service types as much as possible, reduces the number of data transmissions, and transmits images related to medical imaging data in the form of compressed packages, which speeds up the data transmission time. At the same time, an image correction process is established on the client to avoid errors in the compression, encoding and decoding processes, which in turn lead to unclear and inaccurate defects in the medical imaging data obtained by the client, thereby achieving efficient, accurate and secure data transmission of large amounts of medical imaging data. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 The present invention is a flow chart of a method for transmitting medical imaging data. DETAILED DESCRIPTION
[0046] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.
[0047] like Figure 1 As shown, a method for transmitting medical image data comprises the following steps:
[0048] S1: Establish a server for storing and processing various types of medical imaging data. The server establishes a data transmission channel with several clients and assigns an association tag to each client. The method for assigning an association tag to each client is as follows:
[0049] S11: The client independently designs its own class label based on the server's request Y r Class tags with other clients Y k The correlation value between and P value , the relevant value and P value Add to initial correlation set middle, d is the client ID, r and k is the class label number, For class labels Y rWith class label Y k The difference between
[0050] S12: The client obtains an initial set of associations with other clients , the client will initially associate the set Send to the server;
[0051] S13: The server receives the initial association set After that, calculate the client's upper class label Y r and class tags with other clients Y k The weighted average of the P values ;
[0052] ;
[0053] in, is the weight of the P value, D is the total number of clients;
[0054] S14: If the weighted average Less than the significance level , then calculate all client class labels Y r With class label Y k The correlation value of The weighted average ;
[0055] ;
[0056] in, is the weight of the relevant value;
[0057] S15: The server will weight the average , weighted average and class labels Y k Also added to the initial association set In the above example, we get the global initial association set , the global initial association set Assigned to the client as an association tag.
[0058] S2: The client sends a connection request message to the server. The request message includes the client's association tag and a list of requested services. , n To request the number of service types in the service list, For the request service list n service type;
[0059] S3: The server first reads the association tag in the request information and determines whether the association tag is supported;
[0060] If yes, read the service list , execute step S4; otherwise, execute step S5;
[0061] S4: If the service list If at least one service type matches the server, the server generates matching information, which includes the matching service type, and executes step S6; otherwise, the server generates a pause message and sends it to the client. After receiving the pause message, the client temporarily cuts off the data transmission channel established with the client.
[0062] S5: The server generates a rejection message and sends it to the client. After receiving the rejection message, the client permanently disconnects the data transmission channel with the server.
[0063] S6: After receiving the matching information, the client calculates the service matching coefficient based on the matching service type f , and set the client to match expectations F ;
[0064] like , the client sends a release message to the server, and the server packages the medical imaging data according to the matching service type, establishes an encrypted transmission channel, and transmits the packaged medical imaging data to the client through the encrypted transmission channel;
[0065] like , the client sends a termination message to the server, and the client temporarily cuts off the data transmission channel established with the server.
[0066] Service matching coefficient f The calculation method is:
[0067] ;
[0068] in, i The service type number in the request service list. a i For the request service list i Difficulty level of each service type, b i For the request service list i The weight coefficient of each service type, j is the ID of the matching service type, a j For the j The difficulty coefficient of the matching service types, b j For thej The weight coefficient of the matching service types, J is the total number of matching service types, B j For the j The difficulty coefficient of the matching service type for the server, e The number of the service type that the server can provide. B e For the server e Difficulty level of each service type, N is the total number of service types that the server can provide, k 1 is the matching evaluation weight corresponding to the client, k 2 is the matching evaluation weight corresponding to the server.
[0069] The present invention calculates the service matching coefficient from two aspects to match the service of the server. The first is the service difficulty and weight defined by the client, and the second is the matched service difficulty and weight defined by the server. Even if there are few matched service types, the server can provide the main service types and service types with high difficulty coefficients and can establish contact with the client. The weight coefficient represents the importance of the service type. The larger the weight coefficient, the more important it is. The difficulty coefficient represents the difficulty that the client or server can achieve. The larger the difficulty coefficient, the more difficult the service type is. For example, if a higher clarity is set and needs to be processed by the server, the lower the resolution of the image, the more difficult it is to improve the clarity.
[0070] Methods for transmitting medical imaging data to clients include:
[0071] S41: Retrieve matching service types, including definition, compression method, image type, data type, and screening information. The server retrieves the corresponding medical image library according to the image type and data type. Image types include CT films, ultrasound, etc., and data types include pictures or videos, etc., and selects medical films through screening information. The screening information may be the patient's name, gender, diagnosis information, etc.;
[0072] S42: cropping the screened medical film to obtain a target area image, and graying the target area image to obtain an initial gray image;
[0073] S43: Establishing a pixel coordinate system in the initial grayscale image, and obtaining the grayscale value of each pixel in the initial grayscale image h and pixel coordinates , forming the pixel data of the target area image , m is the number of the pixel in the initial grayscale image;
[0074] S44: processing the screened medical film according to the definition within the matched service type to obtain a clear medical film, and compressing it according to the compression method within the matched service type to obtain a compressed file;
[0075] S45: Encode the compressed file and package it into a coded compressed file, which is transmitted to the client through an encrypted transmission channel. At the same time, the pixel data of the target area image Transmit to the client;
[0076] S46: The client receives the encoded compressed file and pixel data After that, the encoded compressed file is decoded to obtain a decoded compressed file, and then decompressed to obtain a decompressed medical film, and the decompressed medical film is gray-scaled to obtain a decompressed gray-scale image;
[0077] S47: Obtain pixel data of each pixel on the decompressed grayscale image according to the pixel coordinate system , M is the pixel number on the decompressed grayscale image, To decompress the pixels on the grayscale image M The gray value of Pixel M Coordinates of the same pixel, compare the coordinates Gray value under , and calculate the matching degree between the two p ; Matching degree p The calculation method is:
[0078] ;
[0079] in, V is the total number of pixels on the decompressed grayscale image, v is the total number of pixels on the initial grayscale image.
[0080] S48: Setting the matching threshold p 阈值 ,like , then the error between the decompressed grayscale image and the initial grayscale image does not meet the requirement, and the decompressed grayscale image needs to be corrected, and step S49 is executed; if , then the error between the decompressed grayscale image and the initial grayscale image meets the requirement, the current decompressed grayscale image is directly output, and the color of the current decompressed grayscale image is restored, and the client obtains a clear medical film;
[0081] S49: Error threshold according to gray value , calculate the gray value difference between the pixels at the same pixel coordinates on the decompressed gray image and the initial gray image;
[0082] like , then the grayscale value of the corresponding pixel on the decompressed grayscale image is set to h m ;
[0083] like , then the grayscale value of the corresponding pixel on the decompressed grayscale image is set to ;
[0084] S410: After the grayscale values of all pixels in the decompressed grayscale image are corrected, the corrected decompressed grayscale image is output and the color is restored, so that the client obtains a clear medical film.
[0085] The present invention provides conditions for the long-distance and multi-data transmission of medical imaging data, establishes a unified server, allocates independent association tags for each client, ensures the differences in association tags between different clients, establishes a separate and secure data transmission channel between the server and the client, and the server and the client perform two-way selection to meet the client's service requests and service types as much as possible, reducing the number of data transmissions. Medical imaging data-related images are transmitted in the form of compressed packages, which speeds up the data transmission time. At the same time, an image correction process is established on the client to avoid errors in the compression, encoding and decoding processes, which in turn lead to unclear and inaccurate defects in the medical imaging data obtained by the client, thereby achieving efficient, accurate and secure data transmission of large amounts of medical imaging data.
Claims
1. A method for transmitting medical image data, characterized in that: The following steps are involved: S1: Establish a server to store and process various types of medical imaging data. The server establishes a data transmission channel with several clients and assigns an associated tag to each client. S2: The client sends a connection request message to the server. The request message includes the client's association tag and a list of requested services (c1, c2, ...c n ), n is the number of service types in the requested service list, c n The nth service type in the requested service list; S3: The server first reads the association tag in the request information and determines whether the association tag is supported; If yes, read the service list (c1, c2, ... c n ), execute step S4; Otherwise, execute step S5; S4: If the service list (c1, c2, ... c n ) has at least one service type that matches the server, the server generates matching information, the matching information includes the matching service type, and executes step S6; otherwise, the server generates a pause message and sends it to the client. After the client receives the pause message, the data transmission channel established with the client is temporarily cut off; S5: The server generates a rejection message and sends it to the client. After receiving the rejection message, the client permanently disconnects the data transmission channel with the server. S6: After receiving the matching information, the client calculates the service matching coefficient f according to the matching service type and sets the client matching expectation F; If f≥F, the client sends a release message to the server, and the server packages the medical imaging data according to the matching service type, establishes an encrypted transmission channel, and transmits the packaged medical imaging data to the client through the encrypted transmission channel; If f<F, the client sends a termination message to the server, and the client temporarily cuts off the data transmission channel established with the server; The calculation method of the service matching coefficient f is: Where i is the service type number in the request service list, a i is the difficulty coefficient of the i-th service type in the request service list, b i is the weight coefficient of the i-th service type in the request service list, j is the number of the matching service type, a j is the difficulty coefficient of the jth matching service type, b j is the weight coefficient of the jth matching service type, J is the total number of matching service types, B j is the difficulty coefficient of the jth matching service type for the server, e is the number of the service type that the server can provide, B e is the difficulty coefficient of the e-th service type for the server, N is the total number of service types that the server can provide, k1 is the matching evaluation weight corresponding to the client, and k2 is the matching evaluation weight corresponding to the server; The method for transmitting medical image data to a client comprises: S41: Retrieve matching service types, including definition, compression method, image type, data type, and screening information. The server retrieves the corresponding medical image library according to the image type and data type, and selects medical films through the screening information. S42: cropping the screened medical film to obtain a target area image, and graying the target area image to obtain an initial gray image; S43: Establishing a pixel coordinate system in the initial grayscale image, obtaining the grayscale value h and pixel coordinates (x, y) of each pixel in the initial grayscale image, and forming pixel data [(x, y)] of the target area image. m ,h m ], m is the number of the pixel in the initial grayscale image; S44: processing the screened medical film according to the definition within the matched service type to obtain a clear medical film, and compressing it according to the compression method within the matched service type to obtain a compressed file; S45: Encode the compressed file and package it into a coded compressed file. The coded compressed file is transmitted to the client through an encrypted transmission channel. At the same time, the pixel data [(x, y) of the target area image is m ,h m ]Transmit to the client; S46: The client receives the encoded compressed file and pixel data [(x,y) m ,h m ], firstly decode the coded compressed file to obtain the decoded compressed file, decompress it to obtain the decompressed medical film, and grayscale the decompressed medical film to obtain the decompressed grayscale image; S47: According to the pixel coordinate system, the pixel data [(x, y)] of each pixel on the decompressed grayscale image is obtained. M ,h M ], M is the pixel number on the decompressed grayscale image, h M is the gray value of pixel M on the decompressed gray image, (x, y) M is the coordinate of pixel M, compare the same pixel coordinates (x, y) m =(x,y) M The gray value h m 、h M , and calculate the matching degree p between the two; S48: Setting the matching threshold p 阈值 , if p>p 阈值 , then the error between the decompressed grayscale image and the initial grayscale image does not meet the requirement, and the decompressed grayscale image needs to be corrected, and step S49 is executed; if p≤p 阈值 , then the error between the decompressed grayscale image and the initial grayscale image meets the requirement, the current decompressed grayscale image is directly output, and the color of the current decompressed grayscale image is restored, and the client obtains a clear medical film; S49: Based on the gray value error threshold Δh 阈值 , calculate the gray value difference between the pixels at the same pixel coordinates on the decompressed gray image and the initial gray image; If |h m -h M |>Δh 阈值 , then the grayscale value of the corresponding pixel on the decompressed grayscale image is set to h m ; If |h m -h M |≤Δh 阈值 , then the grayscale value of the corresponding pixel on the decompressed grayscale image is set to S410: After the grayscale values of all pixels in the decompressed grayscale image are corrected, the corrected decompressed grayscale image is output and the color is restored, so that the client obtains a clear medical film; The calculation method of the matching degree p is: Where V is the total number of pixels on the decompressed grayscale image, and v is the total number of pixels on the initial grayscale image.
2. The method for transmitting medical image data according to claim 1, characterized in that: The method of assigning an association tag to each client is: S11: The client independently designs its own class label Y based on the server's request r Class label Y with other clients k The correlation value between and P value The relevant value and P value Add to the initial correlation set μ′ d,r In the example, d is the client ID, r and k are class label IDs, and θ is the class label Y. r with class label Y k The difference between S12: The client obtains an initial association set μd′ with other clients d = {μ′ d,1 ,μ′ d,2 ,…,μ′ d,r }, the client will initialize the association set μ′ d Send to the server; S13: The server receives the initial association set μ′ d After that, calculate the client's upper class label Y r and class label Y with other clients k The weighted average of the P values Among them, W d is the weight of P value, D is the total number of clients; S14: If the weighted average If it is less than the significance level α, then all client class labels Y are calculated r with class label Y k The correlation value of The weighted average Among them, W′ d is the weight of the relevant value; S15: The server will weight the average Weighted average and class label Y k Also added to the initial association set μ′ d In the above example, we get the global initial association set μ d , the global initial association set μ d Assigned to the client as an association tag.
