Highlights
- Datature Nexus is an end-to-end MLOps platform that simplifies the computer vision workflow for individuals and businesses looking to incorporate artificial intelligence (AI) into their projects. Users can annotate and augment images, train state-of-the-art computer vision models, and seamlessly deploy them — all without the need for coding expertise.
- Nexus now extends its support to medical image formats, including DICOM and NIfTI! Continue reading to discover how you can leverage Nexus to create and deploy your customized deep learning model for medical applications.
- This is the first article of a two-part series. In this article, we will dive into why Nexus might be the perfect choice for you, along with a step-by-step guide on how to upload and annotate 3D medical images with Nexus. In the next article, we'll take a closer look at model training and deployment.
What is Non-invasive Medical Imaging?
With the remarkable advancements in medicine over the last century, groundbreaking technologies such as non-invasive medical imaging have emerged as invaluable tools, aiding doctors and medical professionals in making diagnoses and prognoses with enhanced confidence and precision. Imaging techniques like X-rays, computed tomography (CT), magnetic resonance imaging (MRI), and ultrasound offer visual insights into the internal structures of the human body, allowing healthcare professionals to detect anomalies, identify tumor locations, and assess disease progression swiftly and safely. This greatly reduces the necessity for invasive procedures, minimizing the associated risks and improving patient outcomes.
Challenges in Medical Imaging Data Analysis
As the volume and complexity of medical imaging data continue to grow, new challenges arise in effectively analyzing and interpreting these images. Traditionally, the task of examining these images, including the identification and localization of tumors, has relied heavily on the expertise of trained radiologists and doctors. These professionals have shouldered the responsibility of carefully reviewing and assessing each image to detect and diagnose abnormalities. With the escalating volume of imaging data, manually reviewing these images imposes an increasing burden on their already demanding clinical responsibilities, placing additional strain on their time and cognitive resources. This necessitates innovative approaches and solutions for streamlining and automating the image analysis workflow.
Current Solutions for Streamlining Medical Image Analysis
Specialized software tools and platforms have been developed to streamline and expedite various aspects of the image analysis process. For example, ITK-SNAP is a widely used medical image segmentation tool that provides computer-assisted manual segmentation of anatomical structures in 3D and 4D medical images. It leverages active contour methods to facilitate the extraction of object boundaries, enabling semi-automatic segmentation and reducing the time required to trace or segment regions of interest.
Furthermore, recent developments in AI have led to notable improvements in the automation of segmentation and analysis processes. Medical software tools like 3D Slicer have embraced these AI techniques, particularly deep learning, to automate the identification and segmentation of anatomical structures, tumors, and other abnormalities in medical images. These tools deploy “domain-specific models” or “specialized models” that have been specifically trained using large sets of labeled data to identify specific anatomical structures such as the liver, lung, and spleen, or to segment anomalies like brain tumors. Once the model completes the detection or segmentation task, medical experts can review the outcomes and make any necessary refinements.
Limitations of Current Solutions
While these out-of-the-box AI-assisted tools have the potential to significantly reduce the manual effort required from doctors and healthcare professionals, it is important to acknowledge their limitations. These tools rely on pre-existing models that have been trained either by the platforms themselves or through contributions from other users. Since the models are not universally adaptable to all scenarios, doctors and researchers working with unique datasets or tackling rare conditions may find it difficult to take advantage of the automation capabilities provided by these tools. In addition, these tools are typically built as standalone solutions and not meant to be integrated into larger software ecosystems, which can pose integration difficulties for startups and companies seeking to incorporate these solutions into their existing workflows.
Datature’s Solutions and Successful Use Cases
Datature presents an easy solution for such scenarios. The Nexus platform by Datature is an industry-agnostic, all-in-one MLOps platform that supports users at any technical level to effortlessly build, train, and deploy their customized computer vision models. For users who are in the early stages of exploring AI, the platform offers a diverse array of default features to assist them in developing their first model. Meanwhile, users who are more comfortable with deep learning concepts can take advantage of the platform's flexibility to tune various parameters to accelerate production without compromising on model customizability. And most importantly, the platform is designed to support seamless and industry-standard integration, whether it involves deploying the model through Datature’s reliable global cloud infrastructure to scale an application or exporting the model to use it as an inference.
Join the ranks of thousands of teams worldwide who have achieved remarkable success by leveraging Datature's platform to build and launch their products. Read our user spotlights to see how Datature supports HealthTech startups like BrainScanology and MacroInsight in revolutionizing healthcare through AI.
Step-by-Step Guide
In the following sections, we will demonstrate how Datature users can build a customized tumor detection system with Nexus.
1. Preparing the Data
Nexus works well with images from diverse radiology modalities like X-rays, CT scans, and various types of MRI such as T1, T2, and FLAIR. It accommodates a range of image and video file formats, including JPEG, PNG, MP4, as well as specialized medical image formats like DICOM and NIfTI. In this demonstration, we will look at some Gadolinium-enhanced T1-weighted (Gd-T1w) MRI scans in NIfTI format from the Medical Segmentation Decathlon brain tumor dataset.
2. Creating a New Project on Nexus
First, sign up for a free Datature account at http://www.datature.io. Then, log in and follow the prompts to create a new project on Nexus. For more information on how to sign up and create a project, check out our documentation!
3. Importing Data to Nexus
For common file types such as PNG and JPEG, users can drag and drop the image files into the "Upload Assets" box under Dataset.
For NIfTI files, we can use Datature’s Python SDK either through the Command Line Interface (CLI) or a simple Python script. Both methods will require the system to have Python 3.7 or above installed.
On Nexus, we first need to acquire our project’s secret key. This is only available to project owners to maintain security. As a forewarning, if a project’s secret key is regenerated, the previous secret key becomes invalid and the new key must be used for access.
- Go to the project’s Integrations page
- Choose "Generate New Secret" to get the project’s secret key
- Save the secret key somewhere safe
Method 1 - Command Line Interface
1. Launch a Terminal window
2. Install Datature’s CLI
3. Authenticate
Type the following into the terminal then follow the prompts to complete the authentication.
4. Upload data
Type the following into the terminal then follow the prompts to enter relevant information about the data.
5. Monitor the progress
Progress bars will be shown in the terminal during the upload process.
Method 2 - Script
The Jupyter notebook used to upload the brain tumor data to Nexus for this demonstration has been uploaded to Datature's Github repository. You can access the full implementation and detailed comments there. Here's a snippet of the main body of codes to give you a glimpse.
In addition to the codes used in this demo project, our resources page on Github has a collection of sample codes demonstrating how to use Datature’s Python SDK and work with DICOM files. Be sure to check it out!
4. Inspecting the Uploaded Data and Annotating Scans
Once the dataset is uploaded, the 3D scans can be found under Dataset on Nexus.
Double-click one of the assets to enter the viewing and labeling modes.
5. Upload Annotations (Optional)
If you have pre-existing annotations, you can also upload them onto the platform. We currently support a set of specific annotation formats like COCO. For medical imaging, annotations can often come in the form of bit masks. Below, we show a code snippet for converting your .nii files of bit masks into valid COCO annotations which can subsequently be uploaded onto the platform.
6. Annotate Scans
Annotation Tools
Nexus provides a wide range of annotation options, including Rectangle, Polygon, Paintbrush, and Freedraw, each with its own unique advantages. When dealing with irregular shapes like brain tumors in this case, it is recommended to utilize the paintbrush or freedraw tools for optimal results. Additionally, Datature provides an AI-assisted annotation tool called IntelliBrush, which can be used to achieve precise mask outlines effortlessly. By simply selecting regions that are in or out of interest with a few clicks, IntelliBrush generates pixel-perfect masks. It also features adaptive learning, meaning IntelliBrush uses real-time feedback to be more precise - the more you use IntelliBrush, the smarter it gets.
Interpolation Mode
When it comes to annotating videos or 3D images, many of us can relate to the frustration of having to annotate each frame or slice individually. Datature addresses this challenge with a feature called Video Interpolation. This functionality utilizes linear interpolation to offer annotation suggestions in other frames based on the user's manual annotations. As a result, the annotation process becomes significantly more efficient and streamlined. If you are interested in knowing the technical aspects of the video interpolation feature, we invite you to explore our previous blog post Accelerating Video Annotation with Video Interpolation/Video Tracking.
Using IntelliBrush and Interpolation to Accelerate Medical Imaging Annotation
We have prepared a tutorial video showing how we used the combination of IntelliBrush and Interpolation Mode to annotate 3D brain tumors for this demo project with just a few simple clicks.
Thanks for reading the first article of this two-part series! We hope you found it informative and insightful. Stay tuned for the upcoming second article, where we will dive into the exciting topics of data augmentation, model training, and deployment!
What’s Next?
If you want to try out any of the features described above, please feel free to sign up for an account and use our Annotator to try out IntelliBrush and Video Interpolation.
Our Developer’s Roadmap
Datature remains committed to further developing the platform to align it with the needs of many users coming from the medical industry. We are cognizant of the multitude of medical data in a range of use cases from other types of medical imaging data to movement tracking. Datature is actively working to support more of these use cases in the near future so stay tuned for these upcoming releases.
Want to Get Started?
If you have questions, feel free to join our Community Slack to post them there. Or speak with our experts to find out how Datature can help your startup, research, or company build and ship computer vision models 10x faster! We look forward to learning more about your vision and how we can best support it.
Build models with the best tools.
develop ml models in minutes with datature