Skip to Content
Applied SciencesApplied Sciences
  • Article
  • Open Access

6 May 2024

21 Pages

Exploiting Image Processing and Artificial Intelligence Techniques for the Determination of Antimicrobial Susceptibility

,
and
Department of Computer Engineering, Ege University, 35100 Izmir, Turkey
*
Author to whom correspondence should be addressed.

Abstract

Antimicrobial susceptibility tests, achieved through the use of antibiotic-impregnated disks in a suitable laboratory environment, are conducted to determine which antibiotics are effective against the bacteria present in the body of an infected patient. The Kirby–Bauer method, a type of disk diffusion antimicrobial susceptibility test, is currently widely applied in microbiology laboratories due to its proven effectiveness. In our study, we developed an algorithm that utilizes image processing techniques to detect the inhibition zones of bacteria. A certain color depth acts as the threshold for the inhibition zone, with its radius determined according to the size of the reference object. This approach facilitates the measurement of inhibition zones and employs machine learning and deep learning to categorize antibiograms, followed by determination of whether a bacterium on the disk is sensitive or resistant to the antibiotics applied. The focus of this research is creating an automated interpretation system for antimicrobial susceptibility testing using the disk diffusion technique, thus simplifying the measurement and interpretation of inhibition zone sizes.

1. Introduction

Antimicrobial susceptibility testing (AST), conducted in a laboratory setting or under artificial conditions, aims to determine the susceptibility of bacteria from samples taken from a living organism to specific drugs and their concentrations during an infection. The agar dilution, broth microdilution, and disk diffusion methods are currently widely used in antimicrobial susceptibility tests. The disk diffusion method (DDT) is preferred in microbiology laboratories for its simplicity, repeatability, and cost-effectiveness in determining antibiotic sensitivity [1].
In the DDT method, bacteria at a specific concentration are spread on a culture medium, and disks soaked in antibiotics are placed on top. An inhibition zone (a circular area where bacteria do not proliferate) is formed around the disk. Judgments regarding the sensitivity of the microorganism are made by measuring the inhibition areas formed around the disk [1,2,3]. The measurement of zone diameters is conducted using a caliper or ruler. However, this method poses a risk of contamination for the person performing the measurement and may lead to user-related errors.
At present, antimicrobial susceptibility testing through image processing is performed in many laboratories, using biomedical devices or manual measurement. The images formed after incubation are analyzed 20–24 h after the culture is placed in the prepared setup [4]. In the field of microbiology, image processing is mostly used to modify, analyze, or improve existing images. In the reviewed studies, the detection of antibiotic disks with image processing methods was mostly performed using the OPENCV-Hough Circle Transform method. After determining the position of the antibiotics in the inhibition zone measurements, the images were subjected to pixel processing by passing them through various filters. The determination of antibiotic types was achieved through various text identification and model comparison methods [5].
While manual examinations by physicians have yielded antibiogram analyses, automated antibiogram image processing has not yet achieved routine clinical use. Further research is required to develop image processing methods associated with artificial intelligence for a combined approach utilizing both manual and automated antibiogram analyses. Our study aimed to evaluate antibiograms through implementing an efficient image processing algorithm, using a machine learning method to determine the growth inhibition zones from plate images, and identifying the types of antibiograms utilizing convolutional neural networks (CNNs), a deep learning technique. With this methodology, it is possible to precisely determine the diameters of the inhibition zones and antibiograms using image processing and classification libraries.
In this study, we minimize contamination problems through performing automatic diameter measurement according to a reference object, guaranteeing a faster and more efficient measurement process through automation of the diameter measurements. Then, we use a machine learning algorithm to determine the types of antibiograms. Thus, we aim to bring an innovative perspective for the identification of antibiotic disks, which are coded with letters or numbers to provide new data with the help of artificial intelligence.
The AST is a clinical test that detects the susceptibility of a microorganism to antibiotics. The examination of antibiogram tests is usually undertaken manually, which can lead to human error and lengthy procedures. In order to read and explicate the antibiograms, some effort has been put into the development of automated devices; however, it is often costly to operate these medical devices in different locations. Therefore, automated computerized image processing has been identified as an effective method for the detection and interpretation of antibiograms. This study aims to provide new solutions to overcome the identified problems through developing processes for the automatic reading of antibiograms, which could be much faster and more accurate than laboratory measurements. Automated measurements are expected to enable the commencement of new clinical trials and increase awareness in this research area. The remaining sections of this paper are organized as follows. Section 2 explores a range of related works, Section 3 provides an account of the image processing methods used to measure the diameter of inhibition and the application of deep learning methods to detect the types of disk antibiograms, and Section 5 comprises a summary of this study.

