Artificial Intelligence Applications in Engineering (MUH-920), week 9 of 14: interactive lab
Prof. Dr. Utku Kose, Süleyman Demirel University
Part A runs k-means one step at a time with the squared distances, k-means++ seeding and silhouettes [1, 2], and Part B computes the principal components of two variables by hand [3]. Part C places points by clicking and compares k-means with DBSCAN on the same data, with controls for k, eps and the minimum number of neighbours [4], and Part D clusters epicentres with DBSCAN and haversine distances. Part E computes the Fourier coefficients of a short signal term by term, and Part F bearing fault frequencies and condition indicators. Part G synthesises the vibration of a bearing with adjustable shaft speed, fault severity and noise, and shows the waveform, the spectrum and the envelope spectrum with the computed fault frequency, together with RMS, kurtosis and crest factor [5]. Part H computes isolation-forest scores from random splits [6].
The six points of the worked example are clustered with k = 2. Each assignment step lists the squared distance of every point to every centre, each update step the means that become the new centres, and the objective W falls with every step; the silhouette of each point appears once all points are assigned. The second initialisation uses k-means++ and prints its seeding probabilities [1, 2, 7].
The two porosity logs of the worked example are the default. The panel centres the data, builds the covariance matrix, solves the quadratic equation for the eigenvalues, normalises the first eigenvector and reconstructs a chosen sample from the first component; the chart draws both principal axes [3].
Click on either panel to add points.
Epicentres given by latitude and longitude are compared with haversine distances in kilometres. The table lists the neighbours of every event within ε, its type and its cluster; changing ε and the minimum number of points shows how the clusters grow, merge or dissolve into noise [4].
Any short signal, by default the four samples of the worked example, is transformed with the definition of the lecture. The panel writes out the sum for a chosen bin with every rotating factor, and the table gives all coefficients, their frequencies and the amplitudes; a generated cosine with a non-integer number of cycles shows how the energy leaks into neighbouring bins [8].
The default bearing has the geometry of the drive-end bearing of the Case Western Reserve data, nine balls of 7.94 mm on a pitch diameter of 39.04 mm, so that d/D = 0.2034. The first panel computes the four fault frequencies for any geometry and speed; the second computes RMS, crest factor and kurtosis of any record, by default the impulsive record of the worked example [5, 9].
Sixteen readings of one feature contain one unusual value. Each tree splits the range of the remaining values at a random point and keeps the side of the chosen point until it stands alone; the number of splits is its path length. Averaging over many trees and normalising with c(ψ) gives the isolation-forest score of the lecture [6].
Six questions with instant feedback. Rate your confidence before checking each answer.
Answers are saved in this browser only. The export creates a Markdown learning log for your portfolio.
After the export, continue with the discipline challenge and the weekly task in the week overview.
[1] Lloyd, S. (1982). Least squares quantization in PCM. IEEE Transactions on Information Theory, 28(2), 129-137. https://doi.org/10.1109/TIT.1982.1056489
[2] Arthur, D., & Vassilvitskii, S. (2007). k-means++: The advantages of careful seeding. In Proceedings of the Eighteenth Annual ACM-SIAM Symposium on Discrete Algorithms (pp. 1027-1035). SIAM.
[3] Jolliffe, I. T., & Cadima, J. (2016). Principal component analysis: A review and recent developments. Philosophical Transactions of the Royal Society A, 374(2065), 20150202. https://doi.org/10.1098/rsta.2015.0202
[4] Ester, M., Kriegel, H.-P., Sander, J., & Xu, X. (1996). A density-based algorithm for discovering clusters in large spatial databases with noise. In Proceedings of the Second International Conference on Knowledge Discovery and Data Mining (KDD-96) (pp. 226-231). AAAI Press.
[5] Randall, R. B., & Antoni, J. (2011). Rolling element bearing diagnostics: A tutorial. Mechanical Systems and Signal Processing, 25(2), 485-520. https://doi.org/10.1016/j.ymssp.2010.07.017
[6] Liu, F. T., Ting, K. M., & Zhou, Z.-H. (2008). Isolation forest. In 2008 Eighth IEEE International Conference on Data Mining (pp. 413-422). https://doi.org/10.1109/ICDM.2008.17
[7] Rousseeuw, P. J. (1987). Silhouettes: A graphical aid to the interpretation and validation of cluster analysis. Journal of Computational and Applied Mathematics, 20, 53-65. https://doi.org/10.1016/0377-0427(87)90125-7
[8] Cooley, J. W., & Tukey, J. W. (1965). An algorithm for the machine calculation of complex Fourier series. Mathematics of Computation, 19(90), 297-301. https://doi.org/10.1090/S0025-5718-1965-0178586-1
[9] Smith, W. A., & Randall, R. B. (2015). Rolling element bearing diagnostics using the Case Western Reserve University data: A benchmark study. Mechanical Systems and Signal Processing, 64-65, 100-131. https://doi.org/10.1016/j.ymssp.2015.04.021