Similar case automatic recommendation method, device, cluster and medium
By using different locality-sensitive hashing algorithms to calculate image feature vectors and using hash table indexes, the problem of long manual search for similar cases in medical diagnosis is solved, fast and efficient similar case recommendation is achieved, and the retrieval speed and accuracy are improved. .
Patent Information
- Application Number
- CN202410726143.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-06
AI Technical Summary
In medical diagnosis, the process of manually finding similar cases is time-consuming and the results do not meet user needs. It is difficult for existing technology to automatically recommend similar cases quickly and efficiently.
Two different local-sensitive hashing algorithms are used to calculate image feature vectors, and the hash buckets in the hash table are used for indexing to quickly find and recommend similar cases, improving the retrieval speed and recommendation accuracy without reducing the retrieval speed. Case storage capacity has been increased.
It realizes automatic and fast search for recommendations of similar cases, improves retrieval speed and recommendation accuracy, and reduces manual search time and human error.
Smart Images

Figure CN118315080B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing, and in particular to a similar case automatic recommendation method, device, cluster and medium. Background Art
[0002] In medical diagnosis, past cases are often of great reference value. However, the number of cases is often very large, and manually searching for similar past cases is a huge and time-consuming task. However, the search results often cannot meet the needs of users. Summary of the invention
[0003] The present application provides a similar case automatic recommendation method, device, cluster and medium, which can automatically and quickly find similar cases and recommend similar cases.
[0004] In a first aspect, a similar case automatic recommendation method is provided, comprising:
[0005] extracting a first feature vector from the first image;
[0006] Using a first locality sensitive hashing algorithm to calculate the first feature vector to obtain a first hash value, and using a second locality sensitive hashing algorithm to calculate the first feature vector to obtain a second hash value, wherein the first locality sensitive hashing algorithm is different from the second locality sensitive hashing algorithm;
[0007] When the first hash value is located in the first hash bucket of the first hash table and the second hash value is located in the second hash bucket of the second hash table, the cases corresponding to the images in the first hash bucket and the cases corresponding to the images in the second hash bucket are recommended, wherein the first hash table corresponds to the first local sensitive hashing algorithm, the second hash table corresponds to the second local sensitive hashing algorithm, the first hash table includes multiple hash buckets including the first hash bucket, the second hash table includes multiple hash buckets including the second hash bucket, the hash value obtained by calculating the feature vector extracted from the image in the first hash bucket using the second local sensitive hashing algorithm belongs to the second hash bucket, and the hash value obtained by calculating the feature vector extracted from the image in the second hash bucket using the first local sensitive hashing algorithm belongs to the first hash bucket.
[0008] In some possible designs, when the number of cases in the first hash bucket minus the number of cases in the second hash bucket is greater than or equal to a quantity threshold, the cases corresponding to the first image are stored in the second hash bucket;
[0009] When the number of cases in the first hash bucket minus the number of cases in the second hash bucket is less than a quantity threshold, the cases corresponding to the first image are stored in the first hash bucket.
[0010] In some possible designs, before storing the case corresponding to the first image in the second hash bucket or storing the case corresponding to the first image in the first hash bucket, the method further includes:
[0011] When a confirmation instruction input by the user is received, the case corresponding to the first image is stored in the second hash bucket or the case corresponding to the first image is stored in the first hash bucket.
[0012] In some possible designs, recommending cases corresponding to the images in the first hash bucket and cases corresponding to the images in the second hash bucket includes:
[0013] The cases corresponding to the images in the first hash bucket and the cases corresponding to the images in the second hash bucket are recommended according to their similarities, wherein the closer the hash value calculated by the first locally sensitive hashing algorithm for the images of the cases in the first hash bucket is to the first hash value, the higher the similarity to the cases corresponding to the first image; and the closer the hash value calculated by the second locally sensitive hashing algorithm for the images of the cases in the second hash bucket is to the second hash value, the higher the similarity to the cases corresponding to the first image.
[0014] In some possible designs, recommending cases corresponding to the images in the first hash bucket and cases corresponding to the images in the second hash bucket includes:
[0015] The cases corresponding to the images in the first hash bucket and the cases corresponding to the images in the second hash bucket are recommended according to the level of the attending physician.
[0016] In some possible designs, the higher the similarity between the multiple input values of the first locality sensitive hash algorithm and the second locality sensitive hash algorithm, the higher the similarity between the output values corresponding to the multiple input values.
[0017] In some possible designs, the first locality sensitive hashing algorithm includes any one of the minimum hashing algorithm, the similarity hashing algorithm, the random projection hashing algorithm, and the spectral hashing algorithm; the second locality sensitive hashing algorithm includes another one of the minimum hashing algorithm, the similarity hashing algorithm, the random projection hashing algorithm, and the spectral hashing algorithm.
[0018] In a second aspect, a similar case automatic recommendation device is provided. The device includes an extraction unit, a calculation unit, and a recommendation unit.
[0019] The extraction unit is used to extract a first feature vector from the first image;
[0020] The calculation unit is used to calculate the first feature vector using a first locality sensitive hash algorithm to obtain a first hash value, and calculate the first feature vector using a second locality sensitive hash algorithm to obtain a second hash value, wherein the first locality sensitive hash algorithm is different from the second locality sensitive hash algorithm;
[0021] The recommendation unit is used to recommend cases corresponding to images in the first hash bucket and cases corresponding to images in the second hash bucket when the first hash value is located in the first hash bucket of the first hash table and the second hash value is located in the second hash bucket of the second hash table, wherein a hash value obtained by calculating a feature vector extracted from the image in the first hash bucket using the second local sensitive hashing algorithm belongs to the second hash bucket, and a hash value obtained by calculating a feature vector extracted from the image in the second hash bucket using the first local sensitive hashing algorithm belongs to the first hash bucket.
[0022] According to a third aspect, a computing device is provided, comprising: a processor and a memory, wherein the memory is used to store instructions, and the processor is used to run the instructions in the memory to execute the method as described in any one of the first aspects.
[0023] In a fourth aspect, a computing cluster is provided, comprising a plurality of computing devices, wherein each computing device comprises a processor and a memory, the memory being used to store instructions, and the processor being used to run the instructions in the memory to execute the method as described in any one of the first aspects.
[0024] In a fifth aspect, a computer-readable storage medium is provided, comprising instructions, which, when executed by a computing device, execute the method as described in any one of the first aspects.
[0025] In the above scheme, the first feature vector is obtained by extracting features from the first image, and the first feature vector is calculated using two different local sensitive hashing algorithms. If the two different algorithms fall into the hash buckets corresponding to the two hash tables corresponding to the same type of cases, the first image is considered to belong to the case, and the cases in the two hash buckets are recommended to the user. The first hash table is indexed according to the hash value calculated by the first local sensitive hashing algorithm, and the second hash is indexed according to the hash value calculated by the second local sensitive hashing algorithm. Therefore, the retrieval speed is very fast. Because multiple different local sensitive hashing algorithms are used at the same time, when multiple hashing algorithms determine that the cases corresponding to the first image are all the same type of cases, the recommendation of cases can effectively improve the accuracy of the recommendation, and the same type of cases can be placed in multiple different hash tables respectively, which can increase the storage capacity of cases without reducing the retrieval speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the background technology, the drawings required for use in the embodiments of the present invention or the background technology will be described below.
[0027] Figure 1 It is a flowchart of a similar case automatic recommendation method provided by the present application;
[0028] Figure 2 It is a structural schematic diagram of a convolutional neural network provided by this application;
[0029] Figure 3 It is a schematic diagram of the structure of another convolutional neural network provided by this application;
[0030] Figure 4 It is a structural schematic diagram of a computing device provided by this application. DETAILED DESCRIPTION
[0031] The embodiments of the present invention are described below in conjunction with the accompanying drawings in the embodiments of the present invention. The terms used in the implementation mode of the present invention are only used to explain the specific embodiments of the present invention, and are not intended to limit the present invention.
[0032] See also Figure 1 , Figure 1 is a flowchart of a similar case automatic recommendation method provided by this application. Figure 1 As shown, the similar case automatic recommendation method of the present application includes:
[0033] S101: extracting a first feature vector from a first image.
[0034] In some possible embodiments, the first image may be one or more of an X-ray image, a computed tomography (CT) image, a magnetic resonance imaging (MRI) image, a B-mode ultrasonography image, a positron emission tomography (PET), etc. The first image may be a whole-body image of a human body or an image of a local organ.
[0035] In some possible embodiments, the first image may be obtained by subjecting the original image to one or more image processing such as image segmentation, image extraction, image filtering, image denoising, image stitching, image enhancement, etc.
[0036] In some possible embodiments, the first feature vector may be extracted from the first image by a feature extraction algorithm, wherein the feature extraction algorithm may include one or more of the following combinations: principal component analysis (PCA), independent component analysis (ICA), linear discriminant analysis (LDA), local binary patterns (LBP), scale-invariant feature transform (SIFT), histogram of oriented gradients (HOG), and convolutional neural networks (CNN).
[0037] In a specific embodiment, a feature extraction algorithm is described by taking a convolutional neural network as an example. Figure 2 As shown, the convolutional neural network may include multiple feature extractors.
[0038] The feature extractor includes convolutional layers and pooling layers. The convolutional layer is used for convolution processing. The process of convolution processing can be regarded as using a trainable first filter to convolve with the input image or convolution feature plane (feature map) to obtain a feature image. The convolutional layer refers to the neuron layer in the convolutional neural network that performs convolution processing on the input image and the filter. In the convolutional layer of the convolutional neural network, a neuron can only be connected to some neurons in the adjacent layer. A convolutional layer usually contains several feature planes, and each feature plane can be composed of some neural units arranged in a rectangular shape. The neural units in the same feature plane share weights, and the shared weights here are convolution kernels. The convolution kernel can be understood as a way to extract image information that is independent of position. Therefore, for all positions on the input image, we can use the same learned image information. In the same convolutional layer, multiple convolution kernels can be used to extract different image information. Generally speaking, the more convolution kernels there are, the richer the image information reflected by the convolution operation. The pooling layer is used for pooling processing. The process of pooling processing can be regarded as the process of sampling the input image. The input image can be reduced in dimension through pooling processing. That is to say, the pooling layer can reduce the input image with a larger image size into a feature image with a smaller image size.
[0039] In a more specific embodiment, a convolutional neural network is used as an example for explanation. Figure 3 As shown, the feature extraction algorithm includes feature extractor 1 (including convolution layer 1 and pooling layer 1), feature extractor 2 (including convolution layer 2 and pooling layer 2), and convolution layer 3.
[0040] In feature extractor 1:
[0041] The size is The first image is input into the feature extractor 1, thereby obtaining multiple images of size The characteristic image of The value is greater than In fact, we can first change the size to First image Input convolution layer 1, and get The size is Convolutional Image , and then The size is Convolutional Image Input pooling layer 1, thus getting The size is Pooled image .here, The size is Pooled image That is The size is The specific calculation process in convolution layer 1 and pooling layer 1 is as follows:
[0042] In convolutional layer 1:
[0043] The size is First image As the input of convolutional layer 1, Convolution kernel ( =1,2,…, ) is generated by convolution The size is Convolution image ( =1,2,…, ), where each convolution image The generation process is as follows:
[0044]
[0045]
[0046]
[0047] in, Represented as using convolution kernel For the first image Perform convolution operation and the same is expressed as padding. Expressed as a bias value, Represented as the result of convolution calculation, Expressed as an activation function, the present invention adopts the relu function.
[0048] In pooling layer 1:
[0049] The output of convolutional layer 1 The size is Convolution image As the input of the pooling layer, after pooling through the pooling window, The size is Pooled image ( =1,2,…, ), where each pooled image The generation process is as follows:
[0050]
[0051] Among them, maxpool represents maximum pooling. It should be understood that the maximum pooling is used as an example for explanation here. In practical applications, mean pooling and the like can also be used, which is not specifically limited here.
[0052] In feature extractor 2:
[0053] Will The size is Pooled image ( =1,2,…, ) is input into feature extractor 2, thereby obtaining multiple The characteristic image of The value is greater than In fact, we can first The size is Pooled image ( =1,2,…, ) is input into convolutional layer 2, thus obtaining The size is Convolutional Image ( =1,2,…, ), and then The size is Convolutional Image ( =1,2,…, ) is input into pooling layer 2, thus obtaining The size is Pooled image ( =1,2,…, ).here, The size is Pooled image ( =1,2,…, ) is The size is The specific calculation process in convolution layer 2 and pooling layer 2 is as follows:
[0054] In convolutional layer 2:
[0055] The size is Pooled image ( =1,2,…, ) as the input of convolutional layer 2, after Convolution kernel ( =1,2,…, ) is generated by convolution The size is Convolution image ( =1,2,…, ), where each convolution image The generation process is as follows:
[0056]
[0057]
[0058]
[0059] in, Represented as using convolution kernel Pooled image Perform convolution operation and the same is expressed as padding. Expressed as a bias value, Represented as the result of convolution calculation, Expressed as an activation function, the present invention adopts the relu function.
[0060] In pooling layer 2:
[0061] The output of convolutional layer 2 The size is Convolution image As the input of the pooling layer, after pooling through the pooling window, The size is Pooled image ( =1,2,…, ), where each pooled image The generation process is as follows:
[0062]
[0063] Among them, maxpool represents maximum pooling. It should be understood that the maximum pooling is used as an example for explanation here. In practical applications, mean pooling and the like can also be used, which is not specifically limited here.
[0064] In convolutional layer 3:
[0065] Will The size is Pooled image ( =1,2,…, ) as the input of convolutional layer 3, after Convolution kernel ( =1,2,…, ) is generated by convolution The size is Convolution image ( =1,2,…, ), where each convolution image The generation process is as follows:
[0066]
[0067]
[0068]
[0069] in, Represented as using convolution kernel Pooled image Perform convolution operation and the same is expressed as padding. Expressed as a bias value, Represented as the result of convolution calculation, Expressed as an activation function, the present invention adopts the relu function.
[0070] The first eigenvector can be obtained by splicing multiple convolution images.
[0071] S102: Using a first locality-sensitive hashing algorithm to calculate the first feature vector to obtain a first hash value, and using a second locality-sensitive hashing algorithm to calculate the first feature vector to obtain a second hash value.
[0072] In some possible embodiments, the first local sensitive hash algorithm and the second local sensitive hash algorithm are hash algorithms in which the higher the similarity of multiple input values, the higher the similarity of output values corresponding to the multiple input values. In other words, the first local sensitive hash algorithm and the second local sensitive hash algorithm are algorithms that map similar input values to adjacent hash values. The first local sensitive hash algorithm includes any one of the minimum hash (minhash) algorithm, the similarity hash (simhash) algorithm, the random projection hash algorithm (Random Projection), and the spectral hash algorithm (SpectralHashing). The second local sensitive hash algorithm includes another one of the minimum hash algorithm, the similarity hash algorithm, the random projection hash algorithm, and the spectral hash algorithm. Here, the first local sensitive hash algorithm must be different from the second local sensitive hash algorithm.
[0073] In some possible embodiments, the first local sensitive hash algorithm corresponds to the first hash table, and the second local sensitive hash algorithm corresponds to the second hash table. That is, the first hash table is indexed according to the hash value calculated by the first local sensitive hash algorithm, and the second hash table is indexed according to the hash value calculated by the second local sensitive hash algorithm. The first hash table includes multiple hash buckets, and multiple similar hash values in the first hash table can share the same hash bucket, or each hash value corresponds to a hash bucket. The second hash table includes multiple hash buckets, and multiple similar hash values in the second hash table can share the same hash bucket, or each hash value corresponds to a hash bucket.
[0074] Each hash bucket may include multiple hash structures, and the depth of the hash bucket is the number of hash structures included in the hash bucket. In a specific embodiment, each hash structure includes one or more of the following: medical information, chief complaint, current medical history, past medical history, family history, physical examination, laboratory examination, diagnosis, treatment plan, follow-up, etc. Among them, the medical information includes the date of medical treatment, the department of medical treatment, the doctor of medical treatment, etc. The chief complaint includes the main symptoms or discomfort reported by the patient. The current medical history includes the description of the patient's current condition, including symptoms, duration, frequency of attacks, etc. Past medical history includes past medical history, surgical history, drug allergy history, etc. Family history includes whether the patient's family members have similar diseases or genetic diseases. Physical examination includes physical examination of the patient, including height, weight, blood pressure, heart rate, etc. Laboratory examination includes blood test, urine test, imaging examination, etc. Diagnosis includes preliminary or final diagnosis of the patient's disease. Treatment plan includes drug treatment, surgical treatment, rehabilitation plan, etc. Follow-up includes the patient's treatment progress, efficacy evaluation, recurrence, etc. The above hash structure is only used as a specific example. In actual applications, the hash structure may also include more or fewer fields, and the length of each field may also be set as needed.
[0075] The hash bucket in the first hash table and the hash bucket in the second hash table have a one-to-one correspondence. The two hash values calculated by the first local sensitive hash algorithm for two cases of the same type are located in the same hash bucket of the first hash table, and the two hash values calculated by the second local sensitive hash algorithm are also located in the same hash bucket of the second hash table. Because when two different local sensitive hash algorithms are used, if they are assigned to the same bucket twice, the possibility of the two cases being similar will be greater than the possibility of the two cases being similar when the two cases are assigned to the same bucket by using one local sensitive hash algorithm, because the influence of chance is eliminated. Here, the first hash bucket of the first hash table and the second hash bucket of the second hash table are the buckets corresponding to the same type of cases in two different hash tables. That is to say, the hash value calculated by the first local sensitive hash algorithm for the feature vector extracted from the image in the first hash bucket belongs to the first hash bucket, and the hash value calculated by the second local sensitive hash algorithm belongs to the second hash bucket. The hash value obtained by calculating the feature vector extracted from the image in the second hash bucket using the first local sensitive hashing algorithm belongs to the first hash bucket, and the hash value obtained by calculating the feature vector using the second local sensitive hashing algorithm belongs to the second hash bucket. Therefore, the cases in the first hash bucket and the cases in the second hash bucket are of the same type.
[0076] S103: Determine whether the first hash value is located in the first hash bucket of the first hash table, and the second hash value is located in the second hash bucket of the second hash table. If the first hash value is located in the first hash bucket of the first hash table, and the second hash value is located in the second hash bucket of the second hash table, proceed to step S104, otherwise, the process ends.
[0077] S104: recommending cases corresponding to the images in the first hash bucket and cases corresponding to the images in the second hash bucket.
[0078] In some possible embodiments, since the cases corresponding to the images in the first hash bucket and the cases corresponding to the images in the second hash bucket are the same type of cases, the cases corresponding to the images in the first hash bucket and the cases corresponding to the images in the second hash bucket can be recommended. When making recommendations, the recommendations can be made in the following manner:
[0079] (1) Recommend the cases corresponding to the images in the first hash bucket and the cases corresponding to the images in the second hash bucket according to their similarity. Assuming that one of the cases in the first hash bucket is the second image, the similarity between the first image and the second image can be calculated as follows:
[0080] The first hash value is calculated by using the first local sensitive hashing algorithm according to the first feature vector extracted from the first image, and the second hash value is calculated by using the first local sensitive hashing algorithm according to the second feature vector extracted from the second image, and the similarity between the first hash value and the second hash value is calculated. The similarity calculation method includes: Euclidean distance, Manhattan distance, cosine similarity, Jaccard similarity, Pearson Correlation Coefficient, Hamming distance, etc. Therefore, the closer the hash value calculated by using the first local sensitive hashing algorithm for the image of the case in the first hash bucket is to the first hash value, the higher the similarity with the case corresponding to the first image, and the closer the hash value calculated by using the second local sensitive hashing algorithm for the image of the case in the second hash bucket is to the second hash value, the higher the similarity with the case corresponding to the first image.
[0081] (2) The cases corresponding to the images in the first hash bucket and the cases corresponding to the images in the second hash bucket are recommended according to the level of the attending physician.
[0082] Because the treatment plan and diagnosis reference value of the attending physician with a higher level is often higher, therefore, the cases corresponding to the images in the first hash bucket and the cases corresponding to the images in the second hash bucket can be recommended according to the level of the attending physician. The levels of the attending physician include chief physician, deputy chief physician, attending physician, resident physician, intern physician, etc.
[0083] S105: Obtain the number of cases in the first hash bucket and the number of cases in the second hash bucket, and calculate whether the number of cases in the first hash bucket minus the number of cases in the second hash bucket is greater than or equal to the number threshold. If the number of cases in the first hash bucket minus the number of cases in the second hash bucket is greater than or equal to the number threshold, proceed to step S106, otherwise proceed to step S107.
[0084] In some possible embodiments, the number of cases in the first hash bucket of the first hash table and the number of cases in the second hash bucket of the second hash table are obtained, and the number of cases in the first hash bucket and the number of cases in the second hash bucket are compared to obtain a comparison result. Then, based on the comparison result, it is determined whether to store the cases corresponding to the first image in the first hash bucket of the first hash table or to store the cases corresponding to the first image in the second hash bucket of the second hash table. For example, when the number of cases in the first hash bucket minus the number of cases in the second hash bucket is greater than or equal to a quantity threshold, the cases corresponding to the first image may be stored in the second hash bucket of the second hash table. When the number of cases in the first hash bucket minus the number of cases in the second hash bucket is less than the quantity threshold, the cases corresponding to the first image may be stored in the first hash bucket of the first hash table. Among them, the quantity threshold can be set according to needs or experience, and the quantity threshold can be set to 1, 2, 3 or more. When the value of the quantity threshold is smaller, the depth difference between the first hash bucket of the first hash table and the second hash bucket of the second hash table is smaller. When the value of the quantity threshold is larger, the depth difference between the first hash bucket of the first hash table and the second hash bucket of the second hash table is larger. The quantity threshold can be adjusted at any time as needed. For example, the hash buckets in the first hash table and the second hash table have 4 hash structures respectively, which are recorded as the first hash structure, the second hash structure, the third hash structure, and the fourth hash structure. The case corresponding to the first image is preferentially placed in the first hash structure and the second hash structure of the first hash table, and then in the first hash structure and the second hash structure of the second hash table, and then in the third hash structure of the first hash table, the third hash structure of the second hash table, and then in the fourth hash structure of the first hash table, and finally in the fourth hash structure of the second hash table. For another example, the buckets in the first hash table and the second hash table have 4 hash structures respectively, which are recorded as the first hash structure, the second hash structure, the third hash structure, and the fourth hash structure. The case corresponding to the first image is preferentially placed in the first hash structure of the first hash table, and then in the first hash structure of the second hash table, and then in the second hash structure and the third hash structure of the first hash table, and then in the second hash structure and the third hash structure of the second hash table, and then in the fourth hash structure of the first hash table, and finally in the fourth hash structure of the second hash table. In addition to the above examples, when placing a case, two cases can be placed in the hash bucket of the first hash table first, and then two cases can be placed in the hash bucket of the second hash table, and the cases can be placed evenly in a manner of analogy. In actual applications, when placing a case, one case can be placed in the hash bucket of the first hash table first, and then one case can be placed in the bucket of the second hash table, and the cases can be placed evenly in a manner of analogy, etc., which is not specifically limited here.
[0085] S106: Store the case corresponding to the first image in the second hash bucket.
[0086] S107: Storing the case corresponding to the first image in a first hash bucket.
[0087] In the above scheme, the first feature vector is obtained by extracting features from the first image, and the first feature vector is calculated using two different local sensitive hashing algorithms. If the two different algorithms fall into the hash buckets corresponding to the two hash tables corresponding to the same type of cases, the first image is considered to belong to the case, and the cases in the two hash buckets are recommended to the user. The first hash table is indexed according to the hash value calculated by the first local sensitive hashing algorithm, and the second hash is indexed according to the hash value calculated by the second local sensitive hashing algorithm. Therefore, the retrieval speed is very fast. Because multiple different local sensitive hashing algorithms are used at the same time, when multiple hashing algorithms determine that the cases corresponding to the first image are all the same type of cases, the recommendation of cases can effectively improve the accuracy of the recommendation, and the same type of cases can be placed in multiple different hash tables respectively, which can increase the storage capacity of cases without reducing the retrieval speed.
[0088] See also Figure 4 , Figure 4 is a schematic diagram of the structure of a computing device provided by this application. Figure 4 As shown, the computing device 400 includes: one or more processing units 410 , a communication interface 420 , and a memory 430 .
[0089] The processing unit 410, the communication interface 420 and the memory 430 are interconnected via a bus 440. Optionally, the computing device 400 may also include an input / output interface 450, which is connected to an input / output device for receiving parameters set by a user, etc. The computing device 400 can be used to implement part or all of the functions of the device embodiment or system embodiment in the above-mentioned embodiment of the present application; the processing unit 410 can also be used to implement part or all of the operation steps of the method embodiment in the above-mentioned embodiment of the present application. For example, the specific implementation of the various operations performed by the computing device 400 can refer to the specific details in the above-mentioned embodiment, such as the processing unit 410 is used to perform part or all of the steps in the above-mentioned method embodiment or part or all of the operations in the above-mentioned method embodiment. For another example, in the embodiment of the present application, the computing device 400 can be used to implement part or all of the functions of one or more components in the above-mentioned device embodiment, and the communication interface 420 can be specifically used for the communication functions necessary to implement the functions of these devices and components, and the processing unit 410 can be specifically used for the processing functions necessary to implement the functions of these devices and components, etc.
[0090] It should be understood that Figure 4 The computing device 400 may include one or more processing units 410, and the multiple processing units 410 may provide processing capabilities in a coordinated manner in a parallel connection manner, a serial connection manner, a serial-parallel connection manner, or any connection manner, or the multiple processing units 410 may constitute a processor sequence or a processor array, or the multiple processing units 410 may be divided into a main processor and an auxiliary processor, or the multiple processing units 410 may have different architectures such as a heterogeneous computing architecture. In addition, Figure 4 The computing device 400 shown in the figure, and the related structural description and functional description are exemplary and non-limiting. In some exemplary embodiments, the computing device 400 may include Figure 4 More or fewer components may be shown, or some components may be combined or separated, or may have a different arrangement of components.
[0091] The processing unit 410 may have a variety of specific implementation forms. For example, the processing unit 410 may include a central processing unit (CPU), a graphic processing unit (GPU), a neural-network processing unit (NPU), a tensor processing unit (TPU) or a data processing unit (DPU), etc., and the embodiment of the present application does not specifically limit it. The processing unit 410 may also be a single-core processor or a multi-core processor. The processing unit 410 may be a combination of a CPU and a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof. The processing unit 410 may also be implemented using a logic device with built-in processing logic alone, such as an FPGA or a digital signal processor (DSP). The communication interface 420 may be a wired interface or a wireless interface for communicating with other modules or devices. The wired interface may be an Ethernet interface, a local interconnect network (LIN), etc., and the wireless interface may be a cellular network interface or a wireless local area network interface, etc.
[0092] The memory 430 may be a non-volatile memory, such as a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The memory 430 may also be a volatile memory, which may be a random access memory (RAM) used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous connection dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM). The memory 430 may also be used to store program codes and data, so that the processing unit 410 calls the program codes stored in the memory 430 to execute some or all of the operation steps in the above method embodiments, or to execute the corresponding functions in the above device embodiments. Figure 4 Show more or fewer components, or have different component configurations.
[0093] The bus 440 may be a peripheral component interconnect express (PCIe) bus, an extended industry standard architecture (EISA) bus, a unified bus (Ubus or UB), a compute express link (CXL), a cache coherent interconnect for accelerators (CCIX), etc. The bus 440 may be divided into an address bus, a data bus, a control bus, etc. In addition to the data bus, the bus 440 may also include a power bus, a control bus, and a status signal bus, etc. However, for the sake of clarity, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0094] The present application also provides a system, which includes multiple computing devices, and the structure of each computing device can refer to the structure of the computing device described above. The functions or operations that can be implemented by the system can refer to the specific implementation steps in the above method embodiment and / or the specific functions described in the above device embodiment, which will not be repeated here.
[0095] The present application also provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a computer device (such as one or more processors), the method steps in the above method embodiment can be implemented. The specific implementation of the processor of the computer-readable storage medium in executing the above method steps can refer to the specific operations described in the above method embodiment and / or the specific functions described in the above device embodiment, which will not be repeated here.
[0096] An embodiment of the present application also provides a computer program product, which includes instructions stored on a computer-readable storage medium. When the instructions are executed on a computer device, the computer device executes the method steps in the above method embodiment.
[0097] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one network site, computer, server or data center to another network site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer, or it can be a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape, etc.), an optical medium (e.g., a DVD, etc.), or a semiconductor medium (e.g., a solid-state hard disk), etc.
[0098] In the above embodiments, the description of each embodiment has different emphases. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
Claims
1. A similar case automatic recommendation method, characterized in that: include: extracting a first feature vector from the first image; Using a first locality sensitive hashing algorithm to calculate the first feature vector to obtain a first hash value, and using a second locality sensitive hashing algorithm to calculate the first feature vector to obtain a second hash value, wherein the first locality sensitive hashing algorithm is different from the second locality sensitive hashing algorithm; In a case where the first hash value is located in a first hash bucket of a first hash table, and the second hash value is located in a second hash bucket of a second hash table, recommending cases corresponding to the images in the first hash bucket and cases corresponding to the images in the second hash bucket, wherein the first hash table corresponds to the first local sensitive hashing algorithm, the second hash table corresponds to the second local sensitive hashing algorithm, the first hash table includes a plurality of hash buckets including the first hash bucket, the second hash table includes a plurality of hash buckets including the second hash bucket, a hash value obtained by calculating a feature vector extracted from the image in the first hash bucket using the second local sensitive hashing algorithm belongs to the second hash bucket, and a hash value obtained by calculating a feature vector extracted from the image in the second hash bucket using the first local sensitive hashing algorithm belongs to the first hash bucket; The method further comprises: Obtaining the number of cases in the first hash bucket and the number of cases in the second hash bucket; When the number of cases in the first hash bucket minus the number of cases in the second hash bucket is greater than or equal to a quantity threshold, storing the cases corresponding to the first image in the second hash bucket; When the number of cases in the first hash bucket minus the number of cases in the second hash bucket is less than a quantity threshold, the cases corresponding to the first image are stored in the first hash bucket.
2. The method according to claim 1, characterized in that Before storing the case corresponding to the first image in the second hash bucket or storing the case corresponding to the first image in the first hash bucket, the method further includes: When a confirmation instruction input by the user is received, the case corresponding to the first image is stored in the second hash bucket or the case corresponding to the first image is stored in the first hash bucket.
3. The method according to claim 1 or 2, characterized in that: Recommending cases corresponding to the images in the first hash bucket and cases corresponding to the images in the second hash bucket, including: The cases corresponding to the images in the first hash bucket and the cases corresponding to the images in the second hash bucket are recommended according to their similarity, wherein the closer the hash value calculated by the first local sensitive hashing algorithm for the images of the cases in the first hash bucket is to the first hash value, the higher the similarity to the cases corresponding to the first image; and the closer the hash value calculated by the second local sensitive hashing algorithm for the images of the cases in the second hash bucket is to the second hash value, the higher the similarity to the cases corresponding to the first image.
4. The method according to claim 1 or 2, characterized in that: Recommending cases corresponding to the images in the first hash bucket and cases corresponding to the images in the second hash bucket, including: The cases corresponding to the images in the first hash bucket and the cases corresponding to the images in the second hash bucket are recommended according to the level of the attending physician.
5. The method according to claim 1 or 2, characterized in that: The higher the similarity between the multiple input values of the first locality sensitive hash algorithm and the second locality sensitive hash algorithm, the higher the similarity between the output values corresponding to the multiple input values.
6. The method according to claim 5, characterized in that The first locality sensitive hash algorithm includes any one of the minimum hash algorithm, the similarity hash algorithm, the random projection hash algorithm, and the spectral hash algorithm; the second locality sensitive hash algorithm includes another one of the minimum hash algorithm, the similarity hash algorithm, the random projection hash algorithm, and the spectral hash algorithm.
7. A computing device, characterized in that include: A processor and a memory, wherein the memory is used to store instructions, and the processor is used to run the instructions in the memory to execute the method according to any one of claims 1 to 6.
8. A computing cluster, characterized in that: The method comprises a plurality of computing devices, wherein each computing device comprises a processor and a memory, the memory is used to store instructions, and the processor is used to run the instructions in the memory to execute the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The method comprises instructions, which, when executed by a computing device, execute the method according to any one of claims 1 to 6.
