<?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: nasihuyxbigmo</title>
    <description>The latest articles on DEV Community by nasihuyxbigmo (@undergraduatecompscience_).</description>
    <link>https://dev.to/undergraduatecompscience_</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3798276%2F66918761-f560-410c-873d-fc52b6cd80a6.png</url>
      <title>DEV Community: nasihuyxbigmo</title>
      <link>https://dev.to/undergraduatecompscience_</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/undergraduatecompscience_"/>
    <language>en</language>
    <item>
      <title>Beyond the Black Box: Securing Trust in Medical AI with Google Gemini</title>
      <dc:creator>nasihuyxbigmo</dc:creator>
      <pubDate>Tue, 03 Mar 2026 22:39:42 +0000</pubDate>
      <link>https://dev.to/undergraduatecompscience_/beyond-the-black-box-securing-trust-in-medical-ai-with-google-gemini-492k</link>
      <guid>https://dev.to/undergraduatecompscience_/beyond-the-black-box-securing-trust-in-medical-ai-with-google-gemini-492k</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/mlh-built-with-google-gemini-02-25-26"&gt;Built with Google Gemini: Writing Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Beyond the Black Box: Securing Trust in Medical AI with Google Gemini
&lt;/h1&gt;

&lt;h2&gt;
  
  
  What I Built with Google Gemini
&lt;/h2&gt;

&lt;p&gt;In a recent independent research sprint, I engineered an explainable multi-class lung cancer classification system using transfer learning and adversarial robustness analysis.&lt;/p&gt;

&lt;p&gt;The system classifies histopathology images into:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Adenocarcinoma
&lt;/li&gt;
&lt;li&gt;Squamous Cell Carcinoma
&lt;/li&gt;
&lt;li&gt;Normal tissue
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The backbone architecture is EfficientNetB0 (ImageNet-pretrained), fine-tuned with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Selective unfreezing of upper convolutional layers
&lt;/li&gt;
&lt;li&gt;Cosine Decay learning rate scheduling
&lt;/li&gt;
&lt;li&gt;Stratified K-Fold Cross Validation
&lt;/li&gt;
&lt;li&gt;Macro F1-Score, Precision-Recall Curve, and ROC-AUC evaluation
&lt;/li&gt;
&lt;li&gt;Grad-CAM for visual interpretability
&lt;/li&gt;
&lt;li&gt;Preliminary adversarial perturbation testing
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This was not an accuracy-focused experiment. It was an attempt to answer a more difficult question:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How can we make medical AI not only accurate — but explainable, robust, and secure?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In clinical environments, black-box predictions introduce cognitive and operational risk. A system that predicts malignancy without providing interpretability cannot support accountable decision-making. In medical diagnostics, opacity is not merely a technical limitation — it is a liability. Therefore, this project was designed from the beginning to integrate explainability and security considerations into the modeling pipeline.&lt;/p&gt;

&lt;p&gt;Beyond raw classification performance, I focused on reducing false negatives, since missing a malignant case is significantly more critical than misclassifying a benign one. This required careful metric selection and threshold analysis rather than relying on overall accuracy.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Role of Google Gemini
&lt;/h3&gt;

&lt;p&gt;Google Gemini functioned as a structured reasoning partner rather than a code generator.&lt;/p&gt;

&lt;p&gt;It helped me:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Compare architectural trade-offs between ResNet-50, MobileNetV2, and EfficientNetB0 (FLOPs, parameter efficiency, generalization behavior in small medical datasets)&lt;/li&gt;
&lt;li&gt;Analyze gradient flow during Grad-CAM implementation when tensor shape mismatches occurred&lt;/li&gt;
&lt;li&gt;Refine evaluation strategy beyond accuracy, emphasizing Macro F1-Score and false negative sensitivity&lt;/li&gt;
&lt;li&gt;Structure adversarial robustness testing hypotheses&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Instead of replacing engineering judgment, Gemini accelerated hypothesis-driven experimentation.&lt;/p&gt;

