This Python script provides a comprehensive tool for analyzing and visualizing the results of the NASA-TLX (Task Load Index) questionnaire. It's designed to measure the perceived workload of participants across different experimental conditions.
- Final TLX Score Calculation: Computes the final TLX score, with or without considering individual weights for each dimension.
- Interactive Graphical Visualization: Generates a variety of insightful and interactive charts:
- Average bars per dimension
- Boxplot per dimension
- Radar chart with a hexagonal grid (Spider Chart)
- Final TLX score per participant
For the script to work correctly, your .csv file must adhere to the following format.
| Participant | Condition | Mental | Physical | Temporal | Performance | Effort | Frustration | Mental_Weight | Physical_Weight | ... |
|---|---|---|---|---|---|---|---|---|---|---|
| P1 | A | 70 | 60 | 65 | 80 | 75 | 55 | 5 | 3 | ... |
| P2 | B | 50 | 40 | 60 | 70 | 60 | 45 | 4 | 2 | ... |
| ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
Important Notes:
- The columns
Participant,Condition,Mental,Physical,Temporal,Performance,Effort, andFrustrationare mandatory. - The
Weight_<Dimension>columns are optional. They are only used when the analysis is performed with weights. - Dimension scores must be on a scale of 0 to 100.
- Weights should be on a defined scale (e.g., 0 to 5) and represent the relative importance of each dimension for a participant.
Follow these steps to get started:
-
Install the necessary packages:
pip install pandas matplotlib seaborn numpy
-
Run the script:
python nasa_tlx_analyzer.py
-
Follow the interactive instructions in the terminal:
- Select the CSV file containing your data.
- Choose whether to use weights in your analysis.
- Select the specific graphs you wish to display.
- Dedicated Windows: Each graph is displayed in a separate window to prevent overlapping and allow for clear comparisons.
- Unified Color Palette: A consistent color scheme is used across all graphs for a cohesive look.
- Enhanced Titles: Graph titles are bold and feature an enlarged font for better readability.
- Hexagonal Radar Chart: The radar graph (Spider Chart) is rendered with a unique hexagonal grid for improved visual clarity.
The NASA Task Load Index is a widely used, subjective assessment tool developed by the NASA Ames Research Center. It measures a person's perceived workload based on six distinct dimensions:
- 🧠 Mental Demand: How much mental and perceptual activity was required?
- 💪 Physical Demand: How much physical activity was required?
- ⏳ Temporal Demand: How much time pressure did the participant feel?
- 🎯 Perceived Performance: How successful was the participant in accomplishing the goals?
- 🥵 Effort: How hard did the participant have to work (mentally and physically)?
- 😤 Frustration: How insecure, discouraged, or irritated versus secure and content did the participant feel?
This script automates the analysis of this data, making it easier to interpret and compare results between different conditions.