<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kwaku Ansah</title>
    <description>The latest articles on DEV Community by Kwaku Ansah (@neweracy).</description>
    <link>https://dev.to/neweracy</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1407311%2F42da8b7e-0832-4bb1-999e-0174c7872a07.jpeg</url>
      <title>DEV Community: Kwaku Ansah</title>
      <link>https://dev.to/neweracy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/neweracy"/>
    <language>en</language>
    <item>
      <title>Predicting Materials Band Gaps from Chemical Composition</title>
      <dc:creator>Kwaku Ansah</dc:creator>
      <pubDate>Wed, 26 Aug 2026 00:49:00 +0000</pubDate>
      <link>https://dev.to/neweracy/predicting-materials-band-gaps-from-chemical-composition-2o4b</link>
      <guid>https://dev.to/neweracy/predicting-materials-band-gaps-from-chemical-composition-2o4b</guid>
      <description>&lt;p&gt;🔬 I just open-sourced my Materials Informatics project: predicting electronic band gaps of inorganic materials purely from their chemical composition.&lt;/p&gt;

&lt;p&gt;The idea is simple but powerful. Instead of running expensive DFT calculations that take hours per material, we featurize a chemical formula (like SrTiO3 or GaN) into 132 Magpie descriptors and train ML regressors to predict the band gap in seconds.&lt;/p&gt;

&lt;p&gt;Here's what the pipeline does:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Pulls 15,537 thermodynamically stable compounds from the Materials Project database&lt;/li&gt;
&lt;li&gt;Converts each formula into compositional descriptors (electronegativity stats, atomic radii, valence electron counts, etc.)&lt;/li&gt;
&lt;li&gt;Trains Random Forest and XGBoost models on an 80/20 split&lt;/li&gt;
&lt;li&gt;Achieves R² = 0.91 and MAE = 0.32 eV with XGBoost&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Why does this matter? Band gap determines whether a material is a metal, semiconductor, or insulator. Being able to screen thousands of candidate materials computationally (before ever synthesizing them) is how we accelerate the discovery of next-gen photovoltaics, LEDs, and power electronics.&lt;/p&gt;

&lt;p&gt;The repo includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A full 6-stage Jupyter notebook (data ingestion through evaluation)&lt;/li&gt;
&lt;li&gt;A CLI tool so you can predict band gaps from the terminal: &lt;code&gt;python predict.py GaN ZnO CdTe&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Pre-trained model artifacts ready to use out of the box&lt;/li&gt;
&lt;li&gt;Contribution paths for anyone who wants to extend it (new models, new featurizers, experimental data)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Everything is reproducible, documented, and MIT-licensed.&lt;/p&gt;

&lt;p&gt;Check it out: &lt;a href="https://github.com/neweracy/Prediction-model" rel="noopener noreferrer"&gt;https://github.com/neweracy/Prediction-model&lt;/a&gt; ⭐&lt;/p&gt;

&lt;p&gt;If you're working in materials science, computational chemistry, or ML for physical sciences, I'd love to hear your thoughts. PRs and issues welcome.&lt;/p&gt;

&lt;h1&gt;
  
  
  MaterialsInformatics #MachineLearning #MaterialsScience #BandGap #OpenSource #XGBoost #Python #ComputationalChemistry #DataScience #Research
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8huhuegqepf66fuhxa71.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8huhuegqepf66fuhxa71.png" alt=" " width="800" height="828"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9db0naj1gzhmk072u1at.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9db0naj1gzhmk072u1at.png" alt=" " width="800" height="477"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd1b89o4rt44l6ew4xwr3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd1b89o4rt44l6ew4xwr3.png" alt=" " width="800" height="675"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