&lt;p&gt;For example, when validation loss oscillated while training loss decreased, I did not ask a generic debugging question. I structured the prompt with architectural configuration, optimizer choice, and learning rate schedule. Gemini responded with possible explanations related to overfitting, batch normalization instability, and data variance — enabling faster experimental iteration.&lt;/p&gt;

&lt;p&gt;In this way, Gemini served as a cognitive multiplier rather than an automation shortcut.&lt;/p&gt;




&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;This project currently exists as a research-grade prototype pipeline with the following stages:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Image normalization and augmentation
&lt;/li&gt;
&lt;li&gt;EfficientNetB0 fine-tuning
&lt;/li&gt;
&lt;li&gt;Grad-CAM heatmap generation
&lt;/li&gt;
&lt;li&gt;Adversarial noise sensitivity testing (FGSM-style perturbation)
&lt;/li&gt;
&lt;li&gt;Confusion matrix and PR-curve evaluation
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The pipeline begins with stain-normalized preprocessing to reduce domain shift. After feature extraction and fine-tuning, Grad-CAM overlays are generated to visualize discriminative regions influencing model decisions. To test robustness, small adversarial perturbations are injected to evaluate prediction stability under noise conditions.&lt;/p&gt;

&lt;p&gt;The next milestone includes benchmarking against Vision Transformers (ViT) and preparing a journal-ready manuscript aligned with SINTA 2/3 publication standards. The long-term objective is not only to improve performance but to quantify explainability effectiveness and robustness under adversarial scenarios.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I Learned
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Transfer Learning Is Not a Silver Bullet
&lt;/h3&gt;

&lt;p&gt;Pretrained models accelerate convergence but do not guarantee generalization.&lt;/p&gt;

&lt;p&gt;Without:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Careful layer unfreezing
&lt;/li&gt;
&lt;li&gt;Learning rate scheduling
&lt;/li&gt;
&lt;li&gt;Regularization control
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;EfficientNet overfit aggressively on histopathology data.&lt;/p&gt;

&lt;p&gt;Pretrained weights are initialization — not validation.&lt;/p&gt;

&lt;p&gt;I learned that blindly trusting pretrained architectures leads to fragile systems. Fine-tuning required experimentation with freezing depth, adjusting weight decay, and carefully monitoring validation behavior. Optimization discipline mattered more than model complexity.&lt;/p&gt;




&lt;h3&gt;
  
  
  2. Explainability Is a Defensive Mechanism
&lt;/h3&gt;

&lt;p&gt;Grad-CAM exposed instances of shortcut learning, where the model focused on staining artifacts rather than cellular morphology.&lt;/p&gt;

&lt;p&gt;This transformed explainability from a visualization feature into an auditing layer.&lt;/p&gt;

&lt;p&gt;If heatmaps highlight irrelevant structures, the model is not clinically trustworthy.&lt;/p&gt;

&lt;p&gt;Explainability revealed when the network relied on spurious correlations instead of pathological features. In this sense, Grad-CAM acted as a diagnostic tool for the model itself. Interpretability became a safeguard against hidden bias and unintended feature exploitation.&lt;/p&gt;




&lt;h3&gt;
  
  
  3. Robustness Is as Important as Accuracy
&lt;/h3&gt;

&lt;p&gt;With a cybersecurity background and prior research in DNA-based image cryptography, I evaluated the model through a threat lens.&lt;/p&gt;

&lt;p&gt;If small perturbations can flip a cancer diagnosis, the system is unsafe.&lt;/p&gt;

&lt;p&gt;This led to exploration of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Adversarial perturbation sensitivity
&lt;/li&gt;
&lt;li&gt;Conceptual cryptographic integrity validation before inference
&lt;/li&gt;
&lt;li&gt;Secure deployment strategies
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Medical AI must integrate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Statistical learning
&lt;/li&gt;
&lt;li&gt;Interpretability
&lt;/li&gt;
&lt;li&gt;Cryptographic integrity
&lt;/li&gt;
&lt;li&gt;Adversarial robustness
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It is not purely a machine learning challenge. It is a security engineering problem.&lt;/p&gt;

