This repository contains a MATLAB implementation that was developed as a part of my bachelor thesis at VSB – Technical University of Ostrava. The content is now freely accessible on the Digital repository VSB-TUO.
This thesis aims to extend the research on the newly developed Scalable Probabilistic Approximation (SPA) method, with emphasis predominantly on classification problems. The SPA method is utilized to discretize continuous stochastic processes and, in conjunction with Bayesian causal inference modeling, leads to a multiobjective optimization problem that is capable of simultaneously resolving both objectives. The solution to this problem is formulated as a supervised machine learning algorithm that is suitable for various classification tasks. Although the algorithm is limited in terms of computational cost, a proposed estimation of the problem, which is closely related to the widely known K-means algorithm, is applicable even for large datasets. Preliminary experiments demonstrate that this framework is adaptable to the selected application of corrosion detection from image data.
-
Corrosion Annotated [Kaggle.com]
-
Breast Cancer Wisconsin (Diagnostic) dataset [UCI Machine Learning Repository]
-
K-means Data [Kaggle.com]
-
MATLAB version R2020b and higher
-
Datasets and a pre-trained model (~2 MB)
- Download the datasets and a pre-trained model (~2 MB)
- Extract the
*.zip
file to this project folder - Run the feature extraction script:
run_feature_extraction.m
- Optionally run any of the scripts below:
run_corrosion_mwe.m
- visualization of corrosion detection using the pre-trained model (Fig. 5.4 in the thesis)run_corrosion.m
- training the ML model using one of the developed algorithms, such trained model is used in the above scriptrun_comparison.m
- comparison on Breast Cancer Wisconsin (Diagnostic) dataset (Table 5.2 in the thesis)run_synthetic_test.m
- synthetic test (Fig 5.2 in the thesis)run_spa_visualization.m
- SPA visualization in 2Drun_kmeans.m
- custom implementation of K-means used to create the animation below