This project analyzes semantic networks and exploration patterns using word embeddings and network analysis techniques. It provides tools for generating and analyzing semantic networks from participant word assosiation task responses, calculating various network metrics, and visualizing exploration patterns. It uses these results to show the relationship between various graph metrics to support discussion surrounding curiosity exploration styles in the semantic fluency and chain free association tasks.
This work is associate with the following paper: https://escholarship.org/uc/item/9ws069q4
Final Commit on 8/16/2025
- Semantic network generation from word embeddings
- Network metric calculations including:
- Average Degree
- Characteristic Path Length
- Clustering Coefficient
- Triangle Area
- Edge Weight Distribution -Busybody-Hunter Score -Forward Flow (Dancer Score)
- Analysis of exploration patterns (Hunter, Busybody, Dancer)
- Support for multiple datasets (SNAFU, FF, AMHR)
- Interactive visualizations using Plotly
The project requires Python 3.12 and the following key dependencies:
- gensim (4.3.3)
- networkx (3.4.2)
- numpy (1.26.4)
- pandas (2.2.3)
- plotly (6.1.1)
- scikit-learn (1.6.1)
- scipy (1.13.1)
- bctpy (0.6.1)
For a complete list of dependencies, see requirements.txt
.
- Clone the repository:
git clone [repository-url]
cd curiosity-exploration
- Install dependencies:
pip install -r requirements.txt
The main script siamese_generate_graphs.py
can be used to generate semantic networks:
python siamese_generate_graphs.py -v 3
The project includes two Jupyter notebooks for analysis:
siamese_coefficient_of_variation.ipynb
: Analysis of variation in network metricssiamese_euclidean_distances.ipynb
: Analysis of distances between network features
siamese_generate_graphs.py
: Main script for generating semantic networksgraph_similarity/
: Directory containing generated graph datalogs/
: Directory for log filesanalysis/
: Directory for analysis resultssources/
: Source data directory
- Stephen Steinle
- My Duong
- Rima El Brouzi
- Suraj Kumar
- Dr. John Licato