&lt;p&gt;In particular, my prior research in image cryptography shaped my understanding of data integrity risks. If a histopathology image is tampered with at the pixel or bitstream level, both prediction and explanation can be corrupted. Therefore, model robustness must be complemented by data authenticity verification.&lt;/p&gt;




&lt;h3&gt;
  
  
  4. Prompt Precision Determines AI Quality
&lt;/h3&gt;

&lt;p&gt;When prompts were vague, responses were generic.&lt;/p&gt;

&lt;p&gt;When prompts included:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Architecture configuration
&lt;/li&gt;
&lt;li&gt;Observed loss behavior
&lt;/li&gt;
&lt;li&gt;Hypothesis framing
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Gemini delivered structured, analytical reasoning.&lt;/p&gt;

&lt;p&gt;AI amplifies thinking depth. It does not replace it.&lt;/p&gt;

&lt;p&gt;This experience reinforced a fundamental insight: the quality of AI output directly reflects the clarity of the problem definition. Structured prompts transformed Gemini from a conversational assistant into a research collaborator capable of meaningful technical dialogue.&lt;/p&gt;




&lt;h2&gt;
  
  
  Google Gemini Feedback
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What Worked Well
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Strong contextual reasoning in architecture comparison
&lt;/li&gt;
&lt;li&gt;Clear explanation of backpropagation mechanics
&lt;/li&gt;
&lt;li&gt;Effective support in structuring evaluation methodology
&lt;/li&gt;
&lt;li&gt;Fast iteration during debugging cycles
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Gemini was most powerful when treated as a research collaborator rather than an automated code tool. Its strength lies in accelerating structured reasoning and enabling rapid exploration of design alternatives.&lt;/p&gt;




&lt;h3&gt;
  
  
  Where Friction Occurred
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Occasional hallucination regarding specific library versions
&lt;/li&gt;
&lt;li&gt;Overconfident answers without explicit uncertainty
&lt;/li&gt;
&lt;li&gt;Generic first responses when prompts lacked technical specificity
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These limitations reinforced the necessity of independent verification. AI can suggest directions, but correctness must always be validated experimentally and technically.&lt;/p&gt;

&lt;p&gt;This reinforced a critical lesson:&lt;/p&gt;

&lt;p&gt;AI accelerates development, but verification and accountability remain human responsibilities.&lt;/p&gt;




&lt;h2&gt;
  
  
  Closing Reflection
&lt;/h2&gt;

&lt;p&gt;This project reshaped how I view AI engineering.&lt;/p&gt;

&lt;p&gt;The future is not AI replacing engineers.&lt;/p&gt;

&lt;p&gt;The future is engineers who understand:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Statistical optimization
&lt;/li&gt;
&lt;li&gt;Model interpretability
&lt;/li&gt;
&lt;li&gt;Adversarial risk
&lt;/li&gt;
&lt;li&gt;Cryptographic data integrity
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Google Gemini sharpened my reasoning and accelerated iteration cycles.&lt;/p&gt;

&lt;p&gt;But methodological rigor, validation discipline, and security awareness remained mine.&lt;/p&gt;

&lt;p&gt;And that is precisely how AI should be used.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>geminireflections</category>
      <category>gemini</category>
    </item>
    <item>
      <title>Beyond the Black Box: Securing Trust in Medical AI with Google Gemini</title>
      <dc:creator>nasihuyxbigmo</dc:creator>
      <pubDate>Tue, 03 Mar 2026 22:30:15 +0000</pubDate>
      <link>https://dev.to/undergraduatecompscience_/beyond-the-black-box-securing-trust-in-medical-ai-with-google-gemini-57jc</link>
      <guid>https://dev.to/undergraduatecompscience_/beyond-the-black-box-securing-trust-in-medical-ai-with-google-gemini-57jc</guid>
      <description>&lt;p&gt;&lt;strong&gt;1. The Build: Designing a High-Stakes Histopathology Intelligence System&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;During a recent independent research sprint, I engineered an explainable multi-class lung cancer classification system (Adenocarcinoma, Squamous Cell Carcinoma, and Normal tissue) using transfer learning based on EfficientNetB0.&lt;/p&gt;

