The Times Australia
The Times World News

.
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[1], 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[2] 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[3] epic, which recounts the events of an ancient war[4] 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[5]

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[6], management, leadership[7] and conflict resolution.

Countless translations

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

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[10], 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[11] during the onset of the COVID-19 pandemic.

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

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[13]

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.

References

  1. ^ analyse English translations of the Bhagavad Gita (ieeexplore.ieee.org)
  2. ^ Bhagavad Gita (en.wikipedia.org)
  3. ^ Mahabharata (en.wikipedia.org)
  4. ^ ancient war (en.wikipedia.org)
  5. ^ Indian philosophy helps us see clearly, act wisely in an interconnected world (theconversation.com)
  6. ^ psychology (journals.sagepub.com)
  7. ^ leadership (www.inderscienceonline.com)
  8. ^ Wikimedia Commons (en.wikipedia.org)
  9. ^ CC BY (creativecommons.org)
  10. ^ BERT (arxiv.org)
  11. ^ social media sentiment (journals.plos.org)
  12. ^ Chandra (ieeexplore.ieee.org)
  13. ^ Chandra and Kulkarni (ieeexplore.ieee.org)

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

Times Magazine

Effective Commercial Pest Control Solutions for a Safer Workplace

Keeping a workplace clean, safe, and free from pests is essential for maintaining productivity, protecting employee health, and upholding a company's reputation. Pests pose health risks, can cause structural damage, and can lead to serious legal an...

The Science Behind Reverse Osmosis and Why It Matters

What is reverse osmosis? Reverse osmosis (RO) is a water purification process that removes contaminants by forcing water through a semi-permeable membrane. This membrane allows only water molecules to pass through while blocking impurities such as...

Foodbank Queensland celebrates local hero for National Volunteer Week

Stephen Carey is a bit bananas.   He splits his time between his insurance broker business, caring for his young family, and volunteering for Foodbank Queensland one day a week. He’s even run the Bridge to Brisbane in a banana suit to raise mon...

Senior of the Year Nominations Open

The Allan Labor Government is encouraging all Victorians to recognise the valuable contributions of older members of our community by nominating them for the 2025 Victorian Senior of the Year Awards.  Minister for Ageing Ingrid Stitt today annou...

CNC Machining Meets Stage Design - Black Swan State Theatre Company & Tommotek

When artistry meets precision engineering, incredible things happen. That’s exactly what unfolded when Tommotek worked alongside the Black Swan State Theatre Company on several of their innovative stage productions. With tight deadlines and intrica...

Uniden Baby Video Monitor Review

Uniden has released another award-winning product as part of their ‘Baby Watch’ series. The BW4501 Baby Monitor is an easy to use camera for keeping eyes and ears on your little one. The camera is easy to set up and can be mounted to the wall or a...

The Times Features

Running Across Australia: What Really Holds the Body Together?

How William Goodge’s 3,800km run reveals the connection between movement, mindset, and mental resilience As a business owner, I’ve come to realise that the biggest wins rarely com...

Telehealth is Transforming Healthcare Services in Australia

It has traditionally not been easy to access timely healthcare in Australia, particularly for people who live in remote areas. Many of them spend hours on the road just to see a...

Launchd Acquires Huume, Strengthening Creative Firepower Across Talent-Led Marketing

Launchd, a leader in talent, technology and brand partnerships, has announced its acquisition of influencer talent management agency Huume from IZEA. The move comes as the medi...

Vietnam's "Gold Coast" Emerges as Extraordinary Investment Frontier and Australian Inspired Way of Life

$2 Billion super-city in Vung Tau set to replicate Australia's Gold Coast success story A culturally metamorphic development aptly named "Gold Coast" is set to reshape Vietna...

Choosing the Wrong Agent Is the #1 Regret Among Aussie Property Sellers

Selling your home is often one of the largest financial transactions you’ll make, and for many Australians, it’s also one of the most emotional. A new survey of Australian home se...

Travel Insurance for Families: What Does it Cover and Why it’s Essential

Planning a family trip is exciting, but unexpected mishaps can turn your dream vacation into a stressful ordeal. That’s where travel insurance comes in—it’s your safety net when ...