Leveraging natural language processing, machine learning, and a knowledge-grounded language model to detect linguistic markers of deception
Open Access
- 28 October 2026
- journal article
- research article
- Published by Frontiers Media SA in Frontiers in Artificial Intelligence
- Vol. 9, 1965099
Abstract
Introduction: Deception elicits measurable cognitive and linguistic changes, yet accurately identifying deceptive language in high-stakes environments remains a persistent challenge. Although natural language processing (NLP) and machine learning (ML) techniques have shown promise in detecting misinformation and low-stakes deception, their performance on spontaneous, stress-induced speech remains poorly understood. This study investigates linguistic markers of deception and evaluates the performance of supervised ML models and a knowledge-grounded language model, FranklinAsk™, across both synthetic and real-world datasets. Methods: Linguistic analyses were conducted on responses from a National Center for Credibility Assessment (NCCA) military training exercise involving truthful and deceptive participants. A synthetic dataset was generated using MOSTLYAI to provide a balanced corpus for ML training. Linguistic features were extracted using pretrained NLP models, and supervised classifiers, including logistic regression, Random Forest, Naïve Bayes, and Support Vector Machine (SVM), were trained using LIWC-22 features with 10-fold cross-validation. The FranklinAsk™ RAG system was evaluated using the same participant responses to compare knowledge-grounded reasoning with statistical learning. Results: Two linguistic features, cardinal numbers (nominal p = 0.041) and particles (nominal p = 0.0486), reached the unadjusted significance threshold, each with a moderate effect size ( d = 0.55); neither remained statistically significant after Benjamini-Hochberg FDR correction (adjusted p = 0.668 for both). No significant sentiment differences were observed. On the synthetic dataset, logistic regression performed best (F1 = 0.930; ROC AUC = 0.978), but all supervised models showed substantial performance declines when applied to the real-world dataset. In contrast, FranklinAsk™ achieved the highest F1-score (0.519), highest accuracy (0.487), and second-highest recall (0.700) on the military exercise data. Discussion: These findings highlight the limited generalizability of synthetic-trained deception models to real-world, high-stakes communication and motivate further investigation of knowledge-grounded language models as an alternative approach when labeled real-world training data are limited. Future research should prioritize expanding ecologically valid datasets and exploring hybrid approaches that combine statistical modeling with knowledge-grounded reasoning.Keywords
This publication has 16 references indexed in Scilit:
- A Survey on RAG with LLMsProcedia Computer Science, 2024
- LSTMCNN: A hybrid machine learning model to unmask fake newsHeliyon, 2024
- Verbal lie detection using Large Language ModelsScientific Reports, 2023
- Fake news detection: deep semantic representation with enhanced feature engineeringInternational Journal of Data Science and Analytics, 2023
- Arabic Fake News Detection Based on Textual AnalysisArabian Journal for Science and Engineering, 2022
- An ensemble predictive analytics of COVID-19 infodemic tweets using bag of words2021
- Hong Kong Protests: Using Natural Language Processing for Fake News Detection on Twitter2020
- Supervised Machine Learning: A Brief PrimerBehavior Therapy, 2020
- Social-evaluative threat: Stress response stages and influences of biological sex and neuroticismPsychoneuroendocrinology, 2019
- Chronic stress alters dendritic morphology in rat medial prefrontal cortexJournal of Neurobiology, 2004