&lt;p&gt;This was not a Kaggle-style accuracy chase.&lt;/p&gt;

&lt;p&gt;It was an attempt to answer a harder question:&lt;/p&gt;

&lt;p&gt;How do we make medical AI not only accurate — but trustworthy, auditable, and secure?&lt;/p&gt;

&lt;p&gt;In clinical environments, a black-box model is a liability. A prediction without interpretability introduces cognitive risk. If a system flags a biopsy as malignant but cannot justify its reasoning, the physician inherits epistemic uncertainty without support.&lt;/p&gt;

&lt;p&gt;Therefore, the system I built combined:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;EfficientNetB0 backbone (ImageNet-pretrained)&lt;/li&gt;
&lt;li&gt;Fine-tuned upper convolutional blocks&lt;/li&gt;
&lt;li&gt;Stratified K-Fold Cross Validation&lt;/li&gt;
&lt;li&gt;Macro F1-Score, Precision-Recall Curve, and ROC-AUC evaluation&lt;/li&gt;
&lt;li&gt;Grad-CAM for visual interpretability&lt;/li&gt;
&lt;li&gt;Preliminary adversarial robustness testing&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The objective was not merely performance — it was clinical-grade accountability.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. The Role of Google Gemini: From Assistant to Research Multiplier&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Google Gemini was not used as a code generator.&lt;/p&gt;

&lt;p&gt;It was used as a structured reasoning partner.&lt;/p&gt;

&lt;p&gt;Architectural Trade-Off Analysis&lt;/p&gt;

&lt;p&gt;One of the first design decisions involved selecting the backbone architecture. I explored:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ResNet-50 (deeper residual learning)&lt;/li&gt;
&lt;li&gt;MobileNetV2 (lightweight edge-oriented model)&lt;/li&gt;
&lt;li&gt;&lt;p&gt;EfficientNetB0 (compound scaling optimization)&lt;br&gt;
Rather than relying on intuition, I used Gemini to dissect trade-offs:&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;FLOPs vs parameter efficiency&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Overfitting tendencies in small medical datasets&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Feature resolution preservation in histopathology&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Histopathological images contain high-frequency cellular textures. Overly aggressive downsampling can erase diagnostically relevant microstructures. Gemini helped structure that reasoning before I even ran experiments.&lt;/p&gt;

&lt;p&gt;This shifted the workflow from trial-and-error to hypothesis-driven experimentation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Deep Debugging: Grad-CAM Tensor Failure&lt;/strong&gt;&lt;br&gt;
During Grad-CAM implementation, I encountered tensor shape mismatch when extracting gradients from the final convolutional block.&lt;/p&gt;

&lt;p&gt;Instead of asking “Why is this broken?”, I structured the question:&lt;/p&gt;

&lt;p&gt;“Given EfficientNetB0 with top layers unfrozen, and Grad-CAM computed on the last convolutional block, why would gradient dimensions mismatch during backpropagation if the model includes GlobalAveragePooling2D before dense classification?”&lt;/p&gt;

&lt;p&gt;That specificity changed everything.&lt;/p&gt;

&lt;p&gt;Gemini responded by explaining:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How gradients flow backward from softmax output&lt;/li&gt;
&lt;li&gt;The necessity of intercepting activations before pooling layers&lt;/li&gt;
&lt;li&gt;Why spatial feature maps must remain intact for proper localization&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This was not patch-level debugging.&lt;br&gt;
It was conceptual reinforcement of how CNN interpretability actually works.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Research-Driven Evaluation Strategy&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Gemini also challenged my initial evaluation design.&lt;/p&gt;

