Article Type: Research Article, Volume 2 Issue 2

U-Net as a deep learning-based method for platelets segmentation in microscopic images

Ajay Kumar1#; Charlie A Coupland2#; Tania F Vaz3,4#; Will Jones1#; Ruben Valcarce-Dineiro1#; Simon DJ Calaminus2#; Eva Sousa1,2#*

*Corresponding author: Eva Sousa
Centre of Excellence for Data Science, Artificial Intelligence and Modelling, University of Hull, Hull, United Kingdom.

Email: e.sousa@hull.ac.uk

Received: Jul 03, 2025    Accepted: Aug 21, 2025    Published: Aug 28, 2025

Citation: Kumar A, Coupland CA, Vaz TF, Jones W, Valcarce Dineiro R, et al. U-Net as a deep learning-based method for platelets segmentation in microscopic images. Ann Case Rep Med Images. 2025; 2(2): 1037.

Copyright: Sousa E et al. © All rights are reserved

Abstract

Manual counting of platelets, in microscopy images, is greatly time-consuming. Our goal was to automatically segment and count platelets images using a deep learning approach, applying U-Net and Fully Convolutional Network (FCN) modelling. Data preprocessing was done by creating binary masks and utilizing supervised learning with groundtruth labels. Data augmentation was implemented, for improved model robustness and detection. The number of detected regions was then retrieved as a count. The study investigated the U-Net models performance with different datasets, indicating notable improvements in segmentation metrics as the dataset size increased, while FCN performance was only evaluated with the smaller dataset and abandoned due to poor results. U-Net surpassed FCN in both detection and counting measures in the smaller dataset Dice 0.90, accuracy of 0.96 (U-Net) vs Dice 0.60 and 0.81 (FCN). When tested in a bigger dataset U-Net produced even better values (Dice 0.99, accuracy of 0.98). The U-Net model proves to be particularly effective as the dataset size increases, showcasing its versatility and accuracy in handling varying cell sizes and appearances. These data show potential areas for further improvement and the promising application of deep learning in automating cell segmentation for diverse life science research applications.

Introduction

In the field of haematology, the analysis of blood components is fundamental to both clinical diagnostics and biomedical research. One of these components is the Platelets. These are small, anucleate blood cells playing a critical role in haemostasis and thrombosis, as well as contributing to inflammation and immune responses. Accurate quantification and morphological assessment of platelets from microscopy images are vital for diagnosing various haematological disorders, monitoring disease progression, and evaluating the effects of therapeutic agents in biomedical research [1]. Traditionally, manual analysis of platelet images by trained experts is the standard, but this process is notably time-consuming, labour-intensive, and prone to inter-observer variability and subjectivity, potentially impacting experimental outcomes [2,3]. Consequently, there is significant interest in developing automated systems for efficient and objective platelet analysis [2,3].

In recent years, Deep Convolutional Neural Networks (CNNs) have revolutionized visual recognition tasks, outperforming traditional methods across various domains [3,4]. Cell segmentation has emerged as well as a critical component in numerous research fields, including bioinformatics, cell biology, and computational biology [5-7]. By utilizing CNNs, deep learning algorithms have demonstrated the ability to accurately identify and count cells in biomedical images [8]. However, the conventional use of CNNs in classification tasks does not fully address the complexities of cell segmentation in microscopy images, where pixel-level localization is crucial [9].

Cell segmentation, as the process of delineating cell boundaries in microscopy images, is a critical step for morphological analysis and downstream quantification of biological structures. Since 2015, a range of deep CNN architectures have achieved breakthrough results on standard cell segmentation benchmarks [10]. Early networks like U-Net by Ronneberger et al. [11] introduced a symmetric encoder-decoder structure to propagate multi-scale contextual information, which became highly influential. Other top designs utilized pre-trained classification backbones like Visual Geometry Group by Simonyan and Zisserman [12] or Residual Networks by He et al. [13], to effectively initialize deep models. More recent techniques further incorporated elements like atrous convolutions by Chen et al. [14] and generative adversarial training [15] to capture both local details and global consistency. Powered by ever larger annotated datasets, these latest CNNs have surpassed human experts on nuclei segmentation and approaching expert inter-observer agreement on challenging cell contouring tasks [16,17].

Despite the advances in tools of automatic analysis of blood constituents, the real-world adoption of deep learning segmentation tools is still not widespread. Challenges high appearance variability under different experimental conditions, with artifacts like missing cellular boundaries, easily confuse the models and increase to the Cell images segmentation challenge [18]. Complexities such as cell-cell interactions, for example overlapping cells or cell-background interactions, also pose difficulties [19]. Such data heterogeneity issues combined with label noise and inconsistencies during manual segmentation, poses several segmentation challenges [20,21]. Furthermore, while state-ofthe-art results are reported on some curated test images, deep networks frequently fail to generalize across different imaging setups without extensive retraining [22].

Furthermore, platelet segmentation presents unique challenges compared to other cell types due to their small size, low contrast, and frequent overlap with other blood components such as red and white blood cells, or even with themselves [23]. Additionally, variations in staining techniques, imaging conditions and sample preparation further complicate segmentation accuracy [24-26]. These factors necessitate robust and adaptable deep learning models capable of addressing these complexities [25].

To overcome these limitations and help to the wide dissemination of automatic analysis of cells images recent works have proposed techniques to improve model robustness. Generative and reconstructive approaches to incorporate unlabelled data during training can enhance generalizability [27]. Assessment of remaining errors to guide annotation and data augmentation can mitigate dataset bias [28]. Through focused incorporation of these sophisticated regularization, adaptation, and interaction techniques, deep CNNs may eventually fulfil their promise for practical automated cell segmentation [29,30].