3. Materials and Methods

Various methods are employed for antibiogram tests, with the disk diffusion method (Kirby–Bauer method) being a significant example. This method offers the advantage of easy interpretation, although it has slightly lower sensitivity compared to other methods. In this approach, antibiotic-impregnated disks are placed at specific doses, and sensitivity or resistance is determined by examining the zone around the disk after incubation.
To test antibiotic sensitivity, a suitable solid culture medium is prepared and inoculated with a turbid liquid microbial culture. The process ensures an even distribution across the Petri dish. Antibiotic disks are then placed, and the dishes are incubated at the required temperature and time. After incubation, the inhibition zones around the disks are measured in millimeters and compared to standard values to determine sensitivity or resistance.
In this section, we describe the image processing methods used to measure the diameter of the inhibition zone, as well as the application of deep learning methods to detect the types of disk antibiograms. Python3 and some libraries of Python3 were used as the programming language. These libraries included pandas, cv2 (open cv), os, numpy, matplotlib, tensorflow, and keras. Online platforms such as roboflow, Google Colab, and GitHUB were also utilized.

3.1. Detection of Antibiotics on the Culture Disk

It is possible to extract features from antibiogram Petri dish images through exploiting information derived from computerized image processing. Consequently, culture disk analysis makes extensive use of images in the tiff, jpeg, png, and bmp formats. The dataset used to identify antibiotics on the culture disks was obtained from Marco Pascucc’s “AST-image-processing” project, which was made public on GitHUB [17].
In this study, there were five image analysis steps: inputting data, image preprocessing, filtering, reading the regions, extracting the original digital features, and analyzing and determining the boundaries. The processing steps, including the image processing sections through the OPENCV open-source library, were as follows:
  • All the accessed original antibiogram plaque images were saved in JPEG format. Image sizes of 3096 × 4128 × 3 were given as input to the program. These image sizes were from a fixed camera and the background color was a dark fixed background, enabling the algorithm to achieve better results. An example of the culture disk is shown in RGB format in Figure 1.
    Figure 1. Original image in RGB format.
  • RGB raw images were given in a 3D matrix. There was no need to use a color-related property for the antibiogram images. Thus, all raw original antibiogram images were transformed to grayscale images. Any details were removed in order to extract the numerical features relevant to the antibiogram images, other than the Petri dishes, since Petri dish images were the main focus of our processing.
  • A median filtering technique approach was applied to remove noise from the images. This type of noise removal is a traditional pre-processing step used for better results in post-processing. The median filter aimed to remove the small-scale image contamination present in the images [18].
  • The Circular Hough Transform (CHT) method was employed to detect the circles. CHT is commonly used in conjunction with its library in OpenCV [19]. To detect the circles, we required the specific parameters of a circle, which in the circle equation (x − x0)2 + (y − y0)2 = r2 consist of the parameters x0, y0, and the radii representing the center. To find the sample image of the object in the positive class, circular shape centers were detected by means of the Circular Hough Transform. This method was applied to the images of the circles to be found, indicating the range of radii. In an image with a resolution of 3096 × 4128 pixels, the fixed diameter of the antibiotic disks was taken as 6 mm. This meant that setting the radius as a parameter ranging from 50 to 80 was a more efficient method. The “Sensitivity” feature was chosen as 0.95. These parameters were set for the detection of the antibiogram images after experimentation. After applying the Circular Hough Transform, three outputs were obtained: the matrix of the centers of the circles with the x and y coordinates (called “centers”), the radius matrix of the circles, and the metric showing how close the circle was. Then, the circles in Figure 2 were drawn on the circular images, represented in green, using the “centers,” “radii,” and “EdgeColor” parameters. In addition, the circled antibiotics were represented in blue and numbered (Figure 2). These procedures made it possible to accurately identify the antibiotics on the disk.
    Figure 2. Circles in the image of the antibiotic disk.
  • For each x, y, and r (radius) value, a frame image of the antibiotic disk was taken and provided as input to another function. These cut antibiotic images (Figure 3) were presented as input to the machine learning layer. Here, the antibiotic type was detected.
    Figure 3. Images of the cropped antibiotic disks.