&lt;p&gt;Accuracy is misleading in medical AI.&lt;/p&gt;

&lt;p&gt;With class imbalance and high cost of false negatives, Macro F1-score and Precision-Recall analysis become more meaningful. Gemini helped me refine:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Stratified K-Fold Cross Validation to mitigate leakage&lt;/li&gt;
&lt;li&gt;Confusion matrix analysis targeting false negatives&lt;/li&gt;
&lt;li&gt;Threshold calibration strategies&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In this context, AI did not replace methodological rigor — it accelerated it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. The Cybersecurity Perspective: Where ML Meets Adversarial Risk&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;My background extends beyond machine learning into cybersecurity research, including involvement in university-level cyber defense initiatives and research in DNA-based image cryptography.&lt;/p&gt;

&lt;p&gt;That lens fundamentally altered how I evaluated this system.&lt;/p&gt;

&lt;p&gt;Model Robustness Against Adversarial Attacks&lt;/p&gt;

&lt;p&gt;A cancer classifier vulnerable to adversarial perturbation is dangerous.&lt;/p&gt;

&lt;p&gt;If imperceptible pixel-level noise can flip a diagnosis, then the system cannot be trusted in real clinical pipelines.&lt;/p&gt;

&lt;p&gt;Using Gemini as a conceptual guide, I explored:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;FGSM-style perturbations&lt;/li&gt;
&lt;li&gt;Sensitivity of EfficientNet feature maps to structured noise&lt;/li&gt;
&lt;li&gt;The relationship between adversarial vulnerability and shortcut learning&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What emerged was clear:&lt;/p&gt;

&lt;p&gt;High accuracy ≠ high robustness.&lt;/p&gt;

&lt;p&gt;Explainability revealed when the model relied on staining artifacts or slide edges — classic shortcut learning behavior.&lt;/p&gt;

&lt;p&gt;Grad-CAM became more than visualization.&lt;br&gt;
It became a forensic auditing layer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data Integrity: Cryptography Meets Medical AI&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;My prior research in DNA-based image cryptography directly influenced this project’s threat model.&lt;/p&gt;

&lt;p&gt;Medical images must preserve:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Integrity&lt;/li&gt;
&lt;li&gt;Authenticity&lt;/li&gt;
&lt;li&gt;Confidentiality&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If histopathology images are tampered at the bitstream level, Grad-CAM visualizations can become misleading. An attacker could alter texture patterns subtly, influencing both prediction and explanation.&lt;/p&gt;

&lt;p&gt;This creates a compounded risk:&lt;/p&gt;

&lt;p&gt;Manipulated input → Corrupted inference → False explanation → Clinical misjudgment.&lt;/p&gt;

&lt;p&gt;To mitigate this conceptual vulnerability, I investigated:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Hash-based integrity verification pipelines&lt;/li&gt;
&lt;li&gt;Pre-classification cryptographic validation&lt;/li&gt;
&lt;li&gt;Secure image storage models&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This intersection — between cryptography and explainable AI — is rarely discussed.&lt;/p&gt;

&lt;p&gt;But it is necessary.&lt;/p&gt;

&lt;p&gt;Medical AI is not just a machine learning problem.&lt;br&gt;
It is a security engineering problem.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Lessons: Engineering Discipline Over AI Hype&lt;br&gt;
Transfer Learning Is Not a Silver Bullet&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Without careful unfreezing strategy and cosine decay learning rate scheduling, EfficientNet overfit aggressively.&lt;/p&gt;

&lt;p&gt;Pretrained weights provide initialization — not guaranteed generalization.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fine-tuning required:&lt;/li&gt;
&lt;li&gt;Layer-wise learning rate control&lt;/li&gt;
&lt;li&gt;Regularization&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Careful monitoring of validation loss oscillation&lt;/p&gt;

&lt;p&gt;Gemini accelerated iteration, but the responsibility of experimental discipline remained mine.&lt;br&gt;
**&lt;br&gt;
Explainability as a Defensive Mechanism**&lt;/p&gt;

