Systems and methods for anatomical learning from multi-view distillation
A self-supervised multi-view distillation method using ViTs pretrains machine learning models with veterinary radiographs from the same imaging session, addressing annotation scarcity and species variation, achieving robust 3D understanding and improved classification performance.
Patent Information
- Application Number
- PCT/US2026/028802
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-20
- Filing Date
- 2026-05-19
- Publication Date
- 2026-11-26
AI Technical Summary
Deep learning in medical imaging, particularly veterinary radiology, faces challenges due to reliance on manual annotations, scarcity of labeled datasets, and limited generalization across species and anatomical variations, leading to biased or unreliable results.
A self-supervised multi-view distillation method using Vision Transformers (ViTs) for pretraining, leveraging pairs of medical images from the same imaging session to learn view-invariant anatomical representations without manual annotations, by employing a teacher-student training paradigm with global and local crops.
The method enables robust 3D anatomical understanding from 2D projections, improving generalization and performance in multi-label classification tasks, reducing memory consumption, and enhancing the ability to infer 3D information from 2D radiographs.
Smart Images

Figure US2026028802_26112026_PF_FP_ABST
Abstract
Description
Attorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 SYSTEMS AND METHODS FOR ANATOMICAL LEARNING FROM MULTI-VIEW DISTILLATIONCROSS-REFERENCE TO RELATED APPLICATION(S)
[0001] This patent application claims the benefit of priority to U.S. Provisional Application No. 63 / 808,744, filed on May 20, 2025, the entirety of which is incorporated herein by reference.TECHNICAL FIELD
[0002] Various embodiments of the present disclosure relate generally to training a machine learning model and, more particularly, to pretraining a machine learning model employing a multi-view distillation training method.BACKGROUND
[0003] Despite its success across various imaging areas, deep learning still faces significant limitations, particularly in relation to training data dependence on manual annotations. For example, deep learning typically requires large volumes of high-quality and annotated data to perform well. In fields like medical imaging or scientific research, this annotation process is often manual, time-consuming, and requires expert knowledge, making it both costly and difficult to scale. Reliance on labeled data not only slows down the development cycle but also limits the applicability of deep learning in domains where annotated datasets are scarce or hard to obtain. Moreover, machine learning models trained on small or narrowly annotated datasets may suffer from poor generalization, leading to biased or unreliable results when exposed to real-world data variations. As a result, selfsupervised approaches to training and pretraining machine learning algorithms may reduce the dependency on manual labeling while achieving robust model performance.
[0004] The present disclosure is directed to overcoming one or more of these above-referenced challenges.SUMMARY OF THE DISCLOSURE
[0005] In some aspects, the techniques described herein relate to a method of training, by a self-training processing, a machine learning model configured to develop a three-dimensional anatomical understanding based on two-dimensional projections, the method including: generating a first pair of medical images, wherein the first pair of medical images are taken from a patient during an imaging session;Attorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 cropping a first image of the first pair of medical images into first crops, wherein the first crops include at least one first global crop and at least one first local crop; cropping a second image of the first pair of medical images into second crops, wherein the second crops include at least one second global crop and at least one second local crop; inputting the at least one first global crop and the at least one second global crop to a first neural network; inputting the at least one first global crop, the at least one second global crop, the at least one first local crop, and the at least one second local crop to a second neural network; predicting, by the second neural network and based on the at least one first global crop, the at least one second global crop, the at least one first local crop, and the at least one second local crop, an output of the first neural network wherein the output of the first neural network is based on the at least one first global crop and the at least one second global crop; updating, based on comparing the prediction of the second neural network with the output of the first neural network, parameters of the second neural network; updating, based on updating the parameters of the second neural network, parameters of the first neural network; and saving, based on a comparison of the prediction of the second neural network and the output of the first neural network satisfying a threshold, the parameters of the first neural network and the second neural network to a memory, wherein the comparison satisfying the threshold indicates that the second neural network is equipped to learn view-invariant anatomical representations without manual annotations.
[0006] In some aspects, the techniques described herein relate to a method, wherein generating the first pair of medical images includes: receiving a dataset, wherein the dataset includes images associated with multiple medical studies; retrieving images associated with a first study from the dataset; and randomly selecting two images from the images associated with the first study.
[0007] In some aspects, the techniques described herein relate to a method, wherein generating the first pair of medical images further includes: transforming the randomly-selected two images into a standard format.
[0008] In some aspects, the techniques described herein relate to a method, wherein the first crops and the second crops represent different points of view of the first image and the second image.
[0009] In some aspects, the techniques described herein relate to a method, wherein updating the parameters of the first neural network includes: calculating anAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 exponential moving average (EMA) of the parameters of the second neural network; and updating, based on the calculated EMA, the parameters of the first neural network.
[0010] In some aspects, the techniques described herein relate to a method, wherein a size of each of the at least one first global crop and the at least one second global crop is larger than a size of each of the at least one first local crop and the at least one second local crop.
[0011] In some aspects, the techniques described herein relate to a method, wherein the first neural network and the second neural network form a teacherstudent training machine learning model.
[0012] In some aspects, the techniques described herein relate to a method, wherein first neural network and the second neural network are trained Vision Transformers (ViTs), wherein the second neural network is trained to predict the output of the first neural network.
[0013] In some aspects, the techniques described herein relate to a method, wherein a number of the first crops is equal to a number of the second crops, and a total number of the at least one first global crop and the at least one second global crop is smaller than a total number of the at least one first local crop and the at least one second local crop.
[0014] In some aspects, the techniques described herein relate to a system including: one or more processors of a computing system; and at least one non-transitory computer-readable medium storing instructions which, when executed by the one or more processors, cause the one or more processors to: train a machine learning model, configured to develop a three-dimensional anatomical understanding based on two-dimensional projections, by: retrieving a pair of medical images, wherein the pair of medical images are taken from a patient during a same medical imaging session; cropping a first image of the pair of medical images into first crops, wherein the first crops include at least one first global crop and at least one first local crop; cropping a second image of the pair of medical images into second crops, wherein the second crops include at least one second global crop and at least one second local crop; inputting the one or more global crops to a first neural network; inputting the one or more global crops and the one or more local crops to a second neural network; converging an output of the first neural network and an output of the second neural network based on a self-supervised learning process; and saving,Attorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 based on a level of convergence satisfying a predetermined threshold, parameters of the first neural network and the second neural network to a memory; and employ, based on retrieving the parameters of the first neural network and the second neural network, the trained machine learning model to detect view-invariant anatomical representations for a first dataset without using manual annotations.
[0015] In some aspects, the techniques described herein relate to a system, the at least one non-transitory computer-readable medium storing instructions for converging the outputs of the first neural network and the second neural network which, when executed by the one or more processors, further cause the one or more processors to: predict, by the second neural network and based on the at least one first global crop, the at least one second global crop, the at least one first local crop, and the at least one second local crop, an output of the first neural network wherein the output of the first neural network is based on the at least one first global crop and the at least one second global crop; update, based on comparing the prediction of the second neural network with the output of the first neural network, parameters of the second neural network; and update, based on updating the parameters of the second neural network, parameters of the first neural network.
[0016] In some aspects, the techniques described herein relate to a system, wherein a number of the of the at least one first global crop is equal to a number of the at least one second global crop.
[0017] In some aspects, the techniques described herein relate to a system, wherein a number of the at least one first local crop is ten, and a number of the at least one second local crop is ten.
[0018] In some aspects, the techniques described herein relate to a system, wherein the trained machine learning model, when implemented, generates 3D data from the pair of images.
[0019] In some aspects, the techniques described herein relate to a system, wherein retrieving the pair of medical images includes retrieving the pair of medical images from a dataset, wherein the dataset includes veterinary X-ray images.
[0020] In some aspects, the techniques described herein relate to a system, wherein the self-supervised learning process includes a self-distillation technique without using labels.
[0021] In some aspects, the techniques described herein relate to a system, wherein the at least one non-transitory computer-readable medium storingAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 instructions, when executed by the one or more processors, further cause the one or more processors to: evaluate, based on the updated parameters of the second neural network, outputs of the second neural network; and based on the evaluation of the outputs of the second neural network, fine tune the trained machine learning model.
[0022] In some aspects, the techniques described herein relate to a non-transitory computer-readable medium, the non-transitory computer-readable medium storing instructions which, when executed by one or more processors of a computing system, cause the one or more processors to: generate a first pair of medical images, wherein the first pair of medical images are taken from a patient during a same medical imaging session; crop a first image of the first pair of medical images into first crops, wherein the first crops include at least one first global crop and at least one first local crop; crop a second image of the first pair of medical images into second crops, wherein the second crops include at least one second global crop and at least one second local crop; input the at least one first global crop and the at least one second global crop to a first neural network; input the at least one first global crop, the at least one second global crop, the at least one first local crop, and the at least one second local crop to a second neural network; predict, by the second neural network and based on the at least one first global crop, the at least one second global crop, the at least one first local crop, and the at least one second local crop, an output of the first neural network wherein the output of the first neural network is based on the at least one first global crop and the at least one second global crop; update, based on comparing the prediction of the second neural network with the output of the first neural network, parameters of the second neural network; update, based on updating the parameters of the second neural network, parameters of the first neural network; and save, based on a comparison of the prediction of the second neural network and the output of the first neural network satisfying a threshold, the parameters of the first neural network and the second neural network to a memory, wherein the comparison satisfying the threshold indicates that the second neural network is equipped to learn view-invariant anatomical representations without manual annotations.
[0023] In some aspects, the techniques described herein relate to a non-transitory computer-readable medium, wherein the pair of medical images includes a ventrodorsal image and a lateral image of the patient.Attorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1
[0024] In some aspects, the techniques described herein relate to a non-transitory computer-readable medium, wherein the pair of medical images reflects a specific anatomical region.
[0025] Additional objects and advantages of the disclosed embodiments will be set forth in part in the description that follows, and in part will be apparent from the description, or may be learned by practice of the disclosed embodiments. The objects and advantages of the disclosed embodiments will be realized and attained by means of the elements and combinations particularly pointed out in the appended claims.
[0026] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosed embodiments, as claimed.BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate various exemplary embodiments and together with the description, serve to explain the principles of the disclosed embodiments.
[0028] FIG. 1 depicts an exemplary system environment in which the techniques discussed in the present disclosure may be implemented.
[0029] FIG. 2 depicts an exemplary diagram of a deep neural network architecture which may be employed in a pretraining module as illustrated in FIG. 1 , according to one or more aspects of the disclosure.
[0030] FIG. 3 depicts exemplary pairs of digital medical images which may be employed in a dataset preparation module as illustrated in FIG. 1, according to one or more aspects of the disclosure.
[0031] FIG. 4 depicts an exemplary diagram illustrating cropping a pair of medical images which may be employed in an image crop module as illustrated in FIG. 1 , according to one or more aspects of the disclosure.
[0032] FIG. 5 depicts an exemplary diagram illustrating pretraining a machine learning model which may be employed in a pretraining module as illustrated in FIG. 1 , according to one or more aspects of the disclosure.
[0033] FIG. 6 depicts exemplary attention maps which may be employed in an evaluation module as illustrated in FIG. 1 , according to one or more aspects of the disclosure.Attorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1
[0034] FIG. 7 depicts exemplary visualizations of cosine similarities between patch embeddings which may be employed in an evaluation module as illustrated in FIG. 1 , according to one or more aspects of the disclosure.
[0035] FIG. 8 depicts exemplary attention maps superimposed on a pair of medical images which may be employed in an evaluation module as illustrated in FIG. 1 , according to one or more aspects of the disclosure.
[0036] FIG. 9 depicts an exemplary flowchart depicting a method for pretraining a deep learning model which may be employed in a pretraining module as illustrated in FIG. 1 , according to one or more aspects of the disclosure.
[0037] FIG. 10 depicts an exemplary computing device that may execute the techniques described herein for example, in the system illustrated in FIG. 1, according to one or more embodiments.DETAILED DESCRIPTION OF EMBODIMENTS
[0038] Both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the features, as claimed. As used herein, the terms “comprises,” “comprising,” “has,” “having,” “includes,” “including,” or other variations thereof, are intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements, but may include other elements not expressly listed or inherent to such a process, method, article, or apparatus. In this disclosure, unless stated otherwise, relative terms, such as, for example, “about,” “substantially,” and “approximately” are used to indicate a possible variation of ±10% in the stated value. In this disclosure, unless stated otherwise, any numeric value may include a possible variation of ±10% in the stated value.
[0039] Various embodiments of the present disclosure relate generally to training a machine learning model with non-labeled training data and, more particularly, to pretraining a machine learning model employing a self-supervised training method wherein the machine learning model is trained to develop an implied 3D understanding from 2D images.
[0040] Self-supervised learning has emerged as a powerful paradigm for training deep neural networks, particularly in medical imaging where labeled data is scarce. Additionally, developments in self-distillation methods with no labels may lead to emergent properties, like semantic segmentation and object discovery.However, deep learning approaches in medical imaging have traditionally relied onAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 adapting techniques developed for natural images. As a consequence, current approaches may rely on synthetic augmentations of single images. However, medical imaging possesses unique characteristics that may remain under-exploited in current self-supervised learning frameworks. One such characteristic is the availability of multiple standardized views of the same subject, often captured near-simultaneously under controlled protocols - a property that has no direct parallel in natural image datasets. While recent self-supervised learning approaches may demonstrate some success using augmented views of the same image, they fail to leverage one of the most valuable aspects of medical imaging: the presence of multiple, geometrically-calibrated views capturing the same anatomical structure from different, standardized angles. This is evident in veterinary radiology, where multiple views are routinely captured to enable accurate diagnosis and surgical planning.
[0041] Conventional techniques may include generating augmented versions of the same image as positive pairs while pushing apart representations of different images. However, current methods may rely on carefully crafted synthetic augmentations such as random cropping, color jittering, and geometric transformations to create simulated different views of the same instance in a single image. For example, crops of an image may be generated with varying resolutions and fields of view, and may be created through random resizing, cropping, and other transformations such as random horizontal flipping, color jittering (adjusting brightness, contrast, saturation, and hue), and Gaussian blurring. As a result, this process may simulate variations that might be encountered in real-world images, such as changes in lighting, viewpoint, and partial occlusions. Consequently, current methods may rely on synthetic transformations of single images, potentially limiting the usage of available anatomical information provided by additional views of a single study.
[0042] Due to a scarcity of large, annotated datasets and the diversity of species and anatomical variations in veterinary imaging, current pretraining methods rely on smaller datasets with report-derived labels. The diversity of animal species, breeds, anatomical variations, and disease presentations may complicate dataset development, making it difficult to assemble representative training datasets. This scarcity may not only limit the ability to train deep learning models but also hampers the effectiveness of pretraining, which may currently rely on large volumes of labeledAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 training data to learn robust feature representations. As a result, machine learning models may rely on human medical training data, which may not generalize well across species due to anatomical and pathological differences.
[0043] Some embodiments may employ a multi-view learning method using medical imaging to pretrain one or more machine learning models. Leveraging natural multi-view pairings may improve multi-label classification performance. For example, pairing lateral X-ray views in addition to frontal posteroanterior (PA) views may increase the area under the curve (AUG) for certain conditions and matched PA view performance for others. Further, training techniques described in the present disclosure may be applied to either or both of training steps and pretraining steps of a machine learning model.
[0044] Some embodiments may combine convolutional neural networks (CNN) for feature extraction with a Vision Transformer-based (ViT based) attention mechanism. Combined with a significantly large dataset of veterinary radiographs, these embodiments may effectively leverage multi-view data improving the performance of machine learning models. Additionally, the pretraining method may include a self-supervised approach that learns directly from multi-view radiographs without requiring textual annotations (e.g., labeled training datasets).
[0045] Some embodiments may include a method of self-supervised learning by leveraging Vision Transformers (ViT) as an innovative approach to knowledge distillation by pretraining a machine learning model on a dataset comprising pairs of images of a patient from a same scanning event, such as an imaging session. For example, one or more randomly generated crops may be extracted from each image of the pair of images generating two types of views: global views and local views. Global views (global crops) may be larger crops (e.g., 224x224 pixels) that may encompass a significant portion of the original image; and local views (local crops) may be smaller crops (e.g., 98x98 pixels) compared to the global crops that focus on specific regions.
[0046] Some embodiments may include a teacher-student training paradigm, a form of knowledge distillation. A teacher neural network and a student neural network may be Vision Transformers (ViTs) but trained differently. The student neural network may receive all views (both global and local) and may be trained to predict the output of the teacher neural network. The teacher neural network may receive one or more global views. The teacher’s weights may be an exponentialAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 moving average (EMA) of the student’s weights, which may provide a more stable and higher-quality target from which the student neural network may learn. This process may force the student neural network to learn representations that are consistent across different views (both global and local) of the same scanning event, effectively aligning its output with the teacher’s more “informed” representation derived from the global views. This enforced consistency of features across different, augmented views of the same image may increase a machine learning model’s ability to learn meaningful, semantically rich representations without the need for labeled data. By leveraging the multi-view nature of veterinary radiographic studies with employing pairs of images from the same scanning event, instead of relying on artificially generated crops of a single image, a machine learning model may develop representations that are robust to variations in viewpoint and local image content, achieving a form of transformation invariance.
[0047] Some embodiments may pretrain (train) a machine learning model using crops from two random images within the same study, such as an imaging session. By employing two random images taken during the same imaging scan, a machine learning model may learn from a combination of crops that represent different points of view, portions, aspects, angles, or the like within the same study. For example, two radiographic views may be randomly selected from a single canine study (a set of radiographs from the same imaging session). From each view, two global crops and ten local crops may be extracted such that half originate from one randomly selected image in the study, and the other half originate from the second randomly selected image from the same study, allowing crops to overlap. The global crops may be resized to 224x224 pixels and the local crops may be resized to 98x98 pixels. All crops may be passed to a student Vision Transformer (ViT) network, while only the global crops from one randomly chosen view may be passed to a teacher ViT network. The student neural network may be trained to match the output of the teacher network, which receives a more “global” perspective. Consequently, the student neural network may be pretrained to learn view-invariant anatomical representations without manual annotations. That is, the machine learning model (e.g., the student neural network) may be pretrained to identify an object in an image regardless of the viewing angle presented in the image.
[0048] Some embodiments may leverage a ViT architecture and an optimizer to pretrain (train) a machine learning model thereby reducing the size of a projectionAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 layer, which may reduce memory consumption while minimally impacting downstream task performance. For example, a machine learning model may include a ViT-S / 14 architecture and may be trained using an AdamW optimizer. Training (pretraining) may include a batch size of 192 on a single NVIDIA H100 GPU. A learning rate may be linearly warmed up over a first 80,000 steps, held constant at 5x10-2 for the fourth radiographic image 320,000 steps, and then decayed to 1x10-4, following a cosine annealing schedule for the remainder of the 1,400,000 training steps. This method may repeat for 177 epochs. A projection layer may remain frozen during the initial warm-up phase of training to enhance stability.Consequently, a size of the projection layer may be reduced to about 16,384 compared to about 65,536 in the previous implementation. This reduction may decrease memory consumption while demonstrating minimal impact on downstream task performance. Further, a weight decay may be fixed at 0.04, DropPath may be set to 0.1 , and all training may be performed in 32-bit precision. For data augmentation, random horizontal flipping may be applied with a probability of 0.1.
[0049] Some embodiments may employ evaluation protocols to assess the results of a pretrained machine learning model. An evaluation protocol may include two complementary approaches: k-Nearest Neighbors (k-NN) with a frozen feature extractor, and full fine-tuning . Both evaluation protocols may be applied to a multilabel classification task of common radiographic findings using an evaluation dataset. The k-NN evaluation protocol may assess representation quality in a nonparametric setting by classifying each image based on its k nearest neighbors in an embedding space generated by a frozen pretrained encoder. This evaluation protocol may generate F1 -score metrics, precision metrics, and recall metrics. An optimal value of k may be determined using GridSearch with 5-fold cross-validation, selecting the value that maximized the F1 score. For a fine-tuning evaluation protocol, the network may be initialized with pretrained student weights and may optimize all parameters for a downstream task. Performance may be measured using Area Under the ROC Curve (ROC AUC) and Average Precision (Avg Free). For analysis purposes, output from a machine learning model pretrained on singleview data may be compared to output from a machine learning model pretrained on multi-view data. For example, both machine learning models may be pretrained on the same dataset, however the single-view data model may be pretrained using onlyAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 one image per study while the multi-view data model may be pretrained using pairs of images per study.
[0050] Some embodiments may employ one or more evaluation datasets. For example, an evaluation dataset may comprise a total of about 177,526 labeled canine radiographic images, selected from a larger pretraining dataset. Each image may be annotated in a multi-label setting with findings spanning 47 distinct radiographic abnormalities, encompassing a range of conditions affecting various anatomical systems. These evaluation labels may be obtained through manual annotation by board-certified veterinary radiologists. The evaluation dataset may be divided into a training subset of about 100,285 images and a validation subset of about 77,241 images. This split may be performed randomly, while ensuring a similar distribution of labels across both subsets. Additionally, to prevent data leakage, images from the same study may be kept within the same subset. The relatively large proportion of data allocated to the validation subset may allow for a robust and statistically reliable evaluation of model performance, crucial for benchmarking against our other experiments such as the single-view baseline. Further, the size of the training subset may be chosen based on preliminary experiments demonstrating that this amount of training data may be sufficient to achieve strong performance. By maintaining a consistent training subset size across different experimental conditions, performance differences to changes in model architecture or training strategies may be clearly attributed to pretraining methods, rather than variations in the training data itself.
[0051] Some embodiments may extract features from K-NN classification results to evaluate learned representations of a pretrained machine learning model. For example, features may be extracted from both the training subset and validation subsets using a frozen, pretrained machine learning model encoder. Then a k-NN classifier (with k = 3) may be applied to the extracted features. The classifier may be fit using the training subset features and corresponding labels. Performance may be evaluated on the validation subset features, using F1 -score, precision, and recall as metrics. K-nn results may be reported on three gastrointestinal labels: Ingesta in the Stomach, indicating the presence of food material in the stomach; Gastric Foreign Materials (Debris), representing non-food substances within the stomach; and Foreign Body in the Small Intestines, identifying abnormal objects causing potential obstruction in the intestinal tract.Attorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1
[0052] Some embodiments may fine-tune the pretrained machine learning model. For example, a ViT-Tiny model (vit-tiny-patch 16-224, pretrained=False) from a timm library may be used as a classification layer and added on top of a pretrained, unfrozen machine learning model encoder. The resulting machine learning model may be trained end-to-end using an AdamW optimizer with the learning rate set to 5 x 10-6, a batch size of 512, and weight decay equal to 0.001 . Training may be conducted with 16-bit precision, employing a cosine annealing learning rate scheduler. A binary cross-entropy (BCE) loss function may be employed. Additionally, the following data augmentations may be applied during fine-tuning: resizing to 224x224 pixels, random horizontal flips with a probability of 0.5, random rotations within the range of ±30 degrees, random affine transformations with translation (10% in both x and y directions), scaling (0.8 to 1.2), shear (±10 degrees), random perspective distortion with scale of 0.5 and probability of 0.5, and RandAugment with parameters N=3 (number of operations) and M=6 (magnitude of transformations). To ensure a fair comparison, the same hyperparameters, data augmentations, and training procedures may be used for both the multi-view machine learning model and the single-view machine learning model. Results may include calculating Average Precision (Avg Prec) and ROC AUC.
[0053] Some embodiments may pretrain a machine learning model to learn view-invariant representations that encode three-dimensional (3D) information, facilitating generalization across different projections, and mitigating the inherent limitations of two-dimensional (2D) radiographic data. For example, radiographs, by their nature, present a flattened, 2D representation of a complex 3D structure, which may require clinicians to reconstruct the 3D anatomy. Additionally, the ability to infer 3D information from 2D projections may be particularly challenging in veterinary radiology due to significant variations in patient positioning, size, and breed-specific anatomical differences. By pretraining a machine learning model with pairs of images of a patient taken from the same imaging session (multi-view data), a machine learning model may learn view-invariant representations that encode 3D information, facilitating generalization across different projections, and mitigating the inherent limitations of 2D radiographic data. Further, attention maps from a machine learning model trained on multi-view data may allow for visualization of the embedding space of various anatomical structures.Attorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1
[0054] Some embodiments may pretrain a multi-view machine learning model to learn consistent representations of anatomical features across different radiographic views. For example, ventrodorsal and left lateral radiographic projections of a canine patient acquired during the same visit may be input in a pretrained and fine-tuned machine learning model, as illustrated in FIG. 8 below (discussed in more detail below). Superimposed on these images may be attention maps derived from the final block head of the multi-view machine learning model (the machine learning model pretrained on pairs of images from a patient taken from a same imaging scan). The attention maps may illustrate the multi-view machine learning model’s focus on specific anatomical regions. Notably, distinct attention heads appear to be independently attending to the skeletal system, the soft tissue / muscular system, and the gastrointestinal system. This observation may suggest the multi-view machine learning model exhibits view-invariant attention to anatomical structures, highlighting its capacity to learn consistent representations of anatomical features across different radiographic views.
[0055] Some embodiments may pretrain a multi-view machine learning model to prioritize anatomically relevant features. For example, attention maps may be generated from a pretrained student neural network’s final transformer block’s attention head of the multi-view machine learning model. These attention maps may be generated from radiographs of the same canine study, including lateral and ventrodorsal projections. The attention maps may consistently highlight regions corresponding to the skeletal system, particularly the spine and pelvis, across different views, in contrast to previously trained machine learning models. This focused attention may suggest that the model has learned to identify these key anatomical structures as consistent features, regardless of their 2D projection, and therefore to prioritize anatomically relevant features.
[0056] Some embodiments may employ actual radiographic views from the same study as natural augmentations, enabling a pretrained machine learning model to learn representations that are sensitive to variations in patient orientation and projection angle. Additionally, pretraining machine learning models to focus on key anatomical structures consistently across different views may allow for a comprehensive 3D anatomical understanding from information provided by 2D images (projections).Attorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1
[0057] Some embodiments may employ a self-supervised learning framework that leverages multi-view veterinary studies to learn rich anatomical representations. Rather than manipulating single images to simulate variations, different radiographic views from the same study may be leveraged as natural variations of the same subject. This approach may enable a machine learning model to learn view-invariant anatomical structures and develop an implied understanding of 3D structures from 2D projections. For example, pretraining a machine learning model on real multi-view pairs of images chosen from a dataset of about 5 million veterinary radiographs from about 668,000 canine studies may lead to superior anatomical understanding compared to purely synthetic augmentations. This novel paradigm for selfsupervised learning in medical imaging may leverage domain-specific properties rather than merely adapting natural image techniques.
[0058] Some embodiments may improve representation learning on machine learning models by drawing on the multi-view nature of medical imaging protocols during a pretraining step. By employing this adaptation of self-supervised learning that enables machine learning models to learn from real multi-view pairs may lead to improved representation learning on downstream veterinary tasks. Additionally, leveraging domain-specific properties of medical imaging, rather than simply applying natural image techniques, may lead to more effective and efficient learning of anatomical structures. Accordingly, pretrained machine learning algorithms may be optimized for medical imaging applications.
[0059] FIG. 1 depicts an exemplary system environment in which the techniques discussed in the present disclosure may be implemented. A user device 105, one or more external system(s) 110, and a server system 115 may communicate across a network 101. As will be discussed in further detail below, the server system 115 may communicate with one or more of the other components of the environment 100 across the network 101. The user device 105 may be associated with a user, e.g., a system manager, a pet owner, a veterinarian, a researcher, or the like. Although depicted as separate components in FIG. 1, it should be understood that a component or portion of a component in the environment 100 may, in some aspects, be integrated with or incorporated into one or more other components. For example, a portion of the display / U I 115C may be integrated into the user device 105 or the like. In some aspects, operations or aspects of one or more of the components listed above may be distributed amongstAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 one or more other components. Any suitable arrangement and / or integration of the various systems and devices of the environment 100 may be used. Furthermore, it should be understood that while only one user device is shown in FIG. 1 , the environment 100 may include a plurality of user devices 105 that are configured to communicate with the server system 115 over the network 101.
[0060] In some aspects, the components of the environment 100 may be associated with a common entity (e.g., a single business or organization, etc.).Alternatively, one or more of the components may be associated with a different entity than another. The systems and devices of environment 100 may communicate in any arrangement. For example, the user device 105 may be associated with one or more clients or service subscribers, and the server system 115 may be associated with a service provider responsible for receiving and processing raw datasets from the one or more clients or service subscribers. As will be discussed herein, systems and / or devices of the environment 100 may communicate in order to collect digital medical images from a source (e.g., scanner, veterinary medical records, hospital systems, radiograph machines, etc.), process the digital medical images for pretraining machine learning models, and pretrain the machine learning models with the processed digital medical images.
[0061] The user device 105 may be configured to enable the user to access and / or interact with other systems in the environment 100. For example, the user device 105 may be a computer system such as, for example, a desktop computer, a laptop, a mobile device, a tablet device, a wearable device, etc. The user device 105 may include a display / user interface (III) 105A, a processor 105B, a memory 105C, and / or a network interface 105D. The user device 105 may execute, by the processor 105B, an operating system (O / S) and at least one electronic application (each stored in memory 105C). The electronic application may be a desktop program, a browser program, a web client, or a mobile application program (which may also be a browser program in a mobile O / S), system control software, system monitoring software, software development tools, or the like. In some aspects, the electronic application(s) may be associated with one or more of the other components in the environment 100, such as the server system 115. The application may manage the memory 105C, such as a database, to transmit streaming data to the network 101. The display / UI 105A may be a touch screen ora display with other input systems (e.g., mouse, keyboard, etc.) so that the user(s) may interact with theAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 application and / or the O / S. The network interface 105D may be a TCP / IP network interface for, e.g., Ethernet or wireless communications with the network 101. The processor 105B, while executing the application, may generate data and / or receive user inputs from the display / UI 105A and / or receive / transmit messages to the server system 115, and may further perform one or more operations prior to providing an output to the network 101.
[0062] The electronic application, executed by the processor 105B of the user device 105, may generate one or more points of data that can be accessed, viewed, and / or interacted with by a user of the user device 105. More particularly, the electronic application may be associated or in communication with a pretraining platform 120 that is hosted, managed and / or supported by one or more of the server system 115. A user of user device 105 may interact with pretraining platform 120 via the electronic application to obtain a pretrained machine learning model, trained to predict three-dimensional landmark locations by analyzing two dimensional images. From the pretrained machine learning model, a user of the user device 105 may obtain 3D images, processed or annotated digital medical images, a diagnosis, and the like, which may be displayed on a user interface in an intuitive and easily-navigable manner.
[0063] The external system(s) 110 may be, for example, one or more third party and / or auxiliary systems that integrate and / or communicate with the server system 115 in performing various information extraction tasks. The external system(s) 110 may be in communication with other device(s) or system(s) in the environment 100 over the network 101. For example, the external system(s) 110 may communicate with the server system 115 via application programming interface (API) access over the network 101, and also communicate with the user device 105 via web browser access over the network 101. Non-limiting examples of the external system(s) 110 may include one or more x-ray machines, scanners, and / or databases containing digital medical images of animals.
[0064] In various aspects, the network 101 may be a wide area network (“WAN”), a local area network (“LAN”), a personal area network (“PAN”), or the like. In some aspects, the network 101 includes the Internet, and information and data provided between various systems occurs online. “Online” may mean connecting to or accessing source data or information from a location remote from other devices or networks coupled to the Internet. Alternatively, “online” may refer to connecting orAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 accessing a network (wired or wireless) via a mobile communications network or device. The Internet is a worldwide system of computer networks — a network of networks in which a party at one computer or other device connected to the network can obtain information from any other computer and communicate with parties of other computers or devices. The most widely used part of the Internet is the World Wide Web (often-abbreviated “WWW’ or called “the Web”). A “website page” generally encompasses a location, data store, or the like that is, for example, hosted and / or operated by a computer system so as to be accessible online, and that may include data configured to cause a program such as a web browser to perform operations such as send, receive, or process data, generate a visual display and / or an interactive interface, or the like.
[0065] In some aspects, the server system 115 includes and / or interacts with an application programming interface for exchanging data to other systems, e.g., one or more of the other components of the environment. The server system 115 may include and / or act as the host for an application platform (e.g., pretraining platform 120, etc.) that may be accessible by the user device 105.
[0066] The server system 115 may include one or more database(s) 115A and one or more server(s) 115B. The server system 115 may be a computer, system of computers (e.g., rack server(s)), and / or a cloud service computer system. The server system 115 may store or have access to database(s) 115A (e.g., hosted on a third party server or in memory 115E). The server(s) 115B may include a display / U I 115C, a processor 115D, a memory 115E, and / or a network interface 115F. The display / UI 115C may be a touch screen ora display with other input systems (e.g., mouse, keyboard, etc.) for an operator of the server(s) 115B to control the functions of the server(s) 115B. The server system 115 may execute, by the processor 115D, an operating system (O / S) and at least one instance of a servlet program (each stored in the memory 115E). When the user device 105 transmits input to the server system 115 (e.g., pet owner inputs, etc.), the received dataset and / or dataset information may be stored in the memory 115E or the database(s) 115A. The network interface 115F may be a TCP / IP network interface, e.g., Ethernet or wireless communications with the network 101.
[0067] The processor 115D may include and / or execute instructions to implement a pretraining platform 120, which may include a dataset preparation module 120A, an image selection module 120B, an image crop module 120C, aAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 pretraining module 120D, an evaluation module 120E, and other models to prepare received images for pretraining a machine learning module, pretraining the machine learning model, evaluating the trained machine learning module, employing the machine learning model with further medical images, processing output of the trained machine learning models, and other related steps. In some embodiments, one or more of the modules of the pretraining platform 120 may be located or stored on separate or external servers that may be accessed by the server system 115 through network 101. Alternatively, some or all of the foregoing modules may be submodules of other modules within each other or may be resident on other components of the environment 100.
[0068] The dataset preparation module 120A may be configured to receive a large-scale dataset of digital medical images. The dataset may include images from multiple patients over multiple imaging sessions. For example, the large-scale dataset may include over five million veterinary radiographs (images) comprising 668,0000 unique canine studies. The radiographs may include X-ray images. As the images may be obtained from different equipment over a time frame spanning multiple years, the images in the dataset may vary in format, requiring a standardized preparation step to ensure uniformity in format and size across all images. For example, some images may be archived as lossy JPEGs with a fixed quality setting and a fixed pixel width, e.g., a fixed quality setting of 89 (on a scale of 0-100, where 100 represents the least compression and highest quality) with a fixed width of 1024 pixels. Images may be received (or retrieved) from clinical workflows as DICOM files, which may be down-sampled to a 512 pixel height and converted to Portable Network Graphics (PNG). Further, the dataset may include different image resolutions, reflecting changes in acquisition equipment and storage. Images may preserve their original aspect ratios and metadata from a single image service, such as Antech Imaging Services (AIS). In one example, datasets may include real clinical cases from more than 3,500 hospitals and clinics, covering, for example, about 14 years.
[0069] Prior to pretraining a machine learning model, dataset preparation module 120A may may use one or more trained machine learning models, neural networks, or other algorithms to remove duplicate images and images with low information content. For example, images that may be almost entirely blank or contain only a small portion of anatomy may be discarded from the dataset. AAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 separate convolutional neural network (CNN) model may be trained to filter out images with significant artifacts and irrelevant views. Additionally, dataset preparation module 120A may transform the images to a standard format and size.
[0070] The dataset preparation module 120A may output the prepared dataset to image selection module 120B. Image selection module 120B may randomly select two radiographic views of a single patient during an imaging session thereby forming a pair of medical images. The patient may be an animal, such as a canine. The images may be two-dimensional images and stored in a lookup table where each entry associates an image with metadata uniquely identifying the image to an individual scan. In one embodiment, the pair of medical images may include an image of a lateral view of the patient and an image of a ventrodorsal view of the patient. The lateral view may include the left side of the patient or the right side of the patient. Alternatively, image selection module 120B, instead of dataset preparation module 120A, may transform the randomly-selected pair of images into a standard format and size.
[0071] Image selection module 120B may be configured to output the first pair of medical images to an image crop module 120C. As further detailed below in the description of FIG. 4, the image crop module 120C may extract one or more global crops 415 and one or more local crops 425 from each of first image 410 and second image 420, then resize the crops to a standard dimension for each crop type. For example, image crop module 120C may extract two global crops of the one or more global crops 415 and ten local crops of the one or more local crops 425 from the pair of first image 410 and second image 420. In some instances, image crop module 120C may extract one global crop of the one or more global crops 415 and five local crops of the one or more local crops 425 from each of first image 410 and second image 420. The one or more global crops 415 may be extracted by randomly cropping regions that cover about 25% to about 100% of the image area, then resizing the crops to 224x224 pixels. One or more local crops 425 may be created by randomly cropping regions that cover about 5% to about 25% of the image area, then resizing these local crops to 98x98 pixels. Consequently, the one or more global crops 415 and one or more local crops 425 may represent different points of view, portions, aspects, angles, or the like of the first image 410 and the second image 420 while allowing the crops to overlap.
[0072] The image crop module 120C may output the one or more global crops 415 and one or more local crops 425 to pretraining module 120D. As further detailed below in FIG. 5, one or more global crops 415 may be input into a first machine learning modelAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 505. Both the one or more global crops 415 and the one or more local crops 425 may be input into a second machine learning model 510. First machine learning model 505 and second machine learning model 510 may include a deep neural network, such as convolutional neural networks (CNN), Vision Transformers (ViT), and the like, and adopt a teacher-student training paradigm. As the teacher neural network, first machine learning model 505 may be pretrained to accurately predict the one or more global crops 415 the first machine learning model 505 receives. As the student neural network, second machine learning model 510 may leam to predict the output of first machine learning model 505 based on the one or more global crops 415 and the one or more local crops 425. An error or loss function may be employed to determine the accuracy of second machine learning model 510’s prediction based on comparing the output of second machine learning model 510 and the output of first machine learning model 505. In this way, first machine learning model 505 and second machine learning model 510 may employ self-supervised learning by adopting an innovated knowledge distillation technique.
[0073] The pretraining module 120D may output the pretrained model to evaluation module 120E. Evaluation module 120E may employ a k-Nearest Neighbors (k-NN) with a frozen feature extractor and full fine-tuning to evaluate the pretrained model. Both protocols are applied to a multi-label classification task of common radiographic findings using an evaluation dataset. The k-NN evaluation assesses representation quality in a non-parametric setting by classifying each image based on its k nearest neighbors in an embedding space generated by the frozen pre-trained encoder. For the fine-tuning evaluation, a network may be initialized with the pretrained student weights and parameters may be optimized for downstream tasks. Performance may be measured using Area Under the ROC Curve (ROC AUC) and Average Precision (Avg Prec).Additionally, the novel pretrained model may be compared to a model pretrained on single images, instead of the novel pair of medical images, as further demonstrated in FIGS. 6-8 discussed below.
[0074] To evaluate the learned representations of the pretrained machine learning model, for example pretrained second machine learning model 510, features may be extracted from both training and validation test sets. A k-NN classifier may be applied to the extracted features. The classifier may be fit using training set features and corresponding labels. The performance of the classifier may be evaluated on the validation set features, using F1 -score, precision, and recall as metrics. Table 1 below summarizes these results, comparing results of the novelAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 multi-view pretrained machine learning module (i.e., trained on pairs of medical images taken from a patient during an imaging session) with the results from a machine learning model trained on single-view images (e.g., the model pretrained on single images). The k-nn results are reported in Table 1 below on three gastrointestinal labels: Ingesta in the Stomach, indicating the presence of food material in the stomach; Gastric Foreign Materials (Debris), representing non-food substances within the stomach; and Foreign Body in the Small Intestines, identifying abnormal objects causing potential obstruction in the intestinal tract.Ingesta in the Gastric Foreign Foreign Body Stomach Materials in the Small Intestines Precisi Reca Precisi Reca Precisi Reca F1 F1 F1on II on II on II Multi- Image 0.57 0.258 0.308 0.30.5089 0.656 0.2609 0.2748 0.127 Studie 3 3 6 5sSingle0.141 0.142Image 0.28 0.263 0.298 0.1402 0.1 0.1098 0.0933 5StudiesTable 1
[0075] Additionally, a ViT-Tiny model may be used as a classification layer and added on top of a pretrained, unfrozen machine learning encoder. The model may be trained end-to-end using an optimizer with a learning rate set to, for example, 5 x 1 o-6, a batch size of 512, and weight decay equal to 0.001. T raining may be conducted with 16-bit precision, employing a cosine annealing learning rate scheduler. A binary cross-entropy (BCE) loss function may be used. The following data augmentations may be applied during fine-tuning: resizing to 224x224 pixels, random horizontal flips with a probability of 0.5, random rotations within the range of ±30 degrees, random affine transformations with translation (about 10% in both xAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 and y directions), scaling (0.8 to 1.2), shear (±10 degrees), random perspective distortion with scale of 0.5 and probability of 0.5, and RandAugment with parameters N=3 (number of operations) and M=6 (magnitude of transformations). The same hyperparameters, data augmentations, and training procedures were used for both the multi-view trained machine learning model and the single-view trained machine learning model. Results, including Average Precision (Avg Free) and ROC AUC, are summarized in Table 2 for 11 labels. Based on the results of evaluation module 120E, the finetuned machine learning model may be saved for future use as a trained machine learning model or sent for additional finetuning modifications.Multi-view Single-viewLabel Avg ROC Avg ROCPrec AUC Prec AUCDecreased0.7 0.961 0.619 0.944serosal detailDegenerative0.589 0.916 0.466 0.877Joint DiseaseMediastinal0.402 0.956 0.371 0.948Mass EffectMediastinal0.521 0.978 0.484 0.968WideningProstatic0.358 0.964 0.277 0.948EnlargementSign(s) of0.622 0.936 0.541 0.912IVDDSmallIntestinal 0.44 0.96 0.383 0.944 ObstructionSmall Kidney 0.429 0.963 0.4 0.961 Stifle Effusion 0.785 0.989 0.753 0.989 Subcutaneous0.538 0.949 0.476 0.931MassUterine0.59 0.976 0.415 0.933EnlargementAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 Table 2
[0076] FIG. 2 depicts an exemplary diagram of a deep neural network architecture 200 according to one or more aspects of the disclosure. The deep neural network may include an input layer 210, one or more hidden layers 220, and an output layer 230. Input data may be provided to input layer 210, which then passes the data sequentially through each of the one or more hidden layers 220. Each of the one or more hidden layers 220 may perform a unique transformation on its input, and output the transformed data to a next hidden layer of the one or more hidden layers 220 or to the output layer 230. The one or more hidden layers 220 may include one or more projection layers, classification layers, or other transformation layer depending on the type of deep neural network architecture provided.Additionally, the deep neural network may include a collection of interconnected and weighted nodes (“neurons”) that transform input data through weighted connections and activation functions. One or more weights, or parameters, of the weighted connections and weighted nodes may be updated as the machine learning model is trained, pretrained, and / or learning.
[0077] Some machine learning models, such as deep neural networks, may be first pretrained on a set of general training dataset, then fine-tuned for a specific target or task. For example, pretraining a machine learning model (e.g., a deep neural network) may involve feeding data into the model and adjusting its internal weights using optimization techniques, such as stochastic gradient descent. This process continues iteratively until the model's performance stabilizes, which typically occurs when the model converges. Convergence is often defined as the point at which further decreases in the loss function become negligible or the loss function satisfies a threshold. Once convergence is achieved, the model may then be finetuned by, for example, inputting a fine-tuning dataset and adjusting the model accordingly. The model’s performance may be monitored at the end of each epoch by a validation set to determine when to stop the fine-tuning procedure. After the model has been pretrained and fine-tuned, the final adjusted weights may be saved. The saved weights may be retrieved when implementing the trained machine learning model to make predictions on relevant, real-world datasets.
[0078] FIG. 3 depicts exemplary pairs 300 of digital medical images, according to one or more aspects of the disclosure. These images may be theAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 images processed in dataset preparation module 120A, image selection module 120B, and image crop module 120C and used for pretraining in pretraining module 120D. Exemplary pairs 300 of digital medical image may also be included in training datasets, validation datasets, test datasets, and other datasets associated with machine learning techniques. First radiographic image 305, second radiographic image 310, third radiographic image 315, and fourth radiographic image 320 may be radiographic images from one or more patients during one or more imaging sessions. For example, first radiographic image 305 may be a ventrodorsal X-ray image of a first patient from a first imaging session. Second radiographic image 310 may be a lateral X-ray image of the first patient from the first imaging session.Similarly, third radiographic image 315 may be a ventrodorsal X-ray image of a second patient from a second imaging session. Fourth radiographic image 320 may be a lateral X-ray image of the second patient from a second imaging session.
[0079] First radiographic image 305, second radiographic image 310, Third radiographic image 315, and fourth radiographic image 320 may be included in dataset 405, as described in the description of FIG. 4 below. For example, first radiographic image 305 may be first image 410. Second radiographic image 310 may be second image 420. First radiographic image 305 and second radiographic image 310 may be a first pair of medical images, wherein the first pair of medical images are taken from a first patient during a first imaging session. Third radiographic image 315 and fourth radiographic image 320 may be a second pair of medical images, wherein the second pair of medical images may be taken from a second patient during a second imaging session. The first patient may be the same patient as the second patient. Alternatively, the first patient may be a different patient than the second patient. The first imaging session may be the same imaging session as the second imaging session. Alternatively, the first imaging session may be the same imaging session as the second imaging session.
[0080] FIG. 4 depicts an exemplary diagram 400 illustrating cropping a pair of medical images, according to one or more aspects of the disclosure. As depicted in FIG. 4, and described above in image selection module 120B, two images from a same imaging session may be randomly chosen from dataset 405. Dataset 405 may include digital radiographic medical images from one or more patients during one or more imaging sessions. For example, first image 410 may be chosen and second image 420 may be chosen from dataset 405.Attorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1
[0081] One or more global crops 415 may be extracted from first image 410 and second image 420. One or more local crops 425 may be extracted from first image 410 and second image 420. For example, one global crop of the one or more global crops 415 and five local crops of the one or more local crops 425 may be extracted from each of first image 410 and second image 420. The one or more global crops 415 and the one or more local crops 425 may be formatted to a standard size. For example, the one or more global crops 415 may be resized to 224x224 pixels and the one or more local crops 425 may be resized to 98x98 pixels. Iterative pairs of medical images, where two additional medical images of a patient taken during a same imaging session, may be randomly selected and cropped with additional one or more global crops 415 and additional one or more local crops 425. The pairs of medical images may be used to pretrain a machine learning model as illustrated in FIG. 5.
[0082] FIG. 5 depicts an exemplary diagram 500 illustrating pretraining a machine learning model, according to one or more aspects of the disclosure. As further described above in the description of pretraining platform 120, one or more global crops 415 are input into first machine learning model 505 and second machine learning model 510 while one or more local crops 425 are input into second machine learning model 510. First machine learning model 505 may be a first deep neural network. Second machine learning model 510 may be a second deep neural network. In some instances, one global crop is randomly selected from the one or more global crops 415 for input into first machine learning model 505.
[0083] First machine learning model 505 may include a teacher neural network model while second machine learning model 510 may include a student neural network model, all within a teacher-student paradigm. In a teacher-student paradigm, first machine learning model 505 may be pretrained to predict a global perspective when analyzing one or more images, while second machine learning model 510 may be trained to match the output of first machine learning model 505. During the pretraining, weights of first machine learning model 505 may be periodically reconfigured as an exponential moving average (EMA) of the student’s weights. Pretraining may enable the second machine learning model 510 to learn view-invariant anatomical representations without the use of labeled data.
[0084] Output of the first machine learning model 505 may first be passed through a centering function 515 then through a teacher probability distributionAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 function 520. Centering the output via the centering function 515 may aid in stabilizing the first machine learning model 505. Teacher probability distribution function 520 may be a SoftMax function. Applying the teacher probability distribution function 520 may convert the output from centering function 515 into a probability distribution. The output of teacher probability distribution function 520 may be input into teacher projection head 525. Teacher projection head 525 may map higherdimensional features extracted by first machine learning model 505 into a lowerdimensional space. Output of the second machine learning model 510 may be passed through a student probability distribution function 530, which may convert the output into a probability distribution. Student probability distribution function 530 may include a SoftMax function. The output of student probability distribution function 530 may be input into student projection head 535. Like teacher projection head 525, student projection head 535 may map higher-dimensional features extracted by second machine learning model 510 into a lower-dimensional space. The output of teacher projection head 525 and the output of student projection head 535 may be input into loss function 540. Loss function 540 may evaluate a degree of similarity between the output of first machine learning model 505 and the output of the second machine learning model 510 over time. Pretraining may be deemed accomplished when the degree of similarity generated by loss function 540 satisfies a predetermined threshold, which may indicate model convergence.
[0085] FIGS. 6-8 may illustrate the extent to which the proposed novel pretraining approach achieves the goals of learning view-invariant representations that encode 3D information, facilitating generalization across different projections, and mitigating the inherent limitations of 2D radiographic data. To explore this, attention maps may be analyzed from a multi-view pretrained machine learning model and a single-view pretrained machine learning model. Additionally, embedding space of various anatomical structures may be visualized. The multi-view pretrained machine learning model may be trained to analyze multiple views of a same imaging scan via pretraining with pairs of medical image data of a patient taken from the same imaging scan, as described above in FIGS. 4 and 5.
[0086] Unlike multi-view pretrained machine learning models, single-view pretrained machine learning models are pretrained using a single radiographic view taken from a single imaging session, such as a canine study. Two global crops and ten local crops may be extracted and resized to 224x224 pixels and 98x98 pixels,Attorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 respectively. Like in training a multi-view machine learning model, all crops may be passed to a student Vision Transformer (ViT) network, while only one global crop may be passed to a teacher ViT network. Hence, the single-view machine learning model may be pretrained to analyze 2D images for 3D concepts, however, with crops generated from a single image taken from a single imaging session.
[0087] FIG. 6 depicts exemplary attention maps 600, according to one or more aspects of the disclosure. The maps, as depicted in FIG. 6, were generated from radiographs of a same canine study, including lateral and ventrodorsal projections. Images in column 615 were entered into the pretrained multi-view machine learning model and the pretrained single-view machine learning model. Images in row 605 comprising attention maps illustrate images associated with an output of a pretrained multi-view machine learning model, where pretraining adopts the use of determining pairs of medical images from a patient during an imaging scan, such as first image 410 and second image 420. This pretraining is described above in the discussion of, for example, FIG. 4 and FIG. 5. Images in row 610 comprising attention maps illustrate images associated with an output of a pretrained single-view machine learning model, where pretraining does not adopt a step of determining pairs of medical images from a patient during an imaging scan.
[0088] The attention maps of the multi-view trained models consistently highlight regions corresponding to the skeletal system 620, particularly the spine and pelvis, soft tissue 625, and intestinal system 630 across different views. This focused attention suggests that the multi-view pretrained machine learning model has learned to identify these key anatomical structures as consistent features, regardless of their 2D projection. In contrast, the attention maps from the single-view pretrained machine learning model in row 610 exhibit a more dispersed pattern, with less consistent focus on specific anatomical structures. In some instances, difference in attention patterns may provide that multi-view pretraining leads to a greater emphasis on anatomically relevant features. Additionally, fine-tuning with multi-view radiographic studies as described above may enhance a machine learning model’s learning capacity and facilitate the development of more robust and comprehensive anatomical representations.
[0089] FIG. 7 depicts exemplary visualizations 700 of cosine similarities between patch embeddings for a multi-view pretrained machine learning model and a single-view pretrained machine learning model, according to one or more aspectsAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 of the disclosure. Images in column 720 illustrate anchor images, which include an anchor patch as described below. Images in column 725 illustrate comparison images. The anchor images in column 720 and the comparison images in column 725 may originate from the same patient and same radiographic session. Images in column 730 illustrate images associated with a multi-view pretrained machine learning model, where pretraining adopts the use of determining pairs of medical images from a patient during an imaging scan, such as first image 410 and second image 420. This pretraining is described above in the discussion of, for example, FIG. 4 and FIG. 5. Images in column 735 illustrate images associated with a singleview pretrained machine learning model, where pretraining does not adopt the step of determining pairs of medical images from a patient during an imaging scan. Top-5 most similar patches are highlighted in FIG. 7, demonstrating superior view-invariant anatomical feature identification in the multi-view pretrained machine learning model, as compared to the single-view pretrained machine learning model.
[0090] As illustrated in FIG. 7, the cosine similarity between patch embeddings from different radiographic views of the same study may be analyzed to quantify the observed consistency of attention on key anatomical structures. Patches may be manually selected corresponding to three anatomical regions: the gastrointestinal tract illustrated in row 705, soft tissue / muscular structures illustrated in row 710, and the skeletal system illustrated in row 715. For each anchor patch in a selected image, the cosine similarity may be calculated between its embedding and the embeddings of all patches in the accompanying image within the same study. High cosine similarity may indicate that the model represents the same anatomical region similarly, despite differences in its 2D projection. Across a small sample of 24 image pairs, an average cosine similarity of about 0.98 was calculated between the anchor patch and the top five most similar patches in the comparison image. These observations may suggest that pretrained models according to the methods described above learn representations that exhibit a degree of view-invariance.
[0091] Further, the patch embeddings may be extracted from the output of the second machine learning model (the student model) ViT encoder’s final transformer block, before token embedding. Specifically, for each image, activations from this layer may be reshaped into a set of patch embeddings, each corresponding to a 14x14 pixel region in the input image (given the ViT-S / 14 architecture). To quantify inter-view similarity, an anchor patch may be selected from one view of aAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 study. The cosine similarity may then be calculated between the anchor patch embedding and all patch embeddings from a different, comparison view of the same study. This may provide a measure of the similarity between local image features across different radiographic projections.
[0092] FIG. 8 depicts exemplary attention maps 800 superimposed on a pair of medical images, according to one or more aspects of the disclosure. As depicted in FIG. 8, column 815 illustrates a ventrodorsal radiographic image and a left lateral radiographic image analyzed by a multi-view pretrained machine learning model. Row 805 illustrates a ventrodorsal radiographic image output of the multi-view pretrained machine learning model. Row 810 illustrates a left lateral radiographic image output of the multi-view pretrained machine learning model. Both images may be of a canine patient acquired during the same veterinarian visit. Superimposed on these images are attention maps which may be derived from the final block head of a multi-view pretrained machine learning model, illustrating the pretrained machine learning model’s focus on specific anatomical regions. In some instances, distinct attention heads appear to independently attend to the skeletal system 820, the soft tissue / muscular system 825, and the gastrointestinal system 830. In some instances, the multi-view pretrained machine learning model exhibits view-invariant attention to anatomical structures, highlighting its capacity to learn consistent representations of anatomical features across different radiographic views.
[0093] FIG. 9 depicts flowchart 900 depicting a method for pretraining a deep learning model, according to one or more aspects of the disclosure. The process described in FIG. 9 may be implemented by environment 100 of FIG. 1. FIGS. 4 and 5 depict exemplary diagrams 400 and 500 of the process described in FIG. 9, illustrating how the digital medical images may be pretrained using the novel approach. The exemplary environment 100 of FIG. 1, and the exemplary diagrams 400 of FIG. 4, and 500 of FIG. 5 are referenced to illustrate the steps of flowchart 900 of FIG. 9.
[0094] At step 905, flowchart 900 may include generating a first pair of medical images, wherein the first pair of medical images are taken from a patient during an imaging session. For example, dataset preparation module 120A may receive dataset 405 and prepare the images in dataset 405 as described above in FIG. 1. Image selection module 120B may randomly select first image 410 andAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 second image 420 from dataset 405. First image 410 and second image 420 may be images of a first patient taken during a first imaging session.
[0095] At step 910, flowchart 900 may include cropping a first image of the first pair of medical images into first crops, wherein the first crops include at least one first global crop and at least one first local crop. For example, image crop module 120C may receive first image 410 from image selection module 120B. Image crop module 120C may randomly generate one or more global crops 415 and one or more local crops 425 from first image 410 as described above and illustrated in FIG.4.
[0096] At step 915, flowchart 900 may include cropping a second image of the first pair of medical images into second crops, wherein the second crops include at least one second global crop and at least one second local crop. For example, image crop module 120C may receive second image 420 from image selection module 120B. Image crop module 120C may randomly generate one or more global crops 415 and one or more local crops 425 from second image 420 as described above and illustrated in FIG. 4.
[0097] At step 920, flowchart 900 may include inputting the at least one first global crop and the at least one second global crop to a first neural network. For example, image crop module 120C may input one or more global crops 415 of first image 410 and one or more global crops 415 second image 420 to pretraining module 120D. Pretraining module 120D may present the one or more global crops 415 of first image 410 and the one or more global crops 415 of second image 420 to first machine learning model 505 as described in the description of FIG. 5 above. Alternatively, pretraining module 120D may randomly choose one of the one or more global crops 415 from the first image 410 or the second image 420 as input to first machine learning model 505. First machine learning model 505 may be pretrained to understand a global perspective of received images.
[0098] At step 925, flowchart 900 may include inputting the at least one first global crop, the at least one second global crop, the at least one first local crop, and the at least one second local crop to a second neural network. For example, image crop module 120C may output one or more global crops 415 and one or more local crops 425 of first image 410 along with one or more global crops 415 and one or more local crops 425 of second image 420 to pretraining module 120D. Pretraining module 120D may present one or more global crops 415 and one or more localAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 crops 425 of first image 410 and one or more global crops 415 and one or more local crops 425 of second image 420 to second machine learning model 510 as described in the description of FIG. 5 above. Second machine learning model 510 may be pretrained to predict the output of first machine learning model 505.
[0099] At step 930, flowchart 900 may include predicting, by the second neural network and based on the at least one first global crop, the at least one second global crop, the at least one first local crop, and the at least one second local crop, an output of the first neural network wherein the output of the first neural network is based on the at least one first global crop and the at least one second global crop. For example, first machine learning model 505 may receive one or more global crops 415 and calculate a predicted output. Second machine learning model 510 may receive one or more global crops 415 and one or more local crops 425 and predict the output of first machine learning model 505, as described above in the description of FIGS. 1 and 5.
[0100] At step 935, flowchart 900 may include updating, based on comparing the prediction of the second neural network with the output of the first neural network, parameters of the second neural network. For example, pretraining module 120D may compare the predictions of first machine learning model 505 and second machine learning model 510 via loss function 540. Based on loss function 540, pretraining module 120D may update one or more parameters, or weights, of second machine learning model 510 in order to better align the output of second machine learning model 510 with the output of first machine learning model 505.
[0101] At step 940, flowchart 900 may include updating, based on updating the parameters of the second neural network, parameters of the first neural network. For example, after an epoch or other training time duration, pretraining module 120D may update the parameters or weights of first machine learning model 505. The weights of first machine learning model 505 may be calculated as an exponential moving average (EMA) of second machine learning model 510’s weights.
[0102] At step 945, flowchart 900 may include saving, based on a comparison of the prediction of the second neural network and the output of the first neural network satisfying a threshold, the parameters of the first neural network and the second neural network to a memory, wherein the comparison satisfying the threshold indicates that the second neural network is equipped to learn view-invariant anatomical representations without manual annotations. For example, pretrainingAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 module 120D may determine that second machine learning model 510 has successfully distilled knowledge from first machine learning model 505 when loss function 540 satisfies a threshold, indicating model convergence and the completion of pretraining. The weights of second machine learning model 510 may be stored at memory 115E, memory 105C or other memory location for future use as a pretrained model capable of learning view-invariant anatomical representations without manual annotations.
[0103] FIG. 10 illustrates an implementation of a computer system 1000 that may execute techniques presented herein. The computer system 1000 can include a set of instructions that can be executed to cause the computer system 1000 to perform any one or more of the methods or computer-based functions disclosed herein. The computer system 1000 may operate as a standalone device or may be connected, e.g., using a network, to other computer systems or peripheral devices.
[0104] In a networked deployment, the computer system 1000 may operate in the capacity of a server or as a client user computer in a server-client user network environment, or as a peer computer system in a peer-to-peer (or distributed) network environment. The computer system 1000 can also be implemented as or incorporated into various devices, such as a personal computer (PC), a tablet PC, a set-top box (STB), a personal digital assistant (PDA), a mobile device, a palmtop computer, a laptop computer, a desktop computer, a communications device, a wireless telephone, a land-line telephone, a control system, a camera, a scanner, a facsimile machine, a printer, a pager, a personal trusted device, a web appliance, a network router, switch or bridge, or any other machine capable of executing a set of instructions (sequential or otherwise) that specify actions to be taken by that machine. In a particular implementation, the computer system 1000 can be implemented using electronic devices that provide voice, video, or data communication. Further, while a single computer system 1000 is illustrated, the term “system” shall also be taken to include any collection of systems or sub-systems that individually or jointly execute a set, or multiple sets, of instructions to perform one or more computer functions.
[0105] As illustrated in FIG. 10, the computer system 1000 may include a processor 1002, e.g., a central processing unit (CPU), a graphics processing unit (GPU), or both. The processor 1002 may be a component in a variety of systems. For example, the processor 1002 may be part of a standard personal computer or aAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 workstation. The processor 1002 may be one or more general processors, digital signal processors, application specific integrated circuits, field programmable gate arrays, servers, networks, digital circuits, analog circuits, combinations thereof, or other now known or later developed devices for analyzing and processing data. The processor 1002 may implement a software program, such as code generated manually (i.e. , programmed).
[0106] The computer system 1000 may include a memory 1004 that can communicate via a bus 1008. The memory 1004 may be a main memory, a static memory, or a dynamic memory. The memory 1004 may include, but is not limited to computer readable storage media such as various types of volatile and non-volatile storage media, including but not limited to random access memory, read-only memory, programmable read-only memory, electrically programmable read-only memory, electrically erasable read-only memory, flash memory, magnetic tape or disk, optical media and the like. In one implementation, the memory 1004 includes a cache or random-access memory for the processor 1002. In alternative implementations, the memory 1004 is separate from the processor 1002, such as a cache memory of a processor, the system memory, or other memory. The memory 1004 may be an external storage device or database for storing data. Examples include a hard drive, compact disc (“CD”), digital video disc (“DVD”), memory card, memory stick, floppy disc, universal serial bus (“USB”) memory device, or any other device operative to store data. The memory 1004 is operable to store instructions executable by the processor 1002. The functions, acts or tasks illustrated in the figures or described herein may be performed by the programmed processor 1002 executing the instructions stored in the memory 1004. The functions, acts or tasks are independent of the particular type of instructions set, storage media, processor or processing strategy and may be performed by software, hardware, integrated circuits, firm-ware, micro-code and the like, operating alone or in combination.Likewise, processing strategies may include multiprocessing, multitasking, parallel processing and the like.
[0107] As shown, the computer system 1000 may further include a display 1010, such as a liquid crystal display (LCD), an organic light emitting diode (OLED), a flat panel display, a solid-state display, a cathode ray tube (CRT), a projector, a printer or other now known or later developed display device for outputting determined information. The display 1010 may act as an interface for the user to seeAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 the functioning of the processor 1002, or specifically as an interface with the software stored in the memory 1004 or in the drive unit 1006.
[0108] Additionally or alternatively, the computer system 1000 may include an input device 1012 configured to allow a user to interact with any of the components of the computer system 1000. The input device 1012 may be a number pad, a keyboard, or a cursor control device, such as a mouse, or a joystick, touch screen display, remote control, or any other device operative to interact with the computer system 1000.
[0109] The computer system 1000 may also or alternatively include a disk or optical drive unit as drive unit 1006. The disk drive as drive unit 1006 may include a computer-readable medium 1022 in which one or more sets of instructions 1024, e.g. software, can be embedded. Further, the instructions 1024 may embody one or more of the methods or logic as described herein. The instructions 1024 may reside completely or partially within the memory 1004 and / or within the processor 1002 during execution by the computer system 1000. The memory 1004 and the processor 1002 also may include computer-readable media as discussed above.
[0110] In some systems, a computer-readable medium 1022 includes instructions 1024 or receives and executes instructions 1024 responsive to a propagated signal so that a device connected to a network 101 can communicate voice, video, audio, images, or any other data over the network 101. Further, the instructions 1024 may be transmitted or received over the network 101 via a communication port or interface 1020, and / or using a bus 1008. The communication port or interface 1020 may be a part of the processor 1002 or may be a separate component. The communication port or interface 1020 may be created in software or may be a physical connection in hardware. The communication port or interface 1020 may be configured to connect with a network 101 , external media, the display 1010, or any other components in the computer system 1000, or combinations thereof. The connection with the network 101 may be a physical connection, such as a wired Ethernet connection or may be established wirelessly as discussed below. Likewise, the additional connections with other components of the computer system 1000 may be physical connections or may be established wirelessly. The network 101 may alternatively be directly connected to the bus 1008.
[0111] While the computer-readable medium 1022 is shown to be a single medium, the term "computer-readable medium" may include a single medium orAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 multiple media, such as a centralized or distributed database, and / or associated caches and servers that store one or more sets of instructions. The term "computer-readable medium" may also include any medium that is capable of storing, encoding, or carrying a set of instructions for execution by a processor or that cause a computer system to perform any one or more of the methods or operations disclosed herein. The computer-readable medium 1022 may be non-transitory, and may be tangible.
[0112] The computer-readable medium 1022 can include a solid-state memory such as a memory card or other package that houses one or more nonvolatile read-only memories. The computer-readable medium 1022 can be a random-access memory or other volatile re-writable memory. Additionally or alternatively, the computer-readable medium 1022 can include a magneto-optical or optical medium, such as a disk or tapes or other storage device to capture carrier wave signals such as a signal communicated over a transmission medium. A digital file attachment to an e-mail or other self-contained information archive or set of archives may be considered a distribution medium that is a tangible storage medium. Accordingly, the disclosure is considered to include any one or more of a computer-readable medium ora distribution medium and other equivalents and successor media, in which data or instructions may be stored.
[0113] In an alternative implementation, dedicated hardware implementations, such as application specific integrated circuits, programmable logic arrays and other hardware devices, can be constructed to implement one or more of the methods described herein. Applications that may include the apparatus and systems of various implementations can broadly include a variety of electronic and computer systems. One or more implementations described herein may implement functions using two or more specific interconnected hardware modules or devices with related control and data signals that can be communicated between and through the modules, or as portions of an application-specific integrated circuit.Accordingly, the present system encompasses software, firmware, and hardware implementations.
[0114] The computer system 1000 may be connected to one or more networks 101. Network 101 may define one or more networks including wired or wireless networks. The wireless network may be a cellular telephone network, an 802.11, 802.16, 802.20, orWiMax network. Further, such networks may include aAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 public network, such as the Internet, a private network, such as an intranet, or combinations thereof, and may utilize a variety of networking protocols now available or later developed including, but not limited to TCP / IP based networking protocols. The network 101 may include wide area networks (WAN), such as the Internet, local area networks (LAN), campus area networks, metropolitan area networks, a direct connection such as through a Universal Serial Bus (USB) port, or any other networks that may allow for data communication. The network 101 may be configured to couple one computing device to another computing device to enable communication of data between the devices. The network 101 may generally be enabled to employ any form of machine-readable media for communicating information from one device to another. The network 101 may include communication methods by which information may travel between computing devices. The network 101 may be divided into sub-networks. The sub-networks may allow access to all of the other components connected thereto or the sub-networks may restrict access between the components. The network 101 may be regarded as a public or private network connection and may include, for example, a virtual private network or an encryption or other security mechanism employed over the public Internet, or the like.
[0115] In accordance with various implementations of the present disclosure, the methods described herein may be implemented by software programs executable by a computer system. Further, in an exemplary, non-limited implementation, implementations can include distributed processing, component / object distributed processing, and parallel processing. Alternatively, virtual computer system processing can be constructed to implement one or more of the methods or functionality as described herein.
[0116] Although the present specification describes components and functions that may be implemented in particular implementations with reference to particular standards and protocols, the disclosure is not limited to such standards and protocols. For example, standards for Internet and other packet switched network transmission (e.g., TCP / IP, UDP / IP, HTML, HTTP) represent examples of the state of the art. Such standards are periodically superseded by faster or more efficient equivalents having essentially the same functions. Accordingly, replacement standards and protocols having the same or similar functions as those disclosed herein are considered equivalents thereof.Attorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1
[0117] It will be understood that the steps of methods discussed are performed in one embodiment by an appropriate processor (or processors) of a processing (i.e., computer) system executing instructions (computer-readable code) stored in storage. It will also be understood that the disclosed embodiments are not limited to any particular implementation or programming technique and that the disclosed embodiments may be implemented using any appropriate techniques for implementing the functionality described herein. The disclosed embodiments are not limited to any particular programming language or operating system.
[0118] It should be appreciated that in the above description of exemplary embodiments, various features of the present disclosure are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed embodiment requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment.
[0119] Furthermore, while some embodiments described herein include some but not other features included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the present disclosure, and form different embodiments, as would be understood by those skilled in the art. For example, in the following claims, any of the claimed embodiments can be used in any combination.
[0120] Furthermore, some of the embodiments are described herein as a method or combination of elements of a method that can be implemented by a processor of a computer system or by other means of carrying out the function. Thus, a processor with the necessary instructions for carrying out such a method or element of a method forms a means for carrying out the method or element of a method. Furthermore, an element described herein of an apparatus embodiment is an example of a means for carrying out the function performed by the element for the purpose of carrying out the disclosed techniques.Attorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1
[0121] In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the present disclosure may be practiced without these specific details. In other instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
[0122] Similarly, it is to be noticed that the term coupled, when used in the claims, should not be interpreted as being limited to direct connections only. The terms "coupled" and "connected," along with their derivatives, may be used. It should be understood that these terms are not intended as synonyms for each other. Thus, the scope of the expression a device A coupled to a device B should not be limited to devices or systems wherein an output of device A is directly connected to an input of device B. It means that there exists a path between an output of A and an input of B which may be a path including other devices or means. "Coupled" may mean that two or more elements are either in direct physical or electrical contact, or that two or more elements are not in direct contact with each other but yet still co-operate or interact with each other.
[0123] Thus, while there has been described what are believed to be the preferred embodiments, those skilled in the art will recognize that other and further modifications may be made thereto without departing from the spirit of the present disclosure, and it is intended to claim all such changes and modifications as falling within the scope of the present disclosure. For example, any formulas given above are merely representative of procedures that may be used. Functionality may be added or deleted from the block diagrams and operations may be interchanged among functional blocks. Steps may be added or deleted to methods described within the scope of the present disclosure.
[0124] The above disclosed subject matter is to be considered illustrative, and not restrictive, and the appended claims are intended to cover all such modifications, enhancements, and other implementations, which fall within the true spirit and scope of the present disclosure. Thus, to the maximum extent allowed by law, the scope of the present disclosure is to be determined by the broadest permissible interpretation of the following claims and their equivalents, and shall not be restricted or limited by the foregoing detailed description. While various implementations of the disclosure have been described, it will be apparent to those of ordinary skill in the art that many more implementations and implementations areAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 possible within the scope of the disclosure. Accordingly, the disclosure is not to be restricted except in light of the attached claims and their equivalents.
[0125] Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
[0126] This Application fully incorporates the Appendix appended hereto by reference.
Claims
Attorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 What is claimed is:
1. A method of training, by a self-training processing, a machine learning model configured to develop a three-dimensional anatomical understanding based on two-dimensional projections, the method comprising:generating a first pair of medical images, wherein the first pair of medical images are taken from a patient during an imaging session;cropping a first image of the first pair of medical images into first crops, wherein the first crops include at least one first global crop and at least one first local crop;cropping a second image of the first pair of medical images into second crops, wherein the second crops include at least one second global crop and at least one second local crop;inputting the at least one first global crop and the at least one second global crop to a first neural network;inputting the at least one first global crop, the at least one second global crop, the at least one first local crop, and the at least one second local crop to a second neural network;predicting, by the second neural network and based on the at least one first global crop, the at least one second global crop, the at least one first local crop, and the at least one second local crop, an output of the first neural network wherein the output of the first neural network is based on the at least one first global crop and the at least one second global crop;updating, based on comparing the prediction of the second neural network with the output of the first neural network, parameters of the second neural network;updating, based on updating the parameters of the second neural network, parameters of the first neural network; andsaving, based on a comparison of the prediction of the second neural network and the output of the first neural network satisfying a threshold, the parameters of the first neural network and the second neural network to a memory, wherein the comparison satisfying the threshold indicates that the second neural network is equipped to learn view-invariant anatomical representations without manual annotations.Attorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 2. The method of claim 1 , wherein generating the first pair of medical images comprises:receiving a dataset, wherein the dataset comprises images associated with multiple medical studies;retrieving images associated with a first study from the dataset; and randomly selecting two images from the images associated with the first study.
3. The method of claim 2, wherein generating the first pair of medical images further comprises:transforming the randomly-selected two images into a standard format.
4. The method of claim 1 , wherein the first crops and the second crops represent different points of view of the first image and the second image.
5. The method of claim 1 , wherein updating the parameters of the first neural network includes:calculating an exponential moving average (EMA) of the parameters of the second neural network; andupdating, based on the calculated EMA, the parameters of the first neural network.
6. The method of claim 1 , wherein a size of each of the at least one first global crop and the at least one second global crop is larger than a size of each of the at least one first local crop and the at least one second local crop.
7. The method of claim 1 , wherein the first neural network and the second neural network form a teacher-student training machine learning model.
8. The method of claim 1 , wherein first neural network and the second neural network are trained Vision Transformers (ViTs), wherein the second neural network is trained to predict the output of the first neural network.Attorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 9. The method of claim 1 , wherein a number of the first crops is equal to a number of the second crops, and a total number of the at least one first global crop and the at least one second global crop is smaller than a total number of the at least one first local crop and the at least one second local crop.
10. A system comprising:one or more processors of a computing system; andat least one non-transitory computer-readable medium storing instructions which, when executed by the one or more processors, cause the one or more processors to:train a machine learning model, configured to develop a three-dimensional anatomical understanding based on two-dimensional projections, by:retrieving a pair of medical images, wherein the pair of medical images are taken from a patient during a same medical imaging session;cropping a first image of the pair of medical images into first crops, wherein the first crops include at least one first global crop and at least one first local crop;cropping a second image of the pair of medical images into second crops, wherein the second crops include at least one second global crop and at least one second local crop;inputting the one or more global crops to a first neural network; inputting the one or more global crops and the one or more local crops to a second neural network;converging an output of the first neural network and an output of the second neural network based on a self-supervised learning process; and saving, based on a level of convergence satisfying a predetermined threshold, parameters of the first neural network and the second neural network to a memory; andemploying, based on retrieving the parameters of the first neural network and the second neural network, the trained machine learning model to detect view-invariant anatomical representations for a first dataset without using manual annotations.Attorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 11. The system of claim 10, the at least one non-transitory computer-readable medium storing instructions for converging the outputs of the first neural network and the second neural network which, when executed by the one or more processors, further cause the one or more processors to:predict, by the second neural network and based on the at least one first global crop, the at least one second global crop, the at least one first local crop, and the at least one second local crop, an output of the first neural network wherein the output of the first neural network is based on the at least one first global crop and the at least one second global crop;update, based on comparing the prediction of the second neural network with the output of the first neural network, parameters of the second neural network; and update, based on updating the parameters of the second neural network, parameters of the first neural network.
12. The system of claim 10, wherein a number of the of the at least one first global crop is equal to a number of the at least one second global crop.
13. The system of claim 10, wherein a number of the at least one first local crop is ten, and a number of the at least one second local crop is ten.
14. The system of claim 10, wherein the trained machine learning model, when implemented, generates 3D data from the pair of images.
15. The system of claim 10, wherein retrieving the pair of medical images includes retrieving the pair of medical images from a dataset, wherein the dataset includes veterinary X-ray images.
16. The system of claim 10, wherein the self-supervised learning process includes a self-distillation technique without using labels.
17. The system of claim 10, wherein the at least one non-transitory computer-readable medium storing instructions, when executed by the one or more processors, further cause the one or more processors to:Attorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 evaluate, based on the updated parameters of the second neural network, outputs of the second neural network; andbased on the evaluation of the outputs of the second neural network, fine tune the trained machine learning model.
18. A non-transitory computer-readable medium, the non-transitory computer-readable medium storing instructions which, when executed by one or more processors of a computing system, cause the one or more processors to:generate a first pair of medical images, wherein the first pair of medical images are taken from a patient during a same medical imaging session;crop a first image of the first pair of medical images into first crops, wherein the first crops include at least one first global crop and at least one first local crop; crop a second image of the first pair of medical images into second crops, wherein the second crops include at least one second global crop and at least one second local crop;input the at least one first global crop and the at least one second global crop to a first neural network;input the at least one first global crop, the at least one second global crop, the at least one first local crop, and the at least one second local crop to a second neural network;predict, by the second neural network and based on the at least one first global crop, the at least one second global crop, the at least one first local crop, and the at least one second local crop, an output of the first neural network wherein the output of the first neural network is based on the at least one first global crop and the at least one second global crop;update, based on comparing the prediction of the second neural network with the output of the first neural network, parameters of the second neural network; update, based on updating the parameters of the second neural network, parameters of the first neural network; andsave, based on a comparison of the prediction of the second neural network and the output of the first neural network satisfying a threshold, the parameters of the first neural network and the second neural network to a memory, wherein the comparison satisfying the threshold indicates that the second neural network isAttorney Docket No.: 00307-0161-00304Mars Ref.: MARS / P / 394249 / WO / SEC / 1 equipped to learn view-invariant anatomical representations without manual annotations.
19. The non-transitory computer-readable medium of claim 18, wherein the pair of medical images includes a ventrodorsal image and a lateral image of the patient.
20. The non-transitory computer-readable medium of claim 18, wherein the pair of medical images reflects a specific anatomical region.
