Component Type: Transform
Language: Python
The CreateSession component processes a merged DataShop-format log file and generates session-level summaries by identifying interaction sessions and bundling related events based on timing and similarity.
- Accepts input from a Join component (merged Interactions + Exercises in DataShop format).
- Splits activity into sessions using a 10-minute inactivity threshold.
- Within each session, events are bundled into groups based on:
- Same event type (e.g., same Step Name)
- Same Exercise Type (e.g., PE vs slideshow)
- Time proximity (within 60 seconds)
File Type: Tab-delimited .txt file (DataShop format)
Expected Columns:
Anon Student IdTime(timestamp)Step NameActionLevel(Book/module)CF (Exercise Type)CF (Short Name)
This file is typically the output of a Join operation.
File: sessions_custom.txt
Format: Tab-delimited summary file
| Column | Description |
|---|---|
| session | Session number for the student |
| Anon Student Id | Unique student identifier |
| Level (Book) | Book/module label |
| Event name | Normalized name of event type |
| Event Description | Description of the interaction |
| Start time | Start timestamp of the event bundle |
| End time | End timestamp of the event bundle |
| Action Time | Duration of the event group (in seconds) |
| CF (Short Name) | Exercise short name (content family) |
| Number of events | Count of bundled events in this group |
- The gap between consecutive events > 10 minutes
- Time gap from previous event > 60 seconds
- Event type changes (different Step Name or Action)
- Exercise Type switches (e.g., PE → slideshow)
- Malformed or incomplete lines are skipped
- Rows with missing timestamps are dropped
- If no input is provided in test mode, the component will try:
test/Import-1-x995490/output/joinedResult.txttest/data/joinedResult.txtjoinedResult.txtin the working directory
- Designed to work after merging Interactions and Exercises using the Join component.
- Ideal for producing session-level features for educational log analysis.