&lt;p&gt;Grad-CAM exposed weaknesses in model reasoning.&lt;/p&gt;

&lt;p&gt;When heatmaps highlighted irrelevant slide regions, it revealed shortcut learning.&lt;/p&gt;

&lt;p&gt;That insight was not cosmetic.&lt;/p&gt;

&lt;p&gt;It was a security signal.&lt;/p&gt;

&lt;p&gt;Explainability is not decoration — it is audit infrastructure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prompt Engineering Mirrors Cognitive Depth&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When I asked vague questions, I received shallow answers.&lt;/p&gt;

&lt;p&gt;When I framed hypotheses, constraints, and architecture details precisely, Gemini responded with structured reasoning.&lt;/p&gt;

&lt;p&gt;This was a critical realization:&lt;/p&gt;

&lt;p&gt;AI amplifies your thinking level.&lt;br&gt;
It does not compensate for its absence.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Honest Feedback on Google Gemini&lt;br&gt;
Strengths&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Strong contextual reasoning in ML architecture comparison&lt;/li&gt;
&lt;li&gt;Clear explanation of optimization strategies&lt;/li&gt;
&lt;li&gt;Efficient assistance in modularizing preprocessing pipelines&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Helpful in drafting structured research arguments&lt;/p&gt;

&lt;p&gt;Gemini excelled when treated as a collaborator in reasoning — not as a code vending machine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Limitations&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Occasional hallucination in specific library version references&lt;/li&gt;
&lt;li&gt;Overconfident suggestions without uncertainty disclaimers&lt;/li&gt;
&lt;li&gt;Generic first responses if prompts lacked technical structure&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The solution was not distrust.&lt;/p&gt;

&lt;p&gt;The solution was supervision.&lt;/p&gt;

&lt;p&gt;AI does not eliminate the need for engineering competence.&lt;br&gt;
It increases the cost of intellectual laziness.&lt;br&gt;
**&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Roadmap: Toward Publication and Secure Deployment**&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This project is not an endpoint.&lt;/p&gt;

&lt;p&gt;It is evolving toward:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Publication (SINTA 2/3 Target And Scopus Target)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A formal research manuscript focusing on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Grad-CAM effectiveness in reducing false negatives&lt;/li&gt;
&lt;li&gt;Comparative benchmarking: CNN vs Vision Transformers&lt;/li&gt;
&lt;li&gt;Robustness evaluation under adversarial perturbations
Advanced Model Benchmarking&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Testing Vision Transformers (ViT) to evaluate whether self-attention mechanisms capture global tissue patterns more effectively than convolutional local features.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Secure Deployment&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Conversion to TensorFlow Lite / ONNX&lt;/li&gt;
&lt;li&gt;Edge deployment under encrypted storage&lt;/li&gt;
&lt;li&gt;Cryptographic verification before inference&lt;/li&gt;
&lt;li&gt;Model integrity monitoring&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This bridges:&lt;/p&gt;

&lt;p&gt;Machine Learning&lt;br&gt;
Explainability&lt;br&gt;
Cryptography&lt;br&gt;
Cybersecurity&lt;/p&gt;

&lt;p&gt;Into one cohesive research direction.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Closing Reflection&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This project reshaped how I view AI development.&lt;/p&gt;

&lt;p&gt;The future is not AI replacing engineers.&lt;/p&gt;

&lt;p&gt;The future is engineers who understand:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Statistical learning&lt;/li&gt;
&lt;li&gt;Model interpretability&lt;/li&gt;
&lt;li&gt;Cryptographic integrity&lt;/li&gt;
&lt;li&gt;Adversarial robustness&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Google Gemini did not build this system for me.&lt;/p&gt;

&lt;p&gt;It sharpened my questions, accelerated my iterations, and forced clarity in my thinking.&lt;/p&gt;

&lt;p&gt;The responsibility — methodological, ethical, and security-oriented — remained human.&lt;/p&gt;