Nowadays, both U-Net, as a particular type of FCN and FCN in general are known as CNN architectures to be employed in microscopy and biomedical image analysis, with U-Net being a particular type of FCN [31,32]. While FCN utilizes a classification network like ImageNet by Krizhevsky et al. [33], U-Net was built as a Fully Convolutional Network (FCN) with hourglass topology [11,31]. Semantic segmentation as the foundational framework for imaging segmentation is based on a bounding box-based segmentation pipeline that extracts the foreground from a given region of interest [34]. It focused on image local patterns and extracted complex image information at various scales. It has proven to be successful in biomedical applications and has gained popularity in many research studies in cell detection [8,35] and cell segmentation [36,37].

The recent growing of deep learning applications for microscopic analysis promises to revolutionize the process of classifying, counting and segmenting cells [38]. Reducing the time consumed in preforming these tasks, by widely automating them with good results [39]. Furthermore, solving analysis inconsistency problems as manual segmentation also introduces a high degree of user subjectivity and variability which may have an impact on the experimental results obtained [39].

Therefore, this research aims to build an automated system for platelets segmentation and respective size determination, on microscopy images, by creating a mask that allows the platelets detection and counting, for platelets under different solvents conditions.

Materials and methods

Study design and image acquisition

This study proposed the implementation of the U-Net and FCN models for accurately segment platelets, in microscopy images. The research developed was an experimental computational study, which employed a comparative methodological design to develop and evaluate automated systems for perform the platelets segmentation and size determination in microscopy images. Were implemented two deep learning architectures: a Fully Convolutional Network (FCN) and a U-Net model, and their performance was compared.

This study relied on a microscopy image dataset property of Hull York Medical School detailed by Coupland et al [40], and the sample used for creation of the original dataset was by convenience, as the blood donors were volunteers of the department. Microscopy images were acquired using a Zeiss Axiovert Fluorescent microscope equipped with an oil immersion objective (x63 magnification, Numerical Aperture 1.4). Prior to imaging, platelet samples (prepared at a concentration of 2x10⁷ cells/ml) were spread on fibrinogen-coated surfaces for a duration of up to 45 minutes, followed by standard fixation and staining procedures. The original images were saved as CZI format, which was converted to 8-bit, 3-channel JPEG files with dimensions of 2752x2208 pixels, for ease of use.

Platelets are dense and adherent cells, causing extra difficulties in the segmentation task [41,42]. Figure 1 is depicted the overall procedure devised using U-Net for segmenting, counting, and calculating the area of the platelets, as the best performing system of the two tested. All the procedures begun with the pre-processing of original microscope cell images, and preparation of the databases by augmentation of the original datasets. The preprocessing of the images was done primarily by adjusting image size of the images, followed by segmentation procedures. After detecting the platelets, the final counting is obtained as the number of connected pixels in the post-processed output. The study design decisions, such as the chosen threshold, were all aimed at reducing false negatives and promoting accurate segmentation, and images quality highly influences the training of the network, and the segmentation results possible to be achieved by it.

Figure 1: Diagram of the methodology approach for segmenting platelets in biomedical images using the U-Net. Adapted from [43].


The suggested framework was assessed using a dataset gathered by the Centre for Biomedicine, Hull York Medical School, University of Hull, UK [44].

Dataset

The original database includes 293 microscopy images (8bit 3-channel JPEG, 2752x2208 pixels) depicting human blood platelets after different treatments: with Zinc, Milrinone, and Milrinone + Zinc (in a total of 299, excluding five duplicates and one blank image).

Figure 2: Two different samples of microscopy cell images from the original dataset. Images with 2752x2208 pixels.


These had been carefully classified by skilled experts. The images showed platelets clustered together with low-contrast cell borders. Cell size and appearance varied between images, as can be seen in the comparison of two different examples presented in Figure 2. No image annotation tool was used as the dataset does not contain annotations or labelling.

Data augmentation

To increase the dataset size, from the original dataset of 293 images, were created two datasets with 1172 and 4688 cell images by applying data augmentation (splitting and rotating the original images) techniques. The dataset of 1172 images were created by systematically splitting the 293 original images of 8-bit 3-channel jpeg of 2752×2208, into 4 equal quadrants resulting in images of 3-channel 1376×1104 pixels each. Applying rotating methods, this second dataset was further increased from 1172 to 4688 by rotating the 1172 images by 90, 180, and 270 degrees, resulting in a final dataset of 4688 images.

Data preprocessing

Firstly, the acquired dataset of 299 images was inspected and duplicates and one blank image were removed to create the starting database of 293 images. Following, contrast was enhanced using Contrast Limited Adaptive Histogram Equalization (CLAHE) with clip limit of 3, which is a contrast enhancement technique that prevents over-amplification of noise. The data augmentation technique introduced new patterns into the training dataset, which made the training procedure more resistant to over-fitting, and was applied with randomized rigid geometric changes, scaling, and colour values (grey), where each training sample was rescaled, and then randomly spun before flipping it. A standard split of 80-20 train/test was used for all the final models, with the different tested datasets.

Platelet segmentation

For automated platelet segmentation, two deep learning architectures were initially applied with the baseline dataset of 293: a Fully Convolutional Network (FCN) and a U-Net model. Given the superior results achieved initially, the U-NET model was selected for further application and assessment, in the other two augmented datasets, and further experiments with FCN were discontinued.

The optimal U-Net configuration identified consisted of five encoding and five decoding blocks, commencing with 64 filters in the initial encoding block, with the number of filters doubling in subsequent encoding blocks and halving in corresponding decoding blocks.

For both FCN and U-Net models masks were created for the segmentation but the procedure to create these masks was different.

For the FCN model, masks were created as segmented images from Sobel operator at kernel value of 3, 5, 7 and 9 as appropriate. A larger kernel size increases sensitivity to broader edges but might reduce localization accuracy for finer details. The function in the sobel operator calculates the gradient magnitude by taking the square root of the sum of squared horizontal and vertical Sobel responses (sobel_x and sobel_y respectively) providing a combined measure of edge strength in both directions.

For visually inspecting the cell segmentation performed by the FCN Model and the model’s performance, the ground truth masks were compared with the masks predicted by the model. For cell counting from the segmented images, multiple threshold values of 0.10, 0.15, 0.25, and 0.5 were tested for minimum area or region of interest for creating bounding boxes.

