Joao R. Campos
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
Research Subjects
Joao R. Campos has a total of 34 co-authors. Here are the top co-authors by number of shared publications:
- Marco Vieira
University of North Carolina at Charlotte
10 shared publications - Ernesto Costa
University of Coimbra, CISUC/LASI, DEI
7 shared publications - Ana Maria Teixeira
Faculty of Sport Sciences and Physical Education, University of Coimbra, Coimbra, Portugal
2 shared publications - Inês Cipriano
University of Coimbra, Research Unit for Sport and Physical Activity, Faculty of Sport Sciences and Physical Education, Coimbra, Portugal
2 shared publications - Jose D Abruzzo Pereira
Centre for Informatics and Systems of the University of Coimbra, Department of Informatics Engineering, University of Coimbra, Portugal
2 shared publications - Luis Rama
Centro Interdisciplinar de Performance Humana (CIPER), Faculty of Sport Sciences and Physical Education, University of Coimbra, 3040-156 Coimbra, Portugal
2 shared publications
Latest Publications
- Open Access
- 15 August 2026
- Published by Springer Nature in Empirical Software Engineering
- Vol. 32 (1) , 25
PROBE: Benchmarking code generation in large language models
Large Language Models (LLMs) are increasingly being used in everyday software engineering tasks, particularly in automated code generation. Despite their widespread adoption, these models remain far from perfect, making systematic and fair evaluation essential to understand their strengths and limitations. In the context of code generation, existing benchmarks are limited: they often target a single programming language and rely primarily on unit test outcomes, while overlooking other critical dimensions such as the overall quality of the generated code and its closeness to a valid solution. To address these gaps, we introduce , an extensible benchmark framework that, unlike prior work, establishes a systematic structure built on diverse and well-defined metrics, representative workloads, varied prompt templates, and a robust experimental procedure. In practice, the code generated by the LLMs is evaluated along three complementary dimensions: functional correctness, proximity to valid solutions, and code quality, enabling a comprehensive assessment of performance. We use to evaluate four open-source and two proprietary models under three prompting strategies across five programming languages. We further complement this analysis with a study of common errors in the code and provide concrete examples, offering clearer insight into where LLMs tend to struggle. Our findings show that, while LLMs achieve promising results, they struggle with harder problems and, in the case of smaller models, with programming languages that have fewer available resources for training, and they often fail due to fundamental and easily avoidable errors that underscore the unreliability of automatically generated code.
- 15 August 2026
- Published by Springer Nature in Empirical Software Engineering
- Vol. 32 (1) , 25
Open AccessPROBE: Benchmarking code generation in large language models
Large Language Models (LLMs) are increasingly being used in everyday software engineering tasks, particularly in automated code generation. Despite their widespread adoption, these models remain far from perfect, making systematic and fair evaluation essential to understand their strengths and limitations. In the context of code generation, existing benchmarks are limited: they often target a single programming language and rely primarily on unit test outcomes, while overlooking other critical dimensions such as the overall quality of the generated code and its closeness to a valid solution. To address these gaps, we introduce , an extensible benchmark framework that, unlike prior work, establishes a systematic structure built on diverse and well-defined metrics, representative workloads, varied prompt templates, and a robust experimental procedure. In practice, the code generated by the LLMs is evaluated along three complementary dimensions: functional correctness, proximity to valid solutions, and code quality, enabling a comprehensive assessment of performance. We use to evaluate four open-source and two proprietary models under three prompting strategies across five programming languages. We further complement this analysis with a study of common errors in the code and provide concrete examples, offering clearer insight into where LLMs tend to struggle. Our findings show that, while LLMs achieve promising results, they struggle with harder problems and, in the case of smaller models, with programming languages that have fewer available resources for training, and they often fail due to fundamental and easily avoidable errors that underscore the unreliability of automatically generated code.
- Open Access
- 16 May 2026
- Published by Elsevier in SSRN Electronic Journal
Discrimination of Sedentary and Athletic Profiles via FTIR-Based Digital Fingerprints combined with Supervised Machine Learning
Introduction: Physical inactivity is a major global health concern, while regular exercise yields well-documented physiological and metabolic benefits. Despite advances in molecular profiling, rapid, integrative, and cost-effective tools for assessing long-term adaptations to exercise remain limited. This study evaluated the potential of Fourier Transform Infrared (FTIR) spectroscopy, combined with machine learning (ML) algorithms, to discriminate between sedentary individuals and trained athletes (football players and ultramarathon runners) using multiple aqueous biofluids. Methods: A total of 132 participants (87 athletes and 45 sedentary individuals) were assessed. FTIR spectra were obtained from five biological matrices: serum, plasma, capillary blood, urine, and saliva. Data preprocessing included baseline correction, vector normalization, and spectral truncation. Dimensionality reduction and classification were conducted using Partial Least Squares Discriminant Analysis (PLS-DA) and a range of supervised learning models (Multilayer Perceptron (MLP), Random Forest, XGBoost and Decision Trees), with synthetic oversampling (SMOTE) applied within each cross-validation fold to address class imbalance. Data partitioning was performed at the participant level to prevent information leakage from repeated measures. Model performance was evaluated using cross-validation, with F1-score, area under the curve (AUC), balanced accuracy, and Matthews Correlation Coefficient (MCC) as primary metrics; bootstrapped 95% confidence intervals were estimated for each. Results: The best-performing models were obtained with capillary blood, serum, and plasma. A Decision Tree classifier applied to capillary blood spectra achieved a balanced accuracy of 0.917 (95% CI: 0.820–1.000), a weighted F1-score of 0.914, and an AUC of 0.937. An XGBoost classifier trained on serum spectra achieved a balanced accuracy of 0.765 (95% CI: 0.623–0.893) and an AUC of 0.877. In plasma, an MLP classifier trained across all three collection timepoints achieved a balanced accuracy of 0.757 (95% CI: 0.643–0.875) and an AUC of 0.909. Urine and saliva yielded substantially lower predictive accuracy (balanced accuracy below 0.60). Biochemical analysis of key spectral regions identified distinct differences in lipid- and protein-related functional groups between sedentary individuals and trained athletes, consistent with physiological adaptations to chronic exercise [1, 2]. Conclusion: This is the first study to apply FTIR spectroscopy across multiple biofluids to stratify individuals based on chronic exercise status. The findings demonstrate that FTIR spectroscopy, coupled with ML, offers a promising, label-free, and scalable approach for profiling physiological adaptations to exercise. These results support its further development for use in sports medicine, precision health monitoring, and personalized exercise prescription.
- 16 May 2026
- Published by Elsevier in SSRN Electronic Journal
Open AccessDiscrimination of Sedentary and Athletic Profiles via FTIR-Based Digital Fingerprints combined with Supervised Machine Learning
Introduction: Physical inactivity is a major global health concern, while regular exercise yields well-documented physiological and metabolic benefits. Despite advances in molecular profiling, rapid, integrative, and cost-effective tools for assessing long-term adaptations to exercise remain limited. This study evaluated the potential of Fourier Transform Infrared (FTIR) spectroscopy, combined with machine learning (ML) algorithms, to discriminate between sedentary individuals and trained athletes (football players and ultramarathon runners) using multiple aqueous biofluids. Methods: A total of 132 participants (87 athletes and 45 sedentary individuals) were assessed. FTIR spectra were obtained from five biological matrices: serum, plasma, capillary blood, urine, and saliva. Data preprocessing included baseline correction, vector normalization, and spectral truncation. Dimensionality reduction and classification were conducted using Partial Least Squares Discriminant Analysis (PLS-DA) and a range of supervised learning models (Multilayer Perceptron (MLP), Random Forest, XGBoost and Decision Trees), with synthetic oversampling (SMOTE) applied within each cross-validation fold to address class imbalance. Data partitioning was performed at the participant level to prevent information leakage from repeated measures. Model performance was evaluated using cross-validation, with F1-score, area under the curve (AUC), balanced accuracy, and Matthews Correlation Coefficient (MCC) as primary metrics; bootstrapped 95% confidence intervals were estimated for each. Results: The best-performing models were obtained with capillary blood, serum, and plasma. A Decision Tree classifier applied to capillary blood spectra achieved a balanced accuracy of 0.917 (95% CI: 0.820–1.000), a weighted F1-score of 0.914, and an AUC of 0.937. An XGBoost classifier trained on serum spectra achieved a balanced accuracy of 0.765 (95% CI: 0.623–0.893) and an AUC of 0.877. In plasma, an MLP classifier trained across all three collection timepoints achieved a balanced accuracy of 0.757 (95% CI: 0.643–0.875) and an AUC of 0.909. Urine and saliva yielded substantially lower predictive accuracy (balanced accuracy below 0.60). Biochemical analysis of key spectral regions identified distinct differences in lipid- and protein-related functional groups between sedentary individuals and trained athletes, consistent with physiological adaptations to chronic exercise [1, 2]. Conclusion: This is the first study to apply FTIR spectroscopy across multiple biofluids to stratify individuals based on chronic exercise status. The findings demonstrate that FTIR spectroscopy, coupled with ML, offers a promising, label-free, and scalable approach for profiling physiological adaptations to exercise. These results support its further development for use in sports medicine, precision health monitoring, and personalized exercise prescription.
- 12 February 2026
- Published by Springer Nature
- p. 37-53
Towards a Minimum Security Baseline for Cyber-Physical Systems Through Security Standards Harmonization
- 12 February 2026
- Published by Springer Nature
- p. 37-53
Towards a Minimum Security Baseline for Cyber-Physical Systems Through Security Standards Harmonization
- 3 October 2025
- Published by Springer Nature in The Journal of Supercomputing
- Vol. 81 (15) , 1-39
Toward using cyber threat intelligence with machine and deep learning for IoT security: a comprehensive study
- 3 October 2025
- Published by Springer Nature in The Journal of Supercomputing
- Vol. 81 (15) , 1-39
Toward using cyber threat intelligence with machine and deep learning for IoT security: a comprehensive study
- Open Access
Towards the Assessment of Task-based Chatbots: From the TOFU-R Snapshot to the BRASATO Curated Dataset
Task-based chatbots are increasingly being used to deliver real services, yet assessing their reliability, security, and robustness remains underexplored, also due to the lack of large-scale, high-quality datasets. The emerging automated quality assessment techniques targeting chatbots often rely on limited pools of subjects, such as custom-made toy examples, or outdated, no longer available, or scarcely popular agents, complicating the evaluation of such techniques. In this paper, we present two datasets and the tool support necessary to create and maintain these datasets. The first dataset is RASA TASK-BASED CHATBOTS FROM GITHUB (TOFU-R), which is a snapshot of the Rasa chatbots available on GitHub, representing the state of the practice in open-source chatbot development with Rasa. The second dataset is BOT RASA COLLECTION (BRASATO), a curated selection of the most relevant chatbots for dialogue complexity, functional complexity, and utility, whose goal is to ease reproducibility and facilitate research on chatbot reliability.
Open AccessTowards the Assessment of Task-based Chatbots: From the TOFU-R Snapshot to the BRASATO Curated Dataset
Task-based chatbots are increasingly being used to deliver real services, yet assessing their reliability, security, and robustness remains underexplored, also due to the lack of large-scale, high-quality datasets. The emerging automated quality assessment techniques targeting chatbots often rely on limited pools of subjects, such as custom-made toy examples, or outdated, no longer available, or scarcely popular agents, complicating the evaluation of such techniques. In this paper, we present two datasets and the tool support necessary to create and maintain these datasets. The first dataset is RASA TASK-BASED CHATBOTS FROM GITHUB (TOFU-R), which is a snapshot of the Rasa chatbots available on GitHub, representing the state of the practice in open-source chatbot development with Rasa. The second dataset is BOT RASA COLLECTION (BRASATO), a curated selection of the most relevant chatbots for dialogue complexity, functional complexity, and utility, whose goal is to ease reproducibility and facilitate research on chatbot reliability.
- 18 April 2025
- Published by Institute of Electrical and Electronics Engineers (IEEE) in Computer
- Vol. 58 (5) , 57-64
Predicting Failures in Complex Systems
Online failure prediction is a technique to predict incoming failures in the near future. This allows for preemptive measures to avoid, or at least mitigate, their consequences. This article shows how recent advances make it now possible to develop accurate failure predictors for complex systems.
- 18 April 2025
- Published by Institute of Electrical and Electronics Engineers (IEEE) in Computer
- Vol. 58 (5) , 57-64
Predicting Failures in Complex Systems
Online failure prediction is a technique to predict incoming failures in the near future. This allows for preemptive measures to avoid, or at least mitigate, their consequences. This article shows how recent advances make it now possible to develop accurate failure predictors for complex systems.
- Open Access
- 20 November 2024
- Published by Springer Nature in Sports Medicine
- Vol. 55 (2) , 459-472
Fourier Transform Infrared (FTIR) Spectroscopy as a Tool to Characterize Exercise and Physical Activity: A Systematic Review
Background: Over the past few decades, the scientific community has recognized the impact of physical activity on health and performance. In parallel, researchers have been actively exploring novel methodologies to analyze the physiological and metabolic responses to exercise. Fourier transform infrared spectroscopy has emerged as a powerful tool in this effort, offering the potential to provide unique insights into exercise-related changes at the molecular level. Objective: The primary goal of this systematic review is to confirm the viability of utilizing Fourier transform infrared spectroscopy for the analysis of the biochemical changes associated with physical exercise and its potential applications. Methods: This systematic review adhered to PRISMA (Preferred Reporting Items for Systematic Reviews and Meta-Analyses) guidelines and examined studies employing Fourier transform infrared spectroscopy to analyze exercise and physical activity, focusing on a biological sample collection and spectral analysis. Four databases (PubMed, SPORTDiscus, Web of Science, and Scopus) were searched, and inclusion criteria encompassed original English-language studies involving human participants aged 18–50 years, a biological sample collection (urine, saliva, and blood), and the use of Fourier transform infrared spectroscopy. The studies were analyzed considering the type of exercise or sport that was investigated, and also the type of spectral analysis conducted. Results: The review encompassed 15 studies that demonstrated the versatility of Fourier transform infrared spectroscopy in assessing various aspects of exercise, including metabolism, cardiovascular responses, and muscular fatigue. The largest study evaluated 57 athletes from several different sports. On average, almost all the studies were performed with around 20 athletes. Notably, the technique’s holistic approach allows for a comprehensive analysis of the complex network of metabolites and proteins within the human body. Data analysis methodologies, particularly when coupled with machine learning, show great potential for advancing the field of sports science. Conclusions: Fourier transform infrared spectroscopy emerges as a promising tool for monitoring and enhancing the performance of high-level athletes, preventing overtraining or even over-reaching, and assessing metabolism. Its accuracy, efficiency, and affordability also make it a candidate for broader applications in assessing the health and fitness of the general population. Future research should explore its applicability across diverse exercise modalities and demographic groups, aiming to prescribe exercise plans that consider a multitude of parameters for larger, more intricate exercise cohorts. Clinical Trial Registration: The study protocol was registered in the International Prospective Register of Systematic Reviews (PROSPERO) under the ID number CRD42023441965. Graphical
- 20 November 2024
- Published by Springer Nature in Sports Medicine
- Vol. 55 (2) , 459-472
Open AccessFourier Transform Infrared (FTIR) Spectroscopy as a Tool to Characterize Exercise and Physical Activity: A Systematic Review
Background: Over the past few decades, the scientific community has recognized the impact of physical activity on health and performance. In parallel, researchers have been actively exploring novel methodologies to analyze the physiological and metabolic responses to exercise. Fourier transform infrared spectroscopy has emerged as a powerful tool in this effort, offering the potential to provide unique insights into exercise-related changes at the molecular level. Objective: The primary goal of this systematic review is to confirm the viability of utilizing Fourier transform infrared spectroscopy for the analysis of the biochemical changes associated with physical exercise and its potential applications. Methods: This systematic review adhered to PRISMA (Preferred Reporting Items for Systematic Reviews and Meta-Analyses) guidelines and examined studies employing Fourier transform infrared spectroscopy to analyze exercise and physical activity, focusing on a biological sample collection and spectral analysis. Four databases (PubMed, SPORTDiscus, Web of Science, and Scopus) were searched, and inclusion criteria encompassed original English-language studies involving human participants aged 18–50 years, a biological sample collection (urine, saliva, and blood), and the use of Fourier transform infrared spectroscopy. The studies were analyzed considering the type of exercise or sport that was investigated, and also the type of spectral analysis conducted. Results: The review encompassed 15 studies that demonstrated the versatility of Fourier transform infrared spectroscopy in assessing various aspects of exercise, including metabolism, cardiovascular responses, and muscular fatigue. The largest study evaluated 57 athletes from several different sports. On average, almost all the studies were performed with around 20 athletes. Notably, the technique’s holistic approach allows for a comprehensive analysis of the complex network of metabolites and proteins within the human body. Data analysis methodologies, particularly when coupled with machine learning, show great potential for advancing the field of sports science. Conclusions: Fourier transform infrared spectroscopy emerges as a promising tool for monitoring and enhancing the performance of high-level athletes, preventing overtraining or even over-reaching, and assessing metabolism. Its accuracy, efficiency, and affordability also make it a candidate for broader applications in assessing the health and fitness of the general population. Future research should explore its applicability across diverse exercise modalities and demographic groups, aiming to prescribe exercise plans that consider a multitude of parameters for larger, more intricate exercise cohorts. Clinical Trial Registration: The study protocol was registered in the International Prospective Register of Systematic Reviews (PROSPERO) under the ID number CRD42023441965. Graphical
- Open Access
- 24 May 2024
- Published by Sociedade Brasileira de Computação
- p. 99-103
Statistical Process Control for Supporting OS-level Failure Prediction
Software systems are used to execute critical tasks on a daily basis. Failures can easily lead to significant losses or even loss of lives. Online Failure Prediction (OFP) tries to predict incoming failures using the current state of the system. This relies on the premise that there are symptoms (i.e., some misbehavior of the system) prior to failure, however, characterizing the (mis)behavior of a complex system is an open issue. How can we know if the failure predictors are actually modeling the symptoms, and not just identifying correlations in the data? In this work, we explore the use of Statistical Process Control (SPC) to characterize the stability and instability of the Linux Operating System (OS).
- 24 May 2024
- Published by Sociedade Brasileira de Computação
- p. 99-103
Open AccessStatistical Process Control for Supporting OS-level Failure Prediction
Software systems are used to execute critical tasks on a daily basis. Failures can easily lead to significant losses or even loss of lives. Online Failure Prediction (OFP) tries to predict incoming failures using the current state of the system. This relies on the premise that there are symptoms (i.e., some misbehavior of the system) prior to failure, however, characterizing the (mis)behavior of a complex system is an open issue. How can we know if the failure predictors are actually modeling the symptoms, and not just identifying correlations in the data? In this work, we explore the use of Statistical Process Control (SPC) to characterize the stability and instability of the Linux Operating System (OS).
- Open Access
- 16 October 2023
- Published by Association for Computing Machinery (ACM)
- p. 70-79
Leveraging Time Series Autocorrelation Through Numerical Differentiation for Improving Failure Prediction
Given the complexity of modern software systems, it is no longer possible to detect every fault before deployment. Such faults can eventually lead to failures at runtime, compromising the business process and causing significant risk or losses. Online Failure Prediction (OFP) is a complementary fault-tolerance technique that tries to predict failures in the near future, by using past data and the current state of the system. However, modern systems are comprised of many components and thus a proper characterization of its state requires hundreds of system metrics. As the system evolves through time, these data can be seen as multivariate time series, where the value of a system metric at a given time is related to its previous value. Although various techniques exist for leveraging this autocorrelation, they are often either simplistic (e.g., sliding-window), or too complex (e.g., Long-Short Term Memory (LSTM)). In this paper we propose the use of numerical differentiation, computing the first and second derivative, as a means to extract information concerning the underlying function of each system metric to support the development of predictive models for OFP. We conduct a comprehensive case using a Linux failure dataset that was generated through fault injection. Results suggest that numerical differentiation can be a promising approach to improve the performance of Machine Learning (ML) models for dependability-related problems with similar sequential characteristics (e.g., intrusion detection).
- 16 October 2023
- Published by Association for Computing Machinery (ACM)
- p. 70-79
Open AccessLeveraging Time Series Autocorrelation Through Numerical Differentiation for Improving Failure Prediction
Given the complexity of modern software systems, it is no longer possible to detect every fault before deployment. Such faults can eventually lead to failures at runtime, compromising the business process and causing significant risk or losses. Online Failure Prediction (OFP) is a complementary fault-tolerance technique that tries to predict failures in the near future, by using past data and the current state of the system. However, modern systems are comprised of many components and thus a proper characterization of its state requires hundreds of system metrics. As the system evolves through time, these data can be seen as multivariate time series, where the value of a system metric at a given time is related to its previous value. Although various techniques exist for leveraging this autocorrelation, they are often either simplistic (e.g., sliding-window), or too complex (e.g., Long-Short Term Memory (LSTM)). In this paper we propose the use of numerical differentiation, computing the first and second derivative, as a means to extract information concerning the underlying function of each system metric to support the development of predictive models for OFP. We conduct a comprehensive case using a Linux failure dataset that was generated through fault injection. Results suggest that numerical differentiation can be a promising approach to improve the performance of Machine Learning (ML) models for dependability-related problems with similar sequential characteristics (e.g., intrusion detection).