Skip to content

Commit 314d2c0

Browse files
committed
constrained-hmm: Notes on datasets
1 parent 2dbc92c commit 314d2c0

File tree

2 files changed

+56
-1
lines changed

2 files changed

+56
-1
lines changed

handson/constrained-hmm/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ Some real-world examples are referenced at the bottom of this page.
2626

2727
- Provide an example on real data.
2828
For example fitting a repeated sequential (cyclic) process, such as those found in automation/manufacturing.
29-
Maybe from MMII dataset?
29+
The CNC Mill Tool Wear looks highly relevant.
30+
Alternative with sound could be MMII dataset?
3031

3132
## Implementation
3233

handson/constrained-hmm/notes.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,60 @@ Surface roughness was measured on six different spots after each machining run
5353

5454
? might all be normal. Not sure if there are outliers/anomaly conditions present.
5555

56+
#### CNC Mill Tool Wear
57+
https://www.kaggle.com/datasets/shasun/tool-wear-detection-in-cnc-mill
58+
59+
Machining data was collected from a CNC machine for variations of tool condition, feed rate, and clamping pressure.
60+
Each experiment produced a finished wax part with an "S" shape.
61+
Run on 2" x 2" x 1.5" wax blocks.
62+
63+
- 18 experiments, each giving one time-series
64+
- Sampled at 10 Hz
65+
- Multiple active machining operations, labeled as "Layer 1 Up", "Layer 1 Down", "Layer 2 Up", "Layer 2 Down", "Layer 3 Up", and "Layer 3 Down".
66+
- Experiments were run with different feed rates,
67+
- Experiments were run with different clamping pressures, of 2.5, 3.0, and 4.0 bar
68+
- visual flaws indicated with a passed_visual_inspection column
69+
- Some experiments were aborted for safety concerns, see machining_completed column
70+
- Eight experiments were run with an unworn tool while ten were run with a worn tool (see tool_condition column for indication).
71+
72+
! Simple experiments.
73+
Would be quite doable to replicate locally.
74+
75+
WARN: some dirty data:
76+
77+
Note that some variables will not accurately reflect the operation of the CNC machine.
78+
This can usually be detected by when M1_CURRENT_FEEDRATE reads 50,
79+
when X1 ActualPosition reads 198, or when M1_CURRENT_PROGRAM_NUMBER does not read 0.
80+
The source of these errors has not been identified.
81+
82+
This notebook has some reasonable basic EDA on the dataset,
83+
https://www.kaggle.com/code/paulsatyajit/cnc-milling-machine-tool-wear-detection
84+
85+
Experiments are up to 2000 seconds long.
86+
87+
This one has some focused EDA on Spindle output power vs Machining process
88+
https://www.kaggle.com/code/jiprud/cnc-data-analysis
89+
90+
Hypothesis: Output power of the tool (S1_OutputPower) is bigger for "Milling" points than in "Preparation" ones. Let's see if we can prove this.
91+
Conclusion: hypothesis was proven correct. Average spindle power for Milling steps is two times bigger than for non Milling steps
92+
93+
Notebook explored Mahalanobis for unsupervised anomaly detection for tool wear
94+
https://www.kaggle.com/code/clashofphish/attempt-mahalanobis-distance-for-outlier-detection
95+
96+
Had problems with bad readings.
97+
Was not successful.
98+
99+
100+
Questions:
101+
102+
- Can we reliably find the machining states, with unsupervised method? Segmentation
103+
- Do we need special features/preprocessing to be able to do the segmentation?
104+
- Can one detect the "jog" between each active operation?
105+
- What changes/differences are there in the signal between toolwear/not, degraded/not and aborted/not ?
106+
- Can the aborted operation be detected, with unsupervised method?
107+
- Is the difference in commanded vs actual position useful for AD wrt relevant conditions?
108+
- Is a stage-aware or per-stage analysis helpful in predicting toolwear/visual degradation?
109+
56110
#### Turning Dataset for Chatter Diagnosis Using Machine Learning
57111
Dataset: https://data.mendeley.com/datasets/hvm4wh3jzx/1
58112
Paper: https://arxiv.org/abs/1905.08671

0 commit comments

Comments
 (0)