For the U-Net model ground-truth masks were created by binarization of the images. This binarization happened from the threshold value which allowed all the cells to be binarized. To reach this ideal binarization value, different binarization threshold values were tested, namely 0.05, 0.15, 0.25, 0.30 and 0.50. 0.25 was considered the optimum threshold value for creating the ground truth masks as all the platelets would be binarized in a closed area.

In the training phase, a supervised learning framework used the ground truth labelled images, as samples of desirable outputs that the model should learn to generate. In the case of image segmentation, such targets take the form of binary images (masks), with white (0) and black (1) pixels, representing the objects to segment and the background, respectively. To the cleaned database was then applied a second threshold using automatic histogram shape-based algorithms. Region properties were calculated, and bounding boxes were drawn around regions with an area exceeding the specified second threshold applied of 0.5 to match the true mask and to eliminate the smaller particles or noise.

Platelet size determination and counting

Following successful segmentation using the trained U-Net model, automated platelet counting and size determination were performed on the resulting predicted masks. The total platelet count for a given image was obtained by enumerating the distinct segmented regions identified by the model. This counting procedure was applied specifically during the evaluation phase using the 4688-image dataset.

The size of each individual segmented platelet was estimated by quantifying the area it occupied within the predicted mask. Specifically, the size was calculated as the number of pixels corresponding to the segmented platelet within its determined bounding box. A minimum threshold of 50 pixels was applied during this size estimation calculation. The primary inclusion criterion for both counting and sizing was the successful segmentation of a platelet based on the optimized model and the binarization threshold (0.25) established during preprocessing, which aimed to correctly identify all platelets while minimizing background noise. Regions not meeting the segmentation criteria were implicitly excluded.

Model architecture and training

FCN architecture consists of an encoder-decoder structure. The encoder extracts feature from the input images through convolutional and pooling layers, while the decoder up-samples these features to generate pixel-wise predictions. Skip connections were incorporated to preserve spatial information during up sampling.

The FCN architecture chosen comprised 2 layers of 4 convolutional blocks with 64 and 128 filters in both the encoder and decoder section, with 2 max-pooling layers in the encoder, 2 Up-sampling layers and 2 concatenation layers (one for each decoding block), and one final convolutional layer with a sigmoid activation function. The model was compiled using the Adaptive Moment Estimation (Adam) optimizer and binary cross-entropy loss function and the model was trained on the smaller dataset. A validation split of 20% was used to monitor the model’s performance during training.

The model was evaluated on training and validation datasets with the complete iteration of 10 epochs but abandoned due to less successful results than the U-Net model applied.

The U-Net model used in our study [45], started with a defined input layer, accommodating image size of 256×256 pixels with 3-color channel. For deeper feature extraction in encoder portion, a series of convolutional layers with 64, 128, and 256 filters of size 3x3 interspersed with rectified linear unit (ReLU) activations and max-pooling operations progressively reducing spatial dimensions, followed by a middle bottleneck layer of 512 filters to capture contextual information and a decoder segment with similar layers as encoder segment, which progressively up samples feature maps and concatenates them with feature maps from the corresponding encoder layers, enhancing localization precision.

Each of these convolutional blocks in the encoder, employed edge filling for each convolutional layer to maintain the feature map and the ReLU function, and is expressed in equation 1.


The final layer employed a sigmoid activation, followed by Adam optimizer with learning rate of 1x10⁻⁴, and a batch size of 8, and binary cross-entropy loss which quantifies the dissimilarity between predicted and ground-truth segmentation maps. It was then used an L2 loss function, particularly when incorporating aleatoric uncertainty for cell count estimations on the largest dataset. Model training convergence was monitored over 10 epochs. The minimization of Dice loss and sparse categorical cross-entropy loss during training correlated with improvements in accuracy metrics. The scheme of the U-Net model can be seen in Figure 3.

Figure 3: U-Net applied architecture. Adapted from [45].


In this scenario, image segmentation required unannotated data with ground-truth labels resulting in an unsupervised or weakly supervised image segmentation approach, and the construction of a loss function capable of assessing the quality of segments or clusters of pixels is the key difficulty.

In our study the U-Net model was trained and tested on 234 and 59 cell images and ground-truth masks, respectively.

Metrics for model performance evaluation

Intersection over Union (IoU) or the Jaccard Index (J), is a widely used metric in se-mantic segmentation, where A and B represent the true and predicted segmentation maps, respectively (Equation 1), and Dice (Equation 2).


To calculate the overall detection of platelets (True Positive (TP)), it is assumed that the system properly detected more than 50% of the pixels. Precision (Equation 4), recall (Equation 5) and accuracy (Equation 6), were used for reporting the accuracy of image segmentation techniques. For pixel-wise comparison between the expected and the achieved were used the Mean Absolute Error (MAE) (Equation 7), Mean Percentage Error (MPE) (Equation 8) and Mean Average Precision (MAP) (Equation 9) were calculated.


Where N is the number of samples, and |yi-xi| the error in absolute values.


Where N is the number of samples, is the forecasting value, and yi is actual load value.


Where n is equal to the number of classes and APk the average precision of the class k.

Ethical considerations

The platelets images dataset utilized in this study consisted of pre-existing microscopy images from the study completed by Coupland et al [5]. Briefly platelets were obtained from blood samples donated by consenting adults under ethics authorised by the Hull York Medical School Ethics Committee for “The study of platelet activation, signalling and metabolism” and the National Health Service (NHS) Research Ethics Committee (REC) study “Investigation of blood cells for research into cardiovascular disease” (21/SC/0215). From an analytical perspective, no specific image annotation tools requiring ethical consideration for their use were employed, as the dataset did not contain annotations or labelling that would necessitate such tools. All procedures were conducted in accordance with relevant guidelines and regulations, and informed consent was obtained from all subjects involved in the blood donation.

