Produção Científica e Didática
Produção científica recente
Does Bigger Mean Better? A Domain-Aware Comparison of Lexicon-Based, TF-IDF, and Transformer Models for Sentiment Analysis
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.
Learning to Play Like Humans: A Deep Neural Framework for Believable Agent Development in Virtual Worlds
Many existing intelligent agents still behave in a mechanical way leading to user dissatisfaction and lack of engagement. To create more realistic and accurate imitations, this study proposes an imitation learning framework that explores deep learning (DL) and traditional machine learning, to build a computational model. The approach is tested using two case studies: Pac-Man to predict human behavior, and Player Unknown's Battlegrounds (PUBG) to evaluate how well the model could imitate it. Recurrent neural networks (RNN), gated recurrent units, long short-term memory networks (LSTM), random forest, extreme gradient boosting (XGBoost), etc. To assess model performance, mean squared error, root mean squared error, and accuracy are used. Among the employed models, RNN and LSTM achieved near-identical and highest accuracy on Pac-Man (99.98% and 99.96% on the combined dataset), clearly ahead of GRU, random forest and XGBoost, while XGBoost performed best on PUBG with 97.37% accuracy. A dedicated discussion explains why RNN performs well in the low-dimensional, short-horizon Pac-Man setting and lists its advantages and limitations. The Mann–Whitney U Test and the Cosine similarity tests are also applied to measure how believable the imitated behaviors were. Neither analysis detected a statistically significant difference between human and model traces, and cosine similarity was approximately 0.98.
Quantum vs. Classical Machine Learning for Diabetes Prediction: A Leakage-Controlled Benchmarking Study with Repeated Evaluation
This study re-evaluates classical and simulated quantum machine-learning approaches for diabetes prediction under a leakage-controlled and reproducible protocol. The original experimental code was audited in response to peer review, revealing that several preprocessing operations had previously been fitted before the train/test split and that some reported metrics were not computed consistently across models. The revised protocol therefore performs stratified splitting before preprocessing; fits outlier handling, scaling, and PCA only on the training partition; applies SMOTE only to training data; evaluates five independent random seeds; and reports positive-class precision, recall, F1, balanced accuracy, ROC-AUC, PR-AUC, MCC, and 95% confidence intervals. Tuned classical baselines (Logistic Regression, SVC, KNN, Random Forest, and Gradient Boosting) were compared with 8-qubit fidelity-kernel QSVC and QKNN models on a common 2000-record BRFSS subset, while PIMA was evaluated as a second benchmark. Under training-only SMOTE on BRFSS, Logistic Regression achieved mean ROC-AUC 0.811 and positive-class recall 0.748, compared with 0.737 and 0.326 for QSVC; on PIMA, SVC achieved ROC-AUC 0.836 and recall 0.741, compared with 0.761 and 0.607 for QSVC. Thus, the corrected experiments do not support a general quantum predictive advantage. The principal value of the quantum experiments is instead the controlled assessment of representation behavior and computational cost. Measured classical scalability experiments from 10,000 to 55,000 records further show stable ROC-AUC but a strong trade-off between raw accuracy and minority-class sensitivity, whereas exact kernel-memory analysis shows that a dense float64 QSVC kernel would require approximately 23.04 GB at 60,000 records. PCA is therefore interpreted strictly as an unsupervised variance representation, while supervised permutation importance is used separately for predictive attribution. These results provide a more cautious and reproducible assessment of when simulated quantum kernels are competitive and where their current computational limitations remain substantial.
SPE-ECG: An Ontology-Guided Knowledge Representation Framework for Enhancing LLM-Based Code Generation
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.
Interpretable Machine Learning for Research Evaluation: Transparent Bibliometric Rules and the Limits of Association with Institutional Recognition in Neuroscience
The rapid growth of the scientific literature has intensified interest in how bibliometric information relates to scientific recognition, particularly in interdisciplinary fields such as neuroscience. Existing studies often rely on isolated indicators or black-box models. Here, the outcome is defined narrowly as institutionally recognized influence, operationalized as receipt of a prestigious neuroscience award from one of five societies (SFN, IBRO, FENS, CNS, ANS), rather than scientific influence in general. We compute 64 author assessment parameters in four categories for a balanced dataset of 1060 researchers (530 awardees, 530 non-awardees), using publications dated before the award year. A multilayer perceptron with leave-one-out feature ablation (MLP-FIS) ranks the parameters, and the top five per category feed Gini-based decision trees from which human-readable rules are extracted. On a random 20% test split the highlighted rules capture 33–49% of awardees at 83–95% specificity. Under repeated cross-validation with in-fold feature ranking, trees reach 66–70% accuracy against 68–73% for random forests, and the MLP-FIS top-five sets were unstable across folds. On a temporal hold-out of 106 researchers, rule accuracy was 52–67%. The benchmark results show limited incremental predictive advantage over strong conventional alternatives; accordingly, the contribution is interpretive rather than performance-based. The rules are descriptive benchmarks of bibliometric patterns associated with institutional recognition, not validated tools for judging scientific influence or individuals, and the analysis is subject to citation-timing leakage, award-selection bias and data-quality problems.