<?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[Stories by Avisarika Tripathy on Medium]]></title>
        <description><![CDATA[Stories by Avisarika Tripathy on Medium]]></description>
        <link>https://medium.com/@tripathyavisarika?source=rss-d47b2298ea5a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xFmwfpnOLOP8IQ0TjGGY2Q.jpeg</url>
            <title>Stories by Avisarika Tripathy on Medium</title>
            <link>https://medium.com/@tripathyavisarika?source=rss-d47b2298ea5a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 06:54:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tripathyavisarika/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Should strong encryption be banned?]]></title>
            <link>https://medium.com/@tripathyavisarika/should-strong-encryption-be-banned-4b5f3f0b3cee?source=rss-d47b2298ea5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b5f3f0b3cee</guid>
            <dc:creator><![CDATA[Avisarika Tripathy]]></dc:creator>
            <pubDate>Tue, 15 Feb 2022 16:08:48 GMT</pubDate>
            <atom:updated>2022-02-15T16:08:48.987Z</atom:updated>
            <content:encoded><![CDATA[<p>Every one of us places a premium on data security. Consider how you’d react if your financial information and passwords for your banking applications were stolen, an unauthorized person gained access to your stolen phone, or an unauthorized person read your private messages instead of the intended receiver. Data at rest, when stored, or in transit is kept safe with high security and confidentiality by the use of Encryption.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*YCGsUqm5c8Pi29ZHTvcbCQ.png" /><figcaption>Basic cryptographic concept</figcaption></figure><p>Encryption is the process of encoding data or converting it into incomprehensible text, also known as ciphertext, using a cryptographic key (a set of mathematical values agreed upon by both the sender and the recipient of an encrypted message), and decryption is the process of decrypting the data by the intended and authorized user. Highly secure encryption employs complex keys that are unbreakable by unauthorized users or by brute force (simply guessing the key). Over 53% of the internet traffic is now encrypted.</p><h3>Strong vs Weak Encryption</h3><p><strong>Strong encryption</strong> employs a very large number, typically 128 bits in symmetric encryption(use of one secret key to encrypt and decrypt information) and 1024 bits for asymmetric encryption(use of two keys, public key to encrypt and secret key to decrypt information) making it nearly impossible to break the code. Most governments around the world use strong encryption to protect communications over internet or to protect data at rest, when stored in laptops or mobile phones.</p><p><strong>Weak encryption</strong> employs a cryptographic key of insufficient length, as less as 56 bits, and the possibility (or probability) of breaking the code is high.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*wkdTmL3RnZvqR1h6m6vFyw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*M4WG8HZhQH5r6JUe0a1Nkw.jpeg" /></figure><p>In recent times, there has been a huge debate among government officials in multiple countries such as the United States, United Kingdom, Canada, Australia, New Zealand, India, and Japan to ban strong encryption because it has proven difficult for law enforcement agencies to identify multiple issues such as terrorist propaganda, planning of attacks and data recovery which also challenges national security. While the debate is on whether to ban strong encryption in order to protect national security by providing a back door to law enforcement agencies, the issue is of great concern to the general public because it may result in a lack of privacy and security of the data they store or share.</p><h3><strong>Benefits of Encryption</strong></h3><p>We use ”http://url” or ”https://url” to access any website on the internet. HTTPS is a secure version of HTTP. HTTPS uses cryptographic protocols such as TLS (transport layer security) or SSL(secure socket layers) to encrypt normal requests and responses. When we use HTTPS, we see a lock icon at the beginning, which indicates that we are on the right website and that no intruder can spy on the connection, which may contain confidential information such as credit card details, financial documents such as tax returns, or an application form to buy a house, among other things.</p><p>Second, cybercriminals may use malware to infect our computers even if we have antivirus software installed in order to steal sensitive data. It is not only about the security of data during transmission over the internet, but also about the security of data while it is at rest, which is why file encryption is also of utmost importance.</p><p>In the following section, we will go over the advantages of encryption in detail:</p><p><strong>1. Encryption protects your privacy:</strong></p><p>Individuals are frequently targeted by cybercriminals in order to steal sensitive data such as credit card information, Netflix queues, shopping lists saved in browsers, or personal data stored on the computer such as a tax return or loan document which can provide identity details to the attacker, photos stored on phones embed location details, so a birthday photo can reveal someone’s name and date of birth, or a house photo can reveal the address. Travel itinerary data stored on a computer can reveal financial information as well as when the house will be vacant.</p><p><strong>2. Identity theft and ransomware blackmail are both prevented by encryption:</strong></p><p>The scariest thing seen recently is an increase in the use of ransomware to steal one’s critical data and then blackmail them into paying a ransom, failing which the attacker leaks the critical data all over the internet, uses it for identity theft, or sells it to the highest bidder. However, if the data is encrypted, cybercriminals do not have access to it and only see the cipher text, which is useless to them because it cannot be used to obtain ransom.</p><p><strong>3. Encryption enables you to securely share your files:</strong></p><p>It is very common to share text, files, and pictures via WhatsApp, Facebook, and various cloud services. Every day, over 100 billion messages are sent via WhatsApp. If the files we share are not encrypted, malevolent users can access them. Consider how you would feel if your personal photos and bank account numbers were leaked all over the internet. Encryption, on the other hand, allows for the sharing of files while maintaining confidentiality and anonymity, and only authorized individuals can open the file.</p><p><strong>4. Encryption safeguards against lost/stolen devices:</strong></p><p>According to GSMA real-time intelligence data, there are 5.13 billion mobile device owners worldwide, which equates to 66.5 percent of the global population. The use of mobile phones, tablets, and laptop computers has skyrocketed in recent years. Following the Covid 19 pandemic outbreak, the use of corporate laptops increased dramatically. However, it is also common for these devices to be misplaced or stolen. Encryption protects our files even if they are lost or stolen by unauthorized users. Each file on the device is encrypted, and the encryption key is securely stored and password protected. Without access to the password, the attacker is unable to scan the hard drive and steal personal information or confidential company data.</p><h3>Risks of Encryption</h3><p>As strong encryption makes decryption nearly impossible for third-party users, it also introduces some risks. Although it provides liberty, several crimes such as fraud and money laundering, human trafficking, and terrorist activities which include political acts of violence are untraceable due to strong encryption. Also, even if suspicious hard disks, mobile phones, or computers are recovered from various sting operations, they are rendered useless for further investigation because the information cannot be decrypted.</p><p>As former vice president of United States Al Gore once stated, ”unlawful criminal activity is not unique to the internet but the internet has a way of magnifying both the good and the bad in our society”. While criminals and terrorists misuse encryption, many foreign countries participate in the planning and execution of cyberattacks on their adversary’s computer infrastructure in order to steal critical information through the use of several untraceable encrypted codes.</p><p>Many analysts believe that if another world war bubbles up, cyberspace will be used instead of the battlefield. The financial and social scenario of a country can be quickly brought down by sending a well-written encrypted code, which, once downloaded by the innocent masses, can begin erasing critical data, crashing critical systems, and slowing down networks.</p><h3>Tradeoff between National Security and Privacy</h3><p>Since the 1990s, law enforcement agencies and technology companies have been debating whether decryption keys or backdoors should be provided to private companies and law enforcement agencies. Following a wave of terrorist attacks in multiple countries, particularly the United States, the debate has heated up recently.</p><p>One of the first examples of a government attempting to weaken encryption was in the United States. Given that encryption was widely used in public and private networks, the United States National Security Agency (NSA) developed Skipjack in 1993 to be exclusively used by government agencies to decrypt messages using a block cipher or an encryption algorithm. Because the internet was not widely available at that time, most sensitive information was still routed through the government’s public and private networks. Officials became concerned because they believed that with open access to encryption, more criminals could engage in confidential communication protected by the same strong means.</p><p>Agencies later proposed the Clipper chip in 1994, where conversations on mobile devices were scrambled using Skipjack’s algorithm, and the government was given a record of each key that they might use to decrypt messages whenever required. The clipper chip, however, quickly failed because the cryptographic community and advocates did not support the idea of weakening encryption and installing a clipper chip on each and every device was an expensive and time-consuming task.</p><p>Later, the US government also implemented key escrow, which required all encryption systems to provide a spare key to a trusted third party but later was heavily criticized for risking the privacy of individuals and got banned.</p><p>It is practically impossible for tech companies to provide private and secure communications to users while also providing a key to law enforcement agencies to decrypt messages. Moreover, they do not want to open a backdoor that could allow attackers to invade their customers’ privacy and lead to unwanted surveillance by government agencies. The tech companies usually delete the users’ messages after a certain period of time and do not keep any software to decrypt the users’ messages.</p><p>Furthermore, computer scientists and advocates all over the world believe that providing the government with tools to intercept and decrypt messages would be a violation of human rights. Weakening encryption would also allow other governments to intervene if necessary, as users’ data would cross national borders and land on the radar of other countries.</p><h3>Ban vs No Ban</h3><p>Technology in and of itself is inoffensive to everyone on the planet. It could end up in either good or bad hands. Everyone, including terrorists, has access to the same tools, as a result, unless businesses can encrypt their data in order to protect their business model, it can be hacked by attackers or terrorists.</p><p>According to Tim Watson of the University of Warwick, making encryption illegal will have no effect on high-level serious organized criminals because they will use steganography (hiding secret data in a non-secret file to avoid detection) instead. Watson also stated that while banning encryption may appear to be a good idea, the effect would be primarily on the general public, and the small group of people, such as terrorists, for whom the encryption would be banned would have no effect because they do not pay attention to the law. A ban would primarily affect ordinary people and not criminals or terrorists. So changing the law will not help because it will not stop them.</p><p>Adrian Sanabria, co-founder and director of research at savage security, once stated, ”Encryption is an idea,” and if you ban all encryption software available today, someone will create other encryption software the next day out of the many sources available today. It’s no longer under our control, it’s a Pandora’s box.</p><p>The moral of the story is that having control over encryption is an illusion. The government that tries this will end up in the ecommerce slow lane. If a country ever requires businesses operating within its borders to hand over encryption to the government, it is highly likely that the businesses will relocate to another country because they do not want their privacy shared with anyone, including the government.</p><h3>Final thoughts</h3><p>Encryption protects us. We don’t worry when we use our credit card details to make an online payment because we know the information is encrypted and safe. We also safely store critical information online and engage in private conversations online because encryption provides confidentiality and anonymity. I recently lost my phone while traveling abroad but as the device was encrypted, I felt safe as I knew no unauthorized person would be able to access the phone and steal the sensitive data I had. That is the power of encryption. Encryption is used in a variety of contexts. For example, journalists use it to communicate with their sources, lawyers use it to privately communicate with their clients, NGOs use it to protect their work in oppressive countries, critical information shared over the internet is protected, and so on. I</p><p>In today’s world, where data security is critical, I am convinced that strong encryption, unbreakable encryption, is the only way out. During criminal investigations, the FBI and other government agencies stated that they desired a backdoor. However, as a technologist, I believe that providing a backdoor in exceptional circumstances would merely weaken encryption. If there is a backdoor, no matter how sophisticated it is, anyone can exploit it eventually, and it cant remain hidden for a long time. The internet works because of security, and data encryption is a critical component of security. If we want to protect national security by tracking terrorist activities, we must understand that terrorists don’t care about the law, they will continue to communicate and terrorize by devising alternative methods, such as developing their own encryption applications. A ban on strong encryption would only affect ordinary people by making their data vulnerable online and offline.</p><p>Lastly, The government wants to break encryption and protect us right away. Can anyone guarantee that we will be safe and that our information will be safe if a totalitarian leader takes power in the next 10, 20, or more years? Given the preceding discussion, I strongly disagree that prohibiting strong encryption is a solution to protect us and national security rather it makes us vulnerable to attackers. In a true sense, it is not a trade-off between National security and privacy. It’s actually trade-off between more security and less security.</p><p>Thank you so much for reading!</p><p>Please 👏and <strong>follow me</strong> if you liked this post, as it <strong>encourages me</strong> to write more! You can reach out to me via <a href="http://www.linkedin.com/in/avisarika-tripathy">www.linkedin.com/in/avisarika-tripathy</a> for your suggestions or queries.</p><h3>References</h3><p><a href="https://www.researchgate.net/publication/307528400Shouldencryptionsof">https://www.researchgate.net/publication/307528400Shouldencryptionsof</a> twarebebanned/stats</p><p><a href="https://www.cloudflare.com/en-gb/learning/ssl/what-is-encryption/">https://www.cloudflare.com/en-gb/learning/ssl/what-is-encryption/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b5f3f0b3cee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Machine Learning Ensemble Methods(Part 2/2)]]></title>
            <link>https://medium.com/@tripathyavisarika/introduction-to-machine-learning-ensemble-methods-part-2-2-3467b6606c2e?source=rss-d47b2298ea5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3467b6606c2e</guid>
            <category><![CDATA[ensemble]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[boosting]]></category>
            <category><![CDATA[bagging]]></category>
            <dc:creator><![CDATA[Avisarika Tripathy]]></dc:creator>
            <pubDate>Tue, 08 Feb 2022 20:45:12 GMT</pubDate>
            <atom:updated>2022-02-08T20:45:12.547Z</atom:updated>
            <content:encoded><![CDATA[<p>First and foremost, many thanks for your response to Introduction to Machine Learning Ensemble Methods — Part 1. If you haven’t already, I recommend going through <a href="https://medium.com/@tripathyavisarika/introduction-to-machine-learning-ensemble-methods-part-1-2-f93c9391152e?source=your_stories_page----------------------------------------">Part 1</a> first for a better understanding of this article. This article will use the terms classifier and base learner interchangeably.</p><h3><strong>Popular Ensemble Techniques</strong></h3><p>Ensemble techniques are divided into three categories: Bagging, Boosting, and Stacking generalization.</p><ol><li><strong><em>Bagging</em></strong></li></ol><p>Bagging is a technique in which random bootstrap samples are taken from the training data set and the classifiers are trained with each of these samples as shown in Fig 1. Then, all the label outputs are combined by majority voting in a classification problem and in a regression problem, the ensemble is constructed by averaging. This technique improves prediction by lowering variance considerably. One of the most popular bagging techniques is the random forest, which is covered in depth in the section below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*CZzVWVvMpwADBQAFzxfczg.png" /><figcaption>Figure 1: Bagging Technique</figcaption></figure><p><strong>Random Forest </strong>approach is the most widely used bagging technique which uses decision trees as individual base learners. Given a dataset, each decision tree is trained using row and feature sampling with replacement data. If it’s a classification problem, the output is then combined in the majority, or if it’s a regression problem the mean/median of the output is taken to get the final forecast. The decision tree algorithm has a low bias and a high variance. The significant variance of each decision tree is decreased gradually using the random forest algorithm on the training data. Furthermore, because each decision tree is trained with row sampling and feature sampling with replacement, minor changes in the original dataset have no effect on the final forecast. Algorithm 1 below explains the steps of a random forest approach.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*3YfD_JvGa7uhvz3ew3SYpw.png" /></figure><p><strong><em>2. Boosting</em></strong></p><p>This technique is based on the idea “strength of weak learning. Once the initial base learner is trained, its behavior is evaluated for the complete data set. The incorrectly classified data is then utilized to train the next base learner. Once again its performance is evaluated and the incorrectly classified data is used to train the next base learner and in this way the base learners grow sequentially until the specified number of base learners are created. The base learners are created in stages with the purpose of building a robust classifier, taking into account the poorly categorized data from the previous base learner as shown in Fig. 2. Boosting is a technique used for solving both regression and classification problems. The three fundamental forms of boosting algorithms are Adaboost, Gradient Boosting, and Extreme Gradient Boosting. In the next section, we’ll go over the Adaboost and Gradient Boosting techniques in further detail.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*fvOc3rxQLPP4j5cyRWfkfw.png" /><figcaption>Figure 2 : Boosting Technique</figcaption></figure><p><strong>Adaboost </strong>is also known as Adaptive Boosting. Before training the first classifier, each of the training data is assigned equal weights in this technique. The incorrectly predicted data is gathered, and the weights for each of the incorrectly classified data are increased, while the weights for correctly classified data are dropped, before training the next classifier. The final solution is determined by a weighted majority vote among all weak learners in a classification problem. Both bias and variance are greatly reduced with this strategy. In Algorithm 2, we’ll go over the phases of AdaBoost in a classification problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*_7nml_PW35YszkHURe3CrA.png" /></figure><p><strong>Gradient Boosting</strong> algorithm, uses decision trees which are added sequentially to minimize the loss function. At first, a base model is initialized with a constant value and then the residuals or loss function is calculated taking into consideration the dependent variable data and constant value of the base model. The residual is calculated by computing the mean square error or root mean square error if the problem is a regression, and log loss or hinge loss if the problem is a classification problem. The loss function can also be calculated in a variety of alternative ways. After calculating the residual, a decision tree to the underlying model is added and trained using the independent variables of the dataset and the residual generated in the previous phase. In this manner, we sequentially add decision trees up to a given limit with the goal of minimizing the loss function. The final prediction is made by summing up the constant value of the base model and all the residuals calculated foe each decision trees.</p><p><strong><em>3. Stacking generalization</em></strong></p><p>Another ensemble learning method is stacking which combines two types of learners. One is a base learner, while the other is a meta learner.<br>The dataset is first split into samples, and each of the classifier is trained with each sample. The output of each classifier is then merged to generate the meta dataset, which is then used by the meta classifier to make the final prediction. It is most popularly used in anomaly-based intrusion detection of imbalanced network traffic. This model has the disadvantage of consuming more memory and taking longer to compute because it uses two types of learners to make a prediction. The concept of stacking generalization is shown in the below Fig.3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*zhIjdZlCo72KJAthZ6J5yA.png" /><figcaption>Fig 3: Stacking generalization</figcaption></figure><h3>Comparison single classifier vs ensemble methods</h3><p>Let’s try a brief experiment to see if using an ensemble technique like the random forest, Adaboost, or gradient boosting is better than using a single classifier like a decision tree, to understand the concepts we covered. A US car dataset(Kaggle data) was used to conduct the experiment in which 75% is considered as training dataset and 25% is considered as testing dataset. The Mean square error(MSE), Root Mean Square Error(RMSE), Mean Absolute Error(MAE), and coefficient of determination (R²), were calculated for a single decision tree classifier and ensembles such as random forest, AdaBoost, gradient boosting and stacked generalization as shown in below Table. Ideally, the lower the MSE, RMSE, and MAE values, the better the model fits into the data, and the higher the R² value, the more accurate the model is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*EUQkK4K_UpFZXHAqUoy6Hg.png" /></figure><p>As shown in Table 1, When the value of errors such as MSE, RMSE, and MAE of a single decision tree classifier is compared to other ensemble algorithms, it can be concluded that ensemble methods produce fewer errors and are more accurate. Similarly, the R² value is superior for all ensemble methods used as compared to the decision tree which indicates models created by ensemble methods are more reliable.</p><p>As a result, we may conclude that for the given dataset, utilizing an ensemble technique gave better results than using a single classifier. Also, random forest approach was shown to be the best fit model for our experiment, with the lowest error and maximum coefficient of determination(R²).</p><h3>Factors influencing ensemble accuracy</h3><p>A variety of elements can influence an ensemble’s precision and performance.</p><p>1. To begin with, heterogeneous ensembles outperform each classifier in the ensemble, whereas homogeneous ensembles rarely outperform each classifier in the ensemble. Let’s look at the difference between a homogeneous and heterogeneous ensemble. Homogeneous ensembles utilize the same learning method, such as decision trees, whereas heterogeneous ensembles employ different learning algorithms, such as decision trees and neural networks.</p><p>2. Secondly, diversified data is the most crucial component. The more diverse the data used, the higher the ensemble’s accuracy. Diversity can be achieved through resampling in bagging, focusing on incorrectly classified data in boosting, using metadata which is created by combining the outputs of individual classifiers, diversity in ANN network can be created by assigning the number of hidden neurons randomly using a randomized algorithm and through random selection of input data for each base classifier and many other methods.</p><p>3. The ensemble’s final prediction is also influenced by the individual success of base learners and also the number of base learners included in the ensemble.</p><p>4. Using a larger number of base learners consumes more memory and slows down processing, making it computationally expensive. The algorithm used to combine or integrate each classifier also has a significant impact on the ensemble’s performance and accuracy.</p><h3>Summary</h3><p>Ensemble-based systems are used to handle a variety of machine learning issues that are difficult to solve with a single classifier system. Consider how much of a difference even a small increase in accuracy can make in the realm of medicine. By lowering the fluctuation in classifier output and thus improving accuracy, ensemble-based systems provide apparent, simple, elegant, and powerful solutions.</p><p>There are three phases to a typical ensemble-based system: In the first phase, data is sampled using several algorithms, such as sampling with replacement in a random forest, sampling by weights in Adaboost, etc. In the next step, each classifier is trained with the sampled data and the outputs are merged in the last stage using a sum rule such as voting and calculating the mean/median of the outputs. We also covered prominent ensemble methods such as bagging and random forest, boosting approaches such as Adaboost and gradient boosting, and stacking generalization and ran a small experiment on a dataset to show how an ensemble method outperformed a single classifier.</p><p>Due to the high success rate of ensemble methods, the research area in this field has exploded recently, and in many fields, using ensemble methods before making a prediction is strongly encouraged.</p><p>Thank you so much for reading!</p><p>Please 👏and <strong>follow me</strong> if you liked this post, as it <strong>encourages me</strong> to write more! You can reach out to me via <a href="http://www.linkedin.com/in/avisarika-tripathy">www.linkedin.com/in/avisarika-tripathy</a> for your suggestions or queries.</p><h3>References</h3><ol><li>Leo Breiman. Random forests.Machine learning, 45(1):5–32, 2001. 2</li><li>David H Wolpert. Stacked generalization.Neural networks, 5(2):241–259, 1992.217</li><li>Ludmila I Kuncheva.Combining pattern classifiers: methods and algorithms.John Wiley &amp; Sons, 2014</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3467b6606c2e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Machine Learning Ensemble Methods(Part 1/2)]]></title>
            <link>https://medium.com/@tripathyavisarika/introduction-to-machine-learning-ensemble-methods-part-1-2-f93c9391152e?source=rss-d47b2298ea5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f93c9391152e</guid>
            <category><![CDATA[bias-variance-tradeoff]]></category>
            <category><![CDATA[ensemble]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ensemble-method]]></category>
            <dc:creator><![CDATA[Avisarika Tripathy]]></dc:creator>
            <pubDate>Tue, 01 Feb 2022 13:43:52 GMT</pubDate>
            <atom:updated>2022-02-01T13:43:52.896Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*ldDqYaHIe38lxY_1y-iLyQ.png" /><figcaption>Ensemble methods consist of joining several weak learners in order to build a strong learner (source:<a href="https://livebook.manning.com/">https://livebook.manning.com/</a>)</figcaption></figure><p>Multiple classifier systems, also known as ensemble systems, have garnered much attention in recent decades. They have repeatedly proven to be more successful and versatile in several problem domains and real-world applications. Ensemble-based decision-making has been around since the beginning of time. We use them so often in our daily lives that they’ve become second nature to us. For example, when a contestant on the popular game show “Who Wants to Be a Millionaire?” is indecisive about the correct answer, he polls the audience. The maximum number of votes cast against an answer helps him determine the final solution. Likewise, models in machine-learning methods substitute human experts, but the same concepts as in human expert committees apply.</p><h3>Let us first examine the context and key issues</h3><p>An ensemble system, also known as a combination of experts, combines the predictions of numerous classifiers to provide a final prediction that is more accurate and reliable than the individual classifiers. Its major purpose is to solve classification and regression problems across a wide range of areas(wondering what’s a classification and regression problem? Don’t worry it’s explained in the next section “Understanding key concepts”). We can train a large number of classifiers in parallel over a short amount of time and provide a better and more accurate prediction as shown in Fig 1. As a result, the use of ensemble systems has increased in fields like remote sensing, which includes land cover mapping and change detection, computer security, which includes malware detection and intrusion detection, face recognition, emotion recognition, fraud detection, financial decision making, and medicine. Consider how much of a difference even a small increase in precision can make in the medical field.</p><p>One of the key issues of using ensemble is that when the number of base classifiers grows large, ensemble methods consume a lot of storage space and take a long time to compute. Furthermore, if varied data is not used to train the models and inappropriate combination methods are used to construct the ensemble, the base learners forming the ensemble have a poor success rate and the ensemble’s accuracy and performance are significantly affected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*uUuaIobO5xbSW4UN67VPYQ.png" /><figcaption>Figure 1: General concept of ensemble classifier</figcaption></figure><h3>Understanding Key Concepts</h3><p><strong><em>Classification and Regression problems</em></strong></p><p>A classification problem arises when a data set can be divided into two or more classes, such as Yes/No, Good/Bad, or Product categorization. Consider a different scenario. Can you predict if it will rain today in London based on last month’s weather data? This is an example of a regression problem that deals with continuous quantity prediction.</p><p><strong><em>Bias and Variance</em></strong></p><p>Bias is the degree to which your model understands the training data. If it understands well, we say the model has low bias, if it does not understand, we say the model has high bias.</p><p>The difference in the predictability of a model when different training data sets are used is referred to as variance. Assume we build a model using a training data set. We now add a few more training datasets to train the model. If the model’s prediction changes dramatically, it indicates that the model has a high variance. If the model’s prediction does not change significantly, the model is said to have a low variance.</p><p><strong><em>Overfitting and Underfitting</em></strong></p><p>When a model performs well on training data but not on test data, it is said to be overfitting, and when a model performs poorly on both training and test data, it is said to be underfitting.</p><p>In the underfitting zone, the model performs poorly on its own training data, indicating high bias, and any additional training data used to train the model has no significant impact on model performance, indicating low variance.</p><p>Secondly, the model performs well on the training data in the overfitting zone because it has completely understood it, indicating low bias. However, any change in training data used to train the model, changes the model’s predictability significantly, indicating high variance.</p><p>Ideally a preferred model is one which has low bias and low variance. The bias versus variance trade off is depicted in the Fig.2 below, which provides a clear sense of the relationships between the concepts we studied.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*h4XETbo3hFx9PtKKJH90Dg.jpeg" /><figcaption>Figure 2: Bias vs Variance Trade Off (source: wiki)</figcaption></figure><h3>Why should we form an ensemble?</h3><p><strong><em>Statistical Reasons</em></strong></p><p>Sometimes classifiers may have identical training results but differ in their generalisation results and sometimes despite having comparable training and generalisation performance, classifiers may behave differently on future field data. To prevent such instances, we aggregate numerous classifiers into an ensemble which improves the prediction capabilities.</p><p><strong><em>Large volumes of data or Too little data</em></strong></p><p>When dealing with enormous amounts of data, partitioning the dataset into a large number of samples and training individual classifiers before merging their outputs using any combination rule has proven to be useful and yielded better results than using a single classifier.</p><p>Similarly, when a single classifier is trained with insufficient data, it performs poorly. In such circumstances, it has been seen that sampling the data with replacement and training individual classifiers before building an ensemble is more efficient.</p><p><strong><em>Divide and conquer</em></strong></p><p>It’s not always about the amount of data; sometimes it’s about the decision boundary that divides the data into distinct groups, making it difficult for a single classifier to solve the problem. As demonstrated in Fig.3, a linear classifier cannot learn the complex nonlinear boundary that separates the two different classes. As a result, an ensemble of numerous linear classifiers and a decision based on majority voting are utilized to solve the problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/1*a6kuicgZJwje_gvpkjIoKw.png" /><figcaption>Figure 3: Divide and Conquer approach</figcaption></figure><h3><strong>Building an ensemble</strong></h3><p>There are three steps to building an ensemble as shown in Fig.4: Generation, Pruning and Integration</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*TU-lZOtKnrImAP0bhG2P0Q.png" /><figcaption>Figure 4: Ensemble Building steps</figcaption></figure><p><strong><em>Generation</em></strong></p><p>The goal of this stage is to sample the data using various sampling strategies to generate a diversity of samples, and then to train each classifier with each of these samples.</p><p><strong><em>Pruning</em></strong></p><p>It’s possible that similar performing classifiers are developed during the generation phase. At this point, any redundant classifiers are removed.</p><p><strong><em>Integration</em></strong></p><p>After the generation and pruning stage, we finally combine the classifiers with rules as discussed below to create an ensemble in the integration stage.</p><ol><li><em>Rules for combining classification prediction:</em></li></ol><p>Majority Voting</p><p>There are three types of majority voting. If all of the classifiers predict the same value, this is referred to as <strong>unanimous voting</strong>. Second, <strong>simple majority voting</strong> is used when at least one more than half of the classifiers agree to a decision, whereas <strong>plurality voting</strong> is used when a decision receives the most votes, whether or not it is more than 50% of the vote.</p><p>Weighted Majority Voting</p><p>When classifiers that are more likely to perform well are given more weights than others, the ensemble’s total performance improves and the rule is called weighted majority voting.</p><p><em>2. Rules for combining regression prediction:</em></p><p>Mean Rule</p><p>To make the final prediction, this rule adds together the output of each classifier and divides it by the total number of classifiers.</p><p>Minimum/Maximum/Median Rule</p><p>In this approach, Min, Max, or Median is determined using each output from an ensemble’s classifiers, and the final decision is made based on the class with the most total support.</p><p>Thank you so much for reading !</p><p>Please 👏and <strong>follow me</strong> if you liked this post, as it <strong>encourages me</strong> to write more! You can reach out to me via <a href="http://www.linkedin.com/in/avisarika-tripathy">www.linkedin.com/in/avisarika-tripathy</a> for your suggestions or queries.</p><h3>References</h3><p>Polikar, R. (2006), ‘Polikar, r.: Ensemble based systems in decision making. ieee circuitsyst. mag. 6, 21–45’,Circuits and Systems Magazine, IEEE6, 21–45</p><p>Baba, N. M., Makhtar, M., Fadzli, S. A. &amp; Awang, M. K. (2015), Current issues inensemble methods and its applications.</p><p>Wang, W. (2008), ‘Some fundamental issues in ensemble methods’, pp. 2243–2250.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f93c9391152e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>