This release is a pre-release and may not be stable for production use.
BCI Flow
Bciflow is a Python package focused on Brain-Computer Interface (BCI)-related work. It provides tools for loading pre-established datasets, performing analysis, pre-processing, filtering, feature extraction, and classification, covering the entire process of creating BCI models. Installation
You can install bciflow directly from PyPI using pip:
pip install bciflow
Features
- Dataset Loading: Support for popular BCI datasets, such as BCI Competition datasets, OpenBMI, among others.
- Pre-processing: Filtering, artifact removal, normalization, and other data preparation techniques.
- Feature Extraction: Methods for extracting relevant features from EEG signals, such as frequency bands, CSP (Common Spatial Patterns), etc.
- Classification: Implementation of classification algorithms such as SVM, LDA, Neural Networks, among others.
- Complete Pipeline: Facilitates the creation of complete pipelines for processing and analyzing BCI data.
Loading a Dataset
The datasets must be loaded by the user, and the data path must be provided by the user in the path parameter. For example, to load the CBCIC dataset:
from bciflow.datasets import cbcic
# Load CBCIC dataset
data = cbcic(
subject=1, # Subject number
session_list=None, # List of sessions to load (default: all sessions)
labels=['left-hand', 'right-hand'], # Labels to include
path='data/cbcic/' # Path to the dataset files
)
Implemented Methods
| Method | Category | Implemented |
|---|---|---|
| Temporal Filtering | ||
| Bandpass Filtering | Temporal Filtering | Yes |
| Chebyshev II Filter | Pre-processing | Yes |
| Signal Convolution | Pre-processing | Yes |
| Empirical Mode Decomposition (EMD) | Temporal Filtering | Yes |
| Filter Bank (ChebyshevII) | Temporal Filtering | Yes |
| Filter Bank (Convolution) | Temporal Filtering | Yes |
| Cubic Resampling | Temporal Filtering | Yes |
| FFT-based Resampling | Temporal Filtering | Yes |
| Wavelet | Temporal Filtering | Yes |
| Short-Time Fourier Transform (STFT) | Temporal Filtering | No |
| Spatial Filtering | ||
| Common Spatial Patterns (CSP) | Spatial Filtering | Yes |
| Euclidean Alignment (EA) | Spatial Filtering | Yes |
| Feature Extraction | ||
| Average Power Spectral Density (APSD) | Feature Extraction | Yes |
| Curve Length | Feature Extraction | Yes |
| Log Power | Feature Extraction | Yes |
| Nonlinear Energy | Feature Extraction | Yes |
| Welch Periodogram | Feature Extraction | Yes |
| Canonical Correlation Analysis (CCA) | Feature Extraction | No |
| Logarithmic PSD (LPSD) | Feature Extraction | No |
| Feature Selection | ||
| Mutual Information Best Individual Features (MIBIF) | Feature Selection | Yes |
| Classification | ||
| Naive Bayes Parzen Window (NBPW) | Classification | Yes |
| Data Augmentation | ||
| EMD-based Augmentation (emdaug) | Data Augmentation | No |
| Gaussian Noise (gaussiannoise) | Data Augmentation | No |
| Time-frequency Gaussian Noise (tfgaussiannoise) | Data Augmentation | No |
| Time-frequency Recombination (tfrecombination) | Data Augmentation | No |
Metadata
Release files for bciflow 1.0.0.dev10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bciflow-1.0.0.dev10.tar.gz | 21.6 MB | Without provenance | Details for bciflow-1.0.0.dev10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bciflow-1.0.0.dev10-py3-none-any.whl | Python 3 | none | any | Details for bciflow-1.0.0.dev10-py3-none-any.whl |
Total release size: 21.7 MB
Release files / bciflow-1.0.0.dev10.tar.gz
| Download URL | bciflow-1.0.0.dev10.tar.gz |
|---|---|
| Size | 21.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2de2b5dc92de63887f7226ff897a7e0e5a0b5380522844ab7976e598257f70e3
|
|
BLAKE2b-256 checksum How to use checksums |
f601ed6168038dcd520c9f27244198e913f50dfc4821b6f3548edb4240de0090
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.2
|
Release files / bciflow-1.0.0.dev10-py3-none-any.whl
| Download URL | bciflow-1.0.0.dev10-py3-none-any.whl |
|---|---|
| Size | 41.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03d49977010c90620aec4a5f2d0dc8c029c492370793db640022da386c2f244c
|
|
BLAKE2b-256 checksum How to use checksums |
ea771871c227250c704ab37974ad99d85642775f5667ab0e02518518d983ae83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.2
|
Security for bciflow 1.0.0.dev10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.