First, for the x, y, and r values in the sample images, the formula (x − r, y − r, x + r, y + r, x + r) was used to find the coordinates X1, Y1 by subtracting r from the x, y values of the circled images, and X2, Y2 by adding r. These four coordinates were obtained by using the OPENCV image cutting function to obtain the images, as shown in Figure 3.
The statistical results of this study with the Hough circle method are shown in Table 1. Then, the antibiotic disk images could be compared using CNNs, and antibiotic type prediction was carried out in the last phase of our study.
Table 1. Antibiotic disk detection rates of the test plates.

3.2. Measurement of Inhibition Zone Diameters on the Culture Disk

Median blur has been shown to be an effective method for removing small noise. Using the median blur method, we successfully minimized small noise in our study. The comparison of the sample image with the median blur (17) filter is shown in Figure 4.
Figure 4. (a) Gray image, (b) image with median blur (17) applied.
In order to detect the inhibition zones, the median blur feature was used to remove some of the small particle noise around the antibiotic disks from the image samples in our culture dish, as shown in Figure 4. The coordinates and radii of the previously detected antibiotic disks on the image are given in Section 3.1 in Step 4. Here, keeping the Y-axis fixed and taking the coordinates as input, all 8-bit (0–255) pixel values between the X1–X2 coordinates were taken as a maximum of 3 × R (i.e., 6 × r of the antibiotic disk). This value was translated by X1 + r in order to start from the outer arc of the antibiogram disk at position X1.
We fixed the pixel cluster with a predefined parameter cluster of two. Through two clusters, it effectively classified the inhibition zones. The K-Means algorithm operates in iterative fashion, assigning each data point to one of the K groups according to specified parameters. Clustering of data points occurs by grouping them based on similarities in features.
Thus, by keeping the Y1 coordinate constant and moving linearly through the X[n1 … n2] coordinates, the antibiogram detected the region changes with different numerical values in the areas outside the disk. This cluster change of pixel values was as follows:
[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
With the K-Means algorithm, the change point of the dataset clustered as two was calculated. By taking the index information of this calculated value through a loop, the change point of the inhibition zone diameter was calculated in pixels. Then, the X1, X2, and index values of this antibiotic disk were taken as r, and the zone of inhibition was determined by drawing a circle with these parameters. The fixed size of 6 mm of an antibiotic disk with r = 55 px was taken as a reference. For the example with an inhibition zone value of 49 px, the calculation was as follows:
Radius = [(Reference object + Detected zone)/Reference object] × 6 mm = [(55 + 49)/55] × 6 mm = 11.345 mm.
In this section, the method of measuring the inhibition zones is explained. Figure 5 shows the circled zones of inhibition. The 8-bit grayscale color distributions of (f) test_6.jpg image are given in Figure 6.
Figure 5. The circled zone inhibition measurements: (a) test_1.jpg; (b) test_2.jpg; (c) test_3.jpg; (d) test_4.jpg; (e) test_5.jpg; (f) test_6.jpg.
Figure 6. For the test_6.jpg image: (a) 1st zone pixel value distribution, (b) 2nd zone pixel value distribution, (c) 3rd zone pixel value distribution, (d) 4th zone pixel value distribution, (e) 5th zone pixel value distribution.
When reading these inhibition zone regions, the desired result could not be obtained for low-contrast materials in regions where there was no uniform and symmetrical distribution, and in zone images that went beyond the plate. These measurements are also given in Table 2. In the background of Test_6.jpg, the circular zone RGB values exhibiting weak contrast and a lack of uniform distribution in the frictional part of the disk led to misleading results when converted to grayscale. This can deceive the K-Means pixel clustering algorithm, resulting in inaccurate outcomes. To overcome this challenge, images in regions with low-contrast inhibition zones and irregularly distributed feeding sites can be trained using artificial intelligence methods, in order to develop more accurate clustering algorithms.
Table 2. Inhibition zone measurements evaluations.

Comparing Manual Measurement with the Proposed Method

At present, antibiotic susceptibility tests (ASTs) are performed in many laboratories using biomedical devices or through manual measurement. In traditional methods, the zone of inhibition is manually measured using a ruler, which can lead to measurement errors. In many microbiology laboratories today, measurements are still conducted manually with a ruler. This study automated the measurement of the inhibition zone diameter on a 1600 × 1200 px disk, as shown in Figure 7. Both manual measurement (with a ruler) and automatic measurement using the method proposed in this study are shown.
In Figure 7, it can be observed that a disk, captured at a resolution of 1600 × 1200 px (test_reel.jpg), was measured with a ruler. The process involves identifying an antibiotic, determining its center coordinates (x, y), and then using the K-Means algorithm to analyze pixel changes in the inhibition zone (Figure 8).
Figure 8. Pixel changes in the inhibition zone.
Diameter Calculation: The OpenCV Hough Circle method was used to identify the antibiotic. When the antibiotic was detected, three pieces of information were obtained: the x and y coordinates, and its radius (marked by the green circle and number 1). The coordinates of the identified antibiotic were X: 806, Y: 704, r: 55. In this example, a 56-pixel radius represented the size of the antibiotic disk in the 1600 × 1200 pixel resolution image.
Calculating the inhibition zone: The K-Means clustering algorithm indicated that the end of the gray color change (in the inhibition zone) occurred at 1102. pixel, shown in Figure 8. (at 1102 × 204 indicated by blue and red lines); the r inhibition zone is 1102 px − 806 px = 296 px. The inhibition zone’s diameter [mm] is (r inhibition zone)/(r antibiotic) × 6 mm, which results in (296)/(56) × 6 mm = 31.714 mm.

3.3. Disk Antibiotic Image Dataset

In this study, antibiotic-impregnated disks and their images were downloaded from an open-source website (https://github.com/mpascucci/AST-image-processing/tree/master, accessed on 15 April 2023). The downloaded AST set A1 and A2 data were collected routinely in the microbiology laboratory of the University Hospital in Creteil, France. Samples were taken from patients at the hospital. The preparation and analysis of AST was not primarily designed for this study; instead, normal hospital procedures were followed. The AST set A3 consisted of eight Petri dishes prepared at Medecins Sans Frontieres Hospital in Amman, Jordan. The plates of this set were inoculated with microorganisms provided by the American Type Culture Collection, which are regularly used for quality control. These strains are among the most commonly utilized pathogens and have known diameters of inhibition against several antibiotics. Pascucci et al. defined all data acquisition processes and methods in [16].
Our dataset consisted of 9770 images of 23 different antibiotic classes in total. An example of the antibiotic disk image dataset is given in Figure 9. The dataset was taken, and the augmentation process was applied on the Roboflow online platform, yielding antibiotic disk images of 23 different classes. The class names of the antibiotics used were as follows: [‘AK30’, ‘AMP10’, ‘ATM30’, ‘AUG30’, ‘C30’, ‘CAZ10’, ‘CD2’, ‘CIP5’, ‘CN10’, ‘CRO30’, ‘CTX5’, ‘E15’, ‘ETP10’, ‘FC10’, ‘FEP30’, ‘FOX30’, ‘NOR10’, ‘P1’, ‘RD5’, ‘SXT25’, ‘TC75’, ‘TOB10’, ‘TZP36’].
Figure 9. Part of the sample image dataset.

3.4. Deep Learning and Convolutional Neural Network Model

Deep learning is an extended subset of the machine learning (ML) family and provides more efficient ways to implement ML. The “deep” part of deep learning is a technical term, which refers to the number of layers or sections in the “network” part of “neural networks.” Deep learning has played a critical role in the development of highly automated systems, such as autonomous vehicles and natural language recognition and understanding. Convolutional neural networks [20] are one of the most widely known and used types of deep learning models. They have achieved significant success and innovation in computer vision and image processing. The basic architecture of a CNN is shown in Figure 10. A CNN consists of multiple layers, including the input layer, convolutional layer, pooling layer, and fully connected layer. The input layer’s role is to take the pixel values of the image as input. The next convolutional layer is responsible for producing output based on kernels or specific filter values. The output obtained from a convolution operation and the pooling layer are used to reduce the representation size and accelerate computation. In the fully connected layer, the image—which has gone through several convolutional layers and pooling layers and is in matrix form—is flattened into a single vector.
Figure 10. CNN architecture.
In our study, we used the “Roboflow” online platform to develop a deep learning model for our dataset of 9770 images [21]. The dataset was also subjected to pre-processing for color depths and augmentation. These processes were applied as an auto-orientation of pixel data (with EXIF-orientation stripping) and grayscale (CRT phosphor), respectively.
The data, belonging to 23 classes in our dataset, were read from a file and classified by means of sub-file divisions. Of the 9770 images classified, 1954 images, corresponding to 20% of the data, were used as test data. As the images in the datasets were approximately 120 × 120 pixels in size, the height of the image was taken as 150 and the width as 150. A value of 32 was given as the batch value. A label dictionary was created to retrieve class names against the label indices used to train the model. After the training dataset preparation stages were completed, a CNN model was created to train the image datasets. The first layer of our CNN model was defined as the input layer. The dimensions of the input data were parametrically input to the system with the relevant input command set of the Keras library. The size input of our dataset was set to 120 × 120 with the input shape parameter. The “sequential” model was used in model selection. This model is defined as a class object in artificial neural networks. The “add” command allowed us to sequentially add model layers to this “sequential” model. Our first layer was the Conv2D filter layer. This layer was configured with a kernel size of (5, 5) and a total of 128 filtering parameters. The input size was parametrically defined as the pixel value equivalent to the width and length of our dataset. The second layer, following the convolutional layer, was the activation (“relu”) layer. The rationale behind selecting this layer was that RELU activation functions, which are only active for positive values, do not activate a potential negative output in the intermediate layers of the neural network. Consequently, it will not be able to designate all neurons as active simultaneously. This is effective in terms of performance, enabling the system to operate faster and more efficiently. Subsequently, MaxPooling2D (2 × 2) was utilized with the pool size parameter to diminish the spatial dimensions of the output volume. The pooling layer transformed the matrix inputs from the activation (‘relu’) layer into 2 × 2 matrices with max pooling. These matrices were maximized and output to the subsequent layer. Then, owing to batch normalization, the layers in the network did not have to wait for the preceding layer to learn, facilitating simultaneous learning. This accelerated our training. These layer structures were reiterated, commencing with the Conv2D filters = 64, kernel size = 3 × 3 option. At the subsequent level, the steps were repeated with Conv2D filters = 32, kernel size = 3 × 3. Finally, a fully connected layer was designed, and the flatten layer was applied. The role of this layer is to prepare the input data for the last and most crucial fully connected layer. This layer is tasked with converting the matrix from the other layers into one dimension. Dropout (0.5) was applied to the output of the flatten layer. This layer was utilized after the fully connected layers. In our model, dropout was used to sever the connections in the fully connected layers. Thus, the nodes possessed less information about each other. Consequently, the nodes were less influenced by each other’s weight alterations. Therefore, we achieved a more consistent model with the dropout method. The last layer in our model was dense (units = 23, activation = “softmax”). Since we had 23 classification categories, we set this parameter to efficiently predict these classes in the last layer. We also used the softmax function to perform the classification tasks. Before compiling our model, we set the optimize parameter to “adam” in the optimize option. The visualization and the summary of our sequential model are illustrated in Figure 11 and Figure 12, respectively.
Figure 11. Visualization of the sequential model.
Figure 12. Summary of the sequential model.

3.5. Transfer Learning CNN Model

Transfer learning, a technique in machine learning, involves repurposing or fine-tuning a model trained on one task for another related task. In convolutional neural networks (CNNs), this method utilizes a pre-trained CNN as a starting point for tasks like image classification, object detection, or image segmentation. The underlying concept is that the pre-trained CNN already comprehends relevant features, such as edges, textures, and shapes, crucial to the new task. Leveraging these pre-trained weights accelerates learning on the new task, requiring fewer training examples compared to training a new model from scratch. Our study employed the same CNN model illustrated in Figure 11 and Figure 12, except for the initial layer. Instead of the first layer, we utilized the DenseNet201 and VGG16 models as base models. DenseNet201, a variant within the DenseNet family, is a deep neural network architecture introduced by Huang et al. in 2017 [22]. This specific configuration comprises 201 layers and has been trained on the ImageNet dataset, designed for efficient image classification tasks. It incorporates 20,242,984 pre-trained parameters. VGG16, introduced by Karen Simonyan and Andrew Zisserman in 2014, is a widely adopted deep neural network architecture for image classification [23]. Comprising twenty convolutional layers and three fully connected layers, it extracts features from input images through convolutional layers and conducts classification using fully connected layers. This network employs a total of 138,357,544 parameters, making it relatively larger than other contemporary models for computer vision tasks.

4. Results and Discussion

To determine the success of the models following training, their performance in the assigned tasks was assessed by evaluating quantitative performance metrics including the accuracy, precision, sensitivity, F1-score, and loss. Additionally, the duration of the training sessions was subjected to analysis.
A c c u r a c y = T P + T N T P + T N + F P + F N × 100
P r e c i s i o n = T P T P + F P × 100
R e c a l l = T P T P + F N × 100
F 1 = T P T P + 1 / 2 ( F P + F N ) × 100
The definition of parameters used in (1), (2), (3), and (4) are given as follows:
TP (True Positive): Correctly identifying something as true. When a known true value is correctly labeled as true.
FP (False Positive): Incorrectly identifying something as true. When a known false value is incorrectly labeled as true.
TN (True Negative): Correctly identifying something as false. When a known false value is correctly labeled as false.
FN (False Negative): Incorrectly identifying something as false. When a known true value is incorrectly labeled as false. The size of the confusion matrix depends on the number of classes in the examples being considered.
The value obtained from the loss function measures how different the model’s predictions are from the actual values. High loss values suggest inaccurate predictions, while low values indicate accurate predictions.
We used the N-fold cross-validation method to score our CNN model’s success. We chose N = 5, which means we split the training set into five randomly selected equal parts and used each part N-1 times for training and one time for validation. The 5-fold method allowed us to test our CNN against overfitting and selection bias. Our model was fitted with 75 epochs (cycles) in each fold, and the best results obtained are shown in Figure 13. When the Training score: Epochs graph in Figure 13a is examined, it can be seen that our model learned regularly as the number of epochs increased. The training score, expressed by the blue dotted line, increased continuously, and became horizontal as it approached 75 epochs. The validation score, represented by the orange dotted lines, was significantly different from the training score at times. This was due to the inconsistent number of datapoints in the antibiogram disk classes in our dataset. To avoid this inconsistency, it would be appropriate to remove some classes from the dataset. After the 50th cycle, the training score and the validation score remained proportional.
Figure 13. (a) Training score: Epochs, (b) Training/Validation Loss: Epochs, (c) Learning Rate: Epochs.
The error matrix in Figure 14 shows quite large values in the classification rates of our classes. This was because these data were based on our best resulting fold. To determine the real success rate of our model, we summarized all five cross-validation results; statistical information from this is given in Table 3.
Figure 14. Error matrix of the best fold.
Table 3. Average values of the CNN model’s 5-fold cross-validation.
We trained the VGG16 and DenseNet201 models on the same dataset with 100 epochs each. The other parameters were the same as for our CNN model. Table 4 and Table 5 show the results of both transfer learning models. The DenseNet201 model had a 0.89 success rate, and VGG16 had a 0.91 success rate. Our CNN model worked slightly better on averaged data.
Table 4. Success rate of DenseNet201.
Table 5. Success rate of VGG16.
The experimental studies and visualizations indicated that higher success rates can be achieved in the field of classification of antibiotic disks coded with different shapes and codes through using the correct model approach, the correct number of epochs, and avoiding overfitting. Classification success was achieved by our CNN model with a precision rate of 0.9, an f1 score of 0.9, and an accuracy rate of 0.92 for the 23 classes in our dataset.

5. Conclusions

In test applications of antibiograms, human error can occur when measuring the antibiotic inhibition zone. Despite this, manual measurement methods are still in use. This study aimed to enhance the efficacy of antibiogram susceptibility test measurements through minimizing human factor errors occurring during these measurements.
In this study, inhibition zone measurements of the antibiogram susceptibility test were performed by means of automatic identification methods and an artificial intelligence-based clustering model. The deep learning CNN model was then used to classify the antibiotic types. The first of the three steps of our study involved determining the threshold value within a certain coefficient range used for identifying antibiotics, and successfully detecting the antibiotic disk image using the “Hough Circle” method, due to its high contrast value relative to the Petri dish. The antibiotic disks in six test Petri dishes were fully detected. In this step, the success of our method was 100%. Fidan et al. utilized antibiotic disk diameters of 6 mm in their studies and indicated that this corresponded to 55 pixels using pixel measurement techniques. In their research, they reported detecting antibiotics by passing them through different filters, including a blurring filter [11].
In step 2, despite utilizing various noise removal methods in the zone measurement, some zones were not accurately detected. Pascucci et al. discussed the challenges of detecting zones in digital images with damaged plates and extremely poor contrast between bacteria and the inhibition zone [16]. They developed and trained two machine learning models for identifying resistance mechanisms in images. While the accuracy results were promising, they were concerned about overfitting due to the small size of their training datasets, especially for the mobile application’s requirements. However, the integrated Expert System managed these situations by prompting the user to confirm or exclude the presence of the shapes when they were likely to occur. Their application’s fully automated measurement procedure demonstrates a 90% agreement in susceptibility categorization compared to a hospital-standard automatic system. Fidan et al. described the preliminary steps of image processing through a closed setup in zone measurements and suggested that problems encountered in image preprocessing can be significantly reduced by utilizing the homogeneous illumination technique [11]. Additionally, they found that image quality improved without glare and reflection when the light intensity was homogeneously distributed in a closed environment using plexiglass and vinyl material. In our study, the success of the diameter calculation of inhibition zones was measured at 87.6%. Better results can be achieved through adopting a combined method with different parameters, such as lighting, different coloring of the Petri dish background, and image processing filters with different parameters when measuring inhibition zones. Future studies should consider that different combined methods could contribute to the literature.
The final phase of our study was conducted using the CNN machine learning technique. The “amman_atb_data” dataset, consisting of 9770 images and 23 classes, was utilized. With this dataset, a 92% antibiotic disk classification success was achieved. The dataset could be organized more effectively by gathering fewer images of some classes. Moreover, performing more image augmentation could further enhance the success rate.
Antibiogram susceptibility tests have been automated, and commercial applications have been realized in this field; Biomik V3 (US-based) [24] and VITEC 2 (US-based) [25] are the most widely used at present. The advantages of these devices include improved standardization, as well as greater accuracy and fewer errors. However, these computerized automated systems are too costly for clinical laboratories.
Furthermore, in many countries, legal procedures and permissions are required for the practical implementation of automatic interpretation systems in microbiology laboratories. While standardizing testing procedures can enhance quality and efficiency, they remain impractical for settings with limited resources due to cost and infrastructure requirements. Additionally, performing such a study requires both human resources and time with a software team. Future studies will contribute to the current study through further developing inhibition zone measurement techniques and finding a more effective method for low-contrast inhibition zones. This study may be the beginning of the development of device-based domestic antibiogram susceptibility tests.

Author Contributions

Conceptualization, E.G., S.B. and B.B.; formal analysis, E.G., S.B. and B.B.; methodology, E.G. and S.B.; data curation, E.G; resources, E.G., S.B. and B.B.; visualization, E.G. and B.B.; software, E.G., S.B. and B.B.; investigation, E.G. and S.B.; validation, B.B.; writing—original draft preparation, E.G., S.B. and B.B.; writing—review and editing, E.G., S.B. and B.B.; supervision, S.B. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Bauer, A.W.; Perry, D.M.; Kirby, W.M. Single-disk antibiotic-sensitivity testing of staphylococci: An analysis of technique and results. AMA Arch. Intern. Med. 1959, 104, 208–216. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  2. Kirby, W.M.; Perry, D.M.; Bauer, A.W. Treatment of staphylococcal septicemia with vancomycin: Report of thirty-three cases. N. Engl. J. Med. 1960, 262, 49–55. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  3. Jorgensen, J.H.; Turnidge, J.D. Susceptibility test methods: Dilution and disk diffusion methods. In Manual of Clinical Microbiology; John Wiley & Sons, Ltd.: New York, NY, USA, 2015; pp. 1253–1273. [Google Scholar]
  4. Türk Mikrobiyoloji Cemiyeti Derneği. EUCAST: Uygulama, Yorum ve Uzman Kurallar. Available online: http://tmc.dergisi.org/pdf/73.pdf (accessed on 1 December 2022).
  5. Bradski, G. The openCV library. Dr. Dobb’s J. Softw. Tools Prof. Program. 2000, 25, 120–123. [Google Scholar]
  6. Critchley, I.A.; Karlowsky, J.A. Optimal use of antibiotic resistance surveillance systems. Clin. Microbiol. Infect. 2004, 10, 502–511. [Google Scholar] [CrossRef] [Scilit]
  7. Llor, C.; Moragas, A.; Bayona, C.; Morros, R.; Pera, H.; Plana-Ripoll, O.; Miravitlles, M. Efficacy of anti-inflammatory or antibiotic treatment in patients with non-complicated acute bronchitis and discoloured sputum: Randomised placebo-controlled trial. BMJ 2013, 347, f5762. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  8. Okowat, T.; Taertulakarn, S.; Samosornsuk, S.; Pintavirooj, C. Detection of disk drug orientation for disk diffusion susceptibility testing. In Proceedings of the 4th 2011 Biomedical Engineering International Conference, Chiang Mai, Thailand, 29–31 January 2012; pp. 229–232. [Google Scholar]
  9. Alonso, C.A.; Domínguez, C.; Heras, J.; Mata, E.; Pascual, V.; Torres, C.; Zarazaga, M. Antibiogramj: A tool for analysing images from disk diffusion tests. Comput. Methods Programs Biomed. 2017, 143, 159–169. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  10. Yuen, H.K.; Princen, J.; Illingworth, J.; Kittler, J. Comparative study of Hough transform methods for circle finding. Image Vis. Comput. 1990, 8, 71–77. [Google Scholar] [CrossRef] [Scilit]
  11. Fidan, U.; Süzme, N.Ö. Escherichia Coli Bakterisinin antibiyotik duyarlılığının görüntü işleme teknikleriyle belirlenmesi. Afyon Kocatepe Üniversitesi Fen Ve Mühendislik Bilim. Derg. 2016, 16, 186–191. [Google Scholar]
  12. Ferrari, A.; Lombardi, S.; Signoroni, A. Bacterial colony counting by Convolutional Neural Networks. In Engineering in Medicine and Biology Society (EMBC), Proceedings of the 2015 37th Annual International Conference of the IEEE, Milan, Italy, 25–29 August 2015; Institute of Electrical and Electronics Engineers (IEEE): New York, NY, USA, 2015; pp. 7458–7461. [Google Scholar]
  13. Lv, J.; Deng, S.; Zhang, L. A review of artificial intelligence applications for antimicrobial resistance. Biosaf. Health 2020, 3, 22–31. [Google Scholar] [CrossRef] [Scilit]
  14. Weis, C.V.; C.Jutzeler, R.; Borgwardt, K. Machine learning for microbial identification and antimicrobial susceptibility testing on MALDI-TOF mass spectra: A systematic review. Clin. Microbiol. Infect. 2020, 26, 1310–1317. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  15. Vrioni, G.; Tsiamis, C.; Oikonomidis, G.; Theodoridou, K.; Kapsimali, V.; Tsakris, A. MALDI-TOF mass spectrometry technology for detecting biomarkers of antimicrobial resistance: Current achievements and future perspectives. Ann. Transl. Med. 2018, 6, 240. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  16. Pascucci, M.; Royer, G.; Adamek, J.; Asmar, M.A.; Aristizabal, D.; Blanche, L.; Madoui, M.A. AI-based mobile application to fight antibiotic resistance. Nat. Commun. 2021, 12, 1173. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  17. GitHUB. AST-Image-Processing. Available online: https://github.com/mpascucci/AST-image-processing/blob/master/pellet_labels/data/amman_atb_data.zip (accessed on 10 July 2023).
  18. Justusson, B.I. Median filtering: Statistical properties. In Two-Dimensional Digital Signal Prcessing II: Transforms and Median Filters; Springer: Berlin/Heidelberg, Germany, 2006; pp. 161–196. [Google Scholar]
  19. OPENCV. Open Source Computer Vision Library. Available online: https://opencv.org/about/ (accessed on 12 July 2023).
  20. Li, Z.; Liu, F.; Yang, W.; Peng, S.; Zhou, J. A survey of convolutional neural networks: Analysis, applications, and prospects. IEEE Trans. Neural Netw. Learn. Syst. 2022, 33, 6999–7019. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  21. Roboflow. Available online: https://roboflow.com/ (accessed on 8 July 2023).
  22. Huang, G.; Zhuang, L.; Van Der Maaten, L.; Weinberger, K.Q. Densely connected convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; pp. 4700–4708. [Google Scholar]
  23. Simonyan, K.; Zisserman, A. Very deep convolutional networks for large-scale image recognition. arXiv 2014, arXiv:1409.1556. [Google Scholar]
  24. BIOMIC V3. Available online: https://www.biomic.com/biomic-v3.html (accessed on 7 November 2023).
  25. VITEC 2. Available online: https://www.biomerieux.com/us/en/our-offer/products/vitek-2-compact-automated-microbial-identification.html (accessed on 7 November 2023).
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.