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

Modern Roller Shutters and Electric Roller Shutters: Security, Style, and Smart Living

When it comes to home and business security, few solutions offer the same balance of protection, convenience, and style as modern roller shutters. D...

What Is a Plunge Pool? A Complete Guide for Australian Backyards

Plunge pools have become one of Australia’s most sought-after outdoor features, offering a stylish, compact, and refreshing escape for homes of all ...

Gas Ducted Heating: Efficient, Reliable, and Cost-Effective Warmth for Melbourne Homes

Melbourne’s winters are known for their biting cold, and maintaining a comfortable indoor temperature becomes a top priority for homeowners. While...

Common Commercial Leasing Mistakes and How to Avoid Them

Leasing a commercial property is a major commitment that can shape the future of a business. Yet, many tenants and landlords overlook key details th...

Laser Skin Tightening: The Non-Surgical Way to Restore Youthful, Firm Skin

As we age, our skin naturally begins to lose its elasticity and firmness due to reduced collagen and elastin production. For those seeking to restor...

Car Rental Mistakes Most People Make

Car rental appears to be easy, but most travellers unintentionally get stuck in usual pitfalls that incur unnecessary expense and tension. Unseen ch...

Choosing the Right Aircon Store in Brisbane Northside

Picking the right air conditioning unit for your home is only half the battle. Just as crucial is finding a top-notch air conditioning store to back i...

Split System Maintenance Tips for Better Efficiency

Split system air conditioners are a staple in homes across Brisbane Northside, and for good reason. They are a cost effective, energy efficient soluti...

Nutifood, GippsNature Launch First Product in Vietnam - Australia Partnership

Executives from both companies expressed confidence in the roadmap’s long-term impact The debut signals stronger cross-border ambitions in premiu...

How Working with Lawyers Can Strengthen Your Legal Position

Engaging experienced lawyers in Melbourne is important when dealing with legal matters. Whether it involves business, property or personal law, the ...

The Role of Cantilever Racking in Handling Long and Bulky Items

In industries that handle oversized materials, finding the right storage system is essential for safety and efficiency. This is where cantilever rac...

House Builders Melbourne: Expert Craftsmanship for Modern Living

Building a home is more than just a construction project — it’s about creating a space where families grow, memories are made, and lifestyles ev...

Seamless Business Relocations Made Easy with Office Movers in Gold Coast

Relocating an office is a complex process that requires careful planning, coordination, and execution. From moving delicate electronics to arranging f...

DIY Air Conditioning Risks & How to Avoid Costly Repairs

When the scorching Queensland heat kicks in, the urge to grab a screwdriver and tackle your air conditioner fix to yourself is totally understandable...

WooCommerce Website Designer: Building High-Performance Online Stores That Drive Sales

A WooCommerce website designer plays a crucial role in helping businesses create high-performing, visually appealing, and conversion-focused online...

The Importance of Dogging Courses in Australia: How to Get Your Dogman Ticket

In Australia’s construction, mining, and industrial sectors, safety and technical competence are essential for any worker handling heavy loads and l...

Beyond the Hype: Why Breitling Speaks to the Modern Watch Collector

There’s a point every collector reaches when the chase for the latest release gives way to a deeper appreciation for quality. The thrill of new mode...

Elevate your Perth workspace: Sleek tech with managed IT Services

In today's fast-paced business environment, having a reliable and efficient IT infrastructure is no longer a luxury, it's a necessity. For businesse...