Modern Australian
Men's Weekly

.

what machine learning can tell us about the Bhagavad Gita

  • Written by Rohitash Chandra, Senior Lecturer, UNSW Sydney
what machine learning can tell us about the Bhagavad Gita

Machine learning and other artificial intelligence (AI) methods have had immense success with scientific and technical tasks such as predicting how protein molecules fold and recognising faces in a crowd. However, the application of these methods to the humanities are yet to be fully explored.

What can AI tell us about philosophy and religion, for example? As a starting point for such an exploration, we used deep learning AI methods to analyse English translations of the Bhagavad Gita, an ancient Hindu text written originally in Sanskrit.

Using a deep learning-based language model called BERT, we studied sentiment (emotions) and semantics (meanings) in the translations. Despite huge variations in vocabulary and sentence structure, we found that the patterns of emotion and meaning were broadly similar in all three.

This research opens a path to the use of AI-based technologies for comparing translations and reviewing sentiments in a wide range of texts.

An ancient book of wisdom

The Bhagavad Gita is one of the central Hindu sacred and philosophical texts. Written more than 2,000 years ago, it has been translated into more than 100 languages and has been of interest to western philosophers since the 18th century.

The 700-verse poem is a part of the larger Mahabharata epic, which recounts the events of an ancient war believed to have occurred at Kurukshetra near modern-day Delhi in India.

Read more: Indian philosophy helps us see clearly, act wisely in an interconnected world

The text of the Bhagavad Gita relates a conversation between the Hindu deity Lord Krishna and a prince called Arjuna. They discuss whether a soldier should go to war for ethics and duty (or “dharma”) if they have close friends or family on the opposing side.

The text has been instrumental in laying the foundations of Hinduism. Among many other things, it is where the philosophy of karma (a spiritual principle of cause and effect) originates.

Scholars have also regarded the Bhagavad Gita as a book of psychology, management, leadership and conflict resolution.

Countless translations

The first of many English translations of the Bhagavad Gita was published in 1785. Wikimedia Commons, CC BY

There have been countless English translations of the Bhagavad Gita, but there is not much work that validates their quality. Translations of songs and poems not only break rhythm and rhyming patterns, but can also result in the loss of semantic information.

In our research, we used deep learning language models to analyse three selected translations of the Bhagavad Gita (from Sanskrit to English) with semantic and sentiment analyses which help in the evaluation of translation quality.

We used a pre-trained language model known as BERT, developed by Google. We further tuned the model using a human-labelled training dataset based on Twitter posts, which captures 10 different sentiments.

These sentiments (optimistic, thankful, empathetic, pessimistic, anxious, sad, annoyed, denial, surprise, and joking) were adopted from our previous research into social media sentiment during the onset of the COVID-19 pandemic.

A schematic diagram showing how the AI analysis works. Chandra, Author provided

Patterns of sentiment

The three translations we studied used very different vocabulary and syntax, but the language model recognised similar sentiments in the different chapters of the respective translations. According to our model, optimistic, annoyed and surprised sentiments are the most expressed.

Sentiments captured by our language model for different translations of the Bhagavad Gita. Chandra and Kulkarni, Author provided

Moreover, the model showed how the overall sentiment polarity changes (from negative to positive) over the course of the conversation between Arjuna and Lord Krishna.

Arjuna is pessimistic towards the beginning and becomes optimistic as Lord Krisha imparts knowledge of Hindu philosophy to him. The sentiments expressed by Krishna show that with philosophical knowledge of dharma and mentorship, a troubled mind can get clarity for making the right decisions in times of conflict.

One limitation of our model is that it was trained on data from Twitter, so it recognises “joking” as a common sentiment. It applies this label inappropriately to some parts of the Bhagavad Gita. Humour is complicated and strongly culturally constrained, and understanding it is too much to ask of our model at this stage.

Due to the nature of the Sanskrit language, the fact that the Bhagavad Gita is a song with rhythm and rhyme, and the varied dates of the translations, different translators used different vocabulary to describe the same concepts.

