Skip to main content
Glama
Alpha-Park

stdt-temporal-discrimination

by Alpha-Park

Somatosensory Temporal Discrimination Threshold (STDT) Skill

License: MIT Python 3.10+ Zero Dependencies OpenClaw Ready MCP Protocol

A sovereign personal agent capability for computational somatosensory psychophysics, evaluating tactile temporal discrimination thresholds (STDT in ms), age-adjusted ratios, and cortical sensory gating.

Architecture

flowchart TD
    StaircaseData["Tactile Paired Pulses: Ascending & Descending Inter-Stimulus Intervals (ISI in ms)"] --> ThresholdEngine["Composite STDT = (Mean_Asc + Mean_Desc) / 2"]
    ThresholdEngine --> AgeModel["Age-Adjusted Normative Model: 42.0 + (Age - 20) * 0.55 ms"]
    AgeModel --> RatioCalc["Threshold Ratio to Norm = STDT / Predicted Norm"]
    RatioCalc --> CSGI["Cortical Somatosensory Gating Index (CSGI: 0 - 100)"]
    CSGI --> Prescriptions["OpenClaw / Hermes Sensorimotor Recovery & Manual Rest Directives"]

Related MCP server: postural-sway

Quickstart

from client import SomatosensoryTemporalDiscriminationClient

client = SomatosensoryTemporalDiscriminationClient()

# Evaluate STDT staircase test (ms)
asc = [45.0, 50.0, 48.0]
desc = [52.0, 48.0, 50.0]

res = client.evaluate_stdt_staircase(asc, desc, reference_age_years=32.0)

print("Composite STDT:", res["composite_stdt_ms"], "ms")
print("Predicted Norm:", res["predicted_age_norm_ms"], "ms")
print("Gating Index:", res["somatosensory_gating_index"], "/ 100")
print("Clinical Tier:", res["clinical_tier"])

MCP Server Integration

Add to your claude_desktop_config.json or OpenClaw tool registry:

{
  "mcpServers": {
    "stdt-temporal-discrimination": {
      "command": "python",
      "args": ["/path/to/genpark-personal-agent-somatosensory-temporal-discrimination-skill/mcp_server.py"]
    }
  }
}

License

MIT License.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables deterministic analysis of accelerometer and gyroscope timeseries for 8–12 Hz microtremor spectral bands, postural stability, and central motor fatigue, returning stability scores and fatigue categorization for agent guidance.
    7
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables analysis of 2D center-of-pressure statokinesigram trajectories, computing 95% confidence ellipse area, sway velocity, postural stability index, fall-risk tier, and Romberg Quotient for sensory re-weighting comparisons.
    7
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Computes Critical Flicker Fusion Frequency thresholds from ascending and descending psychophysical trial data, capturing hysteresis and comparing results against a baseline to derive a cortical arousal and cognitive fatigue index. It also enables agents to schedule rest interventions and deep-work blocks based on that fatigue signal.
    7
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables evaluation of tactile temporal discrimination thresholds from paired-pulse staircase data, including age-adjusted normative comparisons, cortical somatosensory gating indices, clinical tiers, and sensorimotor recovery directives.
    7
    MIT