


















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















































PsyArXiv Preprint
Alexander P. Christensen Department of Neurology University of Pennsylvania Philadelphia, PA, 19104 [email protected]
Yoed N. Kenett Faculty of Industrial Engineering & Management Technion Israel Institute of Technology Haifa, 3200003, Israel [email protected]
October 5, 2020
To date, the application of semantic network methodologies to study cognitive processes in psychological phenomena has been limited in scope. One barrier to broader application is the lack of resources for researchers unfamiliar with the approach. Another barrier, for both the unfamiliar and knowledgeable researcher, is the tedious and laborious preprocessing of semantic data. In this article, we aim to minimize these barriers by offering a comprehensive semantic network analysis pipeline (preprocessing, estimating, and analyzing networks), and an associated R tutorial that uses a suite of R packages to accommodate this pipeline. Two of these packages, SemNetDictionaries and SemNetCleaner , promote an efficient, reproducible, and transparent approach to preprocessing verbal fluency data. The third package, SemNeT , provides methods and measures for analyzing and statistically comparing semantic networks via a point-and-click graphical user interface. Using real-world data, we present a start- to-finish pipeline from raw data to semantic network analysis results. This article aims to provide resources for researchers, both the unfamiliar and knowledgeable, that reduce some of the barriers for conducting semantic network analysis.
K eywords semantic networks · verbal fluency · semantic memory · network science
In recent years, network science has become an increasingly popular approach to study psychological and cognitive constructs, such as psychopathology, language, memory, creativity, personality traits, and learning (Baronchelli, Ferrer-i-Cancho, Pastor-Satorras, Chater, & Christiansen, 2013; Borge-Holthoefer & Arenas, 2010; Borsboom & Cramer, 2013; Cramer et al., 2012; Fried & Cramer, 2017; Karuza, Thompson-Schill, & Bassett, 2016; Siew et al., 2019). Network science is based on mathematical graph theory, which provides quantitative methods to represent and investigate complex systems as networks (Baronchelli et al., 2013; Siew et al., 2019).
A network is comprised of nodes (circles) that represent the basic units of a system, and edges (lines) that represent the relations between the units. Network science methodologies provide a powerful quantitative approach for modeling cognitive structures such as semantic memory (i.e., memory of word meanings, categorizations of concepts and facts, and knowledge about the world; Jones, Willits, Dennis, & Jones, 2015; Steyvers & Tenenbaum, 2005) and mental lexicon (i.e., word meaning, pronunciation, and syntactic characteristics; Stella, Beckage, Brede, & De Domenico, 2018; Wulff et al., 2019; for a review, see Siew et al., 2019). In these semantic network models, nodes represent concepts in memory and edges represent the
similarity, co-occurrence, or strength of the associations between them (Collins & Loftus, 1975). The nodes of a semantic network depend on the task; for example, they can be category exemplars (verbal fluency), associations to cue words (free association), or cue words whose similarities are rated (similarity judgments; De Deyne, Kenett, Anaki, Faust, & Navarro, 2016; Siew et al., 2019). The present paper will focus exclusively on semantic networks estimated from verbal fluency tasks. Despite the rise of network analysis in psychology and cognitive science, there are a couple barriers that stand in the way of psychologists applying network analysis to semantic data. One barrier is that there is a general lack of resources for how researchers can get started with conducting their own semantic network analysis (SemNA). Another barrier is that preprocessing semantic data (e.g., spell-checking, removing inappropriate responses, making exemplars homogeneous, formatting the data for SemNA) is tedious and time-consuming. The goal of this paper is to minimize these barriers by introducing a suite of three R packages— SemNetDictionaries , SemNetCleaner , and SemNeT —that are designed to facilitate a comprehensive pipeline for preprocessing, estimating, and analyzing semantic networks (Figure 1). While we focus only on semantic networks estimated from verbal fluency data (see below), our R packages are flexible and provide a generaliz- able approach for processing data from other types of tasks. This paper is organized by integrating a detailed discussion on each step of the SemNA pipeline with an associated R tutorial. Our tutorial demonstrates how these R packages can be integrated into a single seamless pipeline; however, we emphasize that the pipeline can be modular such that researchers can perform one step (e.g., preprocessing) following our tutorial but then export their data to other software to perform other steps (e.g., network estimation, statistical analyses). As a whole, the tutorial represents a start-to-finish pipeline of SemNA (i.e., from raw data to statistical analyses on networks).
water bear , moss piglets , and tardigrade into tardigrade ). After, networks are estimated from the preprocessed data using one of several network estimation approaches (Zemla & Austerweil, 2018). Finally, these estimated networks are statistically analyzed and compared using different statistical approaches (e.g., difference from random networks, bootstrap, random walks, spreading activation). Below, we discuss each step of the pipeline and provide associated R code. Our tutorial will follow the pipeline using a one specific network estimation method and a couple statistical approaches that are available in the SemNeT package.
We used R version 4.0.2 and RStudio version 1.3.1073 to complete the pipeline. There are several R packages that need to be installed to setup the pipeline, which require R version 3.6.0 or higher to be installed. The main packages are provided below (see SI 1 for R session information):
# Install packages install.packages ( c ("SemNetDictionaries", "SemNetCleaner", "SemNeT"), dependencies = c ("Imports", "Suggests"))
# Load packages library (SemNetDictionaries) library (SemNetCleaner) library (SemNeT)
Additional packages are also necessary for using the point-and-click graphical user interface used in this tutorial (see SI 2). Moreover, for Linux users, additional installations are required for setting up Shiny server, which is necessary for the point-and-click graphical user interface (see https://github.com/rstudio/shiny- server/wiki/Building-Shiny-Server-from-Source). The reader can also follow along with the tutorial using the supplemental tutorial R script, which contains all the code chunks in this tutorial (SI 3). An additional template R script is also provided for readers interested in using this tutorial on their own data (SI 4). Both the tutorial and template R scripts are available for download from the Open Science Framework (https://osf.io/hqxtc/).
The tutorial will walk through the SemNA pipeline and its accompanying R packages, providing a step-by-step analysis of a verbal fluency dataset from one of our previously published papers (Christensen et al., 2018b). In this paper, we examined a personality trait, openness to experience, and its relationship to semantic network structure. This dataset includes 516 participants who completed the animals verbal fluency task ( min.) and two measures of openness to experience (Big Five Aspects Scale; DeYoung, Quilty, & Peterson, 2007, and NEO–FFI–3; McCrae & Costa, 2007). The participants were evenly split into two groups based on low and high scores of openness to experience (both N ’s = 258). The raw verbal fluency data is stored in the SemNetCleaner package and can be accessed using the following R code:
# Raw verbal fluency data from ’SemNetCleaner’ data ("open.animals")
# Structure of the data head (open.animals)
The dataset is called open.animals, which is a data frame object that has 516 rows, corresponding to each participant and 38 columns corresponding to variables. The first column is the group membership variable that denotes which group each participant belongs ( 1 = low openness to experience and 2 = high openness to experience). The second column contains each participant’s openness to experience score. The third column is the participant’s unique identifier variable (ID). The rest of the columns (4–38) contain each participant’s responses or the animal names the participants typed. Demographic and procedure details can be found in Christensen et al. (2018b). This verbal fluency dataset will be used as our example for the tutorial.
Regardless of how verbal fluency data is acquired, whether experimenter recorded or participant typed, several coding errors are likely to exist and need to be resolved before subsequent processing. It’s necessary, for example, to determine whether responses are perseverations (given by a participant more than once),
intrusions (inappropriate exemplars for the category; e.g., animals category: tasselled wobbegong , eucalyptus platypus , sugar bear ; a shark, small tree, and fictional character, respectively), or monikers (e.g., colloquial names or common misspellings) of a category exemplar (e.g., water bear , moss piglet , tardigrade ). Other potential errors include spelling errors, compound responses (i.e., responses where a space is missing between responses; e.g., guineapig ), and continuous strings (i.e., multiple responses entered as a single response). After resolving these errors, the data still need to be processed into a format that can be used for the estimation of networks. In addition, commonly used behavioral measures such as perseverations and instrusions should be counted and extracted from the processed data.
These issues motivated the creation of two R packages called, SemNetDictionaries and SemNetCleaner. The main purpose of these two packages is to automate and streamline the preprocessing of verbal fluency data while also minimizing the potential for human error. The SemNetDictionaries package assists SemNetCleaner by housing exemplar dictionary and moniker glossaries for verbal fluency categories. The SemNetCleaner package is the main package that focuses on the preprocessing of semantic data. We first introduce the SemNetDictionaries package because it has several functions that are integrated into the SemNetCleaner package.
1.1. SemNetDictionaries Package
The SemNetDictionaries package contains several functions that facilitate the management and loading of dictionaries into SemNetCleaner. These dictionaries are used to spell-check and auto-correct the raw verbal fluency data in the preprocessing stage. In addition, this package includes a function that allows the user to create their own custom dictionaries, enabling them to save their own dictionaries for future use.
1.1.1. Predefined dictionaries
The predefined dictionaries contained in the package currently include verbal fluency categories of animals , fruits , vegetables , and jobs as well as synonym categories of hot and good (Table 1). A general dictionary also accommodates phonological fluency tasks with the use of single letters (e.g., words that start with ‘f’) as well as the potential for more general text cleaning needs such as free association tasks (e.g., Nelson, McEvoy, & Schreiber, 2004) that are common in the semantic network literature. For each category and synonym dictionary, there is an accompanying moniker glossary that is used to automatically convert monikers (e.g., bear cat ) and common misspellings (e.g., binterong ) into a homogeneous response (e.g., binturong ). These categories were included because the authors had data for them; however, we note that there are other possible verbal fluency categories.
Table 1: Dictionaries in SemNetDictionaries
Dictionary Entries Type
animals 1,210 Category fruits 488 Category general 370,103 All-purpose good 284 Synonym hot 281 Synonym jobs 1,471 Category vegetables 284 Category
The development of these category and synonym dictionaries included searching Google for lists of category exemplars and Thesaurus.com for synonyms. Their development was also aided by responses from several hundred participants, who generated verbal fluency responses for some of these categories (Christensen et al., 2018b) as well as responses from other published (Zemla & Austerweil, 2018) and unpublished data. Finally, the general dictionary was added for phonological fluency tasks and general spell-checking purposes (e.g., free association tasks). This dictionary was retrieved from the dwyl Github repository for English words:
1.2. SemNetCleaner Package
The SemNetCleaner package houses several functions for the preprocessing of semantic data. The purpose of this package is to facilitate efficient and reproducible preprocessing of semantic data. Notably, other R packages perform similar functions (e.g., spell-checking, text mining) such as hunspell (Ooms, 2018), qdap (Rinker, 2020), and tm (Feinerer, Hornik, & Meyer, 2008). However, the SemNetCleaner package sets itself apart from these other packages by focusing specifically on commonly used tasks for SemNA (e.g., verbal fluency), which facilitates automated preprocessing.
The SemNetCleaner package applies several steps to preprocess raw verbal fluency data so that it is ready to be used for estimating semantic networks. These steps include spell-checking, verifying the accuracy of the spell-check, homogenizing responses, and obtaining a cleaned response matrix for network estimation. To initialize this process, the following code must be run:
# Run ’textcleaner’ clean <- textcleaner (data = open.animals[, -c (1 : 2)], miss = 99, partBY = "row", dictionary = "animals")
In the above code, we are removing the first two columns (group and score variable): [,-c(1,2)] because they are not relevant for our analysis. The only variables that should be entered into textcleaner are an optional column for participant’s IDs and their respective verbal fluency data. textcleaner is the main function that handles the data preprocessing in SemNetCleaner (for argument descriptions, see Table 2). For input into data, it’s strongly recommended that the user input the full verbal fluency dataset and not data already separated into groups. If verbal fluency responses are already separated, then they will need to be inputted and preprocessed separately. Therefore, it’s preferable to separate the preprocessed data into groups at a later stage of the SemNA pipeline.
Table 2: textcleaner Arguments
Argument Description
data A matrix or data frame object that contains the participants’ IDs and semantic data miss A number or character that corresponds to the symbol used for missing data. The default is set to 99 partBY Specifies whether participants are across the rows ("row") or down the columns ("col") dictionary Specifies which dictionaries from SemNetDictionaries should be used (more than one is possible). If no dictionary is chosen, then the "general" dictionary is used add.path The path to a directory where the user’s saved dictionaries are stored. Allows for an expedited search for user created dictionaries. Defaults to NULL continue A list object from a previous session of textcleaner. Allows progress to be continued after encountering an error or stopping the preprocessing step. Defaults to NULL
Two arguments in the textcleaner function pertain to importing custom dictionaries created using the append.dictionary function in SemNetDictionaries. The dictionary argument allows the user to type the name of one or more dictionaries to be used for spell-checking including the names of dictionaries the user has created. Dictionary names entered into the dictionary argument that are in the SemNetDictionaries package will be found immediately while dictionaries that were created using the append.dictionary function are searched for on the user’s computer. This search finds any files with the *.dictionary suffix in R’s environment, temporary files, and current working directory as well as the user’s desktop and downloads folders. Users can also specify a path to a directory where dictionaries are saved using the add.path argument.
This latter argument is most useful when storing custom dictionaries in a single directory. Users can use add.path = "choose" to open an interactive directory explorer to navigate to a folder where there are saved dictionaries.
1.2.1. Spell-check
By running the above code, textcleaner will start preprocessing the data immediately. The first step of textcleaner is to automatically spell-check and attempt to correct all responses. The processes of the automated spell-check are printed to the user (Figure 2). textcleaner first attempts to detect whether there is a unique identifier variable (ID) that was included in the data. The first message to print in Figure 2, IDs refer to variable: 'ID', tells the user what variable the IDs in the output will refer to. In our example data, there was a variable named ID. If an ID variable is not provided, then the IDs in the output will refer to the row numbers (and the message will notify the user that this is the case).
Figure 2: Automated spell-check and correction processes in textcleaner
The next five messages inform the user about the automated spell-checking processes. The first process separates the correctly spelled responses that were identified in the dictionary from responses not found in the dictionary. The second process checks for responses that are correctly spelled but are plural forms (e.g., cats ) and converts them to their singular forms (e.g., cat ). The third process checks for common misspellings and monikers and converts them into homogeneous responses. The fourth process attempts to automatically correct each remaining response (270 responses in our example) by individually evaluating the similarity between each response and responses in the dictionary using two edit distances (or measures of (dis)similarity): Damerau-Levenshtein distance (DL) (Damerau, 1964; Levenshtein, 1966) and QWERTY distance. Finally, the fifth process attempts to parse responses that are more than one word (e.g., guinea pig ). This last process may also separate responses that were accidentally typed as a single response by the participant as we show next (Figure 3). By pressing ENTER, the user can proceed to the manual spell-check where responses that were not able to be automatically corrected are checked by the user (in our example, only 38 need to be checked). The manual spell-check begins with more complicated cases first: responses where participants did not separate their responses—that is, when participants were typing their responses and did not hit a key (e.g., ENTER) to separate their responses, producing a string of multiple responses as if it were one response. After these so-called “continuous string” responses are handled, then individual responses are checked. The manual spell-check uses an interactive menu where the user has complete control over how to correct responses. The first example of this menu is shown in Figure 3.
At first, the interface may be overwhelming; however, breaking down the menu will make clear that every option has its purpose and that the user is in total control over their spelling corrections. Moreover, detailed help can be provided at any time by pressing H. Starting from the top, Original response refers to the response that the participant provided. In the example, the participant did not separate their responses by pressing ENTER when typing during the task and therefore the response appears as a string of all of their responses (Figure 3). Auto-corrected response shows the participant’s original response after it’s been passed through the automated spell-checking process. Two things are worth noting in our example: (1) all the responses were correctly separated into individual responses and (2) squiral and giraff were automatically corrected to squirrel and giraffe , respectively.
Response to manually spell-check displays the target response that needs to be manually spell-checked. Note that this response is highlighted to draw attention to what textcleaner needs the user to manually check.
Word options are options that change only the target response (i.e., catdog in our example). SKIP WORD will keep the target response “as is” and move on to the next response, ADD WORD TO DICTIONARY will keep the target response “as is” and add it to a dictionary that can later be saved, TYPE MY OWN WORD allows the user to type their own spelling correction, GOOGLE WORD will open the user’s default internet browser and “Google” the word, and BAD WORD will mark the target response as an inappropriate response.
In contrast, String options are options that change the entire auto-corrected string (i.e., auto-corrected response). KEEP ORIGINAL and KEEP AUTO-CORRECT will change the response back the original response or keep the auto-corrected response “as is” (respectively), TYPE MY OWN STRING allows the user to type response(s) that will replace the entire string (rather than just catdog ), GOOGLE STRING will “Google” the entire string, and BAD STRING will mark all responses as inappropriate responses.
Next, Response options are ten responses from the dictionary that were most similarly spelled (based on DL distance) and operate as spell correction suggestions. Below these options are additional features that allow the user to “go back” to the previous response by pressing B, get detailed help for the response options that we just described by pressing H, and saving the user’s progress and exiting the function by pressing X.
In Figure 3, we’ve gone ahead and made a selection from these options where we decided to type our own response to correct the target response. In this response, the participant did not hit the SPACE key to separate cat and dog. Multiple words can be entered when typing your own response by using a comma to separate responses. After entering our correction, a message appears to let us know how the response was changed: 'cat' 'dog'.
Finally, it’s important to reiterate that the interface depicted in Figure 3 represents the most complicated case: a response where the participant did not enter their responses separately. In most cases, the target response will not be a string of responses but rather a single response. In these cases, the interface will display the target response (i.e., Response to manually spell-check), Word options, and Response options only. The reader is encouraged to progress through the manual spell-check on their own. We have provided a list of our spell correction changes in our Supplementary Information (SI 5), so that the reader can reproduce the decisions that we’ve made.
As a final step of the spell-check process, the user will be provided with instructions to verify the automated spell-check. Verification takes place in an Excel-like spreadsheet in a window that opens up after the instructions. At the end of the textcleaner process, a message will print letting the user know what output they can obtain to submit their dictionary (if you saved one) and moniker glossaries to our GitHub page: https://github.com/AlexChristensen/SemNetDictionaries/issues/new/choose.
1.2.2. textcleaner Output
With the preprocessing step complete, there are several output objects of interest for basic verbal fluency analyses and the next step of network estimation (see Table 3). These objects are stored in a list object, which we designated in our example as clean.
Table 3: textcleaner Output Objects
Object Nested Object Description
original
Original response matrix where uppercase letters were made to lowercase and white spaces before and after responses were removed
responses clean^
Spell-corrected response matrix where the ordering of the original responses are preserved. Inappropriate and duplicate responses have been removed
binary
Binary response matrix where rows are participants and columns are responses. 1’s are responses given by a participant and 0’s are responses not given by a participant
correspondence
A matrix of all unique original responses provided by the partici- pants ("from" column) and what these responses were changed to in the textcleaner process ("to" columns)
automated
A matrix of only the unique original responses provided by partic- ipants ("from" column) that were changed ("to" columns) during the automated spell-check processes
manual A matrix of only the unique original responses provided by partici- pants ("from" column) that were changed ("to" column) during the manual spell-check process
spellcheck
verified A list of changes during the verification process
behavioral — A data frame containing the number of perseverations, intrusions, and appropriate responses for each participant
These objects can be accessed using a dollar sign (e.g., clean$responses) and nested objects can be accessed within their parent object (e.g., clean$responses$original). For basic verbal fluency analyses, the object clean$behavioral contains a data frame with common behavioral measures of verbal fluency: perseverations (number of repeated responses), intrusions (number of inappropriate category exemplars), and appropriate responses. For network estimation, the objects clean$responses$clean and clean$responses$binary are of interest. The former is the cleaned verbal fluency responses in the order they were typed by the participant whereas the latter is a binary response matrix where participants are the rows and responses are the columns with 1’s corresponding to responses a participant provided and 0’s to responses they did not.
1.3. Exporting Data
Before exporting these matrices, it’s necessary to separate our data into groups. To so, we’ll first access the grouping variable in the original dataset but also change the values to better reflect what the group values represent (i.e., 1 = low openness to experience and 2 = high openness to experience):
# Accessing and changing ’Group’ variable group <- ifelse (open.animals $ Group == 1, "Low", "High")
# Separate group data low <- clean $ responses $ clean[ which (group == "Low"),] high <- clean $ responses $ clean[ which (group == "High"),]
To export these matrices and data frames so that they can be used in other software, the write.csv function can be used by specifying the object and path with a file name:
# Save cleaned responses write.csv (low, file = "low_cleaned_responses.csv", row.names = TRUE) write.csv (high, file = "high_cleaned_responses.csv", row.names = TRUE)
Figure 4: SemNeT Shiny application graphical user interface.
After the data are loaded, a new tab called “Network Estimation” will open (Figure 5), which we turn to next.
2.2. Network Estimation Methods
There are four network estimation methods currently available in SemNeT : Community Network (Goñi et al., 2011), Naïve Random Walk (Lerner, Ogrocki, & Thomas, 2009), Pathfinder (Paulsen et al., 1996; Quirin, Cordón, Guerrero-Bote, Vargas-Quesada, & Moya-Anegón, 2008; Schvaneveldt, 1990), and Correlation-based networks (Kenett et al., 2013). We provide brief descriptions of each of these approaches here along with the parameters that can be manipulated in the Shiny application and SemNeT package (for more detailed descriptions of these methods, see Zemla & Austerweil, 2018).
2.2.1. Community Network
The Community Network method estimates a semantic network using a co-occurrence matrix where two responses (e.g., cat and dog ) have occurred within some window or distance from each word (Goñi et al., 2011). The size of the window is a parameter that can be manipulated and defaults to 2 in SemNeT. To provide an example, we consider the response pattern: cat , fish , dog , aardvark , hippopotamus , and tardigrade. The distance between dog and cat would be two, which would be within the window size of 2 and counted as a co-occurrence. The distance between dog and tardigrade , however, is three and therefore would not be counted as co-occurring.
The co-occurrence counts are then used to infer whether they are likely to occur by random chance using confidence intervals from a binomial distribution. These confidence intervals are a second parameter that can be adjusted using a significance level, which defaults to .05 (or a 95% confidence interval). Goñi et al. (2011) also implemented a clustering approach to “enrich” the network by connecting all nodes that are in the same cluster. This network enrichment has been implemented in SemNeT as a parameter that can be changed via a drop-down menu. The drop-down menu includes FALSE and TRUE for whether the network should be enriched; the default is to not enrich the network (FALSE). The Community Network method has demonstrated validity by finding differences in the semantic structure of multiple sclerosis patients (Abad et al., 2015) as well as the lexicon of younger and older adults (Wulff, Hills, & Mata, 2018). Moreover, Goñi and colleagues (2011) have demonstrated that the community structure (i.e., clusters of animal verbal fluency responses) largely correspond with human rated animal similarity.
2.2.2. Naïve Random Walk
The Naïve Random Walk (Lerner et al., 2009) method estimates a semantic network based on the assumption that the data are generated from an uncensored random walk or a stochastic process of taking “steps” from one node in the network to another. This process summarizes to estimating an edge between each adjacent pair of responses in the fluency response matrix. Thus, the Naïve Random Walk method operates with the assumption that adjacent responses are more likely to be related to one another. A common implementation (as it is in SemNeT ) is to count the co-occurrences of adjacent pairs across the fluency response matrix and then apply a threshold so that only adjacent pairs that co-occur at least as many times as the threshold are estimated to have an edge in the network. This threshold is the only parameter in the SemNeT package’s implementation of the Naïve Random Walk method and it defaults to 3. The Naïve Random Walk has demonstrated validity by finding exponential growth in the evolution of verbal fluency networks (Shreestha et al., 2015) as well as differences in semantic structure of people with mild cognitive impairments (Lerner et al., 2009).
2.2.3. Pathfinder Network
The Pathfinder Network method, as implemented in SemNeT estimates a semantic network using a proximity measure (e.g., Chebyshev distance) between every pair of responses in the binary response matrix (Paulsen et al., 1996). The method starts by computing the proximity matrix and retains only the path with the shortest distance between every pair of nodes. Following Zemla and colleagues’ (2018) implementation, we estimate the Pathfinder Network using the union of all minimum spanning trees or a set of edges that links all nodes in the network that minimizes the total distance of all edges in the network (Quirin et al., 2008). The Pathfinder Network does not have any parameters to manipulate in SemNeT. The Pathfinder Network method has demonstrated validity in a number of studies focused on schizophrenia impairment (Paulsen et al., 1996) as well as Alzheimer’s disease (Chan et al., 1995). The Pathfinder Network has also often been used
Based on their results, they recommended the Community Network method for groups where the network may not be fully connected and the goal is to minimize non-edge (absent edge) similarities; the Pathfinder Network method was recommended for groups where the network is fully connected and the goal is to maximize edge similarities whereas the Naïve Random Walk method was recommended when the goal is to minimize non-edge similarities. Finally, two methods that are not available in SemNeT but are available in SNAFU (Zemla et al., 2020), U-INVITE and Hierarchical U-INVITE, were recommended for groups when the network is fully connected and the goal is to minimize non-edge similarities and when the network may not be fully connecting and the goal is to maximize edge similarity, respectively. Correlation-based methods were not recommended for any of these conditions.
This systematic comparison is an important first step for evaluating these methods but more studies are needed. Comparisons of network estimation methods are beyond the scope of this paper, so we provide users flexibility in the estimation method they prefer. However, we provide three recommendations for future comparisons. First, verbal fluency data should be generated based on verbal fluency data. Although the USF network is a well-validated network that “accurately reflects mental associations between items in the network” (Zemla & Austerweil, 2018, p. 47), it would be surprising if the cognitive processes (e.g., strategic search, spreading activation) of free association norms were identical to the processes of verbal fluency. Some similar processes are likely to be present, but there are different task constraints and people are likely to use different strategies in their search processes (e.g., Unsworth, Spillers, & Brewer, 2011). Moreover, task features are likely to promote different semantic structures such as higher clustering and shorter paths lengths in verbal fluency networks. Second, the verbal fluency data were generated using a censored random walk, which may be a reasonable data generating mechanism, but it matches the way in which the U-INVITE method estimates networks. This potentially confounds the results to the extent in which the true data generating process matches the way the data is generated. Therefore, other data generating mechanisms should be used to test the generality of the approaches and how approaches are affected should the true data generating model not correspond to a censored random walk. Finally, the parameters of the network estimation methods should be varied to determine what parameters are most optimal for different conditions. It’s unclear, for example, if a window size of two for the Community Network method is optimal or whether thresholding co-occurrences of three in the Naive Random Walk method or two in the Correlation-based Network methods produce consistent results. Moreover, for Correlation-based Networks, what similarity measure works best and under what conditions? Evaluating the effects of these parameters can help researchers make more informed decisions about what method and parameters might work best with their data.
2.4. Estimating Networks in the SemNeT Shiny Application
In continuing with our tutorial, we implemented the TMFG method, which we implemented in our original published paper (Christensen et al., 2018b). For completeness, we estimated semantic networks from this data using the other estimation methods and achieved similar results (see SI 7 and 8). In Figure 5, we demonstrate how to implement the TMFG method in the Shiny application.
Figure 5: TMFG estimation method applied in Shiny application.
networks provided by the spreadr package (Spreading Activation Analyses; Siew, 2019).^2 For brevity, we discuss and perform a comparison against random networks and bootstrap network group comparisons (see Kenett & Austerweil, 2016 and Siew, 2019, for explanations on the Random Walk and Spreading Activation Analyses).
3.1. Global Network Measures
Returning to the global network measures computed in Figure 5, we begin with an explanation of these measures. Common SemNA metrics are global (or macroscopic) network measures. These measures focus on the structure of the entire network, emphasizing how the nodes are connected as a cohesive whole (Siew, 2019). In contrast, local (or microscopic) network measures focus on the role of individual nodes in the network (Bringmann et al., 2019). Below, we briefly define and describe a few global network measures—average shortest path length, clustering coefficient, and modularity—that are commonly used in SemNA. A more extensive review of these and other measures can be found in Siew (2019). A common network structure that tends to emerge across many different systems (including semantic memory) is a small-world structure (Watts & Strogatz, 1998). Small-world networks are characterized by having a moderate average shortest path length (ASPL) and large clustering coefficient (CC). The ASPL refers to the average shortest number of steps (i.e., edges) that is needed to get between any pair of nodes in the network. That is, it’s the average of the minimum number of steps from one node to all other nodes. In cognitive models, ASPL may affect the activation of associations between concepts (known as spreading activation ; Anderson, 1983; Siew, 2019) such that a lower ASPL would increase the likelihood of reaching a greater number associations. Several studies of creative ability and semantic networks have linked lower ASPL to greater creative ability (Benedek et al., 2017; Kenett et al., 2014; Kenett & Faust, 2019; but see, Lange et al., 2020). These studies have argued that the lower ASPL in the semantic network of people with higher creative ability (compared to less creative people) may have allowed them to reach more remote associations, which in turn could be combined into novel and useful associations (Kenett & Faust, 2019).
The CC refers to the extent that two neighbors of a node will be neighbors themselves, on average, in the network. A network with a higher CC, for example, suggests that nodes that are near-neighbors to each other tend to co-occur and be connected. Wulff et al. (2018) examined younger and older adults semantic networks that were estimated using verbal fluency data and found that the older adults had a smaller CC compared to the younger adults. This structure was interpreted as having a role in the cognitive slowing observed in older adults.
Finally, modularity measures how well a network compartmentalizes (or partitions) into sub-networks (i.e., smaller networks within the overall network; Fortunato, 2010; Newman, 2006). The maximum modularity coefficient (Q) estimates the extent to which the network has dense connections between nodes within a sub-network and sparse (or few) connections between nodes in different sub-networks. In this implementation, Q refers to the maximum modularity possible given all possible partition organizations. These partitions are estimated using the Louvain algorithm (Blondel, Guillaume, Lambiotte, & Lefebvre, 2008) in the igraph package. Larger Q values suggest that these sub-networks are more well-defined than lower Q values, suggesting that the network may be more readily segmented into different parts. A few studies have demonstrated the significance of modularity in cognitive networks (Kenett et al., 2016b; Siew, 2013). For example, Kenett et al. (2016b) found that people with high functioning autism (Asperger Syndrome) had a more modular semantic network relative to matched controls. They suggest that this “hyper” modularity might be related to rigidity of thought that often characterizes people with Asperger Syndrome.
3.2. Statistical Tests
In order to statistically test for differences in these measures across networks, other approaches must be used. Here, we present two procedures that are available in the SemNeT Shiny application that statistically test for differences between networks: comparisons against random networks and bootstrap network group comparisons (e.g., Kenett et al., 2013, 2016a).
(^2) We are grateful to Cynthia Siew for her approval to include the spreadr package in the Shiny application and we thank her for the helpful feedback on the implementation.
3.2.1. Random Network Analyses
Comparisons against random networks can be performed to determine whether the network measures observed in the groups are different from what would be expected from a random network with the same number of nodes and edges (Beckage, Smith, & Hills, 2011; Steyvers & Tenenbaum, 2005). Further, these random networks are generated such that their degree sequence or the number of connections to each node is preserved, maintaining the general structure of the network.
These random networks are generated using Viger and Latapy’s (2016) Markov Chain Monte Carlo (MCMC) algorithm on a random network with a specified degree sequence. Specifically, the approach starts with a random network with the same number of nodes and edges as the original network. The edges are than randomized using the MCMC algorithm to ensure that each node in the network preserves the number of connections it had in the original network. This approach is implemented using the igraph package’s sample_degseq function.
The test against random networks approach works as follows: (1) for each group’s network, generate X number of random networks (e.g., 1000), (2) then compute global network measures (i.e., ASPL, CC, and Q) for each group’s random networks, resulting in a sampling distribution of these measures, (3) finally, compute a p -value for the original group’s network measures based on the sampling distribution (e.g., normal) of the random network’s network measures (Kenett et al., 2013). To implement this procedure, the user should click on the “Random Analyses” tab (Figure 6).