Skip to main content

HydroSovereign AI Engine (HSAE) — provenance-bound transboundary water analysis with honest, data-driven indices

Project description

HydroSovereign AI Engine (HSAE) — v6.0.2

Python License

A provenance-bound, data-driven rebuild of the HydroSovereign AI Engine for transboundary water analysis under the UN Watercourses Convention (1997).

This is a clean parallel edition (hydrosovereign-hsae) that runs alongside the legacy hydrosovereign package without replacing it.

What is different in this edition

This rebuild was undertaken to put every result on a defensible scientific footing:

  1. No fabricated numbers. Every index computes only from provenance-verified observations. When required observed data are absent, the engine returns INSUFFICIENT_DATA — it never substitutes a hard-coded constant.
  2. Indices match their definitions. HIFD takes independent Q_nat and Q_obs, so it cannot algebraically collapse to a constant. ATDI is the empirical mean of per-period TDI from observed inflow/outflow.
  3. Empirical vs. normative are separated. ATDI (empirical, hydrological) is distinct from AWGI (an explicit, normalised, sensitivity-tested governance composite). They are never conflated.
  4. The model is genuinely trained. TreatyClassifier is a real gradient-boosting model trained on the TFDD treaties database, with an honest model card (F1, ROC-AUC, cross-validation, baseline). It classifies a documented treaty property — not negotiation success/failure.

Install

pip install hydrosovereign-hsae

Quick start — data with provenance

from hydrosovereign_hsae import (
    DataPoint, DataQuality, DataRegistry, hifd_for_basin,
)

reg = DataRegistry()

# Anyone holding real, documented observations can contribute them.
reg.submit("GERD", DataPoint(
    value=1248.0, variable="Q_obs", unit="m3/s",
    source="GRDC station 1577100 (El Diem)",
    source_ref="https://grdc.bafg.de/  (request 78949)",
    date_start="2010-01-01", date_end="2020-12-31",
    quality=DataQuality.OBSERVED), contributor="Researcher A, ORCID ...")

# Without an independent, observed Q_nat this returns INSUFFICIENT_DATA —
# never a fabricated value.
result = hifd_for_basin(reg, "GERD")
print(result.status, result.value)

Data sources

  • TFDD International Freshwater Treaties Database (Oregon State University) — used to train the treaty-feature classifier.
  • GRDC observed discharge — for legally-relevant index computation (contributed through the open registry).

Honesty statement

Modest model skill and INSUFFICIENT_DATA results are reported as-is. The engine is designed so that an absence of data produces an explicit non-result rather than a misleading number.


hydrosovereign-hsae v6.7.3 · GPL-3.0 · Seifeldin M.G. Alkhedir · ORCID 0000-0003-0821-2991

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

hydrosovereign_hsae-6.7.3.tar.gz (63.6 kB view details)

Uploaded Source

Built Distribution

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

hydrosovereign_hsae-6.7.3-py3-none-any.whl (59.2 kB view details)

Uploaded Python 3

File details

Details for the file hydrosovereign_hsae-6.7.3.tar.gz.

File metadata

  • Download URL: hydrosovereign_hsae-6.7.3.tar.gz
  • Upload date:
  • Size: 63.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hydrosovereign_hsae-6.7.3.tar.gz
Algorithm Hash digest
SHA256 4cf539e31282e8db5cbd167e31603db1104a9274115217ecfa14c8a7cb9a173e
MD5 cb1645d2fbdbb54a996c131b7d0eb3fc
BLAKE2b-256 9ee14492b95ed326d3d1f2c318b9e64af090d7f38f166e527a210766d20e2acd

See more details on using hashes here.

Provenance

The following attestation bundles were made for hydrosovereign_hsae-6.7.3.tar.gz:

Publisher: release.yml on saifeldinkhedir-coder/HydroSovereign-AI-Engine-HSAE-v602

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hydrosovereign_hsae-6.7.3-py3-none-any.whl.

File metadata

File hashes

Hashes for hydrosovereign_hsae-6.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b2cf27c8536cb483869c96ba9d3f0c7092179b16a39027b10dc5d43e3e78dcc4
MD5 aa6e50cbe64e39cdef6e7c412f92c945
BLAKE2b-256 2fcdf51e162463eb2aa6043b0ae5f97d186d269bf6af4f12fb0091c051ce949b

See more details on using hashes here.

Provenance

The following attestation bundles were made for hydrosovereign_hsae-6.7.3-py3-none-any.whl:

Publisher: release.yml on saifeldinkhedir-coder/HydroSovereign-AI-Engine-HSAE-v602

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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