The table below shows some of the most semantically similar verses from the three translations.

The uses of sentiment analysis

Our research points the way to the use of AI-based technologies for comparing translations and reviewing sentiments in a wide range of texts.

This technology can also be extended to review sentiments expressed in entertainment media. Another potential application is analysing movies and songs to provide insights to parents and authorities about the suitability of content for children.

The author would like to acknowledge the invaluable contribution of Venkatesh Kulkarni to this research.

Authors: Rohitash Chandra, Senior Lecturer, UNSW Sydney

Read more https://theconversation.com/ai-philosophy-and-religion-what-machine-learning-can-tell-us-about-the-bhagavad-gita-182517

Best EPD Consultants in Australia

Environmental Product Declarations (EPDs) play an increasingly important role in the Australian construction, manufacturing, and infrastructure sect...

I/O Controller And Its Role In Modern Industrial Automation

Industrial automation relies on a range of advanced technologies to ensure precision, speed, and reliability in day-to-day operations. Among these t...

Hydraulic Systems And Their Importance In Modern Industry

A hydraulic system plays a vital role in powering machinery, controlling movement, and delivering high-force performance across countless industrial...

Why Australian Businesses Are Having a Second Think About Digital Growth

Running a business these days is a whole lot different to how it was even a few short years ago. Customers are better informed, there's more competi...

Restaurants Risk Compliance Issues Amid Commercial Plumber Shortage

As demand for housing, roads and facilities increases, so does the demand for trade workers. According to Infrastructure Australia, the construction i...

The Importance Of A Professional Medical Fitout Melbourne For Modern Healthcare Facilities

Healthcare environments must operate with precision, efficiency, and a strong focus on patient comfort. A well-planned medical fitout Melbourne hel...

Top Safety and Comfort Features to Consider in Family Off Road Caravans

Exploring Australia’s coastline, bush tracks or outback locations is far more enjoyable when travelling in a caravan designed for both comfort and...

“Logistical Nightmare” – Rural and Remote Communities Supply Chain Nightmares

Australia’s road logistics need major reform to counteract the supply chain issues that are hitting rural and regional communities hard. With 80% of...

The Importance Of Quality Bait Boards For Boats To Enhance Fishing Efficiency And Comfort

Fishing enthusiasts understand that having the right equipment on board makes every trip smoother and more enjoyable. One essential accessory for an...

The Essential Safety Gear Every Tradesman Needs

Across industries like construction, electrical work, plumbing, carpentry, and welding, workers face hazards every single day. For tradesmen, having...

Best POS System Features That Boost Customer Experience

Source: Unsplash Starting and scaling a retail business is unlikely possible without an effective Point of Sale (POS) system. It is the tech heartbe...

Understanding SMSF Setup Online and Why More Australians Are Choosing Digital Fund Establishment

liManaging your own superannuation gives you greater control over investments, retirement planning, and long-term financial decision-making. As inte...

Double Carport: Complete Guide to Design, Cost, and Installation

A double carport provides practical, cost-effective protection for two vehicles whilst adding value and functionality to your property. Whether you're...

How External Blinds and Awnings Improve Comfort, Privacy, and Energy Efficiency

Outdoor comfort and protection are essential for homes and commercial properties, especially in regions with strong sunlight, high UV exposure, and ...

Worksite Comfort Upgrades That Boost Team Productivity

Jobsite productivity doesn’t depend solely on tools, training, or scheduling. It also hinges on something often overlooked: worker comfort. When e...

NDIS Occupational Therapy: Your Complete Guide to Accessing Support and Services

Occupational therapy plays a crucial role in helping NDIS participants achieve their goals and improve their daily living skills. For people with disa...

How to Start Trading Futures in Australia: Markets, Margin and Regulation

Futures trading has become increasingly popular among Australian traders seeking opportunities across global commodities, indices, currencies and ener...

The Importance Of Residential Scaffolding For Safe And Efficient Home Projects

Home construction and renovation projects require reliable access systems that prioritise both worker safety and structural stability. Whether the p...