ts_shape.events.maintenance.vibration_analysis
Classes
| Name | Description |
|---|---|
VibrationAnalysisEvents | Analyze vibration signals from industrial equipment: RMS exceedance, |
VibrationAnalysisEvents
VibrationAnalysisEvents(
dataframe: pd.DataFrame,
signal_uuid: str,
*,
event_uuid: str = "maint:vibration",
value_column: str = "value_double",
time_column: str = "systime"
) -> None
Bases: Base
Analyze vibration signals from industrial equipment: RMS exceedance, amplitude growth, and bearing health indicators (kurtosis, crest factor).
Functions
| Name | Description |
|---|---|
detect_rms_exceedance | Compute rolling RMS and flag intervals exceeding baseline_rms * threshold_factor. |
detect_amplitude_growth | Track peak-to-peak amplitude in non-overlapping windows and flag |
bearing_health_indicators | Compute bearing health indicators per window: RMS, peak value, |
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
dataframe | DataFrame | Long-format timeseries frame (one row per sample, uuid identifies the signal). | required |
signal_uuid | str | UUID of the vibration signal; must be present in dataframe. | required |
event_uuid | str | UUID stamped on emitted events. | 'maint:vibration' |
value_column | str | Column holding the signal values. | 'value_double' |
time_column | str | Timestamp column. | 'systime' |
detect_rms_exceedance
detect_rms_exceedance(
baseline_rms: float,
threshold_factor: float = 1.5,
window: str = "1min",
*,
interval_end: str = "next_change"
) -> pd.DataFrame
Compute rolling RMS and flag intervals exceeding baseline_rms * threshold_factor.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
baseline_rms | float | Known baseline RMS value for healthy equipment. | required |
threshold_factor | float | Multiplier above baseline to trigger alarm. | 1.5 |
window | str | Rolling window size. | '1min' |
interval_end | str | "next_change" (default) ends an interval at the next sample (the transition), so the interval spans the time the condition held and change-encoded signals -- one row per change -- keep their duration. "last_sample" ends it at its last flagged sample. See :func:ts_shape.utils.intervals.interval_end_times. | 'next_change' |
Returns
| Type | Description |
|---|---|
DataFrame | DataFrame with columns: start, end, uuid, source_uuid, is_delta, |
DataFrame | rms_value, baseline_rms, ratio, duration_seconds. |
detect_amplitude_growth
detect_amplitude_growth(
window: str = "1h", growth_threshold: float = 0.1
) -> pd.DataFrame
Track peak-to-peak amplitude in non-overlapping windows and flag windows where amplitude grows beyond growth_threshold relative to baseline.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
window | str | Window size for amplitude measurement. | '1h' |
growth_threshold | float | Minimum fractional growth (e.g. 0.1 = 10%) to flag. | 0.1 |
Returns
| Type | Description |
|---|---|
DataFrame | DataFrame with columns: start, end, duration_seconds, uuid, |
DataFrame | source_uuid, is_delta, amplitude, baseline_amplitude, growth_pct. |
DataFrame | end is start plus window. |
bearing_health_indicators
bearing_health_indicators(window: str = '5min') -> pd.DataFrame
Compute bearing health indicators per window: RMS, peak value, crest factor (peak/RMS), and kurtosis.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
window | str | Window size for indicator computation. | '5min' |
Returns
| Type | Description |
|---|---|
DataFrame | DataFrame with columns: start, end, duration_seconds, uuid, |
DataFrame | source_uuid, is_delta, rms, peak, crest_factor, kurtosis. |
DataFrame | end is start plus window. |