&lt;p&gt;And that is precisely how AI should be used.&lt;/p&gt;

</description>
      <category>geminireflections</category>
    </item>
    <item>
      <title>Frist Challenge</title>
      <dc:creator>nasihuyxbigmo</dc:creator>
      <pubDate>Sat, 28 Feb 2026 13:16:39 +0000</pubDate>
      <link>https://dev.to/nabiel_ilyasa/frist-challenge-5a</link>
      <guid>https://dev.to/nabiel_ilyasa/frist-challenge-5a</guid>
      <description>&lt;p&gt;The Community&lt;br&gt;
MindCare Community was built for the Indonesian community particularly young adults, students, and general public — who often lack easy access to mental health screening tools and psychological support. Mental health literacy is still growing in Indonesia, and many people don't know where to start. This platform is designed as a preventive, educational, and supportive first step before professional intervention.&lt;/p&gt;

&lt;p&gt;What I Built&lt;br&gt;
MindCare Community — a full-stack mental health platform built with Next.js 15, TailwindCSS, and Groq AI (LLaMA 3).&lt;/p&gt;

&lt;p&gt;Key features:&lt;/p&gt;

&lt;p&gt;🧠 Mental Health Screening — PHQ-9 and SRQ-20 standardized instruments with risk scoring and PDF reports&lt;br&gt;
🫀 Physical Health Screening — Cardiovascular and metabolic risk assessment&lt;br&gt;
📊 Daily Mood Tracker — Trend analysis with self-care recommendations&lt;br&gt;
💬 AI Psychological Consultation — Emotion detection, 4 AI personas (Supportive Friend, Calm Therapist, Direct Coach, Spiritual Guide), Calm Mode UI, and Emotional Energy Battery indicator&lt;br&gt;
🎙️ Real-Time Voice AI Mode — Speak directly to AI: mic → speech-to-text → AI → text-to-speech&lt;br&gt;
🧩 MBTI Personality Test — 16-type assessment with cognitive function-grounded AI profiles and shareable result images&lt;br&gt;
🌙 Glassmorphism UI — Light/dark mode persisted in localStorage, floating gradient orbs, smooth transitions&lt;br&gt;
Demo&lt;br&gt;
🔗 Live: &lt;a href="https://preventive-health-screening-tool-gt.vercel.app/" rel="noopener noreferrer"&gt;https://preventive-health-screening-tool-gt.vercel.app/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Code&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/prasbara" rel="noopener noreferrer"&gt;
        prasbara
      &lt;/a&gt; / &lt;a href="https://github.com/prasbara/Preventive-Health-Screening-Tool" rel="noopener noreferrer"&gt;
        Preventive-Health-Screening-Tool
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Health Risk Self-Assessment Website&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;A comprehensive Next.js 14+ web application for health risk self-assessment with AI psychological consultation featuring real-time facial emotion detection.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;🌟 Features&lt;/h2&gt;
&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Health Assessment&lt;/h3&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Interactive health risk assessment form&lt;/li&gt;
&lt;li&gt;Auto-calculating BMI&lt;/li&gt;
&lt;li&gt;Rule-based risk scoring (0-100)&lt;/li&gt;
&lt;li&gt;Personalized lifestyle recommendations&lt;/li&gt;
&lt;li&gt;Visual charts and analytics&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;AI Psychological Consultation&lt;/h3&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Real-time facial emotion detection (client-side only)&lt;/li&gt;
&lt;li&gt;AI-powered supportive chat with emotion context&lt;/li&gt;
&lt;li&gt;Crisis detection and safety protocols&lt;/li&gt;
&lt;li&gt;Privacy-first: no video/images stored&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Admin Dashboard&lt;/h3&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Secure login system&lt;/li&gt;
&lt;li&gt;Assessment statistics and analytics&lt;/li&gt;
&lt;li&gt;Risk distribution visualization&lt;/li&gt;
&lt;li&gt;Chat session analytics&lt;/li&gt;
&lt;li&gt;Emotion distribution tracking&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;🚀 Getting Started&lt;/h2&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Prerequisites&lt;/h3&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Node.js 18+&lt;/li&gt;
&lt;li&gt;npm or yarn&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Installation&lt;/h3&gt;

&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;Clone the repository:&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;git clone &lt;span class="pl-k"&gt;&amp;lt;&lt;/span&gt;your-repo-url&lt;span class="pl-k"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="pl-c1"&gt;cd&lt;/span&gt; &lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;Kesehatan Tester&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;ol start="2"&gt;
&lt;li&gt;Install dependencies:&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;npm install&lt;/pre&gt;

&lt;/div&gt;
&lt;ol start="3"&gt;
&lt;li&gt;Set up environment variables:
Create a &lt;code&gt;.env.local&lt;/code&gt; file in the root directory with:&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight highlight-source-dotenv notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-v"&gt;OPENAI_API_KEY&lt;/span&gt;&lt;span class="pl-k"&gt;=&lt;/span&gt;&lt;span class="pl-s"&gt;your_openai_key&lt;/span&gt;
&lt;span class="pl-v"&gt;GROQ_API_KEY&lt;/span&gt;&lt;span class="pl-k"&gt;=&lt;/span&gt;&lt;span class="pl-s"&gt;your_groq_key&lt;/span&gt;
&lt;span class="pl-v"&gt;GROQ_API_KEY_FALLBACK_1&lt;/span&gt;&lt;span class="pl-k"&gt;=&lt;/span&gt;&lt;span class="pl-s"&gt;your_fallback_key_1&lt;/span&gt;
&lt;span class="pl-v"&gt;GROQ_API_KEY_FALLBACK_2&lt;/span&gt;&lt;span class="pl-k"&gt;=&lt;/span&gt;&lt;span class="pl-s"&gt;your_fallback_key_2&lt;/span&gt;
&lt;span class="pl-v"&gt;ADMIN_EMAIL&lt;/span&gt;&lt;span class="pl-k"&gt;=&lt;/span&gt;&lt;span class="pl-s"&gt;yesii@admin&lt;/span&gt;
&lt;span class="pl-v"&gt;ADMIN_PASSWORD&lt;/span&gt;&lt;span class="pl-k"&gt;=&lt;/span&gt;&lt;span class="pl-s"&gt;yesii123&lt;/span&gt;
&lt;span class="pl-v"&gt;SESSION_SECRET&lt;/span&gt;&lt;span class="pl-k"&gt;=&lt;/span&gt;&lt;span class="pl-s"&gt;your_session_secret&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;ol start="4"&gt;
&lt;li&gt;Download face-api.js…&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/prasbara/Preventive-Health-Screening-Tool" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;How I Built It&lt;br&gt;
Stack:&lt;/p&gt;

&lt;p&gt;Framework: Next.js 15 (App Router)&lt;br&gt;
Styling: TailwindCSS with custom glassmorphism design system&lt;br&gt;
AI: Groq API (LLaMA 3.3-70B) with 9 API key rotation for load balancing and zero-downtime failover&lt;br&gt;
Database: NeonDB (PostgreSQL) via Prisma&lt;br&gt;
Auth: Iron Session (JWT-based admin sessions)&lt;br&gt;
Speech: Web Speech API (SpeechRecognition + speechSynthesis)&lt;br&gt;
Deployment: Vercel&lt;br&gt;
Architecture highlights:&lt;/p&gt;

&lt;p&gt;Dynamic multi-layer system prompt: persona × MBTI × calm mode × detected emotion × energy state — all composited per request&lt;br&gt;
MBTI profiles grounded in cognitive function theory (Ni/Ne/Si/Se/Ti/Te/Fi/Fe), not stereotypes&lt;br&gt;
Voice engine with silence detection, emotion heuristics, and crisis safety guard&lt;br&gt;
Glassmorphism CSS design system using CSS custom properties with dark/light mode class strategy and FOUC prevention&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>weekendchallenge</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
