Giter Site home page Giter Site logo

xemin0 / readingembedding Goto Github PK

View Code? Open in Web Editor NEW
37.0 1.0 5.0 1.25 MB

Implementation of "From Word Embedding to Reading Embedding Using Large Language Model, EEG and Eye-tracking"

Home Page: https://arxiv.org/pdf/2401.15681.pdf

Python 5.62% Jupyter Notebook 94.31% Shell 0.07%
brain-computer-interface deep-learning torch

readingembedding's Introduction

ReadingEmebdding - Implementation

From Word Embedding to Reading Embedding Using Large Language Model, EEG and Eye-tracking

Accepted to IEEE-EMBC 2024

Paper : https://arxiv.org/pdf/2401.15681.pdf

The Overall Workflow

Abstract: Reading comprehension, a fundamental cognitive ability essential for knowledge acquisition, is a complex skill, with a notable number of learners lacking proficiency in this domain.

This study introduces innovative tasks for Brain-Computer Interface (BCI), predicting the relevance of words or tokens read by individuals to the target inference words. We use state-of-the-art Large Language Models (LLMs) to guide a new reading embedding representation in training that integrates EEG and eye-tracking biomarkers through an attention-based encoder.

This study pioneers the integration of LLMs, EEG, and eye-tracking for predicting human reading comprehension at the word level.

Requirements

Implemented in Python3.10 with the following key packages:

pytorch = 2.0.1
scikit-learn = 2.1.2
numpy = 1.25.0
scipy = 1.10.1

# For plotting
matplotlib
seaborn

Datasets

Pre-processed from ZuCo 1.0: Google Drive Download and keep them in ./Datasets/

Usage (Will be updated with easier hyper-parameter settings)

  • trainREmodel.py to train the model on the datasets
  • CV_REmodel.py to perform K-fold cross validation on the datasets

Sample SLURM script provided in script_train.sh if needed to run on a cluster

  • TransformerClassifier_REmbedding.ipynb for an overview of code in an all-in-one style

Citation

Cite using the Bibtex citation below

@article{zhang2024word,
  title={From Word Embedding to Reading Embedding Using Large Language Model, EEG and Eye-tracking},
  author={Zhang, Yuhong and Yang, Shilai and Cauwenberghs, Gert and Jung, Tzyy-Ping},
  journal={arXiv preprint arXiv:2401.15681},
  year={2024}
}

readingembedding's People

Contributors

xemin0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.