<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Madhav Ginoria - Medium]]></title>
        <description><![CDATA[Using Machine Learning Models for Seismic-bumps Detection - Medium]]></description>
        <link>https://medium.com/madhav-ginoria?source=rss----3c428bbf2b25---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Madhav Ginoria - Medium</title>
            <link>https://medium.com/madhav-ginoria?source=rss----3c428bbf2b25---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 19:03:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/madhav-ginoria" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Using Machine Learning Models for Seismic-bumps Detection]]></title>
            <link>https://medium.com/madhav-ginoria/using-machine-learning-models-for-seismic-bumps-detection-33aa8bd0a233?source=rss----3c428bbf2b25---4</link>
            <guid isPermaLink="false">https://medium.com/p/33aa8bd0a233</guid>
            <category><![CDATA[seismic]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Mg]]></dc:creator>
            <pubDate>Sat, 12 Oct 2019 20:09:01 GMT</pubDate>
            <atom:updated>2019-10-12T20:09:01.450Z</atom:updated>
            <content:encoded><![CDATA[<p>Madhav Ginoria</p><p>Mining activity was and is always connected with the occurrence of dangers which are commonly called mining hazards. A special case of such threat is a seismic hazard which frequently occurs in many underground mines. Seismic hazard is the hardest detectable and predictable of natural hazards and in this respect it is comparable to an earthquake.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*Wo0PuwD9fkE58vdzBxecLw.jpeg" /></figure><p>More and more advanced seismic and seismoacoustic monitoring systems allow a better understanding rock mass processes and definition of seismic hazard prediction methods. Accuracy of so far created methods is however far from perfect. Complexity of seismic processes and big disproportion between the number of low-energy seismic events and the number of high-energy phenomena (e.g. &gt; 10⁴J) causes the statistical techniques to be insufficient to predict seismic hazard. Therefore, it is essential to search for new opportunities of better hazard prediction, also using machine learning methods.</p><p>In this article, I will discuss how we can leverage several machine learning models to obtain higher accuracy in Seismic-bumps detection. Let’s see how it works!</p><p><strong>Phase 1: Preparing Data</strong></p><p>First, I downloaded UCI Machine Learning Repository for Seismic-bumps <a href="http://archive.ics.uci.edu/ml/datasets/breast+cancer+wisconsin+%28diagnostic%29">dataset</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*d6CUnsg2wv0WBpXaddoygw.jpeg" /></figure><p>The dataset was created by Marek Sikora and Lukasz Wrobel, at the Silesian University of Technology, Gliwice, Poland and Institute of Innovative Technologies EMAG, Katowice, Poland. They analysed two of longwalls located in a Polish coal mine.The presented data set is characterised by unbalanced distribution of positive and negative examples. In the data set there are only 170 positive examples representing class 1.</p><p><strong>Phase 2: Exploring Data</strong></p><p>Now, we can import the necessary libraries and the previous dataset into <strong>Google Colab</strong> . <strong><em>Pandas</em></strong> is one of the Python packages that makes importing and analyzing data much easier. As seen below, we import the arff format data and then read it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*UGFTNPEpB7BSqvGbrMZJ-w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*pGqw48HDBgFKTFKH9fnrmQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*qIXKjuWY6bfPtOT7bX1Qmw.png" /></figure><p>There is a total of 2584 rows and 18 columns.</p><p><strong>Phase 3: Categorizing Data</strong></p><p>As diagnosis contains byte data we have to decode some columns as mentioned below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*SYYYTW2fh5y6W9SC86n63g.png" /></figure><p>As diagnosis contains categorical data, meaning that it consists of labeled values instead of numerical values, we will use Label Encoder to label the categorical data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*4BZBfefe5mBHOUqQFws4sA.png" /></figure><p>To do so, we can import <strong><em>Sci-Kit Learn Library </em></strong>and use its Label Encoder function to convert text data to numerical data, which is easier for our predictive models to understand. For instance, 1 means that there is a chance for seismic bump, and 0 means not.</p><p>Sci-kit Learn Library also allows us to split our data set into <em>training set </em>and <em>test set. </em>The purpose of this is to later validate the accuracy of our machine learning model. To accomplish this, we use the <strong>train_test_split </strong>method, as seen below!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*zqDBF9IQpzNQeyO_fPMrJg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*kRNpdgm3885vurZwMb1O4A.png" /></figure><p><strong>Phase 4: Selecting models</strong></p><p>Now, to the exciting part.</p><p>To classify, I explored three different algorithms in machine learning, namely Neural Network Keras Model, Logistic Regression and Decision Tree Classification.</p><h4><strong>1) Neural Network using Keras Library</strong></h4><p>A neural network is a series of algorithms that endeavors to recognize underlying relationships in a set of data through a process that mimics the way the human brain operates. Neural networks can adapt to changing input; so the network generates the best possible result without needing to redesign the output criteria.</p><p>Keras is an Open Source Neural Network library written in Python that runs on top of Theano or Tensorflow. It is designed to be modular, fast and easy to use. Keras doesn’t handle low-level computation. Instead, it uses another library to do it, called the “Backend. So Keras is high-level API wrapper for the low-level API, capable of running on top of TensorFlow, CNTK, or Theano.</p><p>Keras High-Level API handles the way we make models, defining layers, or set up multiple input-output models. In this level, Keras also compiles our model with loss and optimizer functions, training process with fit function. Importing Keras.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*FkoVERNgfRpgWoy7DQA3sw.png" /></figure><p>To create NN by using Keras we will use Keras Sequential model and create the layers by adding Dense layers to the sequential model like what shown in the code below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*StQhylwwt4PNyO1mvmE5vw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*qNogaXZXQ4Gvan3omeMUew.png" /></figure><p>To train ML model in keras we just need to use model.fit() as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*rzeYfGu5Je5bcyShimtl8Q.png" /></figure><p>The result of our classification can be visualized in this table below:</p><p>Finally, I ran our Keras model on the sample data sets and obtained an accuracy value of 93.2% !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*jk6khS4_s5evbuEwiSkzgw.png" /></figure><h4><strong>2) Logistic regression</strong></h4><p>What <em>is</em> logistic regression to begin with? The name logistic regression actually comes from something known as the <em>logistic function</em>, also known as the <em>sigmoid function, </em>rising quickly and maxing out at the carrying capacity of the environment. Such model is often used to describe the growth of an ecology.</p><p>The linear equation for the above curve can be represented as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ypy_yawSnhfpBQWJnAuhPw.png" /></figure><p>Depending on the values of x, the output can be anywhere from negative infinity to positive infinity.</p><p>Once again, I used the Sci-kit Learn Library to import all algorithms and employed the LogisticRegression method of model selection to use Logistic Regression Algorithm. The accuracy achieved was <strong>90.7%</strong>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*Hy6Cr6KV3J0I5Bs4sg3zeg.png" /></figure><h4><strong>3) Decision Tree Classification</strong></h4><p>A decision tree is a flowchart-like tree structure where an internal node represents feature(or attribute), the branch represents a decision rule, and each leaf node represents the outcome. The topmost node in a decision tree is known as the root node. It learns to partition on the basis of the attribute value. It partitions the tree in recursively manner call recursive partitioning. This flowchart-like structure helps you in decision making.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*c6dMc4GPdg-6n-qKFiUQ_Q.jpeg" /></figure><p>Attribute selection measure is a heuristic for selecting the splitting criterion that partition data into the best possible manner.Most popular selection measures are Information Gain, Gain Ratio, and Gini Index.</p><p>So, I used the Sci-kit Learn Library to import all algorithms and employed the Decision Tree method of model selection to use Decision Tree Algorithm. The accuracy achieved was 86<strong>.7%</strong>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*mjAQgJHodz49NHThKUK25A.png" /></figure><p>In the end, the<strong> Neural Network using Keras Library</strong> enables us to produce the most accurate results above all!</p><p>This is one of my first applications in machine learning. Thank you for reading my article, and I hope you’ve enjoyed it so far!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33aa8bd0a233" width="1" height="1" alt=""><hr><p><a href="https://medium.com/madhav-ginoria/using-machine-learning-models-for-seismic-bumps-detection-33aa8bd0a233">Using Machine Learning Models for Seismic-bumps Detection</a> was originally published in <a href="https://medium.com/madhav-ginoria">Madhav Ginoria</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>