analyze_signal_trend
Assess equipment health by analyzing trend of chosen signal feature over time. Detects increasing or decreasing behavior to identify potential faults.
Instructions
Analyze the trend of a feature extracted from a signal over time.
Segments the signal, extracts the requested feature per segment,
and fits a linear trend to detect increasing/decreasing behavior.
Args:
ctx: MCP context for user communication.
signal_file: CSV signal file in the data directory.
feature_name: Time-domain feature to analyze (default: "rms").
sampling_rate: Signal sampling rate in Hz (auto-detect if None).
segment_duration: Duration of each segment in seconds.
overlap_ratio: Overlap between segments (0-1).
Returns:
TrendAnalysisResult with slope, direction, and fit quality.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signal_file | Yes | ||
| feature_name | No | rms | |
| sampling_rate | No | ||
| segment_duration | No | ||
| overlap_ratio | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feature_name | Yes | Feature analyzed | |
| slope | Yes | Trend slope per segment | |
| intercept | Yes | Trend intercept | |
| r_squared | Yes | R-squared goodness of fit | |
| trend_direction | Yes | increasing, decreasing, or stable | |
| p_value | Yes | Statistical significance | |
| num_segments | Yes | Number of segments analyzed |