psifx - Psychological and Social Interactions Feature eXtraction
psifx is a "plug-and-play" multi-modal feature extraction toolkit, aiming to facilitate and democratize the use of state-of-the-art machine learning techniques for human sciences research.
It is motivated by a need
(a) to automate and standardize data annotation processes, otherwise involving expensive, lengthy, and inconsistent human labor, such as the transcription or coding of behavior changes from audio and video sources;
(b) to develop and distribute open-source community-driven psychology research software;
(c) to enable large-scale access and ease of use to non-expert users.
The framework contains an array of tools for tasks, such as speaker diarization, closed-caption transcription and translation from audio, as well as body, hand, and facial pose estimation and gaze tracking from video.
The package has been designed with a modular and task-oriented approach, enabling the community to add or update new tools easily.
We strongly hope that this package will provide psychologists a simple and practical solution for efficiently a range of audio, linguistic, and visual features from audio and video, thereby creating new opportunities for in-depth study of real-time behavioral phenomena.
https://github.com/user-attachments/assets/263affe8-f435-42ee-84c9-cabc1f19efde
This demo clip is not intended for commercial use, and is solely for demonstration in an academic or research context.
Documentation, Reference & Quickstart
Visit https://psifx.github.io/psifx/
arXiv preprint: https://www.arxiv.org/abs/2407.10266
SAM3 tracking quickstart
Install FFmpeg and create a Python environment:
sudo apt install ffmpeg ubuntu-restricted-extras
conda create -y -n psifx-env python=3.11 pip
conda activate psifx-env
git clone https://github.com/psifx/psifx.git
cd psifx
pip install '.[reid]'
For a published version, use pip install 'psifx[reid]'. The reid extra enables OSNet appearance
embeddings for identity correction; Docker images from 0.2.4 include it.
Request access to facebook/sam3 and create your own
Hugging Face read token with access to that model.
Supply it through the HF_TOKEN environment variable or --api_token. The CLI does not prompt
interactively or automatically read .env; Docker can load your own token file using --env-file .env.
If you already downloaded a complete model directory, use --model_path /path/to/sam3
or set SAM3_PATH. Downloading a local copy still requires the model's access approval.
psifx video tracking sam3 inference \
--video example/data/Video.mp4 \
--mask_dir example/data/masks \
--device cuda \
--chunk_size 64
psifx video tracking visualization \
--video example/data/Video.mp4 \
--masks example/data/masks_merged \
--visualization example/data/tracking_corrected.mp4
Use --device cpu if CUDA is unavailable. Tracking writes raw masks to masks, corrected masks to
masks_merged, and decisions to masks_merge_report.json. Correction is enabled by default; use
--no-id_correction to disable it. Review the overlays and report before using corrected identities:
adjacent people can be merged incorrectly, and border-touching or changing appearances can remain split.
OSNet downloads weights on first use; without the optional dependencies, correction falls back to color.
See the video guide, installation guide, and worked example for all options and downstream pose extraction.
Metadata
Release files for psifx 0.2.4
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 |
|---|---|---|---|---|
| psifx-0.2.4.tar.gz | 81.0 kB | With provenance | Details for psifx-0.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| psifx-0.2.4-py3-none-any.whl | Python 3 | none | any | Details for psifx-0.2.4-py3-none-any.whl |
Total release size: 192.1 kB
Release files / psifx-0.2.4.tar.gz
| Download URL | psifx-0.2.4.tar.gz |
|---|---|
| Size | 81.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d0ba84ec4533183ef1e9eba484126e94a875cb317cb755f09aaecc50bfec9d9
|
|
BLAKE2b-256 checksum How to use checksums |
78b6d8b917853b17aa4defb7fd91c8f720f1c09a3ec5aebcbf044282bb409966
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logRelease files / psifx-0.2.4-py3-none-any.whl
| Download URL | psifx-0.2.4-py3-none-any.whl |
|---|---|
| Size | 111.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
065fb0a9607ebff0acab9fc5eac84827c8bcbea2a77578a47d638b7504c2ba6e
|
|
BLAKE2b-256 checksum How to use checksums |
0726a7d91a7d34ee50b01346fab0c080fc8c29ad606874b516566ed4b8aefb01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logSecurity for psifx 0.2.4
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for psifx-0.2.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logA 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.