Full text
73,534 characters
· extracted from
preprint-html
· click to expand
The Optimization of a Natural Language Processing Approach for the Automatic Detection of Alzheimer’s Disease Using GPT Embeddings | medRxiv /* */ /* */ <!-- <!-- /*! * yepnope1.5.4 * (c) WTFPL, GPLv2 */ (function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0];var j=d.createElement(s);var dl=l!='dataLayer'?'&l='+l:'';j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;j.type='text/javascript';j.async=true;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-P4HH5NV'); Skip to main content Home About Submit ALERTS / RSS Search for this keyword Advanced Search The Optimization of a Natural Language Processing Approach for the Automatic Detection of Alzheimer’s Disease Using GPT Embeddings View ORCID Profile Benjamin S. Runde , Ajit Alapati , View ORCID Profile Nicolas G. Bazan doi: https://doi.org/10.1101/2024.01.14.24301297 Benjamin S. Runde 1 Science Engineering Research Center, The Potomac School Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Benjamin S. Runde For correspondence: bensrunde{at}gmail.com Ajit Alapati 1 Science Engineering Research Center, The Potomac School Find this author on Google Scholar Find this author on PubMed Search for this author on this site Nicolas G. Bazan 1 Science Engineering Research Center, The Potomac School Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Nicolas G. Bazan Abstract Full Text Info/History Metrics Data/Code Preview PDF Abstract As the impact of Alzheimer’s disease (AD) is projected to grow in the coming decades as the world’s population ages, the development of noninvasive and cost-effective methods of detecting AD is essential for the early prevention and mitigation of the progressive disease, alleviating its expected global impact. This study analyzes audio processing techniques and transcription methodologies to optimize the detection of AD through the natural language processing (NLP) of spontaneous speech. We enhanced audio fidelity using Boll Spectral Subtraction and evaluated the transcription accuracy of state-of-the-art AI services—locally-based Wav2Vec and Whisper, alongside cloud-based IBM Cloud and Rev AI—against traditional manual transcription methods. The choice between local and cloud-based solutions hinges on a trade-off between privacy, ongoing costs, and computational requirements. Leveraging OpenAI’s GPT for word embeddings, we enhanced the training of Support Vector Machine (SVM) classifiers, which were crucial in analyzing transcripts and refining detection accuracy. Our findings reveal that AI-driven transcriptions significantly outperform manual counterparts when classifying AD and Control samples, with Wav2Vec using enhanced audio exhibiting the highest accuracy and F-1 scores (0.99 for both metrics) for locally based systems and Rev AI using unenhanced audio leading cloud-based methods with comparable precision (0.96 for both metrics). The study also uncovers the detrimental effect of including interviewer speech in recordings on model performance, advocating for the exclusion of such interactions to improve data quality for AD classification algorithms. Our comprehensive evaluation demonstrates that AI transcription (both Cloud and Local) and NLP technologies in their current forms can classify AD, as well as probable AD and mild cognitive impairment (MCI), a prodromal stage of AD, accurately but suffer from a lack of available training data. The insights garnered from this research lay the groundwork for future advancements in the noninvasive monitoring and early detection of cognitive impairments through linguistic analysis. 1. Introduction Alzheimer’s disease (AD) is an incurable neurological disorder that causes the degeneration of neurons in the brain that progresses first from dementia to the eventual inability of the brain to conduct basic bodily functions [ 1 ]. AD is the most common form of dementia, making up an estimated 60% to 80% of global cases of dementia. Currently, 55 million people globally suffer from dementia, a figure that is expected to grow to 139 million by 2050 [ 2 ]. With the world population aging, exemplified by countries such as the US, where people over the age of 65 are expected to increase by 50% halfway through the century, the social and economic impact of AD is expected to grow rapidly. Surprisingly, research suggests that 68% of this growing impact is expected to occur in low and middle-income countries. Being a progressive disease, AD manifests initially with preclinical AD through subjective cognitive impairment (not all cases transition to AD), then mild cognitive impairment (MCI), and finally Dementia (which continually worsens over time), making it paramount that the disease be detected as early as possible in order to slow its progression and impact [ 1 ]. Currently, the diagnosis of AD using conventional clinical methods requires a specialty clinic, which can be invasive, expensive, and time-consuming. Additionally, these methods are often inaccurate and not cost-effective, particularly in identifying the early stages of the disease. Furthermore, nonspecialist clinicians often struggle to accurately identify early AD and MCI. As a result, there is a growing demand for noninvasive and/or cost-effective tools that can ascertain individuals in the preclinical or early clinical stages of AD, allowing for early interventions that could improve lifestyle and evolving pharmacological treatments. This is particularly important for lower-income individuals who may have fewer resources to cope with AD, and therefore, a more effective, accurate, and cost-effective way of detecting early AD is necessary [ 3 ]. As the stages of AD progress, aphasia (the inability to understand or formulate language) and dysarthria (the inability to write), some of AD’s most common symptoms, become worse, being marked by a predictable set of changes. Firstly, language and speech are impaired by the inability to find certain words, most commonly those pertaining to items or people the patient interacts with often, causing an increase in the use of pauses and filler words. In later stages, these symptoms are exacerbated, and the patient’s verbal acuteness and fluency are significantly impaired [ 4 ]. While some studies have shown that not all facets of speech and language change drastically after the first stages of the disease, the linguistic quality and complexity of the content of patients’ speech does, making it possible for artificial intelligence (AI) to conduct natural language processing (NLP) tasks, for the automatic detection of AD (ADAD), based partially or entirely of the patient language [ 5 , 6 ]. NLP is a cross-disciplinary technique that aims to enable AI, specifically through Large Language Models (LLM), to understand and process text, enabling it to convey meaning to other models that can create summaries, responses, or, in this case, classify text. Thanks to the massive advances in LLMs and AI as a whole, in recent years, NLP methods have improved drastically, enabling models to understand deeper and more complex semantic features [ 7 ]. To perform NLP, most models use word embeddings, which are N-dimensional vector representations of words ( Fig. 1 ). Embeddings allow for the usage of neural networks (NN) and other machine learning classifiers (MLC) to process language through semantic meaning, unlike other techniques that focus on the frequency of specific words, among other aspects [ 8 ]. One of the most advanced LLMs is OpenAI’s Generative Pre-trained Transformer 3 (GPT 3), which is known for its use in the ChatGPT. Based on the GPT 3 architecture, OpenAI offers a set of highly advanced, cost-effective set of embedding models [ 9 ]. First-generation versions of these models have shown promising results when it comes to the NLP-based automatic detection of AD [ 10 ]. Download figure Open in new tab Figure 1: 2-Degree Vector Graphical Interpretation of N-Degree Vector Word Embeddings to Convey Linguistic Meaning in a Numerical Format. The difference in meaning between “Brother” and “Sister,” and “Son” and “Daughter” is identical and refers to the genders to which words in both groups of words apply; this equal difference can be seen through the identical vectors between them. Through these numerical interpretations of meanings, ML classifiers can be trained to detect patterns in text. Made with Bio Render. Past research into the automatic detection of AD using speech has focused on either using acoustic features or NLP techniques [ 10 , 11 ]. While acoustic feature-based models have been shown to perform effectively, achieving accuracies of 63.6% in Chlasta and Wolk using a convolutional neural network (CNN) or 65.6% in Balugopalan and Novikova using a support vector machine (SVM) classifier, Balugopalan and Novikova showed that a word embedding or combination approach was more effective. They performed better in nearly all metrics using several machine learning classifiers, achieving an accuracy of 66.9% for embeddings and 69.2% for combination using SVM [ 12 , 13 ]. Cruz et al. used NLP techniques, specifically Sentence Embeddings, using Siamese BERT-Networks (SBERT) to create embeddings and test the effectiveness of several types of ML classifiers. They found that SVM and neural networks (NN) were the most effective, achieving accuracies and F-1 Scores (the harmonic mean of precision and recall) of 0.77 and 0.80 (SVM) and 0.78 and 0.76 (NN), respectively [ 14 ]. Agbavor and Liang built upon the research of both Balugopalan and Novikov and Cruz et al. Using audio files from the ADReSSO dataset, they extracted acoustic features, and they converted audio to text automatically using a transcription program, extracting embeddings using OpenAI first-generation embedding models. Using these acoustic features and embeddings, they trained multiple models using different combinations of NLP methods and ML classifiers. When comparing models, they found that the most effective model produced used only word embeddings and was classified using an SVM. This model was able to achieve an accuracy of 0.803 and 0.829 for accuracy and F-1 [ 10 ]. This study aims to build off past research and optimize an NLP-based automatic AD detection system, increasing its performance. By optimizing the methods required to implement one of these systems, we hope to characterize the full potential of this technology in its current form while also identifying areas of improvement necessary to assist in the creation of a real-world application. Specifically, using audio files from the Pitt Corpus of the Dementia Bank Database, we aim to optimize the transcription process to increase the quality of the GPT word embeddings and the subsequent classification models that they train [ 15 , 16 ]. To optimize these methodologies, we seek to evaluate the performances of several AI-based audio transcription systems, using cloud and locally-based transcription services, in addition to an audio enhancement system to aid the automatic transcription. We also aim to compare the performance of manual transcripts to those made with AI and seek to understand the impact of including interviewers in recordings. Using these various methodologies, we will characterize their performances in various classification tasks utilizing different diagnosis types. 2. Methodology The overall approach of this study can be observed as follows, and a visual overview of the process can be found in Figure 2 . Download figure Open in new tab Figure 2: Overview of Methodology for Development and Optimization of Automatic Spontaneous Speech Based Detection of Alzheimer’s Disease. Audio files of patients describing an image (the Cookie Theft Picture) were collected from the Pitt Corpus dataset of the Dementia Bank Database. The files included an original unedited version, an enhanced version using an implementation of Boll Spectral Subtraction [ 17 ], as well as a transcript in the CHAT file format. Each audio file (standard and enhanced) was transcribed using four different audio transcription services, while two original transcripts were generated, one from the original file and the other with the interviewer’s comments removed. Creating a total of 10 transcription groups with different methodologies. These groups were turned into numerical representations using the second-generation Open AI embedding model and were then used to train several SVM classification models. Made with BioRender. 2.1. Database Information For the study, we used the Pitt Corpus, which can be found in the Dementia Bank database [ 15 ]. Dementia Bank is a database that is a part of the Talk Bank project that collects and makes available several different types of multimedia files that relate and can contribute to the study of language and communication of dementia [ 16 ]. The Pitt Corpus, which is derived from Becker et al., was gathered as part of a larger project to study dementias at the University of Pittsburgh School of Medicine. According to the datasheet available with the Pitt Corpus, the dataset included 244 samples of Probable AD, 87 samples of Possible AD, 16 samples of Vascular Dementia, 6 samples of other dementias, 12 samples of people who had cognitive problems yet lacked a diagnosis, 23 samples of MCI, and 121 samples of a Control group [ 15 ]. For every individual interview (sample), an original audio file, an enhanced audio file, and a written transcript in CHAT file format of the patient describing the Cookie Theft image ( Fig. 3 ) were included as well [ 15 ]. The Cookie Theft image is an image included in a subtest of the Boston diagnostic aphasia examination that has risen to prominence thanks to its potential to reveal a wide range of cognitive and linguistic skills and deficits [ 18 ]. For this subtest, patients are shown a drawing of a mother cleaning dishes next to the sink. They are instructed to tell the interviewer all that they see going on in the picture. The Cookie Theft picture contains a wide range of describable features, including people, objects, and actions [ 19 ]. Download figure Open in new tab Figure 3: Cookie Theft Picture from the Boston Diagnostic Aphasia Examination. This picture is shown to patients when conducting the Boston Diagnostic Aphasia Examination. Patients are asked to describe everything that they see in either a written or oral format. Patient descriptions are then used to identify issues with speech and fluency [ 18 ]. 2.2. Organizing Database Data Upon accessing the files, we immediately noticed a discrepancy between the quantities of samples listed and those actually available. This meant that it would be impossible to sort through the included files using the available datasheet. Instead, we opted to write a program using the Python programming language that separated all of the original (or standard quality) and enhanced audio files as well as the manual transcripts by diagnosis type using the diagnosis information available in the CHAT file format of the transcripts. Once both types of audio files and the Chat transcripts were organized by diagnosis type, we recounted the total for each diagnosis type; we found 234 samples of Probable AD, 21 samples of Possible AD, 42 samples of MCI, 3 samples of MCI with only memory problems, 5 samples of Vascular Dementia, 1 sample with another diagnosis, and 242 samples of Control. Using this information, we removed the MCI with memory problem only, vascular dementia, and other diagnosis groups as they lacked enough data to train and test a model. 2.3. Audio Enhancement Included in the Pitt Corpus were the original and enhanced versions of each interview’s audio file [ 15 ]. Audio files were enhanced by removing background frequencies using an implementation of Boll Spectral Subtraction available for Mathworks MatLab program [ 17 , 20 ]. Boll spectral subtraction works by assuming background frequencies and subtracting them from the original audio file. Spectral Subtraction offers a computationally efficient, consistent, and effective way of removing consistent background frequencies - it is not able to remove inconsistent and random audio artifacts [ 21 ]. This implementation of Boll Spectral Subtraction uses the first 0.25 seconds of audio, which is presumed by the program to be representative of background frequencies, and estimates the average background noise frequency using spectral averaging. Using this estimated frequency, or range of frequencies, it subtracts them from the original audio file. Following this, a secondary residual noise reduction is done to enhance the quality of the audio files [ 17 ]. 2.4. Manual Transcript Processing Manual Transcripts included in the Pitt Corpus data are complete documentation of the interview, including the interviewer’s questions and the patient’s responses. For example, the included transcript for interview ID 002-1 starts with the interviewer asking, “What do you see going on in that picture?” and the patient responds with, “Oh, I see the sink is running” [ 15 ]. Since the goal of the study is to optimize an NLP approach to the automatic detection of AD, removing the healthy, unaffected interviewer would remove any erroneous data that could hurt the performance of the models [ 22 ]. While it would be nearly impossible to differentiate between the interviewer and the participant in an automatic transcript, the CHAT format of the included manual transcripts indicates the speaker for every line of text. Using this, we wrote a program in the Python programming language that created a complete, unchanged transcript and a version with the interviewer removed. These new transcripts were exported in an Excel format and only included text characters, removing any special characters included in the transcripts for CHAT file formatting conventions. 2.5. Automatic Audio Transcription The original, or standard quality, and enhanced audio files were converted to text transcripts using 4 separate Automatic Speech Recognition (ASR) programs ( Fig. 4 ). Download figure Open in new tab Figure 4: Automatic Speech Recognition Using Cloud Based and Local System Based Programs. Audio files were converted to text using 4 different ASR services. 2 were cloud-based, IBM Cloud Watson and Rev AI (using the talk bank developed interface), and used a pay-as-you-go model as computations were performed remotely. OpenAI Whisper and Hugging Face Wav2Vec transcribed files locally using the computer’s own hardware and, accordingly, were free to use. At the same time, 2 of the ASR services (Wav2Vec and Rev AI) have been proposed in previous studies for this application, while the other 2 (Open AI and IBM Cloud) have been shown to be industry leaders in transcription performance. Made with BioRender. The first program that we used was a trained Wav2Vec model. This model was used and showed promising results in Agbavor and Liang [ 10 ]. The specific model that was used was the larger, most advanced model, facebook/wav2vec2-large-960h, which was trained and fine-tuned for transcription accuracy on 960 hours of Librispeech on 16kHz sampled speech audio [ 23 ]. This model can be found on the Hugging Face platform [ 24 ]. Audio files were transformed into waveforms using the Librosa library for Python [ 25 ]. Then, using the Wav2Vec2Tokenizer, waveforms were parsed into smaller, more accessible, and computationally efficient sections. These sections were then converted into text using the Wav2Vec2ForCTC submodel, which inherits and learns from the selected pre-trained model. Once all transcripts were created for both enhanced and standard audio, they were exported in Excel format. The second model used for generating automatic transcriptions using ASR was Rev AI. This method, proposed by the Talk Bank project, attempts to streamline an efficient and user-friendly way of creating high-quality automatic transcriptions [ 26 ]. The user interface is created through a program called Docker, which creates an access portal on one’s own device to upload files [ 27 ]. Then, through the Docker portal, one uploads their Rev AI API key, allowing the interface to send the files to the Rev AI service, an industry-leading ASR program [ 28 , 29 ]. Once the files are converted to text, they are immediately downloaded to one’s computer in the CHAT file format. The Rev AI CHAT transcripts were then converted into Excel format. The Third model we used was OpenAI’s Whisper program. Whisper is an open-source, locally run ASR model that is designed to excel in a zero-shot learning environment. This means it’s designed to work effectively without requiring a program to be prepared by training it with a downstream task through an approach such as fine-tuning, where one gives the pre-trained model a secondary dataset (in this case, a set of audio files and their correct transcripts) so that it can adjust to its task. Whisper was trained using 680,000 hours of multilingual and multitasking supervised data from the internet, allowing it to succeed on standard benchmarks in multiple languages [ 30 ]. Using a program written in the Python programming language, audio files were processed through the whisper model, and the subsequent transcripts were exported in an Excel format. The final model we used for the transcription of the standard and enhanced audio files was the IBM Cloud-based Watson Speech-to-Text (STT) service. An API key was created using IBM Cloud’s web interface. Using this API key, as well as Librosa, to tokenize and partition audio files, we created a program in Python that accessed the Watson Speech to Text base model through the cloud [ 25 , 31 ]. Once transcripts were created, they were exported in the Excel file format. Of the ASR services used in this study, two were cloud-based, IBM Cloud Watson STT and Rev AI, and two were open-source and locally based, Wav2Vec and Whisper [ 23 , 28 , 30 , 31 ]. The Cloud services are thought to be more advanced but require payment, using a pay-as-you-go model, as computations were performed remotely through each company’s own servers and dedicated hardware. IBM Cloud Watson STT and Rev AI both used an affordable pricing scheme of $0.02 (USD) per minute of audio transcribed by each service [ 28 , 31 ]. OpenAI Whisper and Hugging Face Wav2Vec transcribed files locally using the computer’s own hardware and were free to use. For each type of ASR service, as in cloud or local, one service was selected for its use or proposed in past ADAD research, Rev AI for the cloud base set and Wav2Vec for the Local set [ 10 , 26 ], and one was selected for its industry-leading performance, IBM for cloud-based and Whisper for local [ 30 , 31 ]. 2.6. Aggregation of Transcripts Once the manual transcripts were processed and the audio files were transcribed, we combined and organized all of the new transcripts based on each interview. For each interview, there were 10 transcripts that could be used to train separate models to compare transcript methodology performances. The final transcript types that we combined and used were as follows: Unchanged Manual Transcript, Manual Transcript Interviewer Removed (also known as participant only), Wav2Vec Standard, Wave2Vec Enhanced, Rev AI standard, Rev AI enhanced, Whisper Standard, Whisper Enhanced, IBM Standard, and IBM Enhanced. These transcripts were all combined in an Excel spreadsheet, where each row included interview information and 10 subsequent transcriptions using each methodology. Interviews that were unable to be transcribed through one of the methodologies were dropped from the data, 18 interviews were removed in total: 9 from control, 7 from AD, 2 from MCI, and 0 from Possible AD. The final sizes of each diagnosis group in this study were 233 samples of Control, 227 samples of Probable AD, 40 samples of MCI, and 21 samples of Possible AD ( Table 1 ). View this table: View inline View popup Download powerpoint Table 1: Comparison of Dataset Size Before and After Processing and Transcription. Only includes diagnosis types used in final models. Dataset versions, from top to bottom, refer to what was indicated by the database datasheet, what was available to download, and what was successfully transcribed by all methodologies. 2.7. Creation of Embeddings Embeddings were created using the OpenAI second-generation embedding model, called text-embedding-ada-002. An interpretation of word embeddings can be seen in Figure 1 . First proposed in Agbavor and Liang, the first-generation OpenAI embedding models showed extremely promising results, contributing to an approach that achieved an accuracy of 80.3% [ 10 ]. Using the Python Pandas library, a data analysis package for Python, the combined transcripts were loaded as a data frame [ 32 ]. Using this data frame and an OpenAI API key, we created a program that created embeddings for all the transcripts using the second-generation embedding model through API requests to OpenAI’s servers [ 9 ]. Pricing for the OpenAI second-generation embeddings model is $0.0004 per 1000 tokens (which is slightly less than a word) or around 3,000 pages per dollar (USD), which is much cheaper than the various first-generation models, which had worse performance and ranged from 6 to 300 pages per dollar (USD) [ 33 ]. 2.8. SMOTE Once embeddings were created, we applied the Synthetic Minority Over-sampling Technique (SMOTE) to balance out the datasets. Balanced datasets are essential for machine learning classifier performance [ 34 ]. SMOTE can be accessed through the imbalanced-learn library for Python [ 35 ]. SMOTE is an algorithm that performs data augmentation and balancing by creating synthetic data based on the original minority data points. SMOTE works by selecting random minority data points, estimating their Euclidian distance from their k nearest neighbors, then multiplying the distance between the parent point and each k nearest neighbor by a random number between 1 and 0, and then adding up those values to create a vector that is applied to the parent data point to create the synthetic one [ 34 ]. Simply, SMOTE estimates the general area of the minority samples and creates synthetic samples in that general area to balance out the datasets. SMOTE was applied to the MCI and Possible diagnosis types, increasing their sample sizes from 40 and 21 to 100 each ( Fig. 5 ). The final size of each diagnosis type, including synthetic data, is 233 samples of Control (unchanged), 227 samples of Probable AD (unchanged), 100 samples of MCI, and 100 samples of Possible AD. Download figure Open in new tab Figure 5: Visual Interpretation of Synthetic Minority Oversampling Technique. Since there were large imbalances in the data used in this study, SMOTE was used to create synthetic data for the minority data classes. Specifically, the large difference between AD and Control, which both had around 230 samples, and MCI and Possible AD, which both had less than 50, meant that synthetic samples were needed for the latter classes in order to balance the dataset to produce effective classification models. As seen in the Figure, SMOTE works by estimating the general area of the minority data groups (Class B) by selecting random minority data samples, calculating their distance from their K-nearest neighbors, and then generating synthetic samples with a similar distance from the selected data point. Made with BioRender. 2.9. Data Subgroups for Classifier Models Since SMOTE is not a perfect technique for data augmentation, as it still relies on past data to create synthetic data, some degree of bias will be introduced into models using data augmented by SMOTE. Therefore, for the proposed comparisons that this study is trying to achieve, we created several models for each transcription methodology using different combinations of diagnosis types ( Table 2 ). The first data subgroup that we used for model training used all the Control and AD samples (approximately 230 each). This set of data gave us the most unbiased results as it lacked any synthetic data and used all the data samples available for those two subgroups. The second is a subgroup that only used the downsized sample sizes for Control and AD (100 each). This subgroup lacks any bias from synthetic data but does not use all the data available (for Control and AD) so that it can be used for comparisons with other studies that have similar sample sizes. The third is a subgroup that only uses the downsized sample sizes for Control and AD and uses the synthetically upscaled MCI sample size (100 each). This data will have some bias as the MCI data type has been augmented with SMOTE, and not all the samples of AD and Control will be used as the sample size for each class needs to be equal. The final subgroup used 100 samples of all the datatypes: Control, AD, MCI, and Possible AD. This model will have the most bias since two of its classes have been augmented using SMOTE. View this table: View inline View popup Download powerpoint Table 2: Separation of Transcript Groups into 4 Separate Subgroups. All transcripts derived (manually and using ASR) from the Pitt Corpus of the Dementia Bank database included samples from 4 diagnosis types: Control, AD, MCI, and Possible AD. As seen in the table, once minority classes were augmented using SMOTE, transcripts were organized into four subgroups. The names of each of these subgroups include the shortened name of each diagnosis contained, as well as by either (230x) or (100x) to indicate the number of samples for each diagnosis in the group. For data pools that were downsized for certain data groups, samples were randomly selected. 2.10. SVM Training and Testing For diagnosis classifications, this study used a Support Vector Classifier (SVC). A visual interpretation of an SVC can be seen in Figure 6 . In Agbavor and Liang, SVCs were shown to have the best classification performance when compared to Random Forest (RF) and Logistic Regression (LR) classifiers for the binary classification of AD and Control [ 10 ]. Building upon this research, we have chosen to train various SVCs using all 4 subgroups for every transcription group/methodology. SVCs and SVMs can be accessed using the SciKit-Learn platform and Python library [ 36 ]. The NumPy and Pandas Python libraries were imported and used to format and process data/results [ 37 , 38 ], and the Matplotlib Python library was used to export model performances in a graphical format [ 39 ]. Download figure Open in new tab Figure 6: Visual Interpretation of a Support Vector Machine Classifier. To classify data, an SVM classifier, or SVC, was used. An SVC was chosen to be the ML classifier based on past research, which indicated its increased performance when compared to other classifiers, such as random forest or neural networks. SVCs work by separating data groups with a hyperplane. This hyperplane is chosen in such a way that it maximizes the margin between the different classes of data. The data points closest to the hyperplane on either side are known as support vectors, and they essentially define the position and orientation of the hyperplane by acting as a margin. Made with BioRender. The first model that was trained for every data subgroup used an 80/20 train test split. Commencing with data preprocessing, the dataset was divided into distinct components, namely an 80% training set and a 20% testing set. To characterize the trained models’ full capabilities and potentials, we used the capabilities of the GridSearchCV object, which systematically traversed an array of parameter combinations (regularization parameter C, kernel selection, polynomial degree (where relevant), and the kernel coefficient gamma) through cross-validation (CV) finding the most effective settings for each model. Upon successful completion of the tuning process, the highest-performing model was automatically selected, and it was subsequently retrained utilizing the determined optimal hyperparameters. For hyperparameter tuning, only the training data was used. Using this optimally tuned SVM classifier, the model performance was quantified using the unseen test data. All models (for each transcript methodology) used the transcripts of the same interviews for their own training and testing samples to allow for a more accurate direct comparison. A second SVM classifier was created to test model generalizability using a 10-fold cross-validation technique. We executed an 80/10/10 train-validation-test split to rigorously evaluate the performance of a Support Vector Machine (SVM) classifier with a linear kernel. In this code, we performed k-fold cross-validation, where k is set to 10, to evaluate the performance of a Support Vector Machine (SVM) classifier with a linear kernel. My dataset was initially split into 10 approximately equal and stratified subsets. Each of these subsets, referred to as “folds,” played a distinct role in the cross-validation process. During each iteration of the loop, one fold served as the validation set, while the remaining nine folds were used for training a linear SVM model. The “random state” was set for each fold to ensure reproducibility and uniqueness. With each trained model, we then made predictions on the validation set and assessed its performance. The results of each fold, encompassing all the performance metrics, were collected in separate lists, allowing for the evaluation of the SVM model’s ability to generalize effectively across different subsets of the data. 3. Results 3.1. Performance Metrics The main performance metrics used by this study are accuracy, precision, recall, and F-1 Score. These metrics are commonly used and are the de facto standard for quantifying machine learning classification performance. These metrics are built of the True/False Positive (TP) (FP) and True/False Negative (TN) (FN) values of each model. Accuracy quantifies the overall percentage of samples that were correctly classified. Precision is a metric that reveals what percentage of the samples marked true are, in fact, true. Recall is a metric that reveals what percentage of true samples were marked as TP. F-1 score combines precision and recall, representing their harmonic mean [ 40 ]. 3.2. Results for 80/20 Train Test Split The complete results of all models (for all data subgroups within each transcription methodology) using the 80/20 Train technique can be found in Tables 3 - 6 . The Train Test Split Test reveals the performance of a trained and optimized model on an untrained test set. This simulates the potential of the model to perform on a real-life test set when it is optimized with more real-life data; in other words, the performance the model could achieve if more data were collected - its peak possible performance. It does this by tuning hyperparameters by training and testing dozens of models on the original training set to simulate the enhancement of the model. These results are measured using accuracy, precision, recall, and F-1. Table 1 is divided up firstly by ASR program, then by type of audio or manual transcription, and then by each data subgroup. This test can be used to make the most direct and accurate comparisons possible, as each methodology will have the same interviews for their training and testing data. Comparisons between models are only applicable within each data group since each group uses a different dataset size and complexity. View this table: View inline View popup Download powerpoint Table 3: AD and Control (230x) Results. Includes performance metrics for all ten transcription types. Shows data for 80/20 train test split model, which used 80% of data for training and 20% for testing, as well as the 10-Fold CV, which separated data into ten folds and trained ten models using a different fold for testing every time. View this table: View inline View popup Download powerpoint Table 4: AD and Control (100x) Results. Includes performance metrics for all ten transcription types. Shows data for 80/20 train test split model, which used 80% of data for training and 20% for testing, as well as the 10-Fold CV, which separated data into ten folds and trained ten models using a different fold for testing every time. View this table: View inline View popup Download powerpoint Table 5: AD, MCI, and Control (100x) Results. Includes performance metrics for all ten transcription types. Shows data for 80/20 train test split model, which used 80% of data for training and 20% for testing, as well as the 10-Fold CV, which separated data into ten folds and trained ten models using a different fold for testing every time. View this table: View inline View popup Download powerpoint Table 6: AD, MCI, Possible AD, and Control (100x) Results. Includes performance metrics for all ten transcription types. Shows data for 80/20 train test split model, which used 80% of data for training and 20% for testing, as well as the 10-Fold CV, which separated data into ten folds and trained ten models using a different fold for testing every time. For the AD and Control (230x) subgroup, accuracy ranged from 0.79 to 0.99, and F-1 Scores ranged from 0.78 to 0.99 ( Table 3 ). The data for the Ad and Control (230x) can be found in Table 1 , which shows all models’ performance using the Train Test Split test, as well as Table 3 , which only includes data from the AD and Control (230x) models using the Train Test Split. The best-performing model was the Wav2Vec Enhanced model. It achieved an accuracy of 0.99 and an F-1 Score of 0.99. The second best model was the Rev AI Standard model. This model achieved an accuracy of 0.96 and an F-1 Score of 0.96. The worst-performing model was REV AI Enhanced. This model only managed to achieve an accuracy of 0.79 and an F-1 Score of 0.78. The second worst performing model was the model using the Manual Transcripts Unchanged, which achieved an accuracy and F-1 Score of 0.87. For the AD and Control (100x) subgroup, performance overall improved with accuracy and F-1 Scores ranging from 0.84 to 1.00 ( Table 4 ). The best-performing models were Rev AI Enhanced and Wav2vec Enhanced, which both scored 1.00 for accuracy and F-1. The second-best models were IBM Cloud Standard and Rev AI Standard, which both achieved an accuracy and F-1 Score of 0.98. Manual Transcript Participant Only and IBM Cloud Enhanced were tied for second worst, both scoring 0.89 for accuracy and 0.88 for F-1 Score. The worst-performing model for the AD and Control (100x) Subgroup was Wav2Vec Standard, which scored 0.84 for accuracy and 0.84 for F-1 Score. The performance continued to increase for the third data Subgroup, AD, MCI, and Control (100x), as seen in Table 5 , ranging from an accuracy and F-1 Score of 0.98 and 0.98 to 0.90 and 0.90, a smaller range than the previous models. The most effective model was the Manual Transcript Participant Only, which scored 0.98 for accuracy and 0.98 for F-1. The next best model was Manual Transcript Unchanged, with an accuracy of 0.97 and 0.97 F-1. For the third best, there was a tie between IBM Cloud Standard and Wav2Vec Enhanced, which both scored 0.95 for accuracy and F-1 Score. The second worst model was Rev AI, with an accuracy of 0.91 and an F-1 Score of 0.90. This was followed by IBM Cloud Enhanced, the worst model, which scored 0.90 for accuracy and F-1 Score. The overall performance for the last data subgroup, AD, MCI, Possible AD, and Control (100x), decreased from the last group, but the range stayed consistent, only ranging from accuracy and F-1 Score of 0.96 and 0.96 to 0.88 and 0.87 ( Table 6 ). The best two models for this subgroup both used the IBM Cloud ASR program. The best was IBM Cloud Enhanced, which scored 0.96 for accuracy and 0.96 for F-1 Score. IBM Cloud Standard was second, scoring 0.95 for accuracy and 0.95 for F-1 Score. The second worst model was Wav2Vec Standard, which scored 0.89 for accuracy and 0.88 for F-1. The worst was Rev AI Enhanced, which scored 0.88 for accuracy and 0.87 for F-1 Score. 3.3. Complete Results for 10-Fold Cross-Validation The 10-fold Cross-Validation was used to assess and evaluate the ability of each machine learning model to generalize using the average results of 10 machine learning models using a different test set each time. This model gives a more realistic result of how a model would perform in its current form on a real-life test set, while the Train Test Split shows the model’s potential performance. Because of the nature of Cross-Validation, the random groups or folds it splits the data into, make it less accurate at making direct and precise comparisons of models that used the same data. The overall results for the 10-fold Cross-Validation tests were lower across the board than the Train Test Split, as can be seen in Tables 3 - 6 . For the AD and Control (230x) subgroup, the best performing model was Manual Transcript Participant Only, which scored 0.84 for accuracy and 0.84 for F-1 Score ( Table 3 ). The second best was Manual Transcript Unchanged, which scored 0.82 for both accuracy and F-1 score. The worst model was IBM Cloud Enhanced, which only scored 0.72 for accuracy and F-1 Score. The overall scores were lower, and the range, which spanned from 0.84 to 0.72 for both accuracy and F-1 Score, was smaller than the train test split test. For the AD and Control (100x) Subgroup, the best performing model was Manual Transcript Participant Only, which scored 0.80 for accuracy and 0.79 for F-1 Score ( Table 4 ). The second best was Whisper Standard, which scored 0.79 for both accuracy and F-1 Score. The worst model was Rev AI standard, which scored 0.63 for accuracy and 0.60 for F-1 Score. The scores for this subgroup ranged from 0.80 to 0.63 for accuracy and 0.79 to 0.60 for F-1. For the third subgroup, AD, MCI, and Control (100x), the overall performance continued to decrease ( Table 5 ). The best model was Whisper Enhanced, which scored 0.56 for accuracy and 0.55 for F-1. The worst model was Rev AI Standard, which scored 0.45 for accuracy and 0.43 for F-1 score. The size range decreased, only spanning from 0.56 to 0.45 for accuracy and 0.55 to 0.43 for F-1 score. The 4th subgroup, AD, MCI, Possible AD, and Control (100x), performed the worst in this test, having scores ranging from 0.58 to 0.44 for accuracy and from 0.56 to 0.41 for F-1 Score ( Table 6 ). The best model was the Wav2Vec Standard, which had a score of 0.58 for accuracy and 0.56 for F-1 score. The worst was Rev AI Standard, which scored 0.44 for accuracy and 0.41 for F-1 Score. 4. Discussion 4.1. Data Used for Direct Comparisons and Observations of Transcription Methodologies The data used for making direct comparisons between transcription methods will be the AD and Control (230x) subgroups. AD and Control (230x) will also be used to posit the most effective model as a whole created by this study. This group has the lowest amount of bias as it does not include any synthetic data and uses all the data available to it. Furthermore, for comparisons between models, we will use the data from the Train Test SVM classifier, as all models (within the same subgroup) used samples from the same exact interview for their respective training and testing groups, which is not the case for the Cross-Validation test. AD and Control (100x) will be used to make overall comparisons to other studies that have predominantly used smaller databases of a similar size to this data group, such as the ADReSSO challenge and data set, which has a size of 237 samples, around 120 samples per group. ADReSSO is a recurring competition that aims to create the best model for detecting and differentiating between AD and Control diagnosis using any audio-based method [ 41 ]. This subgroup lacks any bias from synthetic data, but since it does not use all of the data available to it, it can not find the most accurate results possible for each methodology and thus will not be used for direct comparisons between methodologies. The last two data subgroups will be used to analyze the preliminary possibility of detecting MCI and Possible AD, as these subgroups include some degree of bias from synthetic data. 4.2. AD and Control (100x) Subgroup Results and Comparison to Previous Studies The results of the AD and Control (100x) subgroup are very promising. As stated earlier, 4 models achieved perfect or near-perfect results: Rev AI Enhanced and Wav2vec Enhanced, which performed perfectly (accuracy and F-1 of 1.00), as well as IBM Cloud Standard and Rev AI Standard which were near perfect (accuracy and F-1 of 0.98). Five of the remaining models achieved scores around the low 90s and high 80s, which are still extremely impressive. The Wav2Vec Standard scored 0.84 for accuracy and F-1 Score, which was still quite good despite being the worst-performing model. When comparing the Train Test Split scores to the Cross Validation results, they were overall much lower, only ranging from 0.80 to 0.63 for accuracy and 0.79 to 0.60 for F-1 Score. This discrepancy is most extreme for some of the best-performing models in the Train Test Split test, which performed near the bottom for cross-validation. This is the case for the Rev AI Standard and Enhanced, which only scored 0.63 and 0.65 for accuracy and 0.60 and 0.64 for F-1 Score, and not for Wav2Vec Enhanced and IBM Cloud Standard. While this discrepancy between the performance of the Train Test Split and Cross-Validation in the Rev AI models is a possible indicator of overfitting, usually caused by a data leakage or a data set that is too small (which this dataset is at risk of), the results of the Wav2Vec Standard model give the other results of this data subgroup credence for comparisons with other studies [ 42 ]. This is because when examining the results of Agbavor and Liang, which used a methodology nearly identical to the Wav2Vec Standard, being trained on the ADReSSo data set (120 for both AD and Control), using the standard audio of the study, and using Wav2Vec transcriptions, which were turned into embeddings using the GPT first-gen models, their performance is very similar. While we achieved 0.84 for accuracy and F-1 (train test) for the Wav2Vec Standard methodology, they scored 0.803 for accuracy and 0.829 for F-1 using an SVC [ 10 ]. Therefore, while some of the models are suffering from overfitting due to their poor generalizability when compared to Train Test data, the similar performances of the Wav2Vec Standard methodology show that the rest of the transcript methodologies are much more effective overall than the previously used Wav2Vec Standard transcription methodology. This large improvement in performance indicates that through the optimization of transcriptions, the performance of embedding-based AD detection programs can be improved dramatically. 4.3. Interpretation of AD and Control (230x) Subgroup Overall, the performance of the models using the AD and Control (230x) remained excellent. The best model by far was Wav2Vec enhanced, which achieved an accuracy and F-1 of 0.99. Besides both Manual Transcript methodologies, Rev AI Enhanced, and Wav2Vec Standard method, the remaining five methodologies (Both IBM Cloud, Open AI Whisper, and Rev AI Standard) had excellent performances, all achieving F-1 and accuracies between 0.91 and 0.96, which still outperform almost all other automated AD detection systems. The performance of both Manual Transcripts and Wav2Vec Standard was still quite good, scoring just below 0.90 in the upper 80s. The only poorly performing model was Rev AI Enhanced, which only was able to score an accuracy of 0.79 and an F-1 Score of 0.78. When compared to the results of the AD and Control (100x) Subgroup, the performance of the AD and Control (230x) Subgroup was much more consistent, which is to be expected when a larger sample size is used. The best-performing model was still Wav2Vec Enhanced, whose accuracy and Precision only decreased by 0.01 to 0.99 when using more data samples. The other models that performed extremely well using the smaller dataset, Rev AI Enhanced/Standard and IBM Cloud Standard, had their Train Test performances decrease and their CV performances increase. While Rev AI standard and IBM Cloud Standard were still the second and third best models using the Train Test Split and the larger dataset, Rev AI Enhanced became the worst, having a similar train test split performance to its CV scores (0.77 for accuracy and 0.76 for F-1). When we compare the Train Test Split results to the CV results, the gap is smaller with the larger dataset (AD and Control (230x)) than with the smaller one (AD and Control 130x)). Similarly, the best-performing models for the larger dataset using the Train Test Split test (Wav2Vec Enhanced, Rev AI Standard, and IBM Cloud Standard) were not the worst models when it came to the CV, all scoring near the middle of the pack. Since the gap between the Train Test Split and CV results decreased, and the overall performances between both tests became more consistent, the larger database clearly helped mitigate the overfitting experienced by the models using the AD and Control (100x) data subgroup. 4.4. Negative Impact of Interviewer on Model Performance When comparing both of the Manual Transcript methodologies, one can observe that there is a minor difference in performance. While the Manual Transcripts Unchanged model scored 0.87 for both accuracy and F-1, the Manual Transcripts Participant Only model scored 0.89 and 0.88 for accuracy and F-1, respectively. This improvement in performance indicates that it could be advantageous in the long run to remove interviewers from audio transcripts. This could be done in two ways, either by instructing the interviewer to begin the recording after the instructions, having the interviewer say a start and stop phrase between questions (so that their words could be removed), or through some sort of AI implementation (through voice recognition technology). Since more data is needed to more thoroughly test some of the methods proposed by this study and others so that a real-world application can be made, these suggestions should be taken into consideration when collecting data for a new database. 4.5. AI Transcription Models Outperforming Manual Transcripts Interestingly, almost all of the AI-based ASR methodologies outperformed the pre-existing manual transcripts, despite some transcripts not having the same quality as the manual transcripts. For example, one phrase was manually transcribed as “the scene is in the in the kitchen, the mother is wiping dishes,” while Wav2Vec Standard transcribed it as “THE SEM IS IN E BIN KITCHEN A MOTHER IS WIPING DISHES.” Wav2Vec Standard outperformed the Manual Transcripts unchanged methodology with these poorer transcripts. The reason for this improved performance with poorer transcripts is unclear and requires further examination of transcript quality and research. One possible explanation is that the AI transcripts were unable to capture “filler”/”function” words (Pronouns, Prepositions, Conjunctions, and Interjections) that don’t convey as much meaning as “content” words (Adjectives, Nouns, Verbs), which tend to be longer and more distinct. 4.6. Effect of Audio Enhancement There was no clear advantage to enhancing the quality of audio files. In some cases, standard audio outperformed enhanced Audio, such as in the while in others, enhanced audio performed better. Interestingly, using the more advanced cloud-based transcription programs, the standard audio performed consistently better. This worsened performance when using audio enhancement with cloud-based programs might be caused by the fact that these models have been trained with background noise in mind, and thus, the background noise removal of audio enhancement presents no advantages to these models, only disadvantages, as it might cause confusing noise artifacts. On the other hand, when using the Wav2Vec method (local), audio enhancement was extremely helpful, which indicates that it struggles heavily when presented with unclear audio. For Whisper, the other local method, there was no effect of using audio enhancement. Therefore, it would only make sense to use audio enhancement for locally-based ADAD systems. 4.7. Most Effective Methodology for Real-World Applications Since the real-world application of a speech-based automatic detection of AD program would be greatly affected by the distinction between using a locally-based and cloud-based methodology, it is of great importance to identify and differentiate between the best methodologies using each type of technology for future research and implementations. While a locally based ADAD service would have the advantage of perfect privacy and the lack of needing to pay for API or Cloud fees (as all computations would be run locally and thus would not have to be saved on external servers), it would require the use of a powerful computer which could have high upfront costs. Alternatively, cloud-based systems need only minimal hardware (enough for a user interface) and a connection to the internet but would incur constant charges due to their use of cloud computing. Furthermore, a cloud system might cause privacy concerns among patients. Based on the results of the AD and Control (230x) subgroup, the best methodology for a locally based system Wav2Vec Enhanced methodology. This methodology not only performed the best out of the Locally based transcription methods, scoring 0.99 for both accuracy and F-1 but was the most effective method overall. The second best overall and best cloud-based methodology was the TalkBank proposed Rev AI methodology (using standard audio files). This methodology was able to score an impressive 0.96 for both accuracy and F-1 Score. Overall, taking into account all ASR methods, neither system completely outperformed the other, showing that either type of implementation would be effective. Regardless, before any real-world implementation could be used, further research and testing would be necessary for either of these models. 4.8. Interpretation of Remaining Subgroups The results of the AD, MCI, and Control (100x) and AD, MCI, Possible AD, and Control (100x) subgroups were promising but suffered heavily from overfitting, which is to be expected when using synthetic data. While SMOTE can be used to create synthetic data with a lower probability of suffering from overfitting, it is still possible. While the range of the AD, MCI, and Control (100x) using the train test split was excellent, ranging from 0.98 to 0.90 for accuracy and 0.98 to 0.98 for F-1, the results of the CV test were quite poor. For accuracy, models only ranged from scoring 0.56 to 0.45, and for F-1, 0.55 to 0.43. While the Train Test Results are extremely promising, the CV results show that the models trained on this subset perform quite poorly when it comes to generalizability. The most effective models for the AD, MCI, Possible AD, and Control (100x) subgroup using the Train Test Split were the IBM Cloud ones, which scored 0.96 (Enhanced) and 0.95 (Standard) for both accuracy and F-1. The worst model (Rev AI Enhanced) still did quite well, scoring 0.88 for accuracy and 0.87 for F-1 Score. Similarly to the previous subgroup, the range for the Train Test Split test was very good, while the range of the CV scores was much poorer. The CV range for this data subgroup only spanned from 0.58 to 0.44 for accuracy and from 0.56 to 0.41 for F-1 Score. As discussed previously, a large discrepancy between the Train Test and CV is highly indicative of overfitting. Since the Pitt Corpus is one of the largest databases of Spontaneous Speech, future research focused on collecting more data for MCI and Possible AD audio samples is necessary so that the results created by this study (for the final two subgroups) could be verified using original samples. 5. Conclusion and Future Research The results of this research show that with the current state of audio enhancement algorithms, AI-based ASR programs, AI-generated word embeddings, and machine learning classifiers, an accurate automatic speech-based AD detection system is possible. Furthermore, both these systems could be deployed through local or cloud-based computing, as both technologies produced machine-learning classification models that achieved near-perfect results when classifying between AD and a Control. To detect other diagnoses, such as MCI, more audio data is necessary for more accurate and reliable results. Before any of these systems can be rolled out, more audio data (in addition to clinical trials) is necessary. These models were all trained using data from one specific area and time and, therefore, suffer from some intrinsic biases. A real-world application of this technology would need data from all over the world for each language, considering the various dialects and varying vernaculars that heavily influence speech. Unfortunately, current publicly available databases are highly limited, with the Pitt Corpus used by this study ranking as one of the largest databases available [ 4 ]. Therefore, the collection of new data and the creation of new databases are essential for the advancement of this technology. Additionally, since data collection is vital to allow further research in this area, studies planning on creating new datasets should ensure not to include interviewers’ unaffected speech. This speech creates unhelpful biases in addition to being noisy data, lowering the overall effectiveness of the models produced. Understanding why the poorer quality AI transcripts largely outperformed the higher quality manual transcripts is essential to further improving automatic AD detection. This would enable the further optimization of these proposed methodologies by enabling the removal of noisy data and giving insights into the parts of speech that are most important for speech-based detection systems. Data Availability All data produced in the present study are available upon reasonable request to the authors. Acknowledgments Figures were made with the help of BioRender.com, a web-based tool that helps scientists create, edit and collaborate on scientific diagrams and illustrations. Publishing rights were acquired using an academic subscription. This work was supported by the National Institute on Aging grant numbers NIA AG03705 and AG05133, through the funding of the Pitt Corpus. References [1]. ↵ 2023 alzheimer’s disease facts and figures . Alzheimer’s & Dementia: The Journal of the Alzheimer’s Association , 19 ( 4 ): 1598 – 1695 , 2023 . doi: 10.1002/alz.13016 . OpenUrl CrossRef PubMed [2]. ↵ World alzheimer report 2023 reducing dementia risk: never too early, never too late . https://www.alzint.org/u/World-Alzheimer-Report-2023.pdf . Accessed: 2024-01-02 . [3]. ↵ C. Laske , H. R. Sohrabi , S. Frost , et al. Innovative diagnostic tools for early detection of alzheimer’s disease . Alzheimer’s & Dementia , 11 ( 5 ): 561 – 578 , 2014 . doi: 10.1016/j.jalz.2014.06.004 . OpenUrl CrossRef [4]. ↵ I. Vigo , L. Coelho , and S. Reis . Speech- and language-based classification of alzheimer’s disease: A systematic review . Bioengineering , 9 ( 1 ): 27 , 2022 . doi: 10.3390/bioengineering9010027 . OpenUrl CrossRef [5]. ↵ J. Onofre , Paulo MinettT ., and Karin Zazo Ortiz . Analysis of word number and content in discourse of patients with mild to moderate alzheimer’s disease . Dementia & Neuropsychologia , 8 ( 3 ): 260 – 265 , 2014 . doi: 10.1590/s1980-57642014dn83000010 . OpenUrl CrossRef [6]. ↵ M. Dashwood , G. Churchhouse , M. Young , and T. Kuruvilla . Artificial intelligence as an aid to diagnosing dementia: an overview . Progress in Neurology and Psychiatry , 25 ( 3 ): 42 – 47 , 2021 . doi: 10.1002/pnp.721 . OpenUrl CrossRef [7]. ↵ P. M. Nadkarni , L. Ohno-Machado , and W. W. Chapman . Natural language processing: an introduction . Journal of the American Medical Informatics Association , 18 ( 5 ): 544 – 551 , 2011 . doi: 10.1136/amiajnl-2011-000464 . OpenUrl CrossRef PubMed [8]. ↵ Q. Jiao and S. Zhang . A brief survey of word embedding and its recent development , 2021 . [9]. ↵ A. Neelakantan , T. Xu , R. Puri , et al. Text and code embeddings by contrastive pre-training . https://arxiv.org/pdf/2201.10005.pdf . Accessed: 2024-01-02 . [10]. ↵ F. Agbavor and H. Liang . Predicting dementia from spontaneous speech using large language models . PLOS Digital Health , 1 ( 12 ): e0000168 , 2022 . doi: 10.1371/journal.pdig.0000168 . OpenUrl CrossRef [11]. ↵ S. Luz , F. Haider , D. Sofia , Fromm, and B. MacWhinney . Editorial: Alzheimer’s dementia recognition through spontaneous speech . Frontiers in Computer Science , 3 , 2021 . doi: 10.3389/fcomp.2021.780169 . OpenUrl CrossRef [12]. ↵ K. Chlasta and Krzysztof Wo lk . Towards computer-based automated screening of dementia through spontaneous speech . Frontiers in Psychology , 11 , 2021 . doi: 10.3389/fpsyg.2020.623237 . OpenUrl CrossRef [13]. ↵ A. Balagopalan and J. Novikova . Comparing acoustic-based approaches for alzheimer’s disease detection . https://arxiv.org/pdf/2106.01555.pdf . Accessed: 2024-01-02 . [14]. ↵ Sebastián Salazar-Colores Yamanki Santander-Cruz et al. Semantic feature extraction using sbert for dementia detection . Brain Sciences , 12 ( 2 ): 270 , 2022 . doi: 10.3390/brainsci12020270 . OpenUrl CrossRef [15]. ↵ J. T. Becker , F. Boller , O. L. Lopez , J. Saxton , and K. L. McGonigle . The natural history of alzheimer’s disease: description of study cohort and accuracy of diagnosis . Archives of Neurology , 51 ( 6 ): 585 – 594 , 1994 . OpenUrl CrossRef PubMed Web of Science [16]. ↵ Dementiabank: Theoretical rationale, protocol, and illustrative analyses . https://pubs.asha.org/doi/10.1044/2022_AJSLP-22-00281 . Accessed: 2024-01-02 . [17]. ↵ Boll spectral subtraction - file exchange - matlab centralfile exchange - matlab central . https://www.mathworks.com/matlabcentral/fileexchange/7675-boll-spectral-subtraction , 2005 . Accessed: 2024-01-02 . [18]. ↵ H. Goodglass , E. Kaplan , and S. Weintraub . BDAE: The Boston diagnostic aphasia examination . Lippincott Williams & Wilkins , Philadelphia, PA , 2001 . [19]. ↵ L. Cummings . Describing the cookie theft picture: Sources of breakdown in alzheimer’s dementia . https://www.researchgate.net/publication/332061806_Describing_the_Cookie_Theft_picture_Sources_of_breakdown_in_Alzheimer’s_dementia, 2019 . Accessed: 2024-01-02 . [20]. ↵ Matlab version: 9.13.0 (r2022b) . https://www.mathworks.com , 2022. [21]. ↵ S. Boll . Suppression of acoustic noise in speech using spectral subtraction . IEEE Transactions on Acoustics, Speech, and Signal Processing , 27 ( 2 ): 113 – 120 , 1979 . doi: 10.1109/tassp.1979.1163209 . OpenUrl CrossRef Web of Science [22]. ↵ L. Budach , M. Feuerpfeil , N. Ihde , et al. The effects of data quality on machine learning performance . https://arxiv.org/abs/2207.14529 , 2022 . Accessed: 2024-01-02 . [23]. ↵ A. Baevski , H. Zhou , A. Mohamed , and M. Auli . wav2vec 2.0: A framework for self-supervised learning of speech representations . https://arxiv.org/abs/2006.11477 , 2020 . Accessed: 2024-01-02 . [24]. ↵ T. Wolf , Lysandre Debut , V. Sanh , et al. Transformers: State-of-the-art natural language processing , 2020 . [25]. ↵ B. Mcfee , C. Raffel , D. Liang , et al. librosa: Audio and music signal analysis in python . In PROC. OF THE 14th PYTHON IN SCIENCE CONF , 2015 . URL https://conference.scipy.org/proceedings/scipy2015/pdfs/brian_mcfee.pdf . [26]. ↵ A. M. Lanzi , A. K. Saylor , D. Fromm , et al. Dementiabank: Theoretical rationale, protocol, and illustrative analyses . American Journal of Speech-Language Pathology , 32 ( 2 ): 426 – 438 , 2023 . doi: 10.1044/2022ajslp-22-00281 . OpenUrl CrossRef PubMed [27]. ↵ D. Merkel . Docker: Lightweight linux containers for consistent development and deployment . Linux Journal , ( 239 ): 2 , 2014 . [28]. ↵ Speech to text api — speech recognition service - rev ai . https://www.rev.ai/ , 2023 . Accessed: 2024-01-02 . [29]. ↵ Global speech-to-text transcript error rating 2021 — statista . https://www.statista.com/statistics/1133833/speech-to-text-transcript-accuracy-rate-among-leading-companies/ , 2021 . Accessed: 2024-01-02 . [30]. ↵ A. Radford , J. Kim , T. Xu , et al. Robust speech recognition via large-scale weak supervision . https://cdn.openai.com/papers/whisper.pdf . Accessed: 2024-01-02 . [31]. ↵ R. Liddell . Next-generation watson speech to text - ibm watson speech services . https://medium.com/ibm-watson-speech-services/next-generation-watson-speech-to-text-650fd66d95d0 , 2021 . Accessed: 2024-01-02 . [32]. ↵ W. McKinney . Data structures for statistical computing in python . In PROC. OF THE 9th PYTHON IN SCIENCE CONF , page 51, 2010 . URL https://conference.scipy.org/proceedings/scipy2010/pdfs/mckinney.pdf . [33]. ↵ Openai platform. https://platform.openai.com/docs/guides/embeddings/what-are-embeddings , 2023 . Accessed: 2024-01-02 . [34]. ↵ N. V. Chawla , K. W. Bowyer , L. O. Hall , and W. P. Kegelmeyer . Smote: Synthetic minority over-sampling technique . Journal of Artificial Intelligence Research , 16 ( 1 ): 321 – 357 , 2002 . OpenUrl CrossRef [35]. ↵ imbalanced-learn documentation — version 0.11.0 . https://imbalanced-learn.org/stable/ , 2023 . Accessed: 2024-01-02 . [36]. ↵ F. Pedregosa , G. Varoquaux , A. Gramfort , et al. Scikit-learn: Machine learning in python . Journal of Machine Learning Research , 12 ( 85 ): 2825 – 2830 , 2011 . OpenUrl CrossRef [37]. ↵ C. R. Harris , K. J. Millman , R. van Gommers , et al. Array programming with numpy . Nature , 585 ( 7825 ): 357 – 362 , 2020 . doi: 10.1038/s41586-020-2649-2 . OpenUrl CrossRef PubMed [38]. ↵ W. McKinney et al. Data structures for statistical computing in python . In Proceedings of the 9th Python in Science Conference , volume 445 , pages 51 – 56 , 2010 . OpenUrl [39]. ↵ J. D. Hunter . Matplotlib: A 2d graphics environment . Computing in Science & Engineering , 9 ( 3 ): 90 – 95 , 2007 . OpenUrl CrossRef [40]. ↵ S. Raschka . An overview of general performance metrics of binary classifier systems . https://arxiv.org/pdf/1410.5330.pdf , 2014 . Accessed: 2024-01-02 . [41]. ↵ S. Luz , F. Haider , S. de la Fuente , D. Fromm , and B. MacWhinney . Detecting cognitive decline using speech only: The adresso challenge . https://arxiv.org/abs/2104.09356 , 2021 . Accessed: 2024-01-02 . [42]. ↵ M. Valdenegro-Toro and M. Sabatelli . Machine learning students overfit to overfitting . https://arxiv.org/pdf/2209.03032.pdf , n.d. Retrieved November 8, 2023. View the discussion thread. Back to top Previous Next Posted January 16, 2024. Download PDF Data/Code Email Thank you for your interest in spreading the word about medRxiv. NOTE: Your email address is requested solely to identify you as the sender of this article. Your Email * Your Name * Send To * Enter multiple addresses on separate lines or separate them with commas. You are going to email the following The Optimization of a Natural Language Processing Approach for the Automatic Detection of Alzheimer’s Disease Using GPT Embeddings Message Subject (Your Name) has forwarded a page to you from medRxiv Message Body (Your Name) thought you would like to see this page from the medRxiv website. Your Personal Message CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Share The Optimization of a Natural Language Processing Approach for the Automatic Detection of Alzheimer’s Disease Using GPT Embeddings Benjamin S. Runde , Ajit Alapati , Nicolas G. Bazan medRxiv 2024.01.14.24301297; doi: https://doi.org/10.1101/2024.01.14.24301297 Share This Article: Copy Citation Tools The Optimization of a Natural Language Processing Approach for the Automatic Detection of Alzheimer’s Disease Using GPT Embeddings Benjamin S. Runde , Ajit Alapati , Nicolas G. Bazan medRxiv 2024.01.14.24301297; doi: https://doi.org/10.1101/2024.01.14.24301297 Citation Manager Formats BibTeX Bookends EasyBib EndNote (tagged) EndNote 8 (xml) Medlars Mendeley Papers RefWorks Tagged Ref Manager RIS Zotero Tweet Widget Facebook Like Google Plus One Subject Area Neurology Subject Areas All Articles Addiction Medicine (573) Allergy and Immunology (865) Anesthesia (302) Cardiovascular Medicine (4453) Dentistry and Oral Medicine (444) Dermatology (383) Emergency Medicine (609) Endocrinology (including Diabetes Mellitus and Metabolic Disease) (1515) Epidemiology (15242) Forensic Medicine (30) Gastroenterology (1131) Genetic and Genomic Medicine (6615) Geriatric Medicine (669) Health Economics (1001) Health Informatics (4552) Health Policy (1372) Health Systems and Quality Improvement (1614) Hematology (543) HIV/AIDS (1270) Infectious Diseases (except HIV/AIDS) (15929) Intensive Care and Critical Care Medicine (1106) Medical Education (624) Medical Ethics (147) Nephrology (670) Neurology (6625) Nursing (346) Nutrition (999) Obstetrics and Gynecology (1148) Occupational and Environmental Health (957) Oncology (3344) Ophthalmology (979) Orthopedics (369) Otolaryngology (421) Pain Medicine (436) Palliative Medicine (130) Pathology (665) Pediatrics (1696) Pharmacology and Therapeutics (693) Primary Care Research (714) Psychiatry and Clinical Psychology (5461) Public and Global Health (9252) Radiology and Imaging (2207) Rehabilitation Medicine and Physical Therapy (1371) Respiratory Medicine (1197) Rheumatology (597) Sexual and Reproductive Health (715) Sports Medicine (530) Surgery (714) Toxicology (99) Transplantation (289) Urology (265) (function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'a02dbb00885bad07',t:'MTc3OTk3NjI0OA=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();
Text is read by the "Ask this paper" AI Q&A widget below.
Extraction quality varies by source — PMC NXML preserves structure
cleanly, OA-HTML may include some navigation residue, and OA-PDF can
have broken hyphenation. The publisher copy
(via DOI)
is the canonical version.