<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Notebooks on Biraj Koirala</title><link>https://birajkoirala.com.np/tags/notebooks/</link><description>Recent content in Notebooks on Biraj Koirala</description><generator>Source Themes academia (https://sourcethemes.com/academic/)</generator><language>en-us</language><copyright>Copyright &amp;copy; {year}</copyright><lastBuildDate>Tue, 10 Dec 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://birajkoirala.com.np/tags/notebooks/index.xml" rel="self" type="application/rss+xml"/><item><title>A Comprehensive Analysis of Image Captioning Models - Evaluating ViT-GPT2, BLIP, and GIT</title><link>https://birajkoirala.com.np/post/4.image-caption-analysis/</link><pubDate>Tue, 10 Dec 2024 00:00:00 +0000</pubDate><guid>https://birajkoirala.com.np/post/4.image-caption-analysis/</guid><description>&lt;h2>Table of Contents&lt;/h2>
&lt;nav id="TableOfContents">
&lt;ul>
&lt;li>&lt;a href="#dataset-composition">Dataset Composition&lt;/a>&lt;/li>
&lt;li>&lt;a href="#dataset-challenges">Dataset Challenges&lt;/a>&lt;/li>
&lt;li>&lt;a href="#sample-image-and-prompt">Sample Image and Prompt&lt;/a>&lt;/li>
&lt;li>&lt;a href="#models-used-for-caption-generation">Models used for caption generation&lt;/a>&lt;/li>
&lt;li>&lt;a href="#results">Results&lt;/a>&lt;/li>
&lt;li>&lt;a href="#quantitative-results-and-qualitative-analysis">Quantitative Results and Qualitative Analysis&lt;/a>&lt;/li>
&lt;li>&lt;a href="#model-strengths-and-weakness">Model Strengths and Weakness&lt;/a>&lt;/li>
&lt;li>&lt;a href="#evaluation-metrics">Evaluation Metrics&lt;/a>&lt;/li>
&lt;li>&lt;a href="#limitations">Limitations&lt;/a>&lt;/li>
&lt;li>&lt;a href="#combined-meteor-for-models-tested">Combined METEOR for models tested&lt;/a>&lt;/li>
&lt;li>&lt;a href="#combined-bleu-1-for-models-tested">Combined BLEU-1 for models tested&lt;/a>&lt;/li>
&lt;li>&lt;a href="#combined-bleu-2-for-models-tested">Combined BLEU-2 for models tested&lt;/a>&lt;/li>
&lt;/ul>
&lt;/nav>
&lt;p>This project is a comparative study of Image caption generation model . This experiment aims to provide:&lt;/p>
&lt;ul>
&lt;li>A detailed breakdown of the architectures and mechanisms of ViT-GPT2, BLIP, and GIT.&lt;/li>
&lt;li>A quantitative and qualitative analysis of their performance.&lt;/li>
&lt;li>Insights into the strengths, limitations, and suitability of each model for real-world applications.&lt;/li>
&lt;/ul>
&lt;p>The dataset utilized for this study consists of 600 images, sourced exclusively from open-access platforms to ensure accessibility and reproducibility. Each image was meticulously self-annotated with high-quality captions to create a reliable ground truth for evaluating the models&amp;rsquo; performance.&lt;/p>
&lt;a class="btn btn-primary "
href="https://github.com/biraj094/image-caption-analysis"
target="_blank">Visit the Project on GitHub
&lt;/a>
&lt;a class="btn btn-primary "
href="https://www.kaggle.com/datasets/koiralabiraj/image-annotation/data"
target="_blank">View data in Kaggle
&lt;/a>
&lt;hr>
&lt;h2 id="dataset-composition">Dataset Composition&lt;/h2>
&lt;div class="custom-list ">
&lt;ol style="list-style-type:decimal">
&lt;li>&lt;span style="text-decoration: underline;"> Animals &lt;/span> - Includes various species in diverse settings, such as wildlife, pets, and zoos.&lt;/li>
&lt;li>&lt;span style="text-decoration: underline;"> Humans &lt;/span> - Depicts people in natural environments, performing activities, and interacting with objects.&lt;/li>
&lt;li>&lt;span style="text-decoration: underline;"> Architecture &lt;/span> - Captures man-made structures, including buildings, bridges, and urban landscapes.&lt;/li>
&lt;li>&lt;span style="text-decoration: underline;"> Natural Formations and Nature &lt;/span> - Covers landscapes, forests, mountains, rivers, and other natural scenes.&lt;/li>
&lt;li>&lt;span style="text-decoration: underline;"> Everyday Objects &lt;/span> - Features commonly found objects, such as tools, household items, and vehicles.&lt;/li>
&lt;/ol>
&lt;/div>
&lt;p>The data that we collected have been uploaded to Kaggle. Please check them out &lt;a href="https://www.kaggle.com/datasets/koiralabiraj/image-annotation/data">here&lt;/a>.&lt;/p>
&lt;hr>
&lt;h2 id="dataset-challenges">Dataset Challenges&lt;/h2>
&lt;div class="custom-list ">
&lt;ol style="list-style-type:decimal">
&lt;li>&lt;span style="text-decoration: underline;">Diversity of Visual Content&lt;/span>: Ensuring the dataset captures a wide variety of visual scenes and objects for generalizability.&lt;/li>
&lt;li>&lt;span style="text-decoration: underline;">Annotation Quality&lt;/span>: Maintaining consistency in style and accuracy across all annotated captions.&lt;/li>
&lt;li>&lt;span style="text-decoration: underline;">Ambiguity&lt;/span>: Handling images with multiple possible interpretations, where different valid captions could describe the same image.&lt;/li>
&lt;/ol>
&lt;/div>
&lt;hr>
&lt;h2 id="sample-image-and-prompt">Sample Image and Prompt&lt;/h2>
&lt;figure class="figure">
&lt;img src="cat9_img1.jpeg"
alt=""
title="Sample Image"
style="width: 25%; height: auto;">
&lt;/figure>
&lt;div class="custom-list ">
&lt;ol style="list-style-type:decimal">
&lt;li>&lt;span style="text-decoration: underline;">Custom Annotation&lt;/span> - Man attempting a slam dunk&lt;/li>
&lt;li>&lt;span style="text-decoration: underline;">vit-gpt2&lt;/span> - a woman jumping in the air to catch a frisbee&lt;/li>
&lt;li>&lt;span style="text-decoration: underline;">blip-conditional&lt;/span> - a photography of a basketball player jumping to the basket&lt;/li>
&lt;li>&lt;span style="text-decoration: underline;">blip-unconditional&lt;/span> - a man jumping in the air with a basketball&lt;/li>
&lt;li>&lt;span style="text-decoration: underline;"> git&lt;/span> - a young man playing basketball in a gym&lt;/li>
&lt;/ol>
&lt;/div>
&lt;hr>
&lt;h2 id="models-used-for-caption-generation">Models used for caption generation&lt;/h2>
&lt;p>The models that were used for caption generation are:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://huggingface.co/nlpconnect/vit-gpt2-image-captioning">vit-gpt2&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://huggingface.co/Salesforce/blip-image-captioning-base">blip-conditional by Salesforce&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://huggingface.co/Salesforce/blip-image-captioning-base">blip-unconditional by Salesforce&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://huggingface.co/microsoft/git-base">git by Micosoft&lt;/a>&lt;/li>
&lt;/ul>
&lt;p>The folder &lt;!-- raw HTML omitted -->captions&lt;!-- raw HTML omitted --> in the repository contains all groundtruth captions as well as the model generated captions.&lt;/p>
&lt;p>The annotations can be viewed in this &lt;a href="https://docs.google.com/spreadsheets/d/18qtOlw3fx2U0tpsXaBPplqvpL3YJEQoUMMsRXHYoeHU/edit?usp=sharing">sheet&lt;/a> or in &lt;!-- raw HTML omitted -->all_captions.csv&lt;!-- raw HTML omitted --> file.&lt;/p>
&lt;p>We used three metrics for our comparative study:&lt;/p>
&lt;ul>
&lt;li>METEOR&lt;/li>
&lt;li>BLEU-1&lt;/li>
&lt;li>BLEU-2&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="results">Results&lt;/h2>
&lt;p>The results are calculated in &lt;!-- raw HTML omitted -->score.ipynb&lt;!-- raw HTML omitted --> notebook.The table and the graphs obtained from the study is shown below:&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Model&lt;/th>
&lt;th>METEOR&lt;/th>
&lt;th>BLEU-1&lt;/th>
&lt;th>BLEU-2&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>ViT-GPT2&lt;/td>
&lt;td>0.1644&lt;/td>
&lt;td>0.1845&lt;/td>
&lt;td>0.0816&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>GIT&lt;/td>
&lt;td>0.2207&lt;/td>
&lt;td>0.2301&lt;/td>
&lt;td>0.117&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>BLIP (Conditional)&lt;/td>
&lt;td>0.2418&lt;/td>
&lt;td>0.2357&lt;/td>
&lt;td>0.1246&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>BLIP (Unconditional)&lt;/td>
&lt;td>0.2426&lt;/td>
&lt;td>0.2555&lt;/td>
&lt;td>0.1327&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;hr>
&lt;h2 id="quantitative-results-and-qualitative-analysis">Quantitative Results and Qualitative Analysis&lt;/h2>
&lt;p>The quantitative results are :&lt;/p>
&lt;ul>
&lt;li>BLIP (Unconditional Mode) achieved the highest scores across all metrics (METEOR: 0.2426, BLEU-1: 0.2555, BLEU-2: 0.1327).&lt;/li>
&lt;li>BLIP (Conditional Mode) closely followed, showing slight improvements in guided captioning (METEOR: 0.2418, BLEU-1: 0.2357, BLEU-2: 0.1246).&lt;/li>
&lt;li>GIT demonstrated a balanced performance (METEOR: 0.2207, BLEU-1: 0.2301, BLEU-2: 0.1170).&lt;/li>
&lt;li>ViT-GPT2 performed the weakest, struggling with visual-text alignment (METEOR: 0.1644, BLEU-1: 0.1845, BLEU-2: 0.0816).&lt;/li>
&lt;/ul>
&lt;p>The qualitative analysis that we made are:&lt;/p>
&lt;ul>
&lt;li>BLIP models generated semantically rich and contextually accurate captions.
&lt;ul>
&lt;li>GIT provided coherent but sometimes generic captions.&lt;/li>
&lt;li>ViT-GPT2 struggled with misidentification and irrelevant outputs.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="model-strengths-and-weakness">Model Strengths and Weakness&lt;/h2>
&lt;p>The strength are as follows:&lt;/p>
&lt;ul>
&lt;li>BLIP’s Dual Mode (Conditional/Unconditional) allowed better flexibility in caption generation.&lt;/li>
&lt;li>GIT’s unified transformer architecture helped in balancing vision-language processing.&lt;/li>
&lt;li>ViT-GPT2’s modularity enabled adaptability in vision and text alignment.&lt;/li>
&lt;/ul>
&lt;p>The weakness are as follows:&lt;/p>
&lt;ul>
&lt;li>BLIP required significant computational resources.&lt;/li>
&lt;li>GIT lacked interpretability due to its tightly coupled vision-language representation.&lt;/li>
&lt;li>ViT-GPT2 frequently misidentified objects and actions, leading to less reliable captions.&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="evaluation-metrics">Evaluation Metrics&lt;/h2>
&lt;pre>&lt;code>- METEOR captured semantic accuracy.
- BLEU-1 and BLEU-2 measured word precision and phrase coherence.
- Other advanced metrics (CIDEr, ROUGE-L, SPICE) were not included, limiting evaluation depth.
&lt;/code>&lt;/pre>
&lt;hr>
&lt;h2 id="limitations">Limitations&lt;/h2>
&lt;pre>&lt;code>- Small dataset size (600 images) reduced statistical reliability.
- Lack of advanced evaluation metrics affected a deeper analysis.
- Real-world applicability was not tested, limiting practical insights.
&lt;/code>&lt;/pre>
&lt;hr>
&lt;h2 id="combined-meteor-for-models-tested">Combined METEOR for models tested&lt;/h2>
&lt;p>&lt;figure class="figure">
&lt;img src="combined-meteor-1.png"
alt=""
title="METEOR1"
style="width: 50%; height: auto;">
&lt;/figure>
&lt;figure class="figure">
&lt;img src="combined-meteor-2.png"
alt=""
title="METEOR2"
style="width: 50%; height: auto;">
&lt;/figure>
&lt;figure class="figure">
&lt;img src="combined-meteor-3.png"
alt=""
title="METEOR3"
style="width: 50%; height: auto;">
&lt;/figure> &lt;/p>
&lt;hr>
&lt;h2 id="combined-bleu-1-for-models-tested">Combined BLEU-1 for models tested&lt;/h2>
&lt;p>&lt;figure class="figure">
&lt;img src="combined-bleu1-1.png"
alt=""
title="BLEU1-1"
style="width: 50%; height: auto;">
&lt;/figure>
&lt;figure class="figure">
&lt;img src="combined-bleu1-2.png"
alt=""
title="BLEU1-2"
style="width: 50%; height: auto;">
&lt;/figure>
&lt;figure class="figure">
&lt;img src="combined-bleu1-3.png"
alt=""
title="BLEU1-3"
style="width: 50%; height: auto;">
&lt;/figure> &lt;/p>
&lt;hr>
&lt;h2 id="combined-bleu-2-for-models-tested">Combined BLEU-2 for models tested&lt;/h2>
&lt;p>&lt;figure class="figure">
&lt;img src="combined-bleu2-1.png"
alt=""
title="BLEU2-1"
style="width: 50%; height: auto;">
&lt;/figure>
&lt;figure class="figure">
&lt;img src="combined-bleu2-2.png"
alt=""
title="BLEU2-2"
style="width: 50%; height: auto;">
&lt;/figure>
&lt;figure class="figure">
&lt;img src="combined-bleu2-3.png"
alt=""
title="BLEU2-3"
style="width: 50%; height: auto;">
&lt;/figure> &lt;/p>
&lt;hr>
&lt;a class="btn btn-primary "
href="https://github.com/biraj094/image-caption-analysis"
target="_blank">Visit the Project on GitHub
&lt;/a>
&lt;a class="btn btn-primary "
href="https://www.kaggle.com/datasets/koiralabiraj/image-annotation/data"
target="_blank">View data in Kaggle
&lt;/a></description></item><item><title>Has Nepal been a gerontocracy?</title><link>https://birajkoirala.com.np/post/2.politician/</link><pubDate>Mon, 22 Nov 2021 00:00:00 +0000</pubDate><guid>https://birajkoirala.com.np/post/2.politician/</guid><description>&lt;h2>Table of Contents&lt;/h2>
&lt;nav id="TableOfContents">
&lt;ul>
&lt;li>&lt;a href="#key-findings-from-the-dataset">Key Findings from the Dataset&lt;/a>&lt;/li>
&lt;li>&lt;a href="#nepal-vs-global-trends">Nepal vs. Global Trends&lt;/a>&lt;/li>
&lt;li>&lt;a href="#barriers-to-youth-participation">Barriers to Youth Participation&lt;/a>&lt;/li>
&lt;li>&lt;a href="#conclusion">Conclusion&lt;/a>&lt;/li>
&lt;/ul>
&lt;/nav>
&lt;p>Nepal’s political landscape has seen ongoing turmoil, from the dissolution of parliament quashed by the Supreme Court to persistent political unrest. In the midst of this chaos, I was curious to understand how Nepal reached this state. My journey began with an attempt to learn more about the country’s politicians by exploring the official website of the Prime Minister of Nepal. Unfortunately, the website provided little information. Determined to dig deeper, I explored various government websites but still found no comprehensive data about Nepalese politicians.&lt;/p>
&lt;p>Finally, I stumbled upon a &lt;a href="https://en.wikipedia.org/wiki/List_of_Nepalese_politicians" target="_blank" rel="noopener noreferrer" class="">
Wikipedia page
&lt;/a> that listed notable politicians in Nepal. It wasn’t perfect, but it offered a starting point. By scraping data from this page, I was able to compile a dataset of Nepalese politicians’ ages.&lt;/p>
&lt;div class="alert alert-blue d-flex align-items-center" role="alert">
&lt;i class="fas fa-info-circle me-2">&lt;/i>
&lt;div>
The final list only accounts for the politicians that are alive. Also, the list fails to capture all of the politicians. I was able to retrieve information of a mere 54 politician.
&lt;/div>
&lt;/div>
&lt;style>
.alert {
padding: 1rem;
margin-bottom: 1rem;
border: 1px solid transparent;
border-radius: 0.25rem;
}
.alert-blue {
color: #004085;
background-color: #cce5ff;
border-color: #b8daff;
}
.alert-green {
color: #155724;
background-color: #d4edda;
border-color: #c3e6cb;
}
.alert-yellow {
color: #856404;
background-color: #fff3cd;
border-color: #ffeeba;
}
.alert-red {
color: #721c24;
background-color: #f8d7da;
border-color: #f5c6cb;
}
.d-flex {
display: flex !important;
}
.align-items-center {
align-items: center !important;
}
.me-2 {
margin-right: 0.5rem !important;
}
&lt;/style>
&lt;hr>
&lt;h2 id="key-findings-from-the-dataset">Key Findings from the Dataset&lt;/h2>
&lt;figure class="figure">
&lt;img src="hist.png"
alt=""
title="Histogram"
style="width: 50%; height: auto;">
&lt;/figure>
&lt;p>Despite its limitations, the dataset reveals some important insights:
&lt;div class="custom-list ">
&lt;ol style="list-style-type:decimal">
&lt;li>&lt;span style="text-decoration: underline;"> Dominance of Older Age Group : &lt;/span> The majority of politicians fall within the age range of 60 to 80 years, highlighting the prevalence of senior citizens in Nepal’s political landscape.&lt;/li>
&lt;li>&lt;span style="text-decoration: underline;"> Average Age : &lt;/span> The average age of the politicians in the dataset is approximately 63 years, classifying most of them as senior citizens under Nepal’s Senior Citizen Act (60+ years).&lt;/li>
&lt;li>&lt;span style="text-decoration: underline;"> Lack of Youth Representation : &lt;/span> Politicians aged below 40 years are extremely rare. Only two politicians in the dataset are under the age of 45, with the youngest being just 24 years old.&lt;/li>
&lt;li>&lt;span style="text-decoration: underline;"> Significant Age Gap : &lt;/span> The gap between the youngest politician (24 years) and the oldest politician (92 years) is a striking 68 years, indicating a lack of generational diversity in Nepalese politics.&lt;/li>
&lt;/ol>
&lt;/div> &lt;/p>
&lt;p>Interestingly, Nepal’s Senior Citizen Act (2006) defines a senior citizen as anyone aged 60 or older. This means that the average age of Nepalese politicians falls squarely into the senior citizen category, confirming that Nepal operates as a gerontocracy—rule by the elderly.&lt;/p>
&lt;hr>
&lt;h2 id="nepal-vs-global-trends">Nepal vs. Global Trends&lt;/h2>
&lt;p>The Global Parliamentary Report by UNDP offers the following benchmarks:
&lt;div class="custom-list ">
&lt;ul style="list-style: none; padding-left: 1.2em;">
&lt;li>
&lt;span class="list-marker">→&lt;/span>
The global average age of Members of Parliament (MPs) is 53.
&lt;/li>
&lt;li>
&lt;span class="list-marker">→&lt;/span>
The average age of women MPs is 50.
&lt;/li>
&lt;li>
&lt;span class="list-marker">→&lt;/span>
Sub-Saharan African MPs have the youngest average at 49, while Arab countries have the oldest average at 55.
&lt;/li>
&lt;/ul>
&lt;/div> &lt;/p>
&lt;p>Nepal’s average political age of 63 exceeds the global norm, making it one of the oldest among nations. This disparity highlights significant barriers for younger generations to enter politics.&lt;/p>
&lt;hr>
&lt;h2 id="barriers-to-youth-participation">Barriers to Youth Participation&lt;/h2>
&lt;p>The dataset underscores the difficulty Nepali youth face in pursuing political careers. The political system is heavily skewed toward older generations, who dominate decision-making roles. For a more dynamic and inclusive political environment, the older generation must mentor and empower their successors, ensuring a smooth generational transition.&lt;/p>
&lt;p>The sample data is presented below. For the complete source code please visit &lt;a href="https://github.com/biraj094/nepal_politician_age_scrape" target="_blank" rel="noopener noreferrer" class="">
Github
&lt;/a> . You can get the raw data &lt;a href="https://raw.githubusercontent.com/biraj094/nepal_politician_age_scrape/master/politician.csv" target="_blank" rel="noopener noreferrer" class="">
here
&lt;/a> .&lt;/p>
&lt;hr>
&lt;p>Last scraped : 22/11/2021&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Name&lt;/th>
&lt;th>Date of Birth&lt;/th>
&lt;th>Age&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Dilendra Prasad Badu&lt;/td>
&lt;td>1954-01-09&lt;/td>
&lt;td>66&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Khadgajeet Baral&lt;/td>
&lt;td>1928-04-17&lt;/td>
&lt;td>92&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Dev Raj Bhar&lt;/td>
&lt;td>1952-01-29&lt;/td>
&lt;td>68&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Lekh Raj Bhatta&lt;/td>
&lt;td>1960-03-24&lt;/td>
&lt;td>60&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Ranju Darshana&lt;/td>
&lt;td>1996-03-03&lt;/td>
&lt;td>24&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Arzu Rana Deuba&lt;/td>
&lt;td>1962-01-26&lt;/td>
&lt;td>58&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Sher Bahadur Deuba&lt;/td>
&lt;td>1946-09-12&lt;/td>
&lt;td>74&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Bam Dev Gautam&lt;/td>
&lt;td>1948-07-09&lt;/td>
&lt;td>72&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Kul Bahadur Gurung&lt;/td>
&lt;td>1935-11-23&lt;/td>
&lt;td>84&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Tek Bahadur Gurung&lt;/td>
&lt;td>1954-11-26&lt;/td>
&lt;td>65&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Ram Karki&lt;/td>
&lt;td>1956-10-16&lt;/td>
&lt;td>64&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Sushila Karki&lt;/td>
&lt;td>1952-06-07&lt;/td>
&lt;td>68&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Narayan Khadka&lt;/td>
&lt;td>1949-03-20&lt;/td>
&lt;td>71&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Jhala Nath Khanal&lt;/td>
&lt;td>1950-05-20&lt;/td>
&lt;td>70&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Shekhar Koirala&lt;/td>
&lt;td>1950-08-25&lt;/td>
&lt;td>70&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Krishna Bahadur Mahara&lt;/td>
&lt;td>1958-06-29&lt;/td>
&lt;td>62&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Chandra Maharjan&lt;/td>
&lt;td>1954-11-16&lt;/td>
&lt;td>65&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Ram Saran Mahat&lt;/td>
&lt;td>1951-01-01&lt;/td>
&lt;td>69&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Rajendra Mahato&lt;/td>
&lt;td>1958-11-19&lt;/td>
&lt;td>61&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Radha Krishna Mainali&lt;/td>
&lt;td>1946-09-26&lt;/td>
&lt;td>74&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Salma Khatoon Mikrani&lt;/td>
&lt;td>1976-01-25&lt;/td>
&lt;td>44&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Madhav Kumar Nepal&lt;/td>
&lt;td>1953-03-06&lt;/td>
&lt;td>67&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>KP Sharma Oli&lt;/td>
&lt;td>1952-02-22&lt;/td>
&lt;td>68&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Bal Chandra Poudel&lt;/td>
&lt;td>1959-06-22&lt;/td>
&lt;td>61&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Binda Pandey&lt;/td>
&lt;td>1966-12-30&lt;/td>
&lt;td>53&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Surendra Pandey&lt;/td>
&lt;td>1958-08-25&lt;/td>
&lt;td>62&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Tilak Pariyar&lt;/td>
&lt;td>1943-10-31&lt;/td>
&lt;td>76&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Ananta Prasad Paudel&lt;/td>
&lt;td>1962-07-28&lt;/td>
&lt;td>58&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Bishnu Prasad Paudel&lt;/td>
&lt;td>1959-11-20&lt;/td>
&lt;td>60&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Shankar Pokharel&lt;/td>
&lt;td>1963-02-27&lt;/td>
&lt;td>57&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Sher Dhan Rai&lt;/td>
&lt;td>1971-02-23&lt;/td>
&lt;td>49&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Prakash Man Singh&lt;/td>
&lt;td>1956-04-03&lt;/td>
&lt;td>64&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Dal Bahadur Sunar&lt;/td>
&lt;td>1959-10-01&lt;/td>
&lt;td>61&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Surya Man Dong Tamang&lt;/td>
&lt;td>1970-04-20&lt;/td>
&lt;td>50&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Gagan Thapa&lt;/td>
&lt;td>1976-07-16&lt;/td>
&lt;td>44&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Hridayesh Tripathi&lt;/td>
&lt;td>1959-06-18&lt;/td>
&lt;td>61&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Amod Prasad Upadhyay&lt;/td>
&lt;td>1936-03-29&lt;/td>
&lt;td>84&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Ram Baran Yadav&lt;/td>
&lt;td>1948-02-04&lt;/td>
&lt;td>72&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Upendra Yadav&lt;/td>
&lt;td>1960-12-11&lt;/td>
&lt;td>59&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;hr>
&lt;h2 id="conclusion">Conclusion&lt;/h2>
&lt;p>The data reveals that Nepal’s political system is overwhelmingly dominated by senior citizens, significantly surpassing global age averages for politicians. While experience and wisdom are essential in leadership, it is equally important to encourage youth participation to bring fresh perspectives and ensure long-term political stability. The old guard must take proactive steps to mentor and pave the way for the next generation of leaders.&lt;/p>
&lt;p>Nepal’s path to a more inclusive and dynamic political system lies in its ability to balance tradition with innovation—bridging the generational gap in governance.&lt;/p>
&lt;hr>
&lt;a class="btn btn-primary "
href="https://github.com/biraj094/nepal_politician_age_scrape"
target="_blank">Visit the Project on GitHub
&lt;/a>
&lt;hr></description></item></channel></rss>