Producción científica y docente

Producción científica reciente

Does Bigger Mean Better? A Domain-Aware Comparison of Lexicon-Based, TF-IDF, and Transformer Models for Sentiment Analysis

Artículos y libros

Sentiment analysis systems range from training-free lexicons to compact supervised models and fine-tuned transformer encoders, but fair comparison requires identical test examples and explicit computational accounting. (1) Background: We reassess three sentiment-classification paradigms under matched binary-label evaluation on IMDb movie reviews and Sentiment140 tweets. (2) Methods: After duplicate and label audits, VADER, TF–IDF with validation-tuned Logistic Regression, and three-epoch GPU-fine-tuned DistilBERT were evaluated on the same 5065 IMDb and 10,000 Sentiment140 held-out records within each corpus. Accuracy, macro-F1, confusion matrices, paired McNemar tests, bootstrap intervals, training time, and inference throughput were computed from saved predictions and execution logs. (3) Results: DistilBERT reached 92.00% accuracy on IMDb and 83.41% on Sentiment140, compared with 91.06% and 78.77% for Logistic Regression and 69.83% and 66.54% for VADER. DistilBERT exceeded Logistic Regression by 0.95 percentage points on IMDb (paired 95% CI 0.08–1.76; p=0.0351 ) and by 4.64 points on Sentiment140 (CI 3.85–5.41; p<0.001 ), but required GPU fine-tuning and longer measured training. (4) Conclusions: The relative advantage of a transformer depends on the dataset and available computation. Logistic Regression remains a compact, accurate alternative; results are restricted to these two within-domain configurations and do not demonstrate cross-domain transfer or domain causation.

Leer más

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

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

Fine-Grained Human Activity Recognition in Domestic Settings Using Ultra-Wideband Radar: A Comparative Study of Deep Learning Models

Artículos y libros

Human activity recognition with ultra-wideband (UWB) radar offers contactless, privacy-preserving monitoring of daily living, but distinguishing fine-grained activities performed in the same posture remains difficult. We recorded nine daily activities from 30 participants with a single PulsON 410 radar (3.1–5.3 GHz); seven are performed seated in the same chair and differ only by subtle hand and arm motions. Each 15 s recording is a 120×1440 channel–impulse–response matrix, preprocessed by background subtraction, two-dimensional wavelet denoising and standardization. Six deep learning models (Transformer, CNN-LSTM, 1D-CNN, LSTM, GRU and MLP) and a soft-voting ensemble were compared with participant-independent splits (22 training, 3 validation and 5 test participants) and five-fold cross-validation. The Transformer reached the highest cross-validation accuracy (97.74±0.30% ). On the held-out participants, the Transformer (97.16%), 1D-CNN (96.93%) and GRU (96.45%) performed similarly, ahead of the CNN-LSTM, LSTM and MLP (87.47%), and a three-model ensemble reached 98.35%. Two additional participant splits and a retrained re-run confirmed that the MLP is clearly the weakest model, but the order of the other models changed by several points between runs; in the re-run, an ensemble of all six models did not exceed the Transformer (97.74%), and a range–Doppler baseline reached only 50.63%. Eating versus drinking tea and mobile phone use versus reading or sitting idle were the most confused pairs. Given the small test cohort and the controlled setting, the results are indicative rather than definitive.

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