Mohammed Baragilly
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Previous Organizations / Institutes
The organizations / institutes from the scholar's other articles in the past ten years
Mohammed Baragilly has a total of 35 co-authors. Here are the top co-authors by number of shared publications:
- Brian Harvey Willis
Institute of Applied Health Research, University of Birmingham, Birmingham, UK
8 shared publications - Dyuti Coomar
WHO Collaborating Centre for Global Women’s Health, Institute of Metabolism and Systems Research, University of Birmingham, Birmingham, UK
3 shared publications - Daniel J. Nieves
Department of Immunology and Immunotherapy, School of Infection, Inflammation and Immunology, College of Medicine and Health, University of Birmingham, Birmingham, UK
2 shared publications - David Williamson
Department of Infectious Diseases, School of Immunology and Microbial Sciences, King’s College London, London, UK
2 shared publications - Dylan M. Owen
University of Birmingham
2 shared publications Elizabeth Sapey
Department of Health Informatics, University Hospitals Birmingham NHS Foundation Trust, PIONEER Health Data Research Hub in Acute Care, Birmingham, B15 2WB
2 shared publications
Latest Publications
- Open Access
- 1 February 2026
- Published by SAGE Publications in Digital Health
- Vol. 12
Identifying patient-level data risks in trusted research environments: Worked examples with synthetic data
Objective: This study examined and illustrated real-world risks of unintended patient-level data egress from Trusted Research Environments (TREs) and Secure Data Environments (SDEs), using synthetic data to recreate cases encountered in PIONEER, the HDR UK Hub in Acute Care. Methods: Synthetic datasets with demographics and NEWS2 vital signs were created using SciPy and NumPy for two fictitious populations. These datasets were transformed for machine-learning and embedded into various formats to simulate potential egress scenarios. Three worked examples include binary serialisation of data, binary serialisation of complex objects, and plain text mark-up reports. Results: Initial screening of exported files included checking reported sizes. While absolute size alone cannot confirm patient-level data, unusually large files can signal the need for closer inspection. In several cases, this prompted manual review that uncovered sensitive information. File size is therefore a useful signal within a layered egress checking process, not a diagnostic measure. Standard tools like Python or R do not warn of hidden data, reinforcing the need for explicit egress policies and independent verification. Converting binary formats only works for recognized code libraries and requires ongoing maintenance. Manual inspection alongside automation remains essential to identify and remove embedded data. Conclusion: These cases highlight the complexities in identifying and preventing identifiable data egress from TREs. Key insights include clear guidance for researchers, the limitations of binary serialisation for egress due to security vulnerabilities, and the importance of plain-text data exports for ease of verification.
- 1 February 2026
- Published by SAGE Publications in Digital Health
- Vol. 12
Open AccessIdentifying patient-level data risks in trusted research environments: Worked examples with synthetic data
Objective: This study examined and illustrated real-world risks of unintended patient-level data egress from Trusted Research Environments (TREs) and Secure Data Environments (SDEs), using synthetic data to recreate cases encountered in PIONEER, the HDR UK Hub in Acute Care. Methods: Synthetic datasets with demographics and NEWS2 vital signs were created using SciPy and NumPy for two fictitious populations. These datasets were transformed for machine-learning and embedded into various formats to simulate potential egress scenarios. Three worked examples include binary serialisation of data, binary serialisation of complex objects, and plain text mark-up reports. Results: Initial screening of exported files included checking reported sizes. While absolute size alone cannot confirm patient-level data, unusually large files can signal the need for closer inspection. In several cases, this prompted manual review that uncovered sensitive information. File size is therefore a useful signal within a layered egress checking process, not a diagnostic measure. Standard tools like Python or R do not warn of hidden data, reinforcing the need for explicit egress policies and independent verification. Converting binary formats only works for recognized code libraries and requires ongoing maintenance. Manual inspection alongside automation remains essential to identify and remove embedded data. Conclusion: These cases highlight the complexities in identifying and preventing identifiable data egress from TREs. Key insights include clear guidance for researchers, the limitations of binary serialisation for egress due to security vulnerabilities, and the importance of plain-text data exports for ease of verification.
- Open Access
- 30 September 2025
- Published by Springer Nature in Nature Communications
- Vol. 16 (1) , 1-7
Nano-org, a functional resource for single-molecule localisation microscopy data
The nanoscale organisation of proteins plays a key role in diverse cellular processes, including signalling, adhesion, and structural integrity. Single-molecule localisation microscopy (SMLM) is a super-resolution imaging technique that captures the spatial distributions of proteins in cells with nanometre precision, enabling detailed studies of protein clustering and architecture. However, comparing such data across experiments remains challenging due to a lack of curated, functional resources. Here we present a publicly accessible, curated, and functional resource, termed “nano-org”, containing SMLM data representing the nanoscale distributions of proteins in cells. Nano-org is searchable by comparing the statistical similarity of the datasets it contains. This unique functionality allows the resource to be used to understand the relationships of nanoscale architectures between proteins, cell types or conditions, supporting the development of the field of spatial nano-omics.
- 30 September 2025
- Published by Springer Nature in Nature Communications
- Vol. 16 (1) , 1-7
Open AccessNano-org, a functional resource for single-molecule localisation microscopy data
The nanoscale organisation of proteins plays a key role in diverse cellular processes, including signalling, adhesion, and structural integrity. Single-molecule localisation microscopy (SMLM) is a super-resolution imaging technique that captures the spatial distributions of proteins in cells with nanometre precision, enabling detailed studies of protein clustering and architecture. However, comparing such data across experiments remains challenging due to a lack of curated, functional resources. Here we present a publicly accessible, curated, and functional resource, termed “nano-org”, containing SMLM data representing the nanoscale distributions of proteins in cells. Nano-org is searchable by comparing the statistical similarity of the datasets it contains. This unique functionality allows the resource to be used to understand the relationships of nanoscale architectures between proteins, cell types or conditions, supporting the development of the field of spatial nano-omics.
- Open Access
- 15 September 2025
- Published by National Institute for Health and Care Research in NIHR Open Research
- Vol. 5, 36
Study Protocol: A retrospective observational analysis of patients treated for hospital-acquired pneumonia.
Background Hospital-acquired pneumonia (HAP) is an important complication of hospital admission, with both high incidence and consequences for patients. However, our understanding of causative organisms and prognostic factors is limited. Although ventilator-associated pneumonia (VAP,) an important subset of HAP,has been extensively investigated, less is known about non-ventilated cases, leading to calls for focused research in this group. This retrospective observational cohort study aims to define a population of patients treated as HAP by comparing ventilated and non-ventilated cases. It aims to clarify how often a microbiological diagnosis is reached, what organisms are frequently identified, and whether this has a relevant impact on the outcomes. The relative impact of positive radiographic changes among patients treated for HAP will also be assessed. Methods Data will be obtained from the Health Data Research UK acute care hub, ‘PIONEER’ Cases meeting coding criteria or a clinical surveillance definition of HAP over a 5-year period will be extracted. Demographic, clinical, and microbiological variables will be analysed initially descriptively, and subsequently, with multiple logistic regression analysis to investigate factors affecting microbiological diagnosis. Key outcome variables are in-hospital, 30-day and 1 year mortality, as well as all-cause readmissions within 1 year. Secondary outcomes include nosocomial infections, such as C. difficile. Kaplan-Meier curves and a Cox proportional hazards regression model will be used to investigate outcomes and compare subgroups. A key comparison is between those in whom a putative pathogen is identified and those treated entirely empirically. For this purpose, we will also compare outcomes using an inverse probability of treatment weighting analysis. Additionally, we will explore identifying consolidation on chest imaging reports using natural language processing to allow consideration of the relative impact this may have on mortality and readmission rates.
- 15 September 2025
- Published by National Institute for Health and Care Research in NIHR Open Research
- Vol. 5, 36
Open AccessStudy Protocol: A retrospective observational analysis of patients treated for hospital-acquired pneumonia.
Background Hospital-acquired pneumonia (HAP) is an important complication of hospital admission, with both high incidence and consequences for patients. However, our understanding of causative organisms and prognostic factors is limited. Although ventilator-associated pneumonia (VAP,) an important subset of HAP,has been extensively investigated, less is known about non-ventilated cases, leading to calls for focused research in this group. This retrospective observational cohort study aims to define a population of patients treated as HAP by comparing ventilated and non-ventilated cases. It aims to clarify how often a microbiological diagnosis is reached, what organisms are frequently identified, and whether this has a relevant impact on the outcomes. The relative impact of positive radiographic changes among patients treated for HAP will also be assessed. Methods Data will be obtained from the Health Data Research UK acute care hub, ‘PIONEER’ Cases meeting coding criteria or a clinical surveillance definition of HAP over a 5-year period will be extracted. Demographic, clinical, and microbiological variables will be analysed initially descriptively, and subsequently, with multiple logistic regression analysis to investigate factors affecting microbiological diagnosis. Key outcome variables are in-hospital, 30-day and 1 year mortality, as well as all-cause readmissions within 1 year. Secondary outcomes include nosocomial infections, such as C. difficile. Kaplan-Meier curves and a Cox proportional hazards regression model will be used to investigate outcomes and compare subgroups. A key comparison is between those in whom a putative pathogen is identified and those treated entirely empirically. For this purpose, we will also compare outcomes using an inverse probability of treatment weighting analysis. Additionally, we will explore identifying consolidation on chest imaging reports using natural language processing to allow consideration of the relative impact this may have on mortality and readmission rates.
- Open Access
- 23 April 2025
- Published by National Institute for Health and Care Research in NIHR Open Research
- Vol. 5, 36
Study Protocol: A retrospective observational analysis of patients treated for hospital-acquired pneumonia.
Background Hospital-acquired pneumonia (HAP) is an important complication of hospital admission, with both high incidence and consequences for patients. However, our understanding of causative organisms and prognostic factors is limited. Although ventilator-associated pneumonia (VAP,) an important subset of HAP,has been - extensively investigated, less is known about non-ventilated cases, leading to calls for focused research in this group. This retrospective observational cohort study aims to define a population of patients treated as HAP by comparing ventilated and non-ventilated cases. It aims to clarify how often a microbiological diagnosis is reached, what organisms are frequently identified, and whether this has a relevant impact on the outcomes. The relative impact of positive radiographic changes among patients treated for HAP will also be assessed. Methods Data will be obtained from the Health Data Research UK acute care hub, ‘. ’PIONEER’ Cases meeting the coding criteria or a clinical surveillance definition of HAP over a 5-year period will be extracted. Demographic, clinical, and microbiological variables will be analysed initially descriptively, and subsequently, with multiple logistic regression analysis to investigate factors affecting microbiological diagnosis. Key outcome variables are in-hospital, 30-day and 1 year mortality, as well as all-cause readmissions within 1 year. Secondary outcomes include nosocomial infections, such as C. difficile. Kaplan-Meier curves and a Cox proportional hazards regression model will be used to investigate outcomes and compare subgroups. A key comparison is between those in whom a putative pathogen is identified and those treated entirely empirically. For this purpose, we will also compare outcomes using an inverse probability of treatment weighting analysis. Additionally, we will explore identifying consolidation in chest imaging reports using natural language processing to allow consideration of the relative impact this may have on mortality and readmission rates.
- 23 April 2025
- Published by National Institute for Health and Care Research in NIHR Open Research
- Vol. 5, 36
Open AccessStudy Protocol: A retrospective observational analysis of patients treated for hospital-acquired pneumonia.
Background Hospital-acquired pneumonia (HAP) is an important complication of hospital admission, with both high incidence and consequences for patients. However, our understanding of causative organisms and prognostic factors is limited. Although ventilator-associated pneumonia (VAP,) an important subset of HAP,has been - extensively investigated, less is known about non-ventilated cases, leading to calls for focused research in this group. This retrospective observational cohort study aims to define a population of patients treated as HAP by comparing ventilated and non-ventilated cases. It aims to clarify how often a microbiological diagnosis is reached, what organisms are frequently identified, and whether this has a relevant impact on the outcomes. The relative impact of positive radiographic changes among patients treated for HAP will also be assessed. Methods Data will be obtained from the Health Data Research UK acute care hub, ‘. ’PIONEER’ Cases meeting the coding criteria or a clinical surveillance definition of HAP over a 5-year period will be extracted. Demographic, clinical, and microbiological variables will be analysed initially descriptively, and subsequently, with multiple logistic regression analysis to investigate factors affecting microbiological diagnosis. Key outcome variables are in-hospital, 30-day and 1 year mortality, as well as all-cause readmissions within 1 year. Secondary outcomes include nosocomial infections, such as C. difficile. Kaplan-Meier curves and a Cox proportional hazards regression model will be used to investigate outcomes and compare subgroups. A key comparison is between those in whom a putative pathogen is identified and those treated entirely empirically. For this purpose, we will also compare outcomes using an inverse probability of treatment weighting analysis. Additionally, we will explore identifying consolidation in chest imaging reports using natural language processing to allow consideration of the relative impact this may have on mortality and readmission rates.
- Open Access
- 1 January 2024
- Published by Wiley in Journal of Probability and Statistics
- Vol. 2024 (1)
Functional Data Clustering Based on Weighted Functional Spatial Ranks With Clinical Applications
Functional data analysis is receiving increasing attention in several scientific disciplines. However, identifying and classifying clusters of data that are essentially curves that map into an infinite dimensional space poses a significant challenge for existing methods. Here, we introduce weighted functional spatial ranks (WFSRs) as part of a nonparametric clustering approach for functional data analysis. A two‐stage or filtering method is used to approximate the curves into some basis functions and reduce the dimension of the data using functional principle components analysis (FPCA). The curves are then ranked based on WFSRs to create a contour map. This allows the visualization of the cluster structure and the size and content of each cluster to be ascertained. The effectiveness of the methods in functional data analysis is evaluated using numerical examples from simulated and two real medical datasets. Compared with several other cluster methods, the WFSR algorithm records the lowest misclassification rates over the two real datasets.
- 1 January 2024
- Published by Wiley in Journal of Probability and Statistics
- Vol. 2024 (1)
Open AccessFunctional Data Clustering Based on Weighted Functional Spatial Ranks With Clinical Applications
Functional data analysis is receiving increasing attention in several scientific disciplines. However, identifying and classifying clusters of data that are essentially curves that map into an infinite dimensional space poses a significant challenge for existing methods. Here, we introduce weighted functional spatial ranks (WFSRs) as part of a nonparametric clustering approach for functional data analysis. A two‐stage or filtering method is used to approximate the curves into some basis functions and reduce the dimension of the data using functional principle components analysis (FPCA). The curves are then ranked based on WFSRs to create a contour map. This allows the visualization of the cluster structure and the size and content of each cluster to be ascertained. The effectiveness of the methods in functional data analysis is evaluated using numerical examples from simulated and two real medical datasets. Compared with several other cluster methods, the WFSR algorithm records the lowest misclassification rates over the two real datasets.
- Open Access
- 30 September 2023
- Published by Wiley in Journal of Probability and Statistics
- Vol. 2023, 1-15
Clustering Analysis of Multivariate Data: A Weighted Spatial Ranks-Based Approach
Determining the right number of clusters without any prior information about their numbers is a core problem in cluster analysis. In this paper, we propose a nonparametric clustering method based on different weighted spatial rank (WSR) functions. The main idea behind WSR is to define a dissimilarity measure locally based on a localized version of multivariate ranks. We consider a nonparametric Gaussian kernel weights function. We compare the performance of the method with other standard techniques and assess its misclassification rate. The method is completely data-driven, robust against distributional assumptions, and accurate for the purpose of intuitive visualization and can be used both to determine the number of clusters and assign each observation to its cluster.
- 30 September 2023
- Published by Wiley in Journal of Probability and Statistics
- Vol. 2023, 1-15
Open AccessClustering Analysis of Multivariate Data: A Weighted Spatial Ranks-Based Approach
Determining the right number of clusters without any prior information about their numbers is a core problem in cluster analysis. In this paper, we propose a nonparametric clustering method based on different weighted spatial rank (WSR) functions. The main idea behind WSR is to define a dissimilarity measure locally based on a localized version of multivariate ranks. We consider a nonparametric Gaussian kernel weights function. We compare the performance of the method with other standard techniques and assess its misclassification rate. The method is completely data-driven, robust against distributional assumptions, and accurate for the purpose of intuitive visualization and can be used both to determine the number of clusters and assign each observation to its cluster.
- 10 February 2023
- Published by Springer Nature in Nature Methods
- Vol. 20 (2) , 259-267
A framework for evaluating the performance of SMLM cluster analysis algorithms
Single-molecule localization microscopy (SMLM) generates data in the form of coordinates of localized fluorophores. Cluster analysis is an attractive route for extracting biologically meaningful information from such data and has been widely applied. Despite a range of cluster analysis algorithms, there exists no consensus framework for the evaluation of their performance. Here, we use a systematic approach based on two metrics to score the success of clustering algorithms in simulated conditions mimicking experimental data. We demonstrate the framework using seven diverse analysis algorithms: DBSCAN, ToMATo, KDE, FOCAL, CAML, ClusterViSu and SR-Tesseler. Given that the best performer depended on the underlying distribution of localizations, we demonstrate an analysis pipeline based on statistical similarity measures that enables the selection of the most appropriate algorithm, and the optimized analysis parameters for real SMLM data. We propose that these standard simulated conditions, metrics and analysis pipeline become the basis for future analysis algorithm development and evaluation.
- 10 February 2023
- Published by Springer Nature in Nature Methods
- Vol. 20 (2) , 259-267
A framework for evaluating the performance of SMLM cluster analysis algorithms
Single-molecule localization microscopy (SMLM) generates data in the form of coordinates of localized fluorophores. Cluster analysis is an attractive route for extracting biologically meaningful information from such data and has been widely applied. Despite a range of cluster analysis algorithms, there exists no consensus framework for the evaluation of their performance. Here, we use a systematic approach based on two metrics to score the success of clustering algorithms in simulated conditions mimicking experimental data. We demonstrate the framework using seven diverse analysis algorithms: DBSCAN, ToMATo, KDE, FOCAL, CAML, ClusterViSu and SR-Tesseler. Given that the best performer depended on the underlying distribution of localizations, we demonstrate an analysis pipeline based on statistical similarity measures that enables the selection of the most appropriate algorithm, and the optimized analysis parameters for real SMLM data. We propose that these standard simulated conditions, metrics and analysis pipeline become the basis for future analysis algorithm development and evaluation.
- Open Access
Optimising a coordinate ascent algorithm for the meta-analysis of test accuracy studies
Meta-analysis may be used to summarise a test’s accuracy. Often the sensitivity and specificity are the measures of interest and as these are correlated a bivariate random effects model is commonly used to fit the data. This model has five parameters and it may be optimised using a Newton-Raphson based algorithm providing adequate initial values of the parameters are identified. Numerical methods may be used to estimate robust initial values but estimating these is computationally expensive and it is not clear whether they provide a significant advantage over closed form methods in terms of reducing bias, mean square error, average relative error, and coverage probability. Here we consider six closed form methods for estimating the initial values of the parameters for a co-ordinate ascent algorithm used to fit the bivariate model and compare them with numerically derived robust initial values. Using simulation studies we demonstrate that all the closed form methods lead to a reduction in computation time of around 80% and rank higher overall across the metrics when compared with the robust initial values method. Although no initial values estimator dominated the others across all parameters and metrics, the two-step Hedges-Olkin estimator ranked highest overall across the different scenarios.
Open AccessOptimising a coordinate ascent algorithm for the meta-analysis of test accuracy studies
Meta-analysis may be used to summarise a test’s accuracy. Often the sensitivity and specificity are the measures of interest and as these are correlated a bivariate random effects model is commonly used to fit the data. This model has five parameters and it may be optimised using a Newton-Raphson based algorithm providing adequate initial values of the parameters are identified. Numerical methods may be used to estimate robust initial values but estimating these is computationally expensive and it is not clear whether they provide a significant advantage over closed form methods in terms of reducing bias, mean square error, average relative error, and coverage probability. Here we consider six closed form methods for estimating the initial values of the parameters for a co-ordinate ascent algorithm used to fit the bivariate model and compare them with numerically derived robust initial values. Using simulation studies we demonstrate that all the closed form methods lead to a reduction in computation time of around 80% and rank higher overall across the metrics when compared with the robust initial values method. Although no initial values estimator dominated the others across all parameters and metrics, the two-step Hedges-Olkin estimator ranked highest overall across the different scenarios.
- Open Access
- 7 January 2022
- Published by SAGE Publications in Statistical Methods in Medical Research
- Vol. 31 (2) , 287-299
On estimating a constrained bivariate random effects model for meta-analysis of test accuracy studies
Tailored meta-analysis uses setting-specific knowledge for the test positive rate and disease prevalence to constrain the possible values for a test's sensitivity and specificity. The constrained region is used to select those studies relevant to the setting for meta-analysis using an unconstrained bivariate random effects model (BRM). However, sometimes there may be no studies to aggregate, or the summary estimate may lie outside the plausible or “applicable” region. Potentially these shortcomings may be overcome by incorporating the constraints in the BRM to produce a constrained model. Using a penalised likelihood approach we developed an optimisation algorithm based on co-ordinate ascent and Newton-Raphson iteration to fit a constrained bivariate random effects model (CBRM) for meta-analysis. Using numerical examples based on simulation studies and real datasets we compared its performance with the BRM in terms of bias, mean squared error and coverage probability. We also determined the ‘closeness’ of the estimates to their true values using the Euclidian and Mahalanobis distances. The CBRM produced estimates which in the majority of cases had lower absolute mean bias and greater coverage probability than the BRM. The estimated sensitivities and specificity for the CBRM were, in general, closer to the true values than the BRM. For the two real datasets, the CBRM produced estimates which were in the applicable region in contrast to the BRM. When combining setting-specific data with test accuracy meta-analysis, a constrained model is more likely to yield a plausible estimate for the sensitivity and specificity in the practice setting than an unconstrained model.
- 7 January 2022
- Published by SAGE Publications in Statistical Methods in Medical Research
- Vol. 31 (2) , 287-299
Open AccessOn estimating a constrained bivariate random effects model for meta-analysis of test accuracy studies
Tailored meta-analysis uses setting-specific knowledge for the test positive rate and disease prevalence to constrain the possible values for a test's sensitivity and specificity. The constrained region is used to select those studies relevant to the setting for meta-analysis using an unconstrained bivariate random effects model (BRM). However, sometimes there may be no studies to aggregate, or the summary estimate may lie outside the plausible or “applicable” region. Potentially these shortcomings may be overcome by incorporating the constraints in the BRM to produce a constrained model. Using a penalised likelihood approach we developed an optimisation algorithm based on co-ordinate ascent and Newton-Raphson iteration to fit a constrained bivariate random effects model (CBRM) for meta-analysis. Using numerical examples based on simulation studies and real datasets we compared its performance with the BRM in terms of bias, mean squared error and coverage probability. We also determined the ‘closeness’ of the estimates to their true values using the Euclidian and Mahalanobis distances. The CBRM produced estimates which in the majority of cases had lower absolute mean bias and greater coverage probability than the BRM. The estimated sensitivities and specificity for the CBRM were, in general, closer to the true values than the BRM. For the two real datasets, the CBRM produced estimates which were in the applicable region in contrast to the BRM. When combining setting-specific data with test accuracy meta-analysis, a constrained model is more likely to yield a plausible estimate for the sensitivity and specificity in the practice setting than an unconstrained model.
- Open Access
- 10 November 2021
- Published by SAGE Publications in Statistical Methods in Medical Research
- Vol. 31 (1) , 47-61
Clustering functional data using forward search based on functional spatial ranks with medical applications
Cluster analysis of functional data is finding increasing application in the field of medical research and statistics. Here we introduce a functional version of the forward search methodology for the purpose of functional data clustering. The proposed forward search algorithm is based on the functional spatial ranks and is a data-driven non-parametric method. It does not require any preprocessing functional data steps, nor does it require any dimension reduction before clustering. The Forward Search Based on Functional Spatial Rank (FSFSR) algorithm identifies the number of clusters in the curves and provides the basis for the accurate assignment of each curve to its cluster. We apply it to three simulated datasets and two real medical datasets, and compare it with six other standard methods. Based on both simulated and real data, the FSFSR algorithm identifies the correct number of clusters. Furthermore, when compared with six standard methods used for clustering and classification, it records the lowest misclassification rate. We conclude that the FSFSR algorithm has the potential to cluster and classify functional data.
- 10 November 2021
- Published by SAGE Publications in Statistical Methods in Medical Research
- Vol. 31 (1) , 47-61
Open AccessClustering functional data using forward search based on functional spatial ranks with medical applications
Cluster analysis of functional data is finding increasing application in the field of medical research and statistics. Here we introduce a functional version of the forward search methodology for the purpose of functional data clustering. The proposed forward search algorithm is based on the functional spatial ranks and is a data-driven non-parametric method. It does not require any preprocessing functional data steps, nor does it require any dimension reduction before clustering. The Forward Search Based on Functional Spatial Rank (FSFSR) algorithm identifies the number of clusters in the curves and provides the basis for the accurate assignment of each curve to its cluster. We apply it to three simulated datasets and two real medical datasets, and compare it with six other standard methods. Based on both simulated and real data, the FSFSR algorithm identifies the correct number of clusters. Furthermore, when compared with six standard methods used for clustering and classification, it records the lowest misclassification rate. We conclude that the FSFSR algorithm has the potential to cluster and classify functional data.