Indian Penal Code Recognition Using Multiclass Classification Algorithms in Machine Learning
Indian Penal Code Recognition Using Multiclass Classification Algorithms in Machine Learning
ISSN No:-2456-2165
Abstract:- As of May 2022, over 4.7 crore cases are pending With the digitalization of the Indian Judiciary the process
in courts across different levels of the judiciary. This has of judgment can be enhanced and greatly reduced. The Indian
resulted in a ponderous burden on the Indian judiciary Penal Code is the official penal code of the Republic of India.
system. According to Experts the reason why we have this It is a complete code designed to cover all aspects of criminal
problem is due to lack of infrastructure in the Indian law. The draft of the Indian Penal Code was prepared by the
Judiciary System. With this study I build a machine First Judicial Council, chaired by Thomas Babington Macaulay.
learning model that can determine the applicable Indian The draft was based on a simple codification of English law,
Penal Code according to the description provided by the but at the same time borrowed elements from the Napoleonic
user. I have used two machine learning approaches, one vs Code and the Louisiana Civil Code of 1825.The IPC has been
rest and one vs one multi-class classification. The one vs rest successful by and large in its attempt to prosecute and punish
classification using Logistic Regression has a 99% accuracy individuals who commit the crimes that are defined in this
on training data. Code, but like Sedition there have been certain other provisions
that have invited scrutiny time and again. IPC as a statute has
Keywords:- Machine Learning, Natural Language Processing, survived and flourished over the last 160 years, which speaks
Multiclass Classification. volumes about its effectiveness as a penal code of high stature.
However, over the years he has failed to get rid of some
I. INTRODUCTION positions that smell of colonialism, for example. Rebellion. The
Malimat Commission's report advocating criminal justice
Between 2015 and 2019, the average number of pending reform provided an opportunity for Congress to update the
cases was approximately 1.8 million per year, but the High Code and other criminal laws. Seventeen years have passed
Court currently lists 5.8 million pending cases. In most cases, since the report was submitted, but no concrete action has been
the number of cases closed is lower than the number of cases taken in this regard. It's time for the legislature to intervene to
opened, which continues to exacerbate the problem.[1] This has make the code more modern than the British colonies. High
resulted in a huge backlog of cases and has in turn resulted in courts stepping in and breaking the law does not reflect well on
delay of justice. Experts have looked into this problem and the legislature. Because that's the legislature's job in the first
determined the various reasons as to why this is happening. The place.[3]
foremost reason is the pending vacancies in the judiciary sector.
One of the ways we can solve this is by encouraging digital In this study, I aim to reduce the time taken on determining
courts in our country. Raj said there is a need to "expand and the applicable Indian Penal Code and the confusion around it.
strengthen the system of digital courts, i.e. online courts, so that For a common man finding the appropriate section that is
majority of the cases can be decided through the online system, applicable in a given situation is very complicated and the
which will popularize the judiciary, decentralize it and expedite person will have to seek a legal consultation which costs a lot
the process of adjudication, across the country."[2] both financially and timely. With this model we can predict the
applicable IPCs in a particular situation based on the description
Justice has often been delayed for people even for the provided by the user. This can help an individual get an idea of
fundamental rights. A lot of farmers have been affected due to the seriousness of the situation and where do they stand in the
this slump in our judiciary system. People have to be released entirety. The problem involves classifying the correct IPC
after 20 to 30 years because enough evidence could not be applicable based on the user input. For this we will be using two
gathered to acquit them of charges. Then we come across cases of the machine learning algorithms which are multi class
where people have waited years and even passed away after classification algorithm. One vs Rest and One vs One is used
which their descendants had to fight the cases on their behalf and the accuracy for both of these models are compared on the
and they were granted justice after 20 years. Such incidence training set.
puts the trust of people on democracy on a thin line and people
lose hope.