Software and hardware

The experiments were conducted on a system running Windows 11 Home 23H2. Data preprocessing was performed using Python 3.11.3 with scikit-learn (1.2.2) library. The deep learning models were implemented with TensorFlow (v2.15) and Keras (v2.15) libraries. Code development was carried out using Jupyter Notebook (v6.5.4).

Experiments were conducted on a system equipped with an Intel Core i5-12400 CPU (6 cores, 12 threads) clocked at 2.50 GHz. Deep learning experiments were accelerated using Intel® UHD Graphics 730 memory. The system was equipped with 24 GB of DDR4 RAM. Data storage and retrieval were facilitated by a 500 GB NVMe SSD.

Results

Model evaluation

Experiments with the smaller dataset (293 images) where performed both with FCN and with U-Net, while only the two bigger datasets (1172 and 4688 images) were used with U-Net. Experiments with FCN were abandoned after experiments with the smallest data set due to its inferior comparative performance. Different methodologies of threshold were used for the two types of networks. FCN used a method of segmentation by the Sobel operator, while U-Net used binarization of the image to create ground-truth masks for segmentation.

FCN model evaluation

Data pre-processing within the FCN model generated masks as segmented images from Sobel operator at a kernel or thresh-old value of 7, as shown in Figure 4. As it can be seen the Sobel operator tends to enhance the edges of the platelets [46].

Figure 4: Identification of Sobel Segmented Images within FCN model. Platelets (2x107/ml) were spread on fibrinogen for up to 45 minutes, before fixation, staining, and imaging using a Zeiss Axiovert Fluorescent microscope (oil x63 NA 1.4 objective). (A) Image is representative of control conditions. (B) Representative image segmented by enhanced Sobel operator.


The FCN model was evaluated with the complete iteration of 10 epochs utilizing a processing time of 1206 seconds and resulted in an accuracy of 0.81, reaching an Area Under the Curve (AUC) of the Receiver Operating Characteristic (ROC) of 0.71. This and the loss function can be seen in Fig 5. For visually inspecting the cell segmentation and the model’s performance, the ground truth masks were compared with the masks predicted by the model. But the model failed to demonstrate or produce predicted cell counts as it resulted in MPE of 55.44%.

Figure 5: Identification of Sobel Segmented Images within FCN model. Platelets (2x107/ml) were spread on fibrinogen for up to 45 minutes, before fixation, staining, and imaging using a Zeiss Axiovert Fluorescent microscope (oil x63 NA 1.4 objective). (A) Image is representative of control conditions. (B) Representative image segmented by enhanced Sobel operator


U-Net model evaluation

In the U-Net model instead of the Sobel operator, binary masks of the platelets images, named ground-truth masks were created preprocessing using a threshold of 25 for image binarization. An example of the ground truth mask, and of the image from which were created are shown in Figure 6.

Figure 6: Identification of ground truth marks within U-Net model. Platelets (2×107/ml) were spread on fibrinogen for upto 45 minutes, before fixation, staining and imaging using a Zeiss Axiovert Fluorescent microscope (oil x63 NA 1.4 objective). (A) Image is representative of control conditions. (B) Representative image with the corresponding ground-truth masks.


The U-net model was pre-trained with generated masks and a complete iteration of 10 epochs was monitored on both the training and validation datasets resulting in an accuracy of 0.96. A lower MAE of 2.6% suggests that model’s predictions are close to the true values, reflecting accuracy in pixel-wise predictions, as shown in Figure 7.

Figure 7: Identification of platelet segmentation with U-Net model. Platelets (2×107/ml) were spread on fibrinogen for up to 45 minutes, before fixation, staining and imaging using a Zeiss Axiovert Fluorescent microscope (oil x63 NA 1.4 objective). (A) Image is representative of control conditions; (B) representative image with ground-truth masks; (C) predicted images from U-Net model; (D) corresponding heat maps. All images have a dimension of 256×256 pixels.


Lastly, the U-Net model was evaluated by rotating 1172 images into specified degrees of 90, 180, and 270, creating a combined dataset of 4688, and their corresponding masks were generated at threshold of 25. The training accuracy reached 0.98 and the vali-dation loss continued to improve across epochs reaching an AUC of the ROC of 0.99, as shown in Figure 8.

Figure 8: Plots of the U-Net model evaluated on 4688 images. (A) training and validation accuracy, (B) loss and (C) AUC-ROC.


Figure 9: Two examples of Sample of segmentation results of images from U-Net model cell counts of true and predicted masks. (A) Original input images, (B) ground truth masks, (C) predicted masks, and (D) corresponding overlay. All images have a dimension of 256×256 pixels.


Figure 10: Two examples of Sample of segmentation results of images from U-Net model with cell size in number of pixels. (A) Original input images, (B) ground truth masks, (C) predicted masks, and (D) corresponding overlay. All images have a dimension of 256×256 pixels.


Cell counting by U-Net

Following the training of the U-Net, the subsequent phase involved cell count drawn from a dataset encompassing 4688 images. The training employed a L2 loss function, incorporating aleatoric uncertainty for cell counts (Figure 8), and optimization was carried out using the Adam optimizer with a learning rate of 1x10-4 and a batch size of 8. The estimation of cell sizes in the predicted masks, as shown in Figure 9 & 10, for each segmented cell (region) was calculated in terms of number of pixels it occupies at region (bounding box size) with a threshold of 50.

Cell segmentation and quantitative evaluation by U-Net

The outcomes derived from the evaluation of U-Net models on the three dataset groups indicated a very positive correlation between the size of the dataset and the positive results, achieving higher values for the bigger dataset, as it can be seen in Table 1. In the biggest dataset the maximum values are accuracy of 0.98, recall 0.98, precision of 0.99, IoU of 0.99 and Dice of 0.99. Additionally, a concurrent reduction in both dice loss and sparse categorical cross-entropy loss was observed, as the employed loss functions exhibited a robust interdependence and displayed an inverse relationship with accuracy (Figure 5A & 5B). Following the specified criteria, the most favourable U-Net configuration [45] involved five encoding and decoding blocks. This assessment also extended to the examination of the number of filters in the initial encoding block, revealing a doubling of filters with each subsequent block and a corresponding halving with each decoding block. The optimum number of filters, within the investigated parameters, was identified as 64 in the first encoding block.

