Clinical Notes
A total of 13,466 patients, 87,806 encounters, and 12,137 clinical notes were yielded for patients who have a diagnosis of ADRD in the UCSF Electronic Health Records Clinical Notes Database. Upon filtering for negative descriptors, a total of 697 patients, 2189 encounters, 5278 notes and 6638 excerpts that contained a diagnosis of ADRD. Of the 6638 excerpts, 1730 were labeled as containing a negative descriptor. The results below are based on these 1730 excerpts.
Topic Modeling
LDA topic modeling revealed four topics, the minimum number of possible topics without overlap. Minimal overlap between topics helps ensure that each topic represents a distinct and interpretable theme. Based on the co-occurrence of words and manual investigation, topic 1 was identified as “Mood and emotional difficulty,” topic 2 as “Family concern,” topic 3 as “Caregiving difficulty,” and topic 4 as “Symptom management.” Figure 1 displays the intertopic distance map, a visualization of the topics, with the area of the topic circles proportional to the number of words that belong to each topic and the distance between the topics representing the degree of difference between each topic. As seen in Fig. 1 and Table 1, the large topic of sentence excerpts was topic 1 (n = 706), followed by topic 4 (n = 407), topic 2 (n = 349), and topic 3 (n = 268). Based on Fig. 1, topics 1 and 4 were closest in cluster compared to topics 2 and 3, indicating that 1 and 4 were more similar to each other than any of the other topics. The highest probability of co-occurring words that make up each LDA topic is shown in Table 1.
Proportion of excerpts for each topic is proportional to the size of the topic numbers. PC1 Principal Component 1. PC2 Principal Component 2.
Sentiment analysis
The overall sentiment scores and sentiment score for each topic are presented in Table 2. Overall, the VADER compound sentiment of discussions was -0.26, the negative sentiment was 66.42%, the positive was 21.33%, and the neutral was 12.25%. Figure 2 shows the proportion of sentiment by each topic.

Positive, neutral, and negative sentiment proportions for each topic.
Topic 1 was identified by the LDA topic modeling and was manually labeled as “Mood and emotional difficulty”. Topic 1 was the largest topic with 40.81% (n = 706) of the total excerpts that were labeled as having a negative descriptor towards the patient. In topic 1 the highest probability of co-occurring words that comprised this were the words pt (short for patient) (0.145), agitated (0.06), agitate (0.05), patient (0.05), and become (0.04). Its distance in relationship to topic 2 (Family concern), seen in Fig. 1, indicates a minimal degree of similarity based on the types of words they have in common. Comparatively, topic 3 (Caregiving difficulty) was slightly closer to topic 1. Topic 4 (Symptom management) was the closest to topic 1, indicating a higher degree of similarity. Table 2 shows the overall compound scores, and proportion of percent negative, positive and neutral for excerpts “0” and “1” Fig. 3, and for each topic. Compared to the other topics, topic 1 had the highest percentage of negative sentence excerpts at 69.97%. Neutral sentiment was 14.02%, and positive sentiment was 16.01%. The average compound score was -0.30 and this score falls within the negative compound score range of less than -0.05.

Study design and data sources.
Topic 2 was identified by LDA modeling and manually labeled as “Family concern”. This topic had the most overlap in terms of words in common with topic 3 and the least overlap with topic 1, as represented by Fig. 1. Topic 2 was the second smallest topic with 20.17% (n = 349) of the total excerpts that were labeled as having a negative effect towards the patient. The highest probability of co-occurring words most relevant to the topic was as follows: angry (0.15), get (0.06), compliant (0.05), daughter (0.05), and also (0.04). Topic 2 had the lowest percentage of positive sentence excerpts at 15.47%. Neutral sentiment was 16.33%, and negative sentiment was 68.20%. Topic 2 had the most negative overall compound of -0.32, falling within the negative compound score range of less than -0.05.
Topic 3 was identified by LDA modeling and manually labeled as “Caregiving difficulty”. Topic 3 was the smallest topic with 15.49% (n = 268) of the sentence excerpts that were labeled as having a negative affect towards patients falling in this topic. The highest probability of co-occurring words most relevant to the topic was as follows: time (0.08), adherent (0.07), normal (0.07), agitated (0.07), and exam (0.06). The words in topic 3 are most similar to topic 1, as shown in Fig. 1 intertopic distance map. Topic 3 had a compound sentiment of -0.27, with 66.04% negative sentence excerpts, 15.30% neutral sentence excerpts, and 18.66 positive sentence excerpts. The compound sentiment score of -0.27 is considered a negative compound score (score ≤ 0.05).
Topic 4 was identified by LDA modeling and manually labeled as “Symptom management.” Topic 4 was the second largest topic with 23.52% (n = 407) of the total excerpts that were labeled as having a negative effect towards the patient. This topic had the most overlap in terms of words in common with topic 1 and the least overlap with topic 3, as represented by Fig. 1. The highest probability of co-occurring words most relevant to the topic was as follows: aggressive (0.06), behavior (0.05), discuss (0.04), change (0.04), and today (0.04). Topic 4 had the least negative compound sentiment of -0.14, which still falls within the range to be considered a negative compound score (score ≤ 0.05). Topic 4 also had the greatest percentage of positive sentence excerpts at 37.35%, and the smallest percentage of negative sentence excerpts at 58.97%. Neutral sentiment was 3.87%.
Excerpt narratives
Examples of clinician note excerpts within each topic are shown in Table 3, as well as their compound score, positive, negative, and neutral scores. The asterisks “*****” represent de-identified protected health information that was removed during institutional de-identification of the clinical notes. LDA modeling categorized the following clinician note sample under topic 1, mood and emotional difficulty: “Caregiver reported he’s increasingly angry and ***** his face when frustrated.” The VADER compound sentiment of this sample was -0.77, the negative sentiment was 42.7%, the positive was 0%, and the neutral was 57.3%. The following clinical note fragment was included in topic 2, family concern: “*** was concerned about overuse of Lasix and the potential for AKI in the absence of lab monitoring (it was very challenging for his wife to get him to the lab).” The VADER compound sentiment of this sample was 0.22, the negative sentiment was 0%, the positive was 5.9%, and the neutral was 94.1%. Topic 3, caregiving difficulty, included the following clinical note sample: “He was more angry, irritable, and verbally aggressive with her at the time”. The VADER compound sentiment of this sample was -0.82, the negative sentiment was 46.2%, the positive was 0%, and the neutral was 53.8%. Topic 4, symptom management, included the following clinical note sample: “Most significantly, nighttime has become particularly challenging”. The VADER compound sentiment of this sample was 0.22, the negative sentiment was 0%, the positive was 24%, and the neutral was 76%.


