Skip to main content

Data Physics Framework for Physical Systems

Project description

like this...

QSignature Logo

QSignature

Data Physics Framework.

DOI PyPI version Documentation Status


📖 Overview

QSignature is a Data Physics framework that extracts physical signatures from causal response data (R(t)) — without any formal assumption or imporsing constraints. It transforms raw response data into diagnostic fingerprints that reveal the underlying physical regime, memory structure, and dynamical properties.

Key Capabilities:

  • Model-Free — No assumptions about system order, linearity, or excitation
  • Data-Driven — Extracts Physics directly from response data R(t)
  • Universal — Works for any causal response signal
  • Interpretable — Every output has a clear physical meaning

🚀 Quick Start

import numpy as np
from QSignature import compute_all, QPDF, QSpace, QSynthetic

# Generate synthetic data
t = np.linspace(0, 10, 1000)
R = QSynthetic.physical.exponential_step(t, tau=2.0, R_inf=1.0)

# Core analysis — timescales and ratios
results = compute_all(t, R)
print(f"τ_s = {results['tau_s']:.4f}")
print(f"τ_u = {results['tau_u']:.4f}")
print(f"Δ_su = {results['Delta_su']:.4f}")
print(f"ρ₂₃ = {results['rho_23']:.4f}")

# Full signature with PDF analysis
results = compute_all(t, R, return_pdf=True)
print(f"PDF Shape: {results['pdf_shape']}")
print(f"Entropy: {results['entropy']:.4f}")
print(f"Time Signature: {results['time_signature']['signature']}")

📦 Installation

pip install QSignature

For development installation:

git clone https://github.com/1030ahmad1030/QSignature.git
cd QSignature
pip install -e .

🧩 Modules

Module Description
QSignature Core 8 timescale estimators, 3 higher moments, 18 diagnostic ratios
QPDF Probability Density Function analysis (entropy, peaks, confidence)
QSpace Universal landscape mapping and system classification
QSynthetic Synthetic data generation from canonical systems

📊 Core Estimators

Timescales (8)

Estimator Definition Meaning
τ_s Signed centroid (fallback) Step-response specific
τ_s2 Signed centroid (pure) Response-agnostic
τ_s3 Signed centroid (hybrid) Best for oscillatory systems
τ_u Unsigned centroid Always positive, robust
τ_2 Step-response Lag area
τ_3 Autocorrelation Memory horizon
τ_pole Spectral pole Frequency domain
τ_g Generalized persistence State-based persistence

Higher Moments (3)

Moment Meaning
τ_u2 Variance (spread)
τ_u3 Skewness (asymmetry)
τ_u4 Kurtosis (tailedness)

Diagnostic Ratios (18)

Category Ratios
Oscillation & Direction Δ_su, Δ_su2, Δ_su3, R_su, R_su2, R_su3
Memory Type ρ₁₃, ρ₁₃_s2, ρ₁₃_s3, ρᵤ₃, ρ₂₃
Step Consistency ρ₁₂, ρ₁₂_s2, ρ₁₂_s3
Shape Diagnostics κ_u, γ_u, β_u
Shape vs Memory ρᵤ₂,₃, ρᵤ₃,₃, ρᵤ₄,₃

📈 Full Signature (64 Features)

# Get everything — QSignature + QPDF + Time Signature
results = compute_all(t, R, return_pdf=True)

# Access all features
print(f"τ_s = {results['tau_s']:.4f}")
print(f"Δ_su = {results['Delta_su']:.4f}")
print(f"PDF Shape: {results['pdf_shape']}")
print(f"Entropy: {results['entropy']:.4f}")
print(f"Peaks: {results['n_peaks']}")
print(f"Time Signature: {results['time_signature']['signature']}")

📚 Documentation

Papers


🛠️ Requirements

  • Python >= 3.9
  • numpy >= 1.21.0
  • scipy >= 1.7.0
  • pandas >= 1.3.0
  • matplotlib >= 3.4.0
  • scikit-learn >= 1.0.0

👥 Contributors

The QSignature framework was developed by:

Name Role Affiliation
Ahmad Muhammad Lead Developer Data Physics Research Group
Salim Jibrin Danbatta Software Engineering Uskudar University
Muhammad Abubakar Isah Mathematics Istanbul Ticaret Universitesi
Ibrahim Yahaya Muhammad Theoretical & Computational Physics KMUTT
Sulaiman Sulaiman Ahmad Electrical Engineering KFUPM
Abdelrahman Ghozlan Physics and Materials Sciences Qatar University
Ahmet Sait ALALI Department of Physics Istanbul Technical University, Istanbul, Turkiye
Faiz Ahmed Mohammed Elfaki Mathematics and Statistics Qatar University
Asmau Abdullahi Physics and Materials Sciences Qatar University
Aisha Farida Ahmed Computer Science Kano State Polytechnic, Nigeria
Abdulsalam Ahmed Kawu Department of Physics Federal University Kashere, Gombe, Nigeria
DeepSeek AI Technical Guidance, Code Review & Documentation DeepSeek AI

📄 License

MIT License — see LICENSE.txt for details.


📝 Citation

If you use QSignature in your research, please cite:

@inproceedings{qsignature2026_isdfs,
  title={QSignature 1.0: A Dynamical Regime Classification Framework for Causal Time Series Data},
  author={Muhammad, Ahmad and Danbatta, Salim Jibrin and Isah, Muhammad Abubakar and others},
  booktitle={IEEE ISDFS 2026},
  year={2026}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qsignature-1.0.5.tar.gz (648.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qsignature-1.0.5-py3-none-any.whl (648.1 kB view details)

Uploaded Python 3

File details

Details for the file qsignature-1.0.5.tar.gz.

File metadata

  • Download URL: qsignature-1.0.5.tar.gz
  • Upload date:
  • Size: 648.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for qsignature-1.0.5.tar.gz
Algorithm Hash digest
SHA256 04f5df5ccd554a3b1b289c54e8aafe6f3a4d7a428b1082c263b1550fa9de974d
MD5 21ca94ce52eb0e007432490b293b09a4
BLAKE2b-256 93ed5619dbf294eb7eff358b22cbccf162f58f070ee656f9b046ec21926d6dcf

See more details on using hashes here.

File details

Details for the file qsignature-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: qsignature-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 648.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for qsignature-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3ab194bf026baf14f12d8a3681899b9bf05f177ce07d9f597ece191b2d12bc92
MD5 342d9f973859534f2665309ae39cc28f
BLAKE2b-256 aa0566130e99b569eaa339d5fadaf7e62b04bc56d4ad3b135475c8442d952939

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page