KFBIO Accelerates Tuberculosis Detection with AI

KFBIO optimized their code to take advantage of Intel® Xeon® Scalable processor enhancements.

At a glance:

  • Konfoong Biotech International Co., Ltd. (KFBIO) is a high-tech biological information technology enterprise specializing in digital pathology system development and production. Their integrated digital pathology diagnosis system integrates healthcare, education, scientific research, and information services.

  • While KFBIO had an effective DL solution for scanning M. tuberculosis specimens using GPUs, their engineers needed higher performance to complete scanning and diagnosis faster. Collaborating with Intel AI engineers, KFBIO optimized their code based on PyTorch and the detectron2 model to take advantage of Intel® Xeon® Scalable processor architecture enhancements, including Intel Deep Learning Boost technology.

author-image

By

According to the World Health Organization (WHO), tuberculosis (TB) is one of the top ten causes of death and the leading cause from a single infectious agent (above HIV/AIDS). One of the WHO’s Sustainable Development Goals is to end the TB epidemic by 2030. Some 58 million lives were saved through TB diagnosis and treatment between 2000 and 2018,1 thus rapid and accurate detection remains critical to continuing to reduce the number of cases each year.

Sputum smear microscopy (SSM) has been the primary method of diagnosis of tuberculosis because of its simplicity and associated low costs. However, manual reading of stained slides is time-consuming and exposes doctors to potential risk of infection. KFBIO uses its pathology scanning systems to digitize SSM slides as high-resolution images and then apply deep learning (DL) algorithms to support the diagnosis of M. tb infection.

DL-based Screening Assists Diagnosis of M. Tuberculosis

Ningbo Konfoong Bioinformation Co., Ltd (KFBIO) develops pathology-related solutions. These include sample processing equipment, digital pathology scanning systems, pathology information systems, and DL algorithms and models for detecting and classifying precancerous changes and abnormalities. KFBIO’s capability in scanning traditional pathological sections into digital images allows scientists to apply DL techniques to assist medical diagnosis. KFBIO has developed a suite of AI-powered pathological solutions based on DL technology, including cervical cancer and M. tuberculosis detection.

Digital imaging makes it possible for medical data to be stored, shared, and analyzed collaboratively over a network. Digital pathology with AI helps address the shortages in medical resources and provides better accessibility to diagnosis for people in remote and rural areas.

The performance demonstrated in this paper underscores the potential of AI-based M. tuberculosis screening and diagnosis through collaboration between KFBIO and Intel.

Intel AI Accelerates Automated Screening 8.40X

2
While KFBIO had an effective DL solution for scanning M. tuberculosis specimens using GPUs, their engineers needed higher performance in order to complete scanning and diagnosis faster. Collaborating with Intel AI engineers, KFBIO optimized their code based on PyTorch and the detectron2 model to take advantage of Intel® Xeon® Scalable processor architecture enhancements, including Intel Deep Learning Boost (Intel DL Boost) technology and the processor’s large memory capacity.

2nd Gen Intel Xeon Scalable processors (formerly Cascade Lake) include new Intel DL Boost technology to accelerate inferencing performance. Fast math has been added to Intel Math Kernel Library for Deep Neural Networks (Intel MKL-DNN) to take advantage of the processor’s hardware advances. The Intel MKL-DNN optimizations are abstracted and integrated directly into the PyTorch framework,3 so end users can take advantage of this technology without special code modifications. The latest official release of PyTorch integrates Intel MKL-DNN by default. Thus, users can achieve performance benefits on 2nd Gen Intel Xeon Scalable processor-based platforms without additional installation steps.

Additionally, 2nd Gen Intel Xeon Scalable processors support many terabytes of memory enabling fast access to large datasets. Digital pathology images tend to be large in size, which can strain GPU memory capacity. With larger memory capacity, the scanning solution could run multiple, simultaneous inferencing instances on the same configuration.

Optimizations for KFBIO’s M. tuberculosis scanning algorithm were straightforward by simply using PyTorch 1.6 optimized for Intel architecture instead of the previous version of PyTorch 1.4. Additional optimizations were completed by profiling the detectron2 model and optimizing minimal operations.

Benchmark testing on Intel® Xeon® Gold 6252 processors revealed improved inference performance compared to a baseline model without optimizations running on the same processor.

Two optimized benchmarks returned performance boosts of 2.17X for a single instance and 11.4X for 24 instances (see chart above).2 The solution benefited from large memory capacity when running 24 instances.

A Customer Deployment

Recently, KFBIO successfully deployed their DL-based TB screening solution at Shanghai Public Health Clinical Center in China in an integrated workstation running on 2nd Gen Intel Xeon Scalable processors. The center will use it to accelerate processing of Tuberculosis diagnosis caseloads. The deployment integrates the KFBIO digital pathology scanner and AI software to provide end-to-end capability: digitizing specimen slides, performing AI inferencing for detection, visualizing results, and producing diagnostic reports. According to customer evaluation, the system delivers 86.8 percent average precision (AP) in detection and 88.9 percent accuracy in classification.4 The entire workflow pipeline can be completed in less than 80 seconds for a single-case diagnosis from input of specimen to output of report.4 The customer is satisfied with the performance and expects to further shorten the process to 60 seconds.

Conclusion

Accelerating machine screening of specimens using AI technologies can increase the number of specimens screened and potentially alert physicians to patient concerns more quickly than manual methods alone. Using PyTorch 1.6 with integrated Intel MKL-DNN library allowed KFBIO’s detectron2 model to take advantage of Intel DL boost in 2nd Gen Intel Xeon Scalable processors. The large memory support of the processor architecture also enabled multiple inferencing instances to run simultaneously directly from memory. With PyTorch optimized for Intel DL boost and large memory, the detectron2 model ran as much as 11.4X faster than the baseline model.2