Table 1 elucidates the performance outcomes, throughout several metrics, of cell segmentation derived from the evaluation of the test set for each model. The evaluation was conducted across distinct datasets characterized by varying numbers of images, with the U-Net model serving as the segmentation architecture.

Table 1: Cell segmentation performance results computed for each model.
Model Dataset (Number of images) Dice IoU Precision Recall Accuracy Training time(s)
U-Net 293 0.90 0.82 0.85 0.95 0.96 1766
1172 0.98 0.97 0.99 0.97 0.97 6417
4688 0.99* 0.99* 0.99* 0.99* 0.98* 6354
FCN 293 0.60 0.42 0.92 0.44 0.81 1206

Across the dataset comprising 293 images, the U-Net model achieved a Dice coefficient of 0.90, indicating a substantial agreement between the predicted and ground-truth segmentation masks. The IoU, measuring the overlap between the predicted and true segmentations, was 0.82. The precision, reflecting the positive predictive value, was observed to be 0.85, while recall, gauging the model’s ability to capture all positive instances, exhibited a value of 0.95. The overall accuracy, encompassing both true positive and true negative predictions, was 0.96. It is worth noting that using the optimum threshold of 0.25 assures huge cut-offs and enforces only detections with high confidence, as this was the only value in which all the platelets were correctly included in the binarization of the im-aging. A too low threshold would increase the areas beyond the platelets area, while a too high one would confuse darker platelets as background. Although desirable, this behaviour increases false negatives, as fewer platelets are spotted resulting in accuracy down-fall, with the impact of false negatives being twice as large as it is in Dice of 0.90, explaining the disparity between these two metrics. The single significant exception is accuracy, which U-Net architectures excels at. This is most likely owing to an “over-detection” tendency. Nonetheless, the FCN counterparts outperform this tendency by significantly im-proving accuracy and precision reported at 0.81 and 0.92, respectively.

As the dataset size increases to 1172 and 4688 images, the U-Net model demonstrated notable improvements in performance metrics. The Dice coefficient increased to 0.98 and 0.99 respectively, indicating enhanced segmentation agreement, while IoU rises to 0.97 and 0.99, depicting increased overlap between predicted and true segmentation. The consistently high values across various evaluation metrics sustained the U-Net model’s effectiveness in handling datasets with varying cell sizes and appearances, as reported in Table 1. The model exhibited further refinement in segmentation due to a series of deconvolutional layers that reconstructed the output image from the extracted features as the training data increased. In contrast, FCN models do not have analogous shortcut paths to retain and fuse low-level information through the network architecture. IoU of 0.42 proves that as sequential encoder-decoder flows, FCN faces more challenges restoring spatial de-tails from compressed latent bottles when built on smaller datasets, as it was seen from the results of the comparison of both models in the 293 images set where both were tested. For this smaller dataset, U-Net model’s MAP of 0.99 denoted exceptional precision across the dataset, suggesting a minimal number of false positives and high relevance in the predicted outcomes. MAE of 0.002 and MPE of -0.050 indicated a close alignment between the model’s prediction with a negative sign showing a slight underestimation on average. For the FCN Model, the results suggest that it performs reasonably well in terms of precision, with MAP scores around 0.8365. However, there is room for improvement in reducing the absolute and percentage errors in pixel-wise predictions, as indicated by the MAE and MPE values of 0.1828 and 0.5544 respectively.

Discussion

Deep Learning use for imaging classification, segmentation and counting has some advantages over this work being done by humans. First convolutional neural networks are more consistent than humans, as they will (1) classify images identically each time, (2) do not introduce differences in the procedure (3), are a great time saver [45]. Given all the improvement possibilities for imaging classification, segmentation and counting, it is of crucial importance to find suitable methods to support or replace humans in these tasks where it is possible [47,48].

From our research we are led to believe that the chosen UNet model could be very promising to aide in effective analysis of platelets microscopic images. As this U-Net has been used for other types of segmentation tasks [45] but in initial testing revealed itself more successful in the application to platelets segmentation than another U-Net model initially tested, and which is more commonly used in cell segmentation [11].

This U-Net [45] model uses the notion of deconvolution by [4,45] analysis and synthesis. The analytical path follows CNNs structure as shown in Figure 8 and the expansion step of the synthesis path consisted of an up-sampling layer followed by a deconvolution layer. It is found that the most essential aspect of U-Net is the ability to create shortcut connections between layers of equal resolution in the analysis path and the expansion path. These connections supply the deconvolution layers with critical high-resolution features [49,50].

The studies undertaken in this research stand on the implementation of two specific design choices which were found to significantly enhance the performance of the model. Firstly, the incorporation of ground truth masks, and second the application of a U-Net model. The incorporation of ground truth masks penalizes errors occurring on cell boundaries and in densely populated regions, proving to be instrumental in promoting precise segmentation, particularly in scenarios involving closely situated objects [51,52]. Similarly to what was reported in the bibliography [53,54] in our comparative analysis the UNet model stands out as the most effective network outperforming the FCN (Table 1) across all performance metrics apart from the precision and training time, when both U-Net and FCN were applied to the smallest dataset. Given this difference in performance, only U-Net was applied to the bigger datasets with excellent results, in all metrics, and without much computational time added. It is important to note that as the dataset in-creased four-fold in complexity the processing times of the U-Net model remained similar (at 6417 and 6354 sec respectively). This a very advantageous characteristic when searching for a model to train [55].

This success seems to be due to the combination of (1) ground truth masks and (2) U-Net architecture which demonstrated high accuracy in cell count predictions and adheres to the conservative counting requirement that underscores that precise cell counts are a result of accurate object detection rather than a mere balancing effect between false positives and false negatives [56].

