stdt-temporal-discrimination
by alphaparkinc
README.md
# Somatosensory Temporal Discrimination Threshold (STDT) Skill
[](https://opensource.org/licenses/MIT)
[](https://www.python.org/downloads/)
[](https://github.com/alphaparkinc/genpark-personal-agent-somatosensory-temporal-discrimination-skill)
[](https://github.com/alphaparkinc/genpark-personal-agent-somatosensory-temporal-discrimination-skill)
[](https://modelcontextprotocol.io/)
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
```mermaid
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"]
```
## Quickstart
```python
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:
```json
{
"mcpServers": {
"stdt-temporal-discrimination": {
"command": "python",
"args": ["/path/to/genpark-personal-agent-somatosensory-temporal-discrimination-skill/mcp_server.py"]
}
}
}
```
## License
MIT License.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo issues