<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Majdi Hammami on Medium]]></title>
        <description><![CDATA[Stories by Majdi Hammami on Medium]]></description>
        <link>https://medium.com/@hammamicbbc?source=rss-0610dc101402------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*QSIlTvVRwTmh3C7P</url>
            <title>Stories by Majdi Hammami on Medium</title>
            <link>https://medium.com/@hammamicbbc?source=rss-0610dc101402------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 07:41:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hammamicbbc/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Streamlining Drug Bioavailability Prediction with KNIME’s Low-Code Machine Learning]]></title>
            <link>https://medium.com/low-code-for-advanced-data-science/streamlining-drug-bioavailability-prediction-with-knimes-low-code-machine-learning-78a2480d5fb0?source=rss-0610dc101402------2</link>
            <guid isPermaLink="false">https://medium.com/p/78a2480d5fb0</guid>
            <category><![CDATA[bioavailability]]></category>
            <category><![CDATA[stories]]></category>
            <category><![CDATA[drug-discovery]]></category>
            <category><![CDATA[knime]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Majdi Hammami]]></dc:creator>
            <pubDate>Wed, 03 Sep 2025 04:01:32 GMT</pubDate>
            <atom:updated>2025-12-19T15:52:20.689Z</atom:updated>
            <content:encoded><![CDATA[<h4>DATA STORIES | DRUG DEVELOPMENT | KNIME ANALYTICS PLATFORM</h4><h4><strong>Harnessing Open-Source Tools to Accelerate Early-Stage Drug Development</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L8wZ8QVTKovHMzrYR7FVtQ.jpeg" /></figure><blockquote>This article is a readapted version of the scientific paper “<a href="https://www.tandfonline.com/doi/full/10.1080/00498254.2025.2508804">Machine learning-driven bioavailability prediction in early-stage drug development: a KNIME-based computational workflow for digital health applications</a>” (2025) published in <em>Xenobiotica.</em></blockquote><p>Predicting drug bioavailability — the proportion of a drug that reaches systemic circulation — remains a critical challenge in early-stage drug development, where nearly 40% of candidates fail due to poor absorption or metabolism. Traditional experimental methods, such as in vitro assays and in vivo studies, are costly, time-consuming, and often impractical for screening large compound libraries. This article presents a KNIME-based machine learning workflow to predict bioavailability efficiently using molecular descriptors, reducing reliance on resource-intensive experiments. By leveraging KNIME’s low-code, visual platform, we demonstrate how pharmaceutical researchers, even those without extensive coding expertise, can build robust predictive models to accelerate drug discovery while adhering to FAIR data principles.</p><h4>About KNIME</h4><p><a href="https://www.knime.com/knime-analytics-platform?utm_source=medium&amp;utm_medium=organic&amp;utm_term=article&amp;utm_content=blog&amp;utm_campaign=com_journal">KNIME Analytics Platform</a> is a free and open-source no-code/low-code data analytics platform. This versatile software covers a broad spectrum of data operations including data access, automation, data blending, ML and AI-based data modeling, reporting, visualization and the development of interactive dashboards. Thanks to its visual workflows and intuitive user interface, KNIME Analytics Platform eliminates the need for programming expertise when constructing solutions. In this way, data professionals from any field can make sense of their data quickly and effectively.</p><p>In this blog post, I will show how to predict drug bioavailability using machine learning models within a KNIME-based computational workflow.</p><h3>The Task</h3><p>The task involves developing a KNIME-based machine learning workflow to predict drug bioavailability from molecular descriptors, streamlining early-stage drug development.</p><p>In particular, <strong>the task involves</strong> curating a dataset of phenolic compounds, preprocessing molecular descriptors, training multiple machine learning models (Random Forest, Gradient Boosting, Decision Trees, k-Nearest Neighbors, and neural networks), and evaluating their performance using 5-fold cross-validation within KNIME’s visual interface. Key steps include: (1) importing and cleaning data with KNIME’s Excel Reader and Column Filter nodes, (2) calculating descriptors like topological polar surface area (TPSA) and solubility (ESOL Log S) using SwissADME, (3) splitting data into training and testing sets, (4) training models with KNIME’s Learner nodes, and (5) assessing model accuracy with metrics like R² and RMSE using the Numeric Scorer node. This approach leverages KNIME’s low-code environment to enable non-programmers to build robust predictive models, reducing reliance on costly experimental assays while adhering to FAIR (Findable, Accessible, Interoperable, Reusable) data principles.</p><p><strong>For this solution, I relied on a</strong> phenolic compounds <strong>dataset sourced from</strong> publicly available repositories, PubChem and ChEMBL. <strong>This dataset includes information about</strong> 475 drug-like compounds, characterized by molecular descriptors such as molecular weight, TPSA, lipophilicity (iLOGP), and solubility (ESOL Log S), with bioavailability scores predicted by SwissADME.</p><h3><strong>The Workflow</strong></h3><p>To predict drug bioavailability using machine learning, the workflow follows these three steps:</p><h4><strong>Step 1: Data Import and Preprocessing</strong></h4><p>I started off by importing a <a href="https://figshare.com/articles/by-resource-doi/10.1080/00498254.2025.2508804?file=54890089">dataset of 475 phenolic compounds</a> from PubChem and ChEMBL using KNIME’s Excel Reader node, ensuring accurate data loading. The Column Filter Node was used to select six key molecular descriptors: molecular weight, heavy atom count, rotatable bonds, TPSA, iLOGP, and ESOL Log S, computed via SwissADME. The Statistics Node generated descriptive statistics (e.g., mean, standard deviation) to verify data integrity, and z-score normalization was applied to standardize features for model training. This step ensured a clean, reproducible dataset aligned with FAIR principles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/0*5L3QGo4nigTdAoQm.jpeg" /><figcaption>KNIME workflow for data import and preprocessing, including Excel Reader, Column Filter, and Statistics nodes to prepare molecular descriptors for modeling.</figcaption></figure><h4><strong>Step 2: Model Training and Configuration</strong></h4><p>In this step, I trained multiple machine learning models using KNIME’s Learner nodes to predict bioavailability scores. The dataset was split into 80% training and 20% testing subsets using the Partitioning node with stratified sampling. Models included Random Forest (100 trees, max depth 10), Gradient Boosting (200 estimators, learning rate 0.1), Decision Trees (Gini impurity, max depth 10), k-Nearest Neighbors (k=5), and a Multi-Layer Perceptron (10 neurons, Tanh activation). Each model was configured to capture diverse predictive dynamics, leveraging KNIME’s modular interface for rapid experimentation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*afmlBSWcrBCfkwqpYhZkeQ.png" /><figcaption>KNIME workflow for training machine learning models, featuring Partitioning and Learner Nodes for Random Forest, Gradient Boosting, and other algorithms.</figcaption></figure><h4><strong>Step 3: Model Evaluation and Visualization</strong></h4><p>Finally, I evaluated model performance using 5-fold cross-validation via KNIME’s Numeric Scorer node, computing metrics like R², RMSE, and MAE. Random Forest achieved the highest accuracy (R² = 0.87, RMSE = 0.08), with TPSA and ESOL Log S identified as key predictors through feature importance analysis. Scatter plots of predicted versus observed bioavailability scores were generated to visualize model performance, confirming Random Forest’s precision. KNIME’s visual interface simplified result interpretation, enabling non-coders to assess model efficacy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*y2pPgC_hBSYBCR_3Qu-z9g.png" /><figcaption>KNIME workflow for Model Evaluation and Visualization.</figcaption></figure><h3><strong>The Results</strong></h3><p>My analysis shows that Random Forest outperformed other machine learning models in predicting drug bioavailability, achieving an R² of 0.87 and an RMSE of 0.08, followed closely by Probabilistic Neural Network (R² = 0.84, RMSE = 0.09). Gradient Boosting (R² = 0.78) and Linear Regression (R² = 0.67) showed lower performance, indicating ensemble methods better capture the complex relationships between molecular descriptors and bioavailability. Feature importance analysis highlighted topological polar surface area (TPSA) and solubility (ESOL Log S) as the most influential predictors, aligning with their known roles in drug absorption and metabolism. For classification, Decision Tree achieved the highest accuracy (85.26%, Cohen’s Kappa = 0.78), excelling in categorizing bioavailability scores into discrete classes (0.11, 0.17, 0.55, 0.85). The scatter plot below visualizes Random Forest’s tight clustering of predicted versus observed bioavailability scores, confirming its precision for early-stage drug screening.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*QtOUxdqyCwvY1an964vV7A.png" /><figcaption>Scatter plot of predicted vs. observed bioavailability scores for 475 phenolic compounds using Random Forest, demonstrating high predictive accuracy (R² = 0.87).</figcaption></figure><h3>Conclusion</h3><p><strong>Using KNIME, </strong>I streamlined the entire process of data preprocessing, model training, and evaluation through its intuitive, low-code interface. KNIME’s visual workflow design allowed me to seamlessly connect nodes like Excel Reader, Column Filter, and Numeric Scorer, enabling rapid data curation and model comparison without extensive coding.</p><p>The modular architecture was especially useful for experimenting with multiple algorithms (e.g., Random Forest, Gradient Boosting) and visualizing results via scatter plots and feature importance charts. The Statistics node ensured robust data exploration and preprocessing. The flexibility of the Learner nodes simplified hyperparameter tuning, making KNIME an ideal tool for non-programmers, like pharmaceutical researchers, to build powerful machine learning models efficiently.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78a2480d5fb0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/low-code-for-advanced-data-science/streamlining-drug-bioavailability-prediction-with-knimes-low-code-machine-learning-78a2480d5fb0">Streamlining Drug Bioavailability Prediction with KNIME’s Low-Code Machine Learning</a> was originally published in <a href="https://medium.com/low-code-for-advanced-data-science">Low Code for Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Streamlining Drug Bioavailability Prediction with KNIME’s Low-Code Machine Learning]]></title>
            <link>https://medium.com/@hammamicbbc/streamlining-drug-bioavailability-prediction-with-knimes-low-code-machine-learning-201466198983?source=rss-0610dc101402------2</link>
            <guid isPermaLink="false">https://medium.com/p/201466198983</guid>
            <category><![CDATA[drug-discovery]]></category>
            <category><![CDATA[bioavailability]]></category>
            <category><![CDATA[predictions]]></category>
            <category><![CDATA[knime]]></category>
            <dc:creator><![CDATA[Majdi Hammami]]></dc:creator>
            <pubDate>Tue, 26 Aug 2025 06:05:06 GMT</pubDate>
            <atom:updated>2025-08-26T06:05:06.420Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L8wZ8QVTKovHMzrYR7FVtQ.jpeg" /></figure><p><strong>Harnessing Open-Source Tools to Accelerate Early-Stage Drug Development</strong></p><p>Predicting drug bioavailability — the proportion of a drug that reaches systemic circulation — remains a critical challenge in early-stage drug development, where nearly 40% of candidates fail due to poor absorption or metabolism. Traditional experimental methods, such as in vitro assays and in vivo studies, are costly, time-consuming, and often impractical for screening large compound libraries. This article presents a KNIME-based machine learning workflow to predict bioavailability efficiently using molecular descriptors, reducing reliance on resource-intensive experiments. By leveraging KNIME’s low-code, visual platform, we demonstrate how pharmaceutical researchers, even those without extensive coding expertise, can build robust predictive models to accelerate drug discovery while adhering to FAIR data principles.</p><p><a href="https://www.knime.com/knime-analytics-platform">KNIME Analytics Platform</a> is a free and open-source no-code/low-code data analytics platform. This versatile software covers a broad spectrum of data operations including data access, automation, data blending, ML and AI-based data modeling, reporting, visualization and the development of interactive dashboards. Thanks to its visual workflows and intuitive user interface, KNIME Analytics Platform eliminates the need for programming expertise when constructing solutions. In this way, data professionals from any field can make sense of their data quickly and effectively.</p><p>In this blog post, I will show how to predict drug bioavailability using machine learning models within a KNIME-based computational workflow.</p><p><strong>The Task</strong>: The task involves developing a KNIME-based machine learning workflow to predict drug bioavailability from molecular descriptors, streamlining early-stage drug development.</p><p><strong>The task involves</strong>: The task involves curating a dataset of phenolic compounds, preprocessing molecular descriptors, training multiple machine learning models (Random Forest, Gradient Boosting, Decision Trees, k-Nearest Neighbors, and neural networks), and evaluating their performance using 5-fold cross-validation within KNIME’s visual interface. Key steps include: (1) importing and cleaning data with KNIME’s Excel Reader and Column Filter nodes, (2) calculating descriptors like topological polar surface area (TPSA) and solubility (ESOL Log S) using SwissADME, (3) splitting data into training and testing sets, (4) training models with KNIME’s Learner Nodes, and (5) assessing model accuracy with metrics like R² and RMSE using the Numeric Scorer Node. This approach leverages KNIME’s low-code environment to enable non-programmers to build robust predictive models, reducing reliance on costly experimental assays while adhering to FAIR (Findable, Accessible, Interoperable, Reusable) data principles.</p><p><strong>For this solution, I relied on a</strong> phenolic compounds <strong>dataset sourced from</strong> publicly available repositories, PubChem and ChEMBL. <strong>This dataset includes information about</strong> 475 drug-like compounds, characterized by molecular descriptors such as molecular weight, TPSA, lipophilicity (iLOGP), and solubility (ESOL Log S), with bioavailability scores predicted by SwissADME.</p><p><strong>The Workflow</strong> To predict drug bioavailability using machine learning, the workflow follows these three steps:</p><p><strong>Step 1: Data Import and Preprocessing</strong> I started off by importing a dataset of 475 phenolic compounds from PubChem and ChEMBL using KNIME’s Excel Reader Node, ensuring accurate data loading. The Column Filter Node was used to select six key molecular descriptors: molecular weight, heavy atom count, rotatable bonds, TPSA, iLOGP, and ESOL Log S, computed via SwissADME. The Statistics Node generated descriptive statistics (e.g., mean, standard deviation) to verify data integrity, and z-score normalization was applied to standardize features for model training. This step ensured a clean, reproducible dataset aligned with FAIR principles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*VRUWznNOPi2XcbNIYIudAA.jpeg" /></figure><p>KNIME workflow for data import and preprocessing, including Excel Reader, Column Filter, and Statistics nodes to prepare molecular descriptors for modeling.</p><p><strong>Step 2: Model Training and Configuration</strong> In this step, I trained multiple machine learning models using KNIME’s Learner Nodes to predict bioavailability scores. The dataset was split into 80% training and 20% testing subsets using the Partitioning Node with stratified sampling. Models included Random Forest (100 trees, max depth 10), Gradient Boosting (200 estimators, learning rate 0.1), Decision Trees (Gini impurity, max depth 10), k-Nearest Neighbors (k=5), and a Multi-Layer Perceptron (10 neurons, Tanh activation). Each model was configured to capture diverse predictive dynamics, leveraging KNIME’s modular interface for rapid experimentation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*Q-UH5mMddl_HgqobU9dLFg.jpeg" /></figure><p>KNIME workflow for training machine learning models, featuring Partitioning and Learner Nodes for Random Forest, Gradient Boosting, and other algorithms.</p><p><strong>Step 3: Model Evaluation and Visualization</strong> Finally, I evaluated model performance using 5-fold cross-validation via KNIME’s Numeric Scorer Node, computing metrics like R², RMSE, and MAE. Random Forest achieved the highest accuracy (R² = 0.87, RMSE = 0.08), with TPSA and ESOL Log S identified as key predictors through feature importance analysis. Scatter plots of predicted versus observed bioavailability scores were generated to visualize model performance, confirming Random Forest’s precision. KNIME’s visual interface simplified result interpretation, enabling non-coders to assess model efficacy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*UwiTdWGAXkmgGcTKDU8UJQ.jpeg" /></figure><p>KNIME workflow for Model Evaluation and Visualization.</p><p><strong>The Results</strong> My analysis shows that Random Forest outperformed other machine learning models in predicting drug bioavailability, achieving an R² of 0.87 and an RMSE of 0.08, followed closely by Probabilistic Neural Network (R² = 0.84, RMSE = 0.09). Gradient Boosting (R² = 0.78) and Linear Regression (R² = 0.67) showed lower performance, indicating ensemble methods better capture the complex relationships between molecular descriptors and bioavailability. Feature importance analysis highlighted topological polar surface area (TPSA) and solubility (ESOL Log S) as the most influential predictors, aligning with their known roles in drug absorption and metabolism. For classification, Decision Tree achieved the highest accuracy (85.26%, Cohen’s Kappa = 0.78), excelling in categorizing bioavailability scores into discrete classes (0.11, 0.17, 0.55, 0.85). The scatter plot below visualizes Random Forest’s tight clustering of predicted versus observed bioavailability scores, confirming its precision for early-stage drug screening.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*Ak5-_2Yo9x7NGyIH-tXFqA.jpeg" /></figure><p>Scatter plot of predicted vs. observed bioavailability scores for 475 phenolic compounds using Random Forest, demonstrating high predictive accuracy (R² = 0.87).</p><p><strong>Using KNIME, </strong>I streamlined the entire process of data preprocessing, model training, and evaluation through its intuitive, low-code interface. KNIME’s visual workflow design allowed me to seamlessly connect nodes like Excel Reader, Column Filter, and Numeric Scorer, enabling rapid data curation and model comparison without extensive coding. The modular architecture was especially useful for experimenting with multiple algorithms (e.g., Random Forest, Gradient Boosting) and visualizing results via scatter plots and feature importance charts. The Statistics Node ensured robust data preprocessing, while the Learner Nodes’ flexibility simplified hyperparameter tuning, making KNIME an ideal tool for non-programmers like pharmaceutical researchers to build and interpret complex machine learning models efficiently.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=201466198983" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>