In our work instead of applying a standard U-Net five-layer convolutional module already in use for cell segmentation [11], a four-layer module was used to meet the segmentation task and avoid excessive parameters [45].

Here an encoder with a succession of convolution and max pooling layers characterized the network, with a mirrored sequence of transposed convolutions in the decoding layer. The U-Net model learns the crucial features of the images after encoding, and to segment the image needs to decode them. Each convolutional block in the decoder has the same settings as those in the encoder. After each convolutional block, the image is up-sampled twice using bilinear interpolation to make it larger. Then, a skip connection links it to the corresponding feature map in the encoder. It utilizes a 1x1 convolutional layer after last set of decoder blocks to construct the final segmented image and for the conversion of RGB to grayscale. The layer of convolution network in the FCN model is a three-dimensional data array, with each layer representing an image with height x width x depth pixels and colour channels [31]. The image is the initial layer, with receptive fields representing the image’s positions. Convolution, pooling, and activation functions operate on local input regions and are based on translation invariance. The inclusion of bounding boxes around regions facilitated the quantitative assessment of segmentation accuracy (Figure 6).

Additionally, when considering uncertainty predictions, over 80% of ground-truth counts were found to fall within the model’s predicted 95% confidence interval across our 750-image test (examples showed in Figure 6). This visualization is invaluable for understanding the segmentation performance, assessing the accuracy of cell delineation, and providing insights into potential areas for improvement. The inclusion of cell sizes and not only of the cells counting, enhances the interpretability of the segmentation results by providing quantitative information about the segmented platelets within the predicted masks (Figure 7).

The absence of foreground masks for out-of-focus images in the dataset hinders counting performance, suggesting the potential for enhancement through the inclusion of such masks. However, challenges may persist [19,57,58], particularly in cases of overlapping cells (platelets) [59,60], a difficulty even confounding human experts. To address this, a plausible strategy involves incorporating the original image as supplementary input to the counting network. Additionally, another approach could entail utilizing randomly cropped image patches and robustly estimating counts by averaging density across multiple patches, akin to the methodology proposed by Oñoro-Rubio and López-Sastre [61].

Notably, similarly to other works the strategic enhancements we introduced in comparison to the original U-Net architecture, specifically the integration of a learned transformation and the inclusion of a residual block with 3×3 filters, seem to significantly contribute to the model’s superior performance [62,63]. Lastly, it becomes evident that even instances of misidentification possess a certain degree of subjectivity, residing within the nuanced boundaries of interpretability for borderline cases (examples showed in Figure 6).

Finally, it was shown how aleatoric losses can be used to estimate uncertainty in cell counting for failure cases where ground-truth is outside of some acceptable tolerance [64]. Our work is limited by the requirement of annotated datasets, in which the bias of the labelling can be introduced.

Similarly to the U-Net model, FCN’s architecture consists of multiple convolutional layers to collect features from input data, and pooling layers minimize the spatial dimensions of the data to capture the most significant information. But given our results when comparing it with the U-Net model it was shown not to be the most optimum model.

Conclusions

In summary, the proposed approach, with the U-Net and ground truth masks, has demonstrated its robustness to be applied for automating prevalent operations across various life science research applications. Consequently, this strategy holds the potential to yield significant advantages in terms of expediting studies and mitigating operator bias, both within individual experiments and across diverse experimental contexts.

Declarations

Acknowledgements: The authors would like to thank Frances Ikeji for on converting the images previously to the research developed. This research was supported by This research was funded by the British Heart Foundation PhD studentships Grant Number: FS/19/38/34441 (to C.A.C. and S.D.J.C). The author T.F.V. has financial support by Fundação para a Ciência e a Tecnologia (FCT), under the IBEB Strategic Program UIDB/00645/2020 (https://doi.org/10.54499/UIDB/00645/2020), and Bolsa de Investigação para Doutoramento (2022.12483.BD). Special thanks to the colleagues of the University of Hull for their ongoing support and collaboration.

References

  1. Mezger M, Nording H, Sauter R, Graf T, Heim C, von Bubnoff N, et al. Platelets and Immune Responses During Thromboinflammation. Front Immunol. 2019: 1731.
  2. French SL, Vijey P, Karhohs KW, Wilkie AR, Horin LJ, Ray A, et al. High-content, label-free analysis of proplatelet production from megakaryocytes. J Thromb Haemost. 2020; 18: 2701–2711.
  3. Kempster C, Butler G, Kuznecova E, Taylor KA, Kriek N, Little G, et al. Fully automated platelet differential interference contrast image analysis via deep learning. Sci Rep. 2022; 12.
  4. Zeiler MD, Fergus R. Visualizing and Understanding Convolutional Networks. In: Fleet D, Pajdla T, Schiele B, Tuytelaars T, editors. Computer Vision – ECCV 2014 ECCV 2014 Lecture Notes in Computer Science. Cham: Springer. 2014: 818–833.
  5. Nawabi AK, Jinfang S, Abbasi R, Iqbal MS, Heyat MB Bin, Akhtar F, et al. Segmentation of Drug-Treated Cell Image and Mitochondrial-Oxidative Stress Using Deep Convolutional Neural Network. Oxid Med Cell Longev. 2022; 2022.
  6. Shrestha P, Kuang N, Yu J. Efficient end-to-end learning for cell segmentation with machine generated weak annotations. Commun Biol. 2023; 6.
  7. Angermueller C, Pärnamaa T, Parts L, Stegle O. Deep learning for computational biology. Mol Syst Biol. 2016; 12: 878.
  8. Xu J, Zhou D, Deng D, Li J, Chen C, Liao X, et al. Deep Learning in Cell Image Analysis. Intelligent Computing. 2022; 2022.
  9. Kurnianingsih, Allehaibi KHS, Nugroho LE, Widyawan, Lazuardi L, Prabuwono AS, et al. Segmentation and classification of cervical cells using deep learning. IEEE Access. 2019; 7: 116925–116941.
  10. Garcia-Garcia A, Orts-Escolano S, Oprea S, Villena-Martinez V, Garcia-Rodriguez J. A Review on Deep Learning Techniques Applied to Semantic Segmentation. 2017.
  11. Ronneberger O, Fischer P, Brox T. U-Net: Convolutional Networks for Biomedical Image Segmentation. In: Navab N, Hornegger J, Wells W, Frangi A, editors. Medical Image Computing and Computer-Assisted Intervention – MICCAI 2015 MICCAI 2015 Lecture Notes in Computer Science. Cham: Springer. 2015: 234–241.
  12. Simonyan K, Zisserman A. Very Deep Convolutional Networks for Large-Scale Image Recognition. 2014.
  13. He K, Zhang X, Ren S, Sun J. Deep Residual Learning for Image Recognition. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR). Las Vegas, NV, USA: IEEE. 2016: 770– 778.
  14. Chen L-C, Papandreou G, Kokkinos I, Murphy K, Yuille AL. DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFs. IEEE Trans Pattern Anal Mach Intell. 2018; 40: 834–848.
  15. Goodfellow IJ, Pouget-Abadie J, Mirza M, Xu B, Warde-Farley D, Ozair S, et al. Generative Adversarial Networks. 2014.
  16. Liao Y-H, Kar A, Fidler S. Towards Good Practices for Efficiently Annotating Large-Scale Image Classification Datasets. 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). Nashville, TN, USA: IEEE. 2021: 4348–4357.
  17. Edlund C, Jackson TR, Khalid N, Bevan N, Dale T, Dengel A, et al. LIVECell—A large-scale dataset for label-free live cell segmentation. Nat Methods. 2021; 18: 1038–1045.
  18. Moen E, Bannon D, Kudo T, Graf W, Covert M, Van Valen D. Deep learning for cellular image analysis. Nat Methods. 2019: 1233– 1246.
  19. Chai B, Efstathiou C, Yue H, Draviam VM. Opportunities and challenges for deep learning in cell dynamics research. Trends Cell Biol. 2023.
  20. Vorontsov E, Kadoury S. Label Noise in Segmentation Networks: Mitigation Must Deal with Bias. In: Engelhardt S, Oksuz I, Zhu D, Yuan Y, Mukhopadhyay A, Heller N, et al., editors. Deep Generative Models, and Data Augmentation, Labelling, and Imperfections DGM4MICCAI DALI 2021 2021 Lecture Notes in Computer Science. Cham: Springer; 2021. pp. 251–258.
  21. Bernhardt M, Castro DC, Tanno R, Schwaighofer A, Tezcan KC, Monteiro M, et al. Active label cleaning for improved dataset quality under resource constraints. Nat Commun. 2022; 13.
  22. Alzubaidi L, Zhang J, Humaidi AJ, Al-Dujaili A, Duan Y, Al-Shamma O, et al. Review of deep learning: concepts, CNN architectures, challenges, applications, future directions. J Big Data. 2021; 8: 53.
  23. Zhang Z, Zhang P, Wang P, Sheriff J, Bluestein D, Deng Y. Rapid analysis of streaming platelet images by semi-unsupervised learning. Comput Med Imaging Graph. 2021; 89.
  24. Kaza N, Ojaghi A, Robles FE. Virtual Staining, Segmentation, and Classification of Blood Smears for Label-Free Hematology Analysis. BME Front. 2022; 2022.
  25. Kempster C, Butler G, Kuznecova E, Taylor KA, Kriek N, Little G, et al. Fully automated platelet differential interference contrast image analysis via deep learning. Sci Rep. 2022; 12.
  26. Babker AM, Suliman RS, Elshaikh RH, Boboyorov S, Lyashenko V. Sequence of Simple Digital Technologies for Detection of Platelets in Medical Images. Biomed Pharmacother. 2024; 17: 141–152.
  27. Souly N, Spampinato C, Shah M. Semi Supervised Semantic Segmentation Using Generative Adversarial Network. Proceedings of the IEEE International Conference on Computer Vision. 2017.
  28. Shorten C, Khoshgoftaar TM. A survey on Image Data Augmentation for Deep Learning. J Big Data. 2019; 6: 60.
  29. Farokhmanesh F, Sadeghi MT. Deep Neural Networks Regularization Using a Combination of Sparsity Inducing Feature Selection Methods. Neural Process Lett. 2021; 53: 701–720.
  30. Moradi R, Berangi R, Minaei B. A survey of regularization strategies for deep models. Artif Intell Rev. 2020; 53: 3947–3986.
  31. Long J, Shelhamer E, Darrell T. Fully convolutional networks for semantic segmentation. Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition. 2015.
  32. Rizwan I Haque I, Neubert J. Deep learning approaches to biomedical image segmentation. Inform Med Unlocked. 2020; 18: 100297.
  33. Krizhevsky A, Sutskever I, Hinton GE. ImageNet classification with deep convolutional neural networks. Commun ACM. 2017; 60: 84–90.
  34. Ronneberger O, Fischer P, Brox T. U-Net: Convolutional Networks for Biomedical Image Segmentation. 2015. Available: http://arxiv.org/abs/1505.04597
  35. Sirinukunwattana K, Raza SEA, Tsang YW, Snead DRJ, Cree IA, Rajpoot NM. Locality Sensitive Deep Learning for Detection and Classification of Nuclei in Routine Colon Cancer Histology Images. IEEE Trans Med Imaging. 2016; 35: 1196–1206.
  36. Payer C, Štern D, Feiner M, Bischof H, Urschler M. Segmenting and tracking cell instances with cosine embeddings and recurrent hourglass networks. Med Image Anal. 2019; 57: 106–119.
  37. Zhou Z, Wang F, Xi W, Chen H, Gao P, He C. Joint Multi-frame Detection and Segmentation for Multi-cell Tracking. 2019.
  38. Durkee MS, Abraham R, Clark MR, Giger ML. Artificial Intelligence and Cellular Segmentation in Tissue Microscopy Images. Am J Pathol. 2021; 191: 1693–1701.
  39. Kempster C, Butler G, Kuznecova E, Taylor KA, Kriek N, Little G, et al. Fully automated platelet differential interference contrast image analysis via deep learning. Sci Rep. 2022; 12: 4614.
  40. Coupland CA, Naylor-Adamson L, Booth Z, Price TW, Gil HM, Firth G, et al. Platelet zinc status regulates prostaglandin-induced signaling, altering thrombus formation. J Thromb Haemost. 2023; 21: 2545–2558.
  41. Ghoshal K, Bhattacharyya M. Overview of Platelet Physiology: Its Hemostatic and Nonhemostatic Role in Disease Pathogenesis. Sci World J. 2014; 2014.
  42. Wang A, Zhang Q, Han Y, Megason S, Hormoz S, Mosaliganti KR, et al. A novel deep learning-based 3D cell segmentation framework for future image-based disease detection. Sci Rep. 2022; 12: 342.
  43. Qin J, Liu T, Wang Z, Liu L, Fang H. GCT-UNET: U-Net Image Segmentation Model for a Small Sample of Adherent Bone Marrow Cells Based on a Gated Channel Transform Module. Electronics (Basel). 2022; 11: 3755.
  44. Coupland CA, Naylor-Adamson L, Booth Z, Price TW, Gil HM, Firth G, et al. Platelet zinc status regulates prostaglandin-induced signaling, altering thrombus formation. J Thromb Haemost. 2023; 21: 2545–2558.
  45. Silburt A, Ali-Dib M, Zhu C, Jackson A, Valencia D, Kissin Y, et al. Lunar crater identification via deep learning. Icarus. 2019; 317: 27–38.
  46. Hao F, Xu D, Chen D, Hu Y, Zhu C. Sobel operator enhancement based on eight-directional convolution and entropy. Int J Inf Technol. 2021; 13: 1823–1828.
  47. Yao W, Bai J, Liao W, Chen Y, Liu M, Xie Y. From CNN to Transformer: A Review of Medical Image Segmentation Models. J Imaging Inform Med. 2024; 37: 1529–1547.
  48. Ma J, He Y, Li F, Han L, You C, Wang B. Segment anything in medical images. Nat Commun. 2024; 15: 654.
  49. Wilm F, Ammeling J, Öttl M, Fick RHJ, Aubreville M, Breininger K. Rethinking U-net Skip Connections for Biomedical Image Segmentation. 2024.
  50. Ibtehaz N, Rahman MS. MultiResUNet: Rethinking the U-Net architecture for multimodal biomedical image segmentation. Neural Networks. 2020; 121: 74–87.
  51. Mazurowski MA, Dong H, Gu H, Yang J, Konz N, Zhang Y. Segment anything model for medical image analysis: An experimental study. Med Image Anal. 2023; 89: 102918.
  52. Athanasiou G, Arcos JL, Cerquides J. Enhancing Medical Image Segmentation: Ground Truth Optimization through Evaluating Uncertainty in Expert Annotations. Mathematics. 2023; 11: 3771.
  53. Ghnemat R, Almodawar AR, Al Saraireh J. Scalable model for segmenting Cells’ Nuclei using the U-NET architecture. Multimed Tools Appl. 2024; 83: 63655–63678.
  54. Siddique N, Paheding S, Elkin CP, Devabhaktuni V. U-Net and Its Variants for Medical Image Segmentation: A Review of Theory and Applications. IEEE Access. 2021; 9: 82031–82057.
  55. Ning L, Guan H, Shen X. Adaptive Deep Reuse: Accelerating CNN Training on the Fly. Proceedings International Conference on Data Engineering. 2019.
  56. Kataras TJ, Jang TJ, Koury J, Singh H, Fok D, Kaul M. ACCT is a fast and accessible automatic cell counting tool using machine learning for 2D image segmentation. Sci Rep. 2023; 13: 8213.
  57. Kuo TC, Cheng TW, Lin CK, Chang MC, Cheng KY, Cheng YC. Using DeepLab v3 + -based semantic segmentation to evaluate platelet activation. Med Biol Eng Comput. 2022; 60: 1775–1785.
  58. Morelli R, Clissa L, Amici R, Cerri M, Hitrec T, Luppi M, et al. Automating cell counting in fluorescent microscopy through deep learning with c-ResUnet. Sci Rep. 2021; 11: 22920.
  59. De La Salle BJ, McTaggart PN, Briggs C, Harrison P, Doré CJ, Longair I, et al. The accuracy of platelet counting in thrombocytopenic blood samples distributed by the UK National External Quality Assessment Scheme for General Haematology. Am J Clin Pathol. 2012; 137: 65–74.
  60. Chen YM, Tsai JT, Ho WH. Automatic identifying and counting blood cells in smear images by using single shot detector and Taguchi method. BMC Bioinformatics. 2021; 22: 635.
  61. Oñoro-Rubio D, López-Sastre RJ. Towards Perspective-Free Object Counting with Deep Learning. In: Leibe B, Matas J, Sebe N, Welling M, editors. Computer Vision – ECCV 2016 ECCV 2016 Lecture Notes in Computer Science. Cham: Springer. 2016: 615– 629.
  62. Wu J, Liu W, Li C, Jiang T, Shariful IM, Yao Y, et al. A state-of-theart survey of U-Net in microscopic image analysis: from simple usage to structure mortification. Neural Comput Appl. 2024; 36: 3317–3346.
  63. Bhandary M, Reyes JP, Ertay E, Panda A. Double U-Net for SuperResolution and Segmentation of Live Cell Images. 2022.
  64. Abdar M, Pourpanah F, Hussain S, Rezazadegan D, Liu L, Ghavamzadeh M, et al. A review of uncertainty quantification in deep learning: Techniques, applications and challenges. Information Fusion. 2021; 76: 243–297.