| Literature DB >> 36048840 |
Rohitash Chandra1, Mukul Ranjan2.
Abstract
The Upanishads are known as one of the oldest philosophical texts in the world that form the foundation of Hindu philosophy. The Bhagavad Gita is the core text of Hindu philosophy and is known as a text that summarises the key philosophies of the Upanishads with a major focus on the philosophy of karma. These texts have been translated into many languages and there exist studies about themes and topics that are prominent; however, there is not much done using language models which are powered by deep learning. In this paper, we use advanced language models such as BERT to provide topic modelling of the Upanishads and the Bhagavad Gita. We then map those topics of the Bhagavad Gita and the Upanishads since it is well known that Bhagavad Gita summarizes the key messages in the Upanishads. We also analyse the distinct and overlapping topics amongst the texts and visualise the link of selected texts of the Upanishads with the Bhagavad Gita. Our results show very high similarity between the topics of these two texts with the mean cosine similarity of 73%. We find that out of the fourteen topics extracted from the Bhagavad Gita, nine of them have a cosine similarity of more than 70% with the topics of the Upanishads. We also find that topics generated by the BERT-based models show very high coherence when compared to the conventional models. Our best-performing model gives a coherence score of 73% on the Bhagavad Gita and 69% on the Upanishads. The visualization of the low-dimensional embeddings of these texts shows very clear overlapping themes among their topics adding another level of validation to our results.Entities:
Mesh:
Year: 2022 PMID: 36048840 PMCID: PMC9436095 DOI: 10.1371/journal.pone.0273476
Source DB: PubMed Journal: PLoS One ISSN: 1932-6203 Impact factor: 3.752
Details of the texts used for topic modelling.
| Texts | Translator | Year |
|---|---|---|
| The Bhagavad Gita [ | Eknath Easwaran | 1985 |
| The Upnishads [ | Eknath Easwaran | 1987 |
| The Ten Principal Upanishads [ | Shri Purohit Swami & W.B. Yeats | 1938 |
| 108 Upanishads [ | The International Gita Publication | – |
Fig 1Topic modelling framework for comparison of the Upanishads with the Bhagavad Gita.
Processed text after removing special characters and transforming archaic words into modern English.
| Original Documents | Transformed Documents |
|---|---|
| II-5(a). What winds up empirical life is (its) appearance as unreal. | what winds up empirical life is its appearance as unreal. |
| “What discipline is required to know, \u2018this is a pot, except the adequacy of the means of right \u2019 \n knowledge?” | the adequacy of the means of right knowledge.” |
| Lord, have we not prophesied in thy name? and in thy name have cast out \n devils? and in thy name done many wonderful works? | Lord have we not prophesied in your name and in your name have cast out devils and in your name done many wonderful works. |
Dataset statistics.
| Corpus | # Documents | # Words | Avg # words | # Verses |
|---|---|---|---|---|
| The Upanishads(Eknath Easwaran) | 862 | 40737 | 47.26 | 708 |
| The Bhagavad Gita(Eknath Easwaran) | 700 | 20299 | 27.50 | 700 |
| Ten principal Upanishads | 1267 | 27492 | 21.70 | 1267 |
| 108 Upanishads | 6191 | 405559 | 65.50 | 6191 |
Fig 2Chapter wise word count for different texts in the dataset.
Fig 3Leading bigrams and trigrams for the Bhagavad Gita and Upanishads by Eknath Easwaran.
Fig 4Leading bigrams and trigrams for the Ten Principal Upanishads.
Fig 5Topics of the Ten Principal Upanishads and some of their relevant documents(Model: USE-HDBSCAN-UMAP).
Fig 6Visualisation of top 20 words, and top 10 bigrams and trigrams for the Bhagavad Gita.
Fig 7Topics of Bhagavad Gita and the most relevant documents(Model: USE-HDBSCAN-UMAP).
Value of topic coherence metric (TC-NPMI) for different corpus.
| Model | Datasets | |||||||
|---|---|---|---|---|---|---|---|---|
| Bhagavad Gita | The Upanishads | Ten Principal Upanishads | 108 Upanishads | |||||
| # Topics | TC-NPMI | # Topics | TC-NPMI | # Topics | TC-NPMI | # Topics | TC-NPMI | |
| SBERT-UMAP-HDBSCAN | 14 | 0.70 | 18 | 0.67 | 28 | 0.70 | 115 | 0.63 |
| SBERT-UMAP-KMeans | 14 | 0.72 | 18 | 0.69 | 28 | 0.73 | 115 | 0.66 |
| USE-UMAP-HDBSCAN | 14 | 0.73 | 18 | 0.67 | 32 | 0.73 | 125 | 0.64 |
| USE-UMAP-KMeans | 14 | 0.73 | 18 | 0.69 | 32 | 0.71 | 125 | 0.67 |
| LDA | 20 | 0.32 | 20 | 0.29 | 24 | 0.31 | 140 | 0.39 |
Fig 8Visualization of the semantic space of the Bhagavad Gita (Eknath Easwaran) and the Upanishads (Eknath Easwaran) with topic labels.
Fig 10Visualization of the semantic space of different parts (based on 4 Vedas) of 108 Upanishads.
Topics of the Bhagavad Gita(Eknath Easwaran) with most similar topics from the Upanishads(Eknath Easwaran).
| Topics of Gita | Gita Topic ID | Most Similar topics in Upanishads | Upanishads Topic ID | Similarity Score |
|---|---|---|---|---|
| krishna,jayadratha,shraddha,ahamkara,arjuna,ikshvaku,sankhya,ashvattha,kusha,vishnu | topic-1 | sage,wisdom,devotee,sages,vishnu,mahabharata,devotees,samashrava,hindu,mahavakyas,theravada | topic-1 | 0.76 |
| selfless,selflessly,selfish,selfishly,desires,unkindness,desire,suffering,greed,themselves | topic-2 | desires,happiness,eternal,selfless,beings,spiritual,existence,spirituality,desire,joy,eternity,buddhism | topic-11 | 0.76 |
| worships,worship,devotion,devotees,eternal,myself,beings,eternity,spiritually,spiritual | topic-3 | eternal,divine,deity,eternity,lords,lord,everlasting,devotional,omnipotent,gods,beings,soul,beloved | topic-3 | 0.75 |
| meditation,meditate,spiritually,spiritual,yoga,minds,asceticism,spirit,nirvana,wisdom | topic-4 | meditation,meditating,meditates,meditate,meditated,minds,mind,spiritually,interiorize,enlightenment,spiritual | topic-5 | 0.90 |
| immortality,death,mortality,immortal,deathless,eternity,eternal,dying,mortal,dead,mortals | topic-5 | immortality,death,immortal,mortality,deathless,mortal,dying,mortals,eternity,deathlessness,eternal | topic-6 | 0.86 |
| gods,eternal,universe,beings,eternity,heavens,celestial,immortality,heavenly,divine,god | topic-6 | celestial,sun,heavens,earth,earthly,heaven,heavenly,luminous,sunrise,sky,universe,illumined,light,illumine | topic-8 | 0.80 |
| brahman,wisdom,devotees,brahma,devotee,teachings,sages,worships,divine,devote | topic-7 | sage,wisdom,devotee,sages,vishnu,mahabharata,devotees,samashrava,hindu,mahavakyas,theravada,hindus,buddhi | topic-1 | 0.74 |
| existence,universe,beings,eternal,nonexistence,immortality,creatures,eternity,creature,cosmos | topic-8 | universe,omnipotent,eternal,cosmos,eternity,beings,cosmic,immortal,gods,celestial,deity,beyondness,god,heavens | topic-7 | 0.73 |
| ignorance,ignorant,wisdom,delusions,darkness,delusion,evils,intellects,eternal,asceticism | topic-9 | meditation,meditating,meditates,meditate,meditated,minds,mind,spiritually,interiorize,enlightenment,spiritual | topic-5 | 0.67 |
| senses,sense,feeling,selflessly,selfless,selfishly,feel,selfish,minds,oneself,themselves,perceive | topic-10 | meditation,meditating,meditates,meditate,meditated,minds,mind,spiritually,interiorize,enlightenment,spiritual | topic-5 | 0.78 |
| enemy,enemies,conquer,defeat,fight,fighting,conquered,battle,fought,nonviolence,dishonor | topic-11 | immortality,death,immortal,mortality,deathless,mortal,dying,mortals,eternity,deathlessness,eternal,dead,deaths | topic-6 | 0.60 |
| forgiving,renunciation,fulfill,selfless,nonbeing,unpleasant,selflessly,fulfilling,insatiable,indulging | topic-12 | selfs,self,selfless,oneself,himself,themselves,selfish,ego,itself,egoism,yourself,independently,ourselves,autonomic | topic-14 | 0.55 |
| actions,act,action,acts,acting,inaction,selflessly,selfless,themselves,unaffected,indifference,ignorance | topic-13 | selfs,self,selfless,oneself,himself,themselves,selfish,ego,itself,egoism,yourself,independently,ourselves,autonomic | topic-14 | 0.60 |
| beings,spiritual,gods,divine,heavens,ocean,spiritually,shudra,ahamkara,rudras,sacred,worships | topic-14 | sage,wisdom,devotee,sages,vishnu,mahabharata,devotees,samashrava,hindu,mahavakyas,theravada,hindus,buddhi | topic-1 | 0.68 |
| Mean Similarity Score(AvgSim) | 0.73 | |||
Topics of the Bhagavad Gita(Eknath Easwaran) with most similar topics from the Ten Principal Upanishads(Shri Purohit Swami & W.B. Yeats).
| Topics of Gita | Gita Topic ID | Most Similar topics in Upanishads | Upanishads Topic ID | Similarity Score |
|---|---|---|---|---|
| krishna,jayadratha,shraddha,ahamkara,arjuna,ikshvaku,sankhya,ashvattha,kusha,vishnu | topic-1 | sage,watnadewa,jaiwali,sages,told,riddle,heard,butspirit,spoke,whoknows,thathe,speak,spirits | topic-2 | 0.65 |
| selfless,selflessly,selfish,selfishly,desires,unkindness,desire,suffering,greed,themselves | topic-2 | himself,self,selfexistent,oneself,desires,eternal,beings,desire,selfwilled,devotee,worship,sinful | topic-4 | 0.77 |
| worships,worship,devotion,devotees,eternal,myself,beings,eternity,spiritually,spiritual | topic-3 | immortality,immortal,immortals,heaven,eternal,heavenborn,heavens,heavenly,celestial,paradise | topic-14 | 0.70 |
| meditation,meditate,spiritually,spiritual,yoga,minds,asceticism,spirit,nirvana,wisdom | topic-4 | meditation,meditating,meditates,spiritual,spirit,meditated,meditate,meditations,spirits,butspirit | topic-7 | 0.80 |
| immortality,death,mortality,immortal,deathless,eternity,eternal,dying,mortal,dead,mortals | topic-5 | immortality,death,immortal,inlife,deathless,dead,mortality,life,dying,immortals,eternal,mortal,dies | topic-5 | 0.89 |
| gods,eternal,universe,beings,eternity,heavens,celestial,immortality,heavenly,divine,god | topic-6 | heavenborn,eternal,heavens,celestial,heaven,fire,heavenly,spirits,gods,ablaze,immortality,beings,spirit,immortal | topic-1 | 0.82 |
| brahman,wisdom,devotees,brahma,devotee,teachings,sages,worships,divine,devote | topic-7 | knowledge,whoknows,knowthe,wisdom,known,unknowable,knower,knowing,knew,knows,omniscient | topic-11 | 0.67 |
| existence,universe,beings,eternal,nonexistence,immortality,creatures,eternity,creature | topic-8 | eternal,everything,beings,immortality,immortal,everybodys,everybody,all,every,everyone,earthly,allcontaining,whatever | topic-6 | 0.73 |
| ignorance,ignorant,wisdom,delusions,darkness,delusion,evils,intellects,eternal,asceticism | topic-9 | knowledge,whoknows,knowthe,wisdom,known,unknowable,knower,knowing,knew,knows,omniscient | topic-11 | 0.71 |
| enemy,enemies,conquer,defeat,fight,fighting,conquered,battle,fought,nonviolence,dishonor | topic-10 | immortality,death,immortal,inlife,deathless,dead,mortality,life,dying,immortals,eternal,mortal,dies | topic-5 | 0.61 |
| senses,sense,feeling,selflessly,selfless,selfishly,feel,selfish,minds,oneself,themselves,perceive | topic-11 | self,oneself,selfevident,selfwilled,himself,selfdependent,selfcreator,selfexistent,selfborn,selfdepending,itself,selfinterest | topic-8 | 0.64 |
| forgiving,renunciation,fulfill,selfless,nonbeing,unpleasant,selflessly,fulfilling,insatiable,indulging | topic-12 | himself,self,selfexistent,oneself,desires,eternal,beings,desire,selfwilled,devotee,worship,sinful,worshipper,gods,godless | topic-4 | 0.64 |
| actions,act,action,acts,acting,inaction,selflessly,selfless,themselves,unaffected,indifference,ignorance | topic-13 | himself,self,selfexistent,oneself,desires,eternal,beings,desire,selfwilled,devotee,worship,sinful,worshipper,gods,godless | topic-4 | 0.56 |
| beings,spiritual,gods,divine,heavens,ocean,spiritually,shudra,ahamkara,rudras,sacred,worships,devotees | topic-14 | heavenborn,eternal,heavens,celestial,heaven,fire,heavenly,spirits,gods,ablaze,immortality,beings,burning,spirit,immortal | topic-1 | 0.76 |
| Mean Similarity Score(AvgSim) | 0.71 | |||
Fig 11Heatmap showing the similarity between different topics of Bhagavad Gita (Eknath Easwaran) and Upanishads (Eknath Easwaran) generated from a selected approach (SBERT-UMAP-HDBSCAN).
Fig 12Heatmap showing the similarity between different topics of Bhagavad Gita (Eknath Easwaran) and the Ten Principal Upanishads (Shri Purohit Swami & W.B. Yeats) generated from a selected approach (SBERT-UMAP-HDBSCAN).
Fig 9Visualisation of different topics of 108 Upanishads.
Classification of 108 Upanishads based on the four key Vedas.
Note that the original Yajur Veda is divided into two parts (Krishna- Yajur-Veda and Sukla-Yajur-Veda).
| Vedas | Number | Titles (names) of the Upanishad |
|---|---|---|
| Atharva-Veda | 31 | Prasna,Mundaka,Mandukya, Atahrvasiras,Atharvasikha,Brihajjabala,Devi Nrisimhatapini,Naradaparivrajaka,Sita,Sarabha,Tripadvibhuti-Mahanarayana,Ramarahasya,Ramatapini,Sandilya,Paramahamsaparivrajaka,Annapurna,Surya,Atma,Pasupatabrahmana,Parabrahma,Tripuratapini,Bhavana,Bhasmajabala,Ganapati,Mahavakya,Gopalatapini,Krishna,Hayagriva,Dattatreya,Garuda |
| Krishna-Yajur-Veda | 32 | Kathavalli,Taittiriyaka,Brahma,Kaivalya,Svetasvatara, Garbha,Varaha,Akshi Narayana,Amritabindu,Amritanada,Kalagnirudra,Kshurika,Sarvasara Sukarahasya,Tejobindu,Dhyanabindu,Brahmavidya,Yogatattva,Dakshinamurti,Skanda,Sariraka,Yogasikha,Ekakshara,Avadhuta,Katharudra,Rudrahridaya,Yoga-kundalini,Panchabrahma,Pranagnihotra,Kalisamtarana,Sarasvatirahasya |
| Sukla-Yajur-Veda | 19 | Isavasya,Brihadaranyaka,Jabala,Hamsa,Paramahamsa,Paingala,Bhiksu,Tarasara Mantrika,Niralamba,Trisikhibrahmana,Mandalabrahmana,Turiyatita,Subala Satyayani,Muktika,Advayataraka,Adhyatma,Yajnavalkya |
| Sama Veda | 16 | Kena,Chandogya,Aruni,Maitrayani,Maitreya,Vajrasuchika,Jabali Rudrakshajabala, Yogachudamani,Vasudeva,Savitri,Darsana Mahat,Sannyasa,Avyakta,Kundika |
| Rig Veda | 10 | Aitareya,Kaushitakibrahmana,Nadabindu,Atmabodha,Nirvana,Mudgala,Akshamalika,Tripura,Saubhagyalakshmi, Bahvricha |
Fig 13Comparison of dimensionality reduction and visualisation by PCA and UMAP for the combined semantic space of the Bhagavad Gita (Eknath Easwaran) and the Upanishads (Eknath Easwaran).
Note that the PCA has 4.4% explained variance ratio for dim = 1 and 3.7% for dim = 2, taken from total of 500 dimensions in original data.