<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>PyTorch | Abbas Hamidavi | عباس حمیداوی | AI Researcher</title><link>https://avabbas.github.io/academic-cv/tags/pytorch/</link><atom:link href="https://avabbas.github.io/academic-cv/tags/pytorch/index.xml" rel="self" type="application/rss+xml"/><description>PyTorch</description><generator>HugoBlox Kit (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Mon, 20 Jul 2026 00:00:00 +0000</lastBuildDate><image><url>https://avabbas.github.io/academic-cv/media/icon_hu_5ac22c9ce43dded7.png</url><title>PyTorch</title><link>https://avabbas.github.io/academic-cv/tags/pytorch/</link></image><item><title>🏙️ Mashhad Social Approach Study — AI-Powered Behavioral Analysis</title><link>https://avabbas.github.io/academic-cv/projects/mashhad-social-study/</link><pubDate>Mon, 20 Jul 2026 00:00:00 +0000</pubDate><guid>https://avabbas.github.io/academic-cv/projects/mashhad-social-study/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;/h2&gt;
&lt;p&gt;A data-driven computational study investigating the gap between &lt;strong&gt;romantic interest and actual approach behavior&lt;/strong&gt; among young adults in Mashhad, Iran, a city with a unique blend of religious tradition and modern student culture. Using a self-collected dataset of &lt;strong&gt;1,000 participants&lt;/strong&gt;, this project applies machine learning and statistical modeling to uncover hidden behavioral patterns, paradoxes, and gender asymmetries in human social initiation.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="-focus"&gt;🔍 Focus&lt;/h2&gt;
&lt;p&gt;The study examines how fear of rejection, self-perceived attractiveness, religiosity, daily habits, and digital behaviour relate to whether young adults actually approach someone they are interested in, and how these patterns differ by gender.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="-methodology"&gt;🧪 Methodology&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Dataset:&lt;/strong&gt; 1,000 participants (balanced gender distribution), 30-item structured questionnaire&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Data Cleaning:&lt;/strong&gt; Pandas, NumPy — Persian text-to-numeric encoding pipeline&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Statistical Testing:&lt;/strong&gt; SciPy — Independent T-Tests across 29 features with Bootstrap confidence intervals&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Machine Learning:&lt;/strong&gt; Scikit-learn — Random Forest, Gradient Boosting, Logistic Regression, K-Means clustering, Isolation Forest, t-SNE&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Deep Learning:&lt;/strong&gt; PyTorch — 4-layer neural network classifier + Autoencoder for anomaly detection&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Explainability:&lt;/strong&gt; SHAP — Feature importance analysis revealing that &lt;strong&gt;Social Sacrifice Index&lt;/strong&gt; (willingness to risk social prestige) is the strongest predictor of approach behavior&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Visualization:&lt;/strong&gt; Matplotlib, Seaborn — 12 publication-quality figures&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id="-results--impact"&gt;📊 Results &amp;amp; Impact&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Built a conceptual model mapping psychological, economic, and spatial factors to social action&lt;/li&gt;
&lt;li&gt;Generated &lt;strong&gt;12 high-resolution figures&lt;/strong&gt; suitable for academic publication&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id="-technologies-used"&gt;🛠️ Technologies Used&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;Python&lt;/code&gt; &lt;code&gt;Pandas&lt;/code&gt; &lt;code&gt;NumPy&lt;/code&gt; &lt;code&gt;SciPy&lt;/code&gt; &lt;code&gt;Scikit-learn&lt;/code&gt; &lt;code&gt;PyTorch&lt;/code&gt; &lt;code&gt;SHAP&lt;/code&gt; &lt;code&gt;Matplotlib&lt;/code&gt; &lt;code&gt;Seaborn&lt;/code&gt; &lt;code&gt;Google Colab&lt;/code&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="-personal-contributions"&gt;💡 Personal Contributions&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Designed and executed the complete &lt;strong&gt;end-to-end data science pipeline&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Engineered &lt;strong&gt;200+ features&lt;/strong&gt; including pairwise interactions and polynomial transformations&lt;/li&gt;
&lt;li&gt;Implemented &lt;strong&gt;3 anomaly detection methods&lt;/strong&gt; (Isolation Forest, LOF, Autoencoder) with consensus voting&lt;/li&gt;
&lt;li&gt;Applied &lt;strong&gt;fairness metrics&lt;/strong&gt; to ensure the model is not gender-biased&lt;/li&gt;
&lt;li&gt;Created an automated interpretation engine producing &lt;strong&gt;100+ analytical insights&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;Keywords:&lt;/strong&gt; &lt;code&gt;Computational Social Science&lt;/code&gt; &lt;code&gt;Human-Computer Interaction&lt;/code&gt; &lt;code&gt;Behavioral Machine Learning&lt;/code&gt; &lt;code&gt;Gender Analysis&lt;/code&gt; &lt;code&gt;Socio-Religious Context&lt;/code&gt; &lt;code&gt;Anomaly Detection&lt;/code&gt; &lt;code&gt;Explainable AI&lt;/code&gt;&lt;/p&gt;</description></item><item><title>🧬 68-Dimensional Social Graph: Computational Social Science on 10M Persian Telegram Messages</title><link>https://avabbas.github.io/academic-cv/projects/social-graph/</link><pubDate>Mon, 01 Jan 2024 00:00:00 +0000</pubDate><guid>https://avabbas.github.io/academic-cv/projects/social-graph/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;/h2&gt;
&lt;p&gt;A large-scale computational social science project that constructs a &lt;strong&gt;68-dimensional hypergraph&lt;/strong&gt; from 10 million real Persian chat messages, modeling the complete social, psychological, and behavioral dynamics of an online community.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="key-metrics"&gt;Key Metrics&lt;/h2&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Messages Analyzed&lt;/td&gt;
&lt;td&gt;10,000,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Users (Nodes)&lt;/td&gt;
&lt;td&gt;7,636&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Relationships (Edges)&lt;/td&gt;
&lt;td&gt;310,732&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Node Dimensions&lt;/td&gt;
&lt;td&gt;68&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Edge Dimensions&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total Data Points&lt;/td&gt;
&lt;td&gt;~6.7 million&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;hr&gt;
&lt;h2 id="technical-architecture"&gt;Technical Architecture&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;GPU Server:&lt;/strong&gt; NVIDIA A100 (40GB VRAM) + 128GB RAM + 32 vCPUs&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;NLP Engine:&lt;/strong&gt; ParsBERT v3 (fine-tuned on Persian chats)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Graph Database:&lt;/strong&gt; Neo4j (Cypher queries) + Parquet (analytics) + PyTorch Geometric (GNN)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;ML Stack:&lt;/strong&gt; XGBoost, Random Forest, Gradient Boosting, Ensemble Voting, K-Means&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pipeline:&lt;/strong&gt; Prefect orchestration, Polars data processing, CUDA acceleration&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id="9-analytical-layers"&gt;9 Analytical Layers&lt;/h2&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Dimensions&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;🎭 Personality&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;Big Five traits, gender, age, name authenticity&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🧠 Psychology&lt;/td&gt;
&lt;td&gt;13&lt;/td&gt;
&lt;td&gt;Depression (PHQ-9), anxiety (GAD-7), narcissism, bipolar, PTSD, self-harm risk&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🤝 Relational&lt;/td&gt;
&lt;td&gt;12&lt;/td&gt;
&lt;td&gt;Deception detection, diplomacy scoring, social masking, genuine vs. fake closeness&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🔗 Network&lt;/td&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;PageRank, Betweenness, Community Detection (Louvain), Broker Score&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;⏱️ Temporal&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Chronotype, mood volatility, recovery time, leave prediction&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;📝 Content&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;Lexical richness, sarcasm detection, BERTopic, metaphor usage&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🛡️ Cybersecurity&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Bot detection (emoji signature), sockpuppet identification, social engineering risk&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;❤️ Digital Health&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Screen addiction, sleep deprivation, wellbeing index&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;👑 Power &amp;amp; Influence&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Opinion leaders, gatekeepers, trendsetters, echo chamber contributors&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;hr&gt;
&lt;h2 id="key-discoveries"&gt;Key Discoveries&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&amp;ldquo;Silence Before the Storm&amp;rdquo;:&lt;/strong&gt; 5/5 major conflict events were preceded by 10–15 consecutive silence (bradycardia) patterns — a statistically significant early warning signal.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Emojis Outperform BERT:&lt;/strong&gt; Emoji-based clustering achieves &lt;strong&gt;4.5× better&lt;/strong&gt; personality separation than ParsBERT embeddings (Silhouette: 0.265 vs 0.058).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Killer Words:&lt;/strong&gt; The word &amp;ldquo;bye&amp;rdquo; (بای) caused &lt;strong&gt;676 group-wide silences&lt;/strong&gt;, acting as a conversation terminator.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Bot Fingerprinting:&lt;/strong&gt; Bots exhibit &lt;strong&gt;630× distinct emoji signatures&lt;/strong&gt; (✔, ➖, ❓), detectable with &lt;strong&gt;99.2% accuracy&lt;/strong&gt; without text analysis.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Paradox of Toxicity:&lt;/strong&gt; Toxic relationships last &lt;strong&gt;3× longer&lt;/strong&gt; than healthy ones.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Masked Selves:&lt;/strong&gt; Average social masking score is &lt;strong&gt;43%&lt;/strong&gt; — users hide nearly half their true personality during daytime interactions.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id="100-research-analyses"&gt;100 Research Analyses&lt;/h2&gt;
&lt;p&gt;The hypergraph enables &lt;strong&gt;100 distinct analyses&lt;/strong&gt; across 9 layers, with potential for publication in venues such as:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Nature Human Behaviour&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;PNAS / Science Advances&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Nature Communications&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Journal of Personality and Social Psychology&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Computational Linguistics&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;EPJ Data Science&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id="technologies-used"&gt;Technologies Used&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;Python&lt;/code&gt; &lt;code&gt;PyTorch&lt;/code&gt; &lt;code&gt;ParsBERT&lt;/code&gt; &lt;code&gt;HuggingFace Transformers&lt;/code&gt; &lt;code&gt;Neo4j&lt;/code&gt; &lt;code&gt;Cypher&lt;/code&gt; &lt;code&gt;PyTorch Geometric&lt;/code&gt; &lt;code&gt;XGBoost&lt;/code&gt; &lt;code&gt;Scikit-learn&lt;/code&gt; &lt;code&gt;Polars&lt;/code&gt; &lt;code&gt;NetworkX&lt;/code&gt; &lt;code&gt;Prefect&lt;/code&gt; &lt;code&gt;Docker&lt;/code&gt; &lt;code&gt;CUDA&lt;/code&gt; &lt;code&gt;Plotly&lt;/code&gt; &lt;code&gt;BERTopic&lt;/code&gt; &lt;code&gt;Leiden Algorithm&lt;/code&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="publication-potential"&gt;Publication Potential&lt;/h2&gt;
&lt;blockquote class="border-l-4 border-neutral-300 dark:border-neutral-600 pl-4 italic text-neutral-600 dark:text-neutral-400 my-6"&gt;
&lt;p&gt;&lt;strong&gt;100 analyses | 4.6M+ data points&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;ldquo;When Emojis Outperform BERT: A 68-Dimensional Framework for Personality, Mental Health, and Relationship Dynamics in Digital Communities&amp;rdquo;&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;</description></item></channel></rss>