A web-based experiment for cognitive psychology research featuring N-back task and prospective memory cues.
This experiment presents participants with a series of images across three emotional categories (pleasant, neutral, unpleasant) and measures their performance on:
- An N-back task (identifying when images repeat)
- A prospective memory task (responding to special cue images)
- Node.js (v14 or newer)
- npm or yarn
- Clone this repository
git clone https://github.com/n4bi10p/cognitive-cue-carousel.git
cd cognitive-cue-carousel- Install dependencies
npm install
# or
yarn install- Start the development server
npm run dev
# or
yarn dev- Open your browser and navigate to
http://localhost:5173
Images are organized in the following directories:
public/images/
├── pleasant/ - Pleasant category images
├── neutral/ - Neutral category images
├── unpleasant/ - Unpleasant category images
└── pmcues/ - PM cue images
├── pleasantcues/ - Pleasant PM cues
├── neutralcues/ - Neutral PM cues
└── unpleasantcues/ - Unpleasant PM cues
-
Place your image files in the appropriate subdirectory following this naming convention:
- Pleasant images:
pleasant1.jpg,pleasant2.jpg, etc. - Neutral images:
neutral1.jpg,neutral2.jpg, etc. - Unpleasant images:
unpleasant1.jpg,unpleasant2.jpg, etc. - PM cues:
- Pleasant PM cues:
pleasantcue1.jpg,pleasantcue2.jpg, etc. - Neutral PM cues:
neutralcue1.jpg,neutralcue2.jpg, etc. - Unpleasant PM cues:
unpleasantcue1.jpg,unpleasantcue2.jpg, etc.
- Pleasant PM cues:
- Pleasant images:
-
The experiment will automatically use your images during trials
For image requirements and more details, see public/images/README.md.
To build the application for production:
npm run build
# or
yarn buildThe built files will be in the dist directory and can be deployed to any static hosting service.
This project is built with:
- React
- TypeScript
- Vite
- Tailwind CSS
- shadcn/ui
This project is licensed under the MIT License - see the LICENSE file for details.