HomeBlogData ScienceWhat is Machine Learning and Why It Matters: Everything You Need to Know

What is Machine Learning and Why It Matters: Everything You Need to Know

Published
02nd May, 2024
Views
view count loader
Read it in
15 Mins
In this article
    What is Machine Learning and Why It Matters: Everything You Need to Know

    If you are a machine learning enthusiast and stay in touch with the latest developments, you would have definitely come across the news “Machine learning identifies links between the world's oceans”. Wait, we all know how complex it would be to analyse a concept such as oceans and their behaviour which would undoubtedly involve billions of data points associated with many critical parameters such as wind velocities, temperatures, earth’s rotation and many such. Doesn’t this piece of information gives you a glimpse of the wondrous possibilities of machine learning and its potential uses? And this is just a drop in the ocean!

    As you move across this post, you would get a comprehensive idea of various aspects that you ought to know about machine learning.

    What is Machine Learning and Why It Matters?

    Machine learning is a segment of artificial intelligence. It is designed to make computers learn by themselves and perform operations without human intervention, when they are exposed to new data. It means a computer or a system designed with machine learning will identify, analyse and change accordingly and give the expected output when it comes across a new pattern of data, without any need of humans.

    The power behind machine learning’s self-identification and analysis of new patterns, lies in the complex and powerful ‘pattern recognition’ algorithms that guide them in where to look for what. Thus, the demand for machine learning programmers who have extensive knowledge on working with complex mathematical calculations and applying them to big data and AI is growing year after year.

    What is ML and Why It Matters

    Machine learning, though a buzz word only since recent times, has conceptually been in existence since World War II when Alan Turing’s Bombe, an enigma deciphering machine was introduced to the world. However, it's only in the past decade or so that there has been such great progress made in context to machine learning and its uses, driven mainly by our quest for making this world more futuristic  with lesser human intervention and more precision. Pharma, education technology, industries, science and space, digital inventions, maps and navigation, robotics – you name the domain and you will have instances of machine learning innovations made in it.

    The Timeline of Machine Learning and the Evolution of Machines

    Voice activated home appliances, self-driven cars and online marketing campaigns are some of the applications of machine learning that we experience and enjoy the benefit of in our day to day life. However, the development of such amazing inventions date back to decades. Many great mathematicians and futuristic thinkers were involved in the foundation and development of machine learning.

    A glimpse of the timeline of machine learning reveals many hidden facts and the efforts of great mathematicians and scientists to whom we should attribute all the fruits that we are enjoying today.

    Timeline of Machine Learning and Evolution of Machines

    • 1812- 1913: The century that laid the foundation of machine learning

    This age laid the mathematical foundation for the development of machine learning. Bayes’ theorem and Markovs Chains took birth during this period.

    • Late 1940s: First computers 

    Computers were recognised as machines that can ‘store data’. The famous Manchester Small-Scale Experimental Machine (nicknamed 'The Manchester Baby') belongs to this era.

    • 1950: The official Birth of Machine Learning

    Despite many researches and theoretical studies done prior to this year, it was the year 1950 that is always remembered as the foundation of the machine learning that we are witnessing today. Alan Turing, researcher, mathematician, computer genius and thinker, submitted a paper where he mentioned something called ‘imitation game’ and astonished the world by questioning “Can Machines Think?”. His research grabbed the attention of the BBC which took an exclusive interview with Alan.

    • 1951: The First neural network

    The first artificial neural network was built by Marvin Minsky and Dean Edmonds this year. Today, we all know that artificial neural networks play a key role in the thinking process of computers and machines. This should be attributed to the invention made by these two scientists.

    • 1974: Coining of the term ‘Machine Learning’

    Though there were no specific terms till then for the things that machines did by thinking on their own, it was in 1974 that the term ‘machine learning’ was termed. Other words such as artificial intelligence, informatics and computational intelligence were also proposed the same year.

    • 1996: Machine beats man in a game of chess

    IBM developed its own computer called Deep Blue, that can think. This machine beat the world famous champion in chess, Garry Kasparov. It was then proved to the world that machines can really think like humans.

    • 2006-2017: Backpropagation, external memory access and AlphaGo

    Back propagation is an important technique that machines use for image recognition. This technique was developed in this period of time.

    Besides in 2014, a neural network developed by DeepMind, a British based company, developed a neural network that can access external memory and get things done.

    In 2016, AlphaGo was designed by DeepMind researchers. It beat the world famous Go players Lee Sedol and Ke Jie and proved that machines have come a long way.

    • What’s next?

    Scientists are talking about ‘singularity’ –a phenomenon that would occur if humans develop a humanoid robot that could think better than humans and will recreate itself. So far, we have been witnessing how AI is entering our personal lives too in the form of voice activated devices, smart systems and many more. The results of this singularity – we shall have to wait and watch!

    Basics of Machine Learning

    " style="height: 402px;">

    To put it simply, machine learning involves learning by machines. It means computers learn and there are many concepts, methods, algorithms and processes involved in making this happen. Let us try to understand some of the more important machine learning terms.

    Three concepts – artificial intelligence, machine learning and deep learning – are often thought to be synonymous. Though they belong to the same family, conceptually they are different.

    Basics of Machine Learning

    Machine Learning

    It implies that machines can ‘learn on their own’ and give the output without any need of programming explicitly.

    Artificial Intelligence

    This term means machines can ‘think on their own’ just like humans and take decisions.

    Deep Learning

    This involves creation of artificial neural networks which can think and act based on algorithms.

    How do machines learn?

    Quite simply, machines learn just like humans do. Humans learn from their training, experiences and through teachers. Sometimes they use knowledge that is fed into their brains, or sometimes take decisions by analysing the current situation using their past experiences.

    Similarly, machines learn from the inputs given to them which tell them which is right and which is wrong. Then they are given data that they would have to analyse based on the training they have received so far. In some other cases, they do not have any idea of which is right or wrong, but just take the decision based on their own experiences. We will analyse the various concepts of learning and the methods involved.

    How Machine Learning Works?

    The process of machine learning occurs in five steps as shown in the following diagram.

    How Machine Learning Works

    The steps are explained in simple words below:

    • Gathering the data includes data collection from varied, rich and dense content of various formats and types. In real time, this includes feeding the data from different sources such as text files, word documents or excel sheets.
    • Data preparation involves extracting the actual data out of the entire content fed. Only the data that really makes sense to the machine is used for processing. This step also involves checking for missing data, unwanted data and treatment of outliers.
    • Training involves using an appropriate algorithm and modelling the data. The data filtered in the second step is split into two parts and a part of it is used as training data and the second part is used as reference data. The training data is used to create the model.
    • Evaluating the model includes testing its accuracy. To verify its accuracy to the fullest, the model so developed is tested on such data which is not present in the data during the second step.
    • Finally, the performance of the machine is improved by choosing a different model that suits the different type of data that is present altogether. This is the step where the machine thinks and rethinks in selecting the model best suited for various types of data.

    Examples of Machine Learning

    The below examples will help you understand where machine learning is used in real time:

    Machine Learning Examples

    Speech Recognition

    Voice based searching and call rerouting are the best examples for speech recognition using machine learning. The principle lies in translating  spoken words into text and then segmenting them on the basis of their frequencies.

    Image Recognition

    We all use this in day to day life in sorting our pictures on our Google drive or Photos. The main technique that is used here is classifying the pictures based on the intensity (in case of black and white pictures) and measurement of intensities of red, blue and green for coloured images.

    Healthcare

    Various diagnoses are increasingly made using machine learning these days. Here, various clinical parameters are input to the machine which makes a prognosis  and then predicts the disease status and other health parameters of the person under study.

    Financial Services

    Machine learning helps in predicting chances of financial fraud, customer’s credit habits, spending patterns etc. The financial and banking sector is also doing market analysis using machine learning techniques.

    Machine Learning – Methods

    Machine learning is all about machines learning through the inputs provided. This learning is carried out in the following ways:

    Supervised Learning

    As the name says, the machine learns under supervision. Let’s see how this is done:

    • The entire process of learning takes place in the presence or supervision of a teacher.
    • This mode of learning contains basic steps as follows:
      • First, the machine is trained using a predefined data also called ‘labeled’ data.
      • Then, the correct answer is fed into the computer which allows it to understand what the right and wrong answers should be.
    • Lastly, the system is given a new set of data or unlabelled data, which it would now analyse using techniques such as classification and regression to predict the correct outcome for the current unlabelled data.

    Example:

    Consider a shape sorting game that kids play. A bunch of different shapes of wooden pieces are given to kids, say of square shape, triangular shape, circular shape and star shape. Assume that all blocks of a similar shape are of a unique colour. First, you teach the kids which shape is what  and then you ask them to do the sorting on their own.

    Similarly, in machine learning, you teach the machine through labelled data. Then, the machine is given some unknown data, which it analyses based on the previous labelled data and gives the correct outcome.

    In this case, if you observe, two techniques have been used.

    • Classification: Based on colors.
    • Regression: Based on shapes.

    As a further explanation,

    • Classification: A classification problem is when the output variable is a category, such as “Red” or “blue” or “disease” and “no disease”.
    • Regression: A regression problem is when the output variable is a real value, such as “dollars” or “weight”.

    Unsupervised Learning

    • In this type of learning, there is no previous knowledge, no previous training, nor a teacher to supervise. This learning is all instantaneous based on the data that is available at that given time.

    Example:

    Consider a kid playing with a mix of tomatoes and capsicums. They would sort them involuntarily based on their shape or color. This is an instantaneous reaction without any predefined set of attributes or training.

    A machine working on unsupervised learning would produce the results based on a similar mechanism. For this purpose, it uses two algorithms as explained below:

    • Clustering: This involves grouping a cluster of data. For example, this is used in analysing the online customer’s purchase patterns and shopping habits.
    • Association: This involves associating the given items based on the portion of their sizes. For example, analysing that people who bought large number of a given item would also prefer other similar items. 

    Semi-supervised Learning

    The name itself says the pattern of this algorithm.

    • It is a hybrid mix of both supervised and unsupervised learning and uses both labelled data and unlabelled data to predict the results.
    • In most occurrences, unlabelled data is given more in quantity than labelled data, because of cost considerations.
    • For example, in a folder of thousands of photographs, the machine sorts pictures based on the maximum number of common features (unsupervised) and already defined names of persons in the pictures, if any(supervised)

    Reinforcement Learning

    In reinforcement learning, there is no correct answer known to the system. The system learns from its own experience through a reinforcement agent. Since the answer is not known, the reinforcement agent decides what to do with the given task and for this it uses its experience from the current situation only.

    Example: In a robotic game that involves earning the hidden treasure, the algorithm focuses on bringing out the best outcome through trial and error method. Mainly three components are observed in this type of learning: the user, the environment and the action the user is performing. The algorithm adjusts itself accordingly to guide the user towards the best result that can be achieved.

    The diagram shown below summarizes the four types of learning we have learnt so far:

    Types of Machine Learning:- Supervised, Unsupervised, Semi-supervised and Reinforced Learning.

    Machine Learning – Algorithms

    Machine learning is rich in algorithms that allow programmers to pick one that best suits the context. Some of the machine learning algorithms are:

    • Neural networks
    • Decision trees
    • Random forests
    • Support vector machines
    • Nearest-neighbor mapping
    • k-means clustering
    • Self-organizing maps
    • Expectation maximization
    • Bayesian networks
    • Kernel density estimation
    • Principal component analysis
    • Singular value decomposition

    Machine Learning Tools and Libraries

    To start the journey with machine learning, a learner should have knowledge of tools and libraries that are quintessential to designing machine learning code. Here is a list of such tools and libraries:

    Tools

    Programming Language

    Machine learning can be coded either using R programming language or Python. Of late, Python has become more popular due to its rich libraries, ease of learning and coding friendliness.

    IDE

    Machine learning is widely coded in Jupyter Notebook. It simplifies writing of Python code and embedding plots and charts. Google Colab is another free tool that you can choose for the same purpose.

    Libraries

    Scikit-Learn

    • A very popular and beginner friendly library.
    • Supports most of the standard algorithms from supervised and unsupervised learning.
    • Offers models for data pre-processing and result analysis.
    • Limited support for deep learning.

    TensorFlow

    • Supports Neural networks and deep learning.
    • Bulky compared to scikit learn
    • Offers best computational efficiency
    • Supports many classical algorithms of machine learning.

    Pandas

    The data gathering and preparation part of machine learning that we have seen in the stages involved in machine learning is taken care of by Pandas. This library:

    • Gathers and prepares data that other libraries of machine learning can use at a later point in time.
    • Gathers data from any type of data source such as text, SQL DB, MS Excel or JSON files.
    • Contains many statistical functionalities that can be used to work on the data that’s gathered.

    NumPy and SciPy

    NumPy supports all array based and linear algebraic functions needed while working on data, while SciPy offers many scientific calculations. NumPy is more widely used in many real time applications of machine learning as compared to SciPy.

    Matplotlib

    This is a machine learning library that has an extensive collection of plots and charts. This library is a collection of many other packages. Of them, Seaborn is the most popular and is widely used to work on data structures.

    PyTorch and Keras

    These are known for their usage in Deep learning.

    • PyTorch library is extensively used for Deep Learning. It is known for its amazingly speedy calculations and is very popular among deep learning programmers.
    • Keras uses other libraries such as Tensor flow and is apt for developing neural networks.

    Tools and Libraries of Machine Learning

    Machine Learning – Processes

    Besides algorithms, machine learning offers many tools and processes to pair best with big data. Various such processes and tools that are at hand for developers are:

    • Data quality and management
    • GUIs that ease models and process flows
    • Data exploration in an interactive mode
    • Visualized outputs for models
    • Choosing the best learning model by comparison
    • Model evaluation done automatically that identifies the best performers
    • User friendly model deployment and data-to-decision process

    Machine Learning Use Cases

    Here is a list of five use cases that are based on machine learning:

    • PayPal: The online money transfers giant uses machine learning for detecting any suspicious activities related to financial transactions.
    • Amazon: The company’s Alexa, the digital assistant, is the best example of speech processing application of machine learning. The online retailing giant is also using machine learning to display recommendation to its customers.
    • Facebook: The social media company is using machine learning extensively to filter out spam posts and forwards, and to shred out poor quality content.
    • IBM: The company’s self-driven vehicle uses machine learning in taking a decision whether to give the driving control to a human or computer.
    • Kaspersky: The anti-virus manufacturing company is using machine learning to detect security breaches, or unknown malware threats and also for high quality endpoint security for businesses.

    Which Industries Use Machine Learning?

    As we have seen just now, machine learning is being adopted in many industries for the potential advantages it offers. Machine learning can be applied to any industry that deals with huge volumes of data, and which has many challenges to be answered. For instance, machine learning has been found to be extremely useful to organizations in the following domains which are  making the best use of the technology:

    Pharmaceuticals

    Pharma industry spends billions of dollars on drug design and testing every year across the globe. Machine learning helps in cutting down such costs and to obtain results with accuracy just by entering the entire data of the drugs and their chemical compounds and comparing with various other parameters.

    Banks and Financial Services

    This industry has two major needs to be addressed: attracting investor attention and increasing investments, and staying alert and preventing financial frauds and cyber threats. Machine learning does these two major tasks with ease and accuracy.

    Health Care and Treatments

    By predicting the possible  diseases that could affect a patient, based on the medical, genetic and lifestyle data, machine learning helps patients stay alert to probable health threats that they may encounter. Wearable smart devices are an example of the machine learning applications in health care.

    Online Sales

    Companies study the patterns that online shoppers are adopting through machine learning and use the results to display related ads, offers and discounts. Personalisation of internet shopping experience, merchandise supply panning and marketing campaigns are all based on the outcomes of machine learning results themselves.

    Mining, Oil and Gas

    Machine learning helps in predicting accurately the best location of availability of minerals, gas, oil and other such natural resources, which would otherwise need huge investments, manpower and time.

    Government Schemes

    Many governments are taking the help of machine learning to study the interests and needs of their people. They are accordingly using the results in plans and schemes, both for the betterment of people and optimum usage of financial resources.

    Space Exploration and Science Studies

    Machine learning greatly helps in studying stars, planets and finding out the secrets of other celestial bodies with far lesser investments and manpower. Scientists are also maximising the use of machine learning to discover various fascinating facts about the earth and its components.

    Future of Machine Learning

    Currently, machine learning is entering our lives with baby steps. By the next decade, radical changes can be expected in machine learning and the way it impacts our lives. Customers have already started trusting the power and comfort of machine learning, and would definitely welcome more such innovations in the near future.

    Gartner says:

    Artificial Intelligence and Machine Learning have reached a critical tipping point and will increasingly augment and extend virtually every technology enabled service, thing, or application.

    So, it would not be surprising if in the future, machine learning would:

    • Make its entry in almost every aspect of human  life
    • Be omnipresent in business and industries, irrespective of their size
    • Enter  cloud based services
    • Bring drastic changes in CPU design keeping in mind the need for computational efficiency
    • Altogether change the shape of data, its processing and usage
    • Change the way connected systems work and look  owing to the ever increasing data on the internet.

    Conclusion

    Machine learning is quite different in its own way. While many experts are raising concerns over the ever increasing dependence and presence of machine learning in our everyday lives, on the positive side, machine learning can work wonders. And the world is already witnessing its magic – in health care, finance industry, automotive industry, image processing and voice recognition and many other fields.

    While many of us worry that machines may take over the world, it is totally up to us, how we design effective, yet safe and controllable machines. There is no doubt that machine learning would change the way we do many things including education, business and health services making the world a safer and better place.

    Profile

    Ashish Gulati

    Data Science Expert

    Ashish is a techology consultant with 13+ years of experience and specializes in Data Science, the Python ecosystem and Django, DevOps and automation. He specializes in the design and delivery of key, impactful programs.

    Share This Article
    Ready to Master the Skills that Drive Your Career?

    Avail your free 1:1 mentorship session.

    Select
    Your Message (Optional)

    Upcoming Data Science Batches & Dates

    NameDateFeeKnow more
    Course advisor icon
    Course Advisor
    Whatsapp/Chat icon