Producción científica y docente

Producción científica reciente

SPE-ECG: An Ontology-Guided Knowledge Representation Framework for Enhancing LLM-Based Code Generation

Artículos y libros

Large Language Models (LLMs) can translate natural-language instructions into code, but when the input is unstructured clinical protocol text, the generated code may omit doses, monitoring intervals, or safety thresholds that the text states. Such omissions matter because they can propagate into software that supports clinical monitoring. We propose SPE-ECG (Structured Prompt Engineering for Enhanced Code Generation), a transparent, rule-based pipeline that converts unstructured domain text into a JSON prompt using text cleaning, part-of-speech tagging, bigram matching, and hand-built domain dictionaries, without fine-tuning any model. In a case study of 43 rheumatoid arthritis DMARD monitoring protocols, we compared raw and structured prompts on three LLMs (GPT-3.5, LLaMA 2, and Gemma), scoring the generated Python code using version 3.15.1 with BLEU against the raw-prompt code of the other two models. Mean BLEU rose for all three models (relative gains of 55.1%, 32.5%, and 19.9%); the paired differences were significant for GPT-3.5 and LLaMA 2 but not, after correction for multiple comparisons, for Gemma. These results suggest that lightweight input structuring can change how closely different models’ outputs agree, and that it could serve as a low-cost, auditable preparation step for protocol-to-code tools built on free or open models. BLEU does not measure correctness, no ablation or state-of-the-art baseline was run, and clinical validation is required before any use.

Leer más

Cost-sensitive random forest with adaptive threshold optimization for imbalanced financial fraud detection

Artículos y libros

Background: Financial transaction fraud detection is a challenging binary classification problem characterized by severe class imbalance, rare fraudulent cases, and asymmetric misclassification costs. In real-world banking systems, failing to detect fraudulent transactions can lead to substantial financial losses, whereas false alarms mainly increase operational review costs. Therefore, fraud detection models should not be optimized only for overall accuracy, as accuracy-oriented classifiers may favor the majority non-fraud class and fail to identify minority fraud cases effectively. To address this issue, this study proposes a cost-sensitive ML framework for financial transaction fraud detection under class imbalance and asymmetric financial risk.Methods: In this study, a cost-sensitive RF framework with adaptive probability threshold optimization is proposed for binary fraud classification. Misclassification costs are incorporated during model training through class-weighted learning, allowing the classifier to assign greater importance to minority fraud cases. In addition, instead of using the default probability threshold of 0.5, the decision threshold is optimized using validation data to minimize the expected misclassification cost and improve minority-class detection. The proposed framework was evaluated on two publicly available financial fraud datasets with different transaction characteristics: the Credit Card Fraud Detection dataset and the Financial Fraud Prediction dataset. Its performance was compared with conventional ML baselines using fraud-oriented evaluation metrics, including precision, recall, F1-score, false-negative rate, false-positive rate, and expected misclassification cost.Results: The proposed framework achieved strong and consistent performance across both datasets. On the Credit Card Fraud Detection dataset, it achieved a precision of 94.4%, recall of 85.7%, and F1-score of 89.8%. On the Financial Fraud Prediction dataset, it achieved a precision of 93.1%, a recall of 83.8%, and an F1-score of 88.2%. Compared with conventional fixed-threshold ML models, the adaptive threshold strategy reduced false-negative predictions while maintaining high precision. These results indicate that the proposed cost-sensitive framework provides a more balanced decision strategy for fraud detection under highly imbalanced transaction distributions.Conclusion: The findings demonstrate that combining class-weighted learning with adaptive threshold optimization can improve fraud detection performance under asymmetric misclassification costs. The proposed framework offers a practical and interpretable decision-support approach for banking fraud detection systems, particularly in settings where reducing undetected fraudulent transactions is more important than maximizing overall accuracy alone.

Leer más

Initial validity evidence for a game-based digital assessment of phonological awareness in early readers

Artículos y libros

This study provides initial validity evidence, based on internal structure, together with reliability and grade-level sensitivity data for JILEC-1 (Interactive Language and Literacy Games for Children – Module 1), a seven-game digital phonological awareness battery for Brazilian Portuguese. Participants were 632 children (mean age 6.77 years) from the last year of kindergarten through Grade 2 in three Brazilian schools. Performance was indexed by the Game Progress Index (GPI), a weighted composite of accuracy, speed, and efficiency; results proved invariant to weighting decisions (rank-order agreement across five schemes ρ ≥ .99). Internal consistency was high (α = ω = .87). Exploratory factor analysis (n = 316) supported a dominant factor; confirmatory analysis in an independent subsample, using a calibration-confirmation design, supported a unidimensional model with two theoretically specified residual covariances (confirmation set: CFI = .999; RMSEA = .019). Comparison with correlated-factor and bifactor alternatives characterized the battery as essentially unidimensional (ωH = .84; ECV = .85). Full scalar measurement invariance held across sex; across grades, only configural invariance held, attributable to Grade 2 ceiling effects. GPI scores increased across grades (η2 = .49), robust to school clustering. Convergent, predictive, test-retest, and clinical-sample evidence is required before screening applications.

Leer más

Hybrid deep learning and CNN-Isotonic Regression framework for accurate global mean sea level rise prediction using multi-source atmospheric and oceanic data

Artículos y libros

Keeping track of Global Mean Sea Level (GMSL) over long periods is important for assessing coastal risk. However, deep learning models may produce predictions that exhibit short-term increases and decreases, potentially conflicting with expected long-term physical behavior. In this study, we propose a combined Convolutional Neural Network and Isotonic Regression framework, termed CNN-ISO, for modeling and forecasting annual GMSL changes over the period 1880–2024. The framework uses 11 predictors representing atmospheric, oceanic, and cryospheric conditions. To provide longer temporal sequences, the original 144 annual observations are linearly interpolated into 1728 monthly observations. Model evaluation follows a strict chronological split, with training data from 1880–1979, validation data from 1980–1999, and test data from 2000–2024. All preprocessing transformations and the isotonic mapping are fitted exclusively on the training set to prevent information leakage from later periods. On the unseen test period, CNN-ISO achieves R 2 = 0.997 with a 95% confidence interval of [ 0.995,0.999 ] , together with an MAE of 0.56 mm and an RMSE of 0.72 mm. For comparison, linear regression achieves R 2 = 0.982 . Although the predictive improvement over linear regression is relatively modest, CNN-ISO provides an additional constraint by producing monotonic out-of-sample projections, which is consistent with the assumed long-term behavior of GMSL. Under statistical trend extrapolation to 2050, CNN-ISO estimates a GMSL increase of 184.10 mm relative to the baseline. However, estimates vary substantially across models, with linear regression and LSTM producing 116.60 mm and 299.19 mm, respectively. These results should therefore be interpreted as trend-based statistical extrapolations rather than comprehensive climate projections, as the framework does not explicitly model ice-sheet dynamics, changes in ocean circulation, or future emission pathways. Nevertheless, the proposed approach provides a transparent framework for examining model uncertainty and may support early-stage coastal adaptation planning.

Leer más

Development and validation of the driving self-esteem questionnaire

Artículos y libros

Global self-esteem has proved to be a strong predictor of several outcomes, including anger and aggressive behaviour on and off the road. However, different theoretical approaches suggest the relevance of identifying and assessing context-specific forms of self-esteem. The present study aimed to develop and validate a self-report measure of driving self-esteem (DSEQ) in a sample of Spanish drivers (n = 530, Mage = 30.55, 67.4% women). Exploratory factor analyses using polychoric correlations and parallel analysis supported a unidimensional structure, with initial multidimensional patterns attributable to item wording effects. The final model showed adequate fit, strong unidimensionality indices (UniCo, ECV, MIREAL), and high reliability. Measurement invariance across gender was supported at configural, metric, and scalar levels. Evidence of validity based on relationships with external variables was observed, with driving self-esteem positively associated with global self-esteem and negatively related to several dimensions of driving anger. Hierarchical regression analyses indicated modest and domain-specific incremental validity, with small increases in explained variance for discourtesy and slow driving, but not for other dimensions. These findings support the DSEQ as a reliable and valid instrument and highlight the relevance of assessing self-esteem at a context-specific level in driving research.

Leer más