hig.sePublications
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • harvard-cite-them-right
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • sv-SE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • de-DE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Maskininlärningsbaserad anomalidetektion på industriella tidsseriedata med Isolation Forest: En empirisk studie om fönsterstorlek och steglängd i en tidsfönstersegmenterad lösning med feature extraction.
University of Gävle, Faculty of Engineering and Sustainable Development, Department of Computer and Geospatial Sciences.
2026 (Swedish)Independent thesis Basic level (professional degree), 10 credits / 15 HE creditsStudent thesis
Abstract [sv]

Inom industrin genereras stora mängder sensordata som kan användas för att tidigt identifiera fel i industriella processer. Detta benämns anomalidetektion och med hjälp av maskininlärning kan anomalidetektion införas. En vanlig metod för att möjliggöra maskininlärningsbaserad anomalidetektion i industriella sensordata är att kombinera glidande tidsfönster med feature extraction, där statistiska egenskaper extraheras från varje segment. Två centrala parametrar i denna metodik är fönsterstorlek och steglängd, vars påverkan på modellens prestanda behandlas sällan explicit i litteraturen.

Denna studie undersöker hur val av fönsterstorlek och steglängd påverkar prestandan hos en Isolation Forest-modell tillämpad på multivariat sensordata från en industriell delprocess. Data från sju sensorer förbehandlades med glidande tidsfönster och sex statistiska mått extraherades per sensor och fönster. Fyra fönsterstorlekar och fyra steglängder utvärderades och prestandan mättes med F1-score för anomalidetektion och klassificering av normal drift. Syntetiska anomalier injicerades i testdata för att möjliggöra utvärdering i avsaknad av märkt feldata.

Resultaten visar att fönsterstorlek har en betydande påverkan på modellens prestanda. F1-score för anomalidetektion ökade från 0,71 vid en fönsterstorlek på 20 observationer till 0,921 vid en fönsterstorlek på 100 observationer, för att därefter försämras vid normal drift vid en fönsterstorlek på 200 observationer troligen på grund av att fönstret fångar drastiska övergångar i processen där sensorerna mäter produktion och stillestånd. Steglängden hade däremot minimal påverkan inom det testade intervallet. Vidare visas att resultaten även är känslig för contamination parametern som styr tröskeln för vad som klassificeras som anomali inom Isolation Forest modellen.

Studien visar att fönsterstorlek är en parameter som bör anpassas efter datamängdens karaktär och processens dynamik, medan steglängden kan väljas utifrån beräkningsmässiga hänsyn utan att nämnvärt påverka detektions-förmågan.

Abstract [en]

In modern industrial environments, large volumes of sensor data are continuously collected and can be used to enable early detection of faults in industrial processes. Identifying faults is called anomaly detection and with help from machine learning this can be implemented. A common approach for machine learning-based anomaly detection in industrial sensor data is to combine sliding window segmentation with feature extraction, where statistical properties are derived from each segment. Two central parameters in this methodology are window size and step size, where its effect on model performance has not previously been analyzed. 

This study investigates how the choice of window size and step size affects the performance of an Isolation forest model applied to multivariate sensor data from the strip steering system of a steckel rolling mill. Data from seven sensors was preprocessed using sliding windows, and six statistical measures were extracted per sensor and window. Four window sizes and four step sizes were evaluated, and performance was measured using F1-score for both anomaly detection and normal operation classification. Synthetic anomalies were injected into the test data to enable evaluation because of missing fault data.

The results show that window size has a impact on model performance. The F1-score for anomaly detection increased from 0.71 at a window size of 20 observations to 0.921 at a window size of 100 observations, after which normal operation classification became worse at a window size of 200 observations, likely because the windows capture natural drastically deviations in the process. Step size, however, had minimal impact on performance within the tested range. However, the results also showed that the contamination parameter has an impact on the model’s performance.

This study concludes that window size is a parameter that should be selected based on the characteristics of the dataset and the dynamics of the process, while step size can be chosen based on computational considerations without affecting detection performance.

Place, publisher, year, edition, pages
2026. , p. 41
Keywords [en]
Feature Extraction, Isolation Forest, Feature
Keywords [sv]
Anomalidetektion, Maskininlärning, Multivariat tidsseriedata, Syntetiska anomalier
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:hig:diva-50342OAI: oai:DiVA.org:hig-50342DiVA, id: diva2:2076210
External cooperation
Alleima
Subject / course
Computer science
Educational program
Högskoleingenjör
Supervisors
Examiners
Available from: 2026-06-25 Created: 2026-06-21 Last updated: 2026-06-25Bibliographically approved

Open Access in DiVA

fulltext(986 kB)11 downloads
File information
File name FULLTEXT01.pdfFile size 986 kBChecksum SHA-512
388da2c24c8081d4126dfad88caaa6a57a509bdb19d7687cba2320bd88449d99ea0b6e9e4260086330493e4580f0295c44747b62e544b103c3f426061059b1fe
Type fulltextMimetype application/pdf

By organisation
Department of Computer and Geospatial Sciences
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 32 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • harvard-cite-them-right
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • sv-SE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • de-DE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf