Published January 2, 2024 | Version v1

Spontaneous Thought Dynamics as a Signature of Positive and Negative Affectivity

  • 1. ROR icon Dartmouth College
  • 2. Institute for Basic Science Center for Neuroscience Imaging Research

Description

Data and scripts for Lux, Lee, Han, Lee, Gim, Choi, & Woo (2024)

Spontaneous Thought Dynamics as a Signature of Positive and Negative Affectivity

Byeol Kim Lux*, Eunjin Lee*, Jihoon Han, Sung-Ha Lee, Suhwan Gim, Incheol Choi, Choong-Wan Woo
*co-first authors.
§corresponding author: Choong-Wan Woo (choongwan.woo@gmail.com)
 
The provided scripts are written in Matlab and have been tested on Matlab version 2020b. 

Dependencies

Time

  • Expected install time is approximately 5 minutes.
  • Expected run time is around an hour in total.

 

Main scripts

The following are the major scripts that allow you to regenerate the results and figures of the manuscript. The order follows the results as they appeared in the manuscript. The data shared from previous works were cited in the manuscript.
  • `fastweb_fg2_DMPM_overview.mlx`
  • `fastweb_dmpm_1.m`
  • `fastweb_dmpm_2.m`
  • `fastweb_fg3_modelperformance_1.m`
  • `fastweb_fg3_modelperformance_2.m`
  • `fastweb_fg3_modelperformance_3.m`
  • `fastweb_fg4_DMPM_visualization.m`
  • `fastweb_fg5_inflammation.m`
To use these scripts, download and unzip the provided zipfile. Open the code in Matlab and set the current folder to the unzipped folder. Add the path to the current folder and its subfolders. The necessary data and functions to run the scripts has been saved in the folders. You can also find some interim results that are already included.
 

DMPM Modeling Workflow

The DMPM Modeling Workflow comprises a series of five scripts designed for constructing Density Map-based Predictive Models (DMPMs) to assess both positive affectivity (PA) and negative affectivity (NA). These scripts facilitate the evaluation of model performance across various test datasets. The DMPMs are initially trained using the Study 1 training dataset (N = 117) and subsequently fine-tuned, enabling their application to diverse datasets for predictive analysis.

Script Overview

Script 1: `fastweb_dmpm_1.m`
This script initiates the workflow, performing factor analysis to derive general positive and negative affectivity scores from self-report questionnaire responses. Additionally, it generates rating and vector density features across the valence-self-time axis using the Study 1 training dataset (N = 117). The script concludes with the selection of optimal model parameters, focusing on determining the appropriate number of principal components.
 
Script 2: `fastweb_dmpm_2.m`
The second script finalizes DMPM modeling parameters based on the results from the first script, `fastweb_dmpm_1.m`. It saves the final model and tests it on the Study 1 re-test dataset (Study 1 Session 2, N = 49).
 
Script 3: `fastweb_fg3_modelperformance_1.m`
This script evaluates the DMPMs' performance on both the training data (Study 1 training dataset) and re-test data (Session 2). It also generates relevant regression plots that contribute to Figure 3.
 
Script 4: `fastweb_fg3_modelperformance_2.m`
Building upon the foundation laid in the previous script, the fourth script continues the evaluation of DMPMs' performance, this time focusing on Study 2 data (N = 213) and creating corresponding plots (Figure 3).
 
Script 5: `fastweb_fg3_modelperformance_3.m`
The final script tests the DMPMs on Study 3 test data (N = 62) and generates the final set of plots for comprehensive model evaluation (Figure 3).
 
For additional details on each script's functionality, please refer to the respective script files. Collectively, these scripts present an extensive framework for the construction and assessment of Density Map-based Predictive Models.
 

Additional Scripts

`fastweb_fg2_DMPM_overview.mlx`:
This code generates the components required for Figure 2, providing an overview of the process for constructing input features for the DMPM.
`fastweb_fg4_DMPM_visualization.m`:
Focused on visualizing the DMPM model to interpret predictive weights. This script deals with creating bootstrap data for DMPM analysis, particularly for Figure 4. It involves data loading, bootstrapping, FDR correction, the creation of thresholded maps, unthresholded predictive weights, and the 3D cubic model visualization.
`fastweb_fg5_inflammation.m`:
This script explores results and figures pertaining to Inflammatory Marker Data (Figure 5 and Figure S8). It examines the Partial Correlation between Inflammatory Markers and General Affectivity scores from Dynamic Modeling Results.

 

Abstract

Spontaneous thought is a dynamic phenomenon that arises from continuous changes in an individual’s internal states. Their dynamic characteristics are likely to reflect individual differences and mental health variables, but few quantitative behavioral tasks and analysis methods are available to assess spontaneous thought dynamics. Here we conducted three studies (total n = 392) with a newly developed free association-based spontaneous thought sampling task. We derived predictive models of positive and negative affectivity based on the trial-by-trial response dynamics using a novel modeling approach named density map-based predictive modeling. Our models showed significant and robust prediction performances across multiple independent datasets. Furthermore, our model responses showed significant correlations with inflammatory marker response, suggesting that spontaneous thought dynamics have a meaningful impact on inflammatory physiology. Overall, this study suggests that spontaneous thought dynamics can serve as cognitive and affective signatures of individuals.

Files

README.md

Files (1.5 GB)

Name Size
md5:73fc6830202c53060ceade77caa83183
4.5 kB Download
md5:c536269eacad2335efb5a0937ccd5bea
2.6 MB Download
md5:fa769743b8982e92801017e47336b9c6
2.0 MB Download
md5:7fb9d9a4a83ab68bba647979493ae9c3
144.4 MB Download
md5:c822974ffa2f49b12be5291cd89bbb2a
245.0 MB Download
md5:28551842fd3d726a7ae6d5a34021216a
245.0 MB Download
md5:d1b950aa89f7762946934edd8316ab24
12.9 MB Download
md5:e51d7e759cb30856991e93be8f4777ad
239.0 kB Download
md5:3e498fa6e463b621860844c571ad77d4
261.9 kB Download
md5:5e49e7f9b98e1b0691875f7eecac84b5
101.2 kB Download
md5:65dcb35d70a4bda388aeecafdcbceb68
9.9 kB Download
md5:642340aae172eca1b517e85fe742f97b
113.7 MB Download
md5:7422fb3c1ccc5e117ed9e0d81839f840
146.0 MB Download
md5:a09cac685eda2560eb636143c6338add
299.1 MB Download
md5:529c785d93a1c9f1cc87ccc5e923561b
7.1 kB Download
md5:f9d0e9f53c38f845bc9d041b61a0a4e0
3.6 kB Download
md5:cb10b67d6df66466c557a2d1d80866c3
2.0 kB Download
md5:64e9f442405393423ae298beee37d27e
3.4 kB Download
md5:1475c4b0ad2ec7baa1c0d8772114421e
229.7 kB Download
md5:9f99b96f0706192b06c6cadd99da12ce
5.7 kB Download
md5:fb616f688e106fa3d4cc4b0cd7f36168
5.4 kB Download
md5:b20cb8009106299e6058a15381380c12
4.7 kB Download
md5:2cc2f75b912ba89826c7d4009f11ef27
10.2 kB Download
md5:a3e1a72d44cd016ae0131a02333d54e6
5.0 kB Download
md5:e1fa219ce69d7f827dd712bd3694ddf6
262.6 MB Download
md5:74b960914e69b65fe8b946a798665bcd
1.7 kB Download
md5:46e69dace39dc3870afdb1b2f5ff35cf
784 Bytes Download
md5:df9f5f820dde334ff734f9dc08974bd8
5.8 kB Preview Download