<?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 Dario Dramis on Medium]]></title>
        <description><![CDATA[Stories by Dario Dramis on Medium]]></description>
        <link>https://medium.com/@dario.dramis1999?source=rss-21e839d25ae8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*MPjKp_UF_M3AzFOW.jpg</url>
            <title>Stories by Dario Dramis on Medium</title>
            <link>https://medium.com/@dario.dramis1999?source=rss-21e839d25ae8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 16:09:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dario.dramis1999/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[Building an End-to-End Genomic Data Pipeline with Python, SQL, and TensorFlow]]></title>
            <link>https://medium.com/@dario.dramis1999/building-an-end-to-end-genomic-data-pipeline-with-python-sql-and-tensorflow-ce2ba8f5eccd?source=rss-21e839d25ae8------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce2ba8f5eccd</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[bioinformatics]]></category>
            <dc:creator><![CDATA[Dario Dramis]]></dc:creator>
            <pubDate>Sun, 29 Nov 2026 17:42:13 GMT</pubDate>
            <atom:updated>2026-11-29T17:42:13.386Z</atom:updated>
            <content:encoded><![CDATA[<h4>A CI/CD-backed Proof of Concept featuring anomaly injection, 3NF database normalization, unit testing, and Docker.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8dBfu7lqkqzIDN94nWBD9w.png" /></figure><p><strong>Fig. 1:</strong> Out-of-sample confusion matrices comparing classification performance on the unseen test set (n = 400). Architecture A (32×16) yields 2 false positives, whereas Architecture B (64-unit single layer) achieves zero classification errors.</p><h3>1. Introduction &amp; Architectural Motivation</h3><p>This Proof of Concept (PoC) demonstrates an end-to-end data engineering and machine learning pipeline designed for genomic sequence validation and binary classification. The architecture simulates raw clinical environments, executes pipeline stress testing through structured anomaly injection, implements constraint-based data cleansing using Python (Pandas), normalizes data into a relational database schema (3NF SQLite), and trains deep neural networks (MLP) to evaluate categorical classification convergence based on a deterministic evolutionary signal — the TATA-box consensus motif.</p><p>By implementing a standalone ML model — even when structurally well-architected — we risk facing the typical pitfalls of analyzing raw, high-dimensional biological datasets. Deploying a thorough data cleansing and ingestion pipeline ensures that models are always trained on reliable, well-structured inputs. Moreover, building a robust, unit-tested end-to-end architecture guarantees the portability and reproducibility required in modern industrial environments.</p><p><em>Full source code, unit tests, and Docker configuration are available on the </em><a href="https://github.com/DarioDramisCodes/genomic-data-pipeline-benchmarks"><em>GitHub Repository</em></a><em>.</em></p><h3>2. Data Simulation, Stress Testing &amp; Cleansing</h3><p>The first stage simulates raw multiplex clinical-demographic matrices paired with unstructured genomic sequences (10,000 baseline samples across a fixed length of 200 base pairs). To evaluate the mathematical resilience of downstream validation layers, the pipeline deliberately injects structured clinical outliers and missing fields:</p><ul><li><strong>Demographic noise:</strong> 20% out-of-bounds metrics and 10% missing values (NaN) injected into the Age distribution.</li><li><strong>Categorical target noise:</strong> 20% invalid classification codes outside the operational binary range and 10% missing indicators injected into the Label vector.</li></ul><p>Once corrupted, the dataset passes through strict validation gates: relational deduplication across multi-source keys (PatientID, RefTag), demographic boundary enforcement (ages 20–65), stratified under-sampling to guarantee an exact balance (1,000 records per class), and vectorized feature engineering injecting the functional TATAAA motif at locus position 30 inside positive targets.</p><p>This pipeline was initially conceived around synthetic data generation to address common bottlenecks in both academia and industry — such as privacy constraints, ethical regulations, and the scarcity of ready-to-use clinical datasets. However, keeping synthetic records artificially clean would not reflect reality; therefore, anomalies and errors were intentionally injected to mirror the noisy, imperfect biological data that biotech teams encounter in practice.</p><h3>3. Relational Ingestion &amp; 3NF Database Design</h3><p>To validate enterprise data storage patterns, the pipeline ingests clean records into an automated SQLite engine:</p><ul><li>Instantiates a staging environment (staging_source) utilizing low-latency bulk insertions (executemany) and automated six-query integrity audits.</li><li>Enforces relational constraints (PRAGMA foreign_keys = ON) alongside WAL journaling and memory-mapped I/O tuning.</li><li>Achieves <strong>Third Normal Form (3NF)</strong> decomposition by decoupling demographic indices (patients parent table) from technical analytical layers (biology child table), linked via foreign keys and protected with a B-Tree index (idx_biology_label).</li></ul><p>By normalizing the data into a standard-compliant 3NF relational database, most of the drawbacks of flat file formats (such as .xlsx and .parquet) can be effectively overcome. Organizing records in 3NF enforces key architectural guarantees—most notably data uniqueness and referential integrity—which prevent major risks like data redundancy and update anomalies that frequently arise in unstructured storage setups.</p><h3>4. Deep Learning Benchmark &amp; Convergence Results</h3><p>Categorical genetic profiles are transformed into input feature spaces via equidistant One-Hot sequence matrices (800 continuous dimensions per record based on a 4-base mapping layout). Following a stratified 80/20 split, two native TensorFlow/Keras sequential architectures are trained for 15 epochs using Adam optimization and binary cross-entropy loss:</p><ul><li><strong>Architecture A (32 × 16 Dense Layers):</strong> Two dense hidden layers with ReLU activations and Sigmoid output.</li><li><strong>Architecture B (64-Unit Single Layer):</strong> A focused single hidden layer configuration with 64 units and ReLU activations.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l9Aw0M4pBHp1P4XSB2Qb4g.png" /></figure><p><strong>Fig. 2:</strong> Backpropagation binary cross-entropy loss convergence across 15 training epochs. Architecture B (green) converges faster in early epochs, while both topologies stabilize near zero loss.</p><blockquote>As shown in the backpropagation loss curves above, both architectures converge smoothly without erratic gradient spikes, confirming that the upstream cleansing and stratification layers provide a stable optimization landscape. Notably, the wider single-layer topology (Architecture B) descends faster during the initial epochs.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FwW4w-IOUJUR9yIu2ZjSMg.png" /></figure><p><strong>Fig. 3:</strong> Final out-of-sample classification accuracy on the stratified test set, reaching <strong>99.50%</strong> for Network Architecture A (32×16) and <strong>100.00%</strong> for Network Architecture B (64).</p><p>On the unseen test set, Architecture A reaches <strong>99.50% accuracy</strong> (2 false positives), whereas Architecture B achieves <strong>100.00% accuracy</strong> (0 errors).</p><p>To evaluate how effectively a model can identify the target TATA-box sequence within DNA strands, two neural architectures were trained and compared in terms of overall efficacy. The results clearly demonstrate that the wider single-layer architecture outperforms the multi-layer architecture in both classification accuracy and convergence speed, since detecting a fixed, local motif does not require multiple hidden layers and a narrower second layer slightly slows down training.</p><h3>5. Software Engineering Standards: Testing &amp; Docker Isolation</h3><p>Beyond model accuracy, the repository enforces deterministic reproducibility and automated verification:</p><ul><li>All clinical parameters and motif coordinates are centralized in a single CONFIG dictionary with fixed NumPy and TensorFlow seeds (seed=26).</li><li>An automated unittest suite validates every pipeline stage in memory, integrated with GitHub Actions CI/CD.</li><li><strong>Containerized Architecture:</strong> Because this pipeline operates as a<strong> finite batch-processing application </strong>— running in memory and releasing resources upon completion rather than acting as an always-on multi-service system — it uses a standalone Dockerfile instead of Docker Compose. The image build automatically triggers the unit test suite to guarantee container safety.</li></ul><p>Building a Docker image packages the entire software pipeline into an isolated, self-contained environment — which becomes a serious risk if hidden bugs remain in the code, resulting in a broken container image. To prevent this issue, the unit-test suite is embedded directly into the Docker build process so that any failing test immediately halts image creation before deployment.</p><h3>6. Future Roadmap</h3><p>To evolve this Proof of Concept into an enterprise-grade, scalable genomic analytics platform, four architectural upgrades are planned:</p><ul><li><strong>Real-World Genomic Data Ingestion (NCBI GenBank &amp; Ensembl API):</strong> Replacing synthetic generation with programmatic fetching and parsing of real FASTA/GenBank annotations via Biopython and REST APIs.</li><li><strong>Genomic Foundation Model Benchmarking (DNABERT / HyenaDNA):</strong> Fine-tuning pre-trained genomic transformers and state-space models to capture long-range regulatory motifs.</li><li><strong>Biotech Patent &amp; Sequence Mining (USPTO / WIPO):</strong> Integrating automated sequence-alignment parsers to cross-reference functional motifs against public biomedical patent databases.</li><li><strong>Cloud-Native Production Migration (AWS Batch &amp; PostgreSQL):</strong> Transitioning the local SQLite/Docker batch runtime to <strong>AWS Batch</strong> for containerized compute and <strong>Amazon RDS (PostgreSQL)</strong> for concurrent multi-user relational storage.</li></ul><h4>Links &amp; Contact</h4><ul><li><strong>Source Code &amp; Documentation:</strong> <a href="https://github.com/DarioDramisCodes/genomic-data-pipeline-benchmarks">GitHub Repository — Genomic Data Pipeline PoC</a></li><li><strong>Connect:</strong> <a href="https://www.linkedin.com/in/dario-dramis-87b19827b/">LinkedIn Profile</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce2ba8f5eccd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>