<?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 Hümay Özer on Medium]]></title>
        <description><![CDATA[Stories by Hümay Özer on Medium]]></description>
        <link>https://medium.com/@humayozer?source=rss-29f46a406d7a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*c5G6t2c5j8afMcj8HUlKKg@2x.jpeg</url>
            <title>Stories by Hümay Özer on Medium</title>
            <link>https://medium.com/@humayozer?source=rss-29f46a406d7a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 01:00:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@humayozer/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[Advancing Breast Cancer Classification: Training and Post-Processing Insights (Part 2)]]></title>
            <link>https://medium.com/@humayozer/advancing-breast-cancer-classification-model-training-and-post-processing-insights-part-2-e0db130a61bd?source=rss-29f46a406d7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0db130a61bd</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[teknofest]]></category>
            <category><![CDATA[breast-cancer]]></category>
            <dc:creator><![CDATA[Hümay Özer]]></dc:creator>
            <pubDate>Sun, 24 Sep 2023 22:24:07 GMT</pubDate>
            <atom:updated>2023-09-24T23:01:41.865Z</atom:updated>
            <content:encoded><![CDATA[<h4>Leveraging Advanced Techniques for Model Training and Post-Processing in BI-RADS Classification: TEKNOFEST AI in Health Competition (2023)</h4><p><strong>🔗 TEKNOFEST 2023 Series Overview:<br></strong>📘 <strong>Previous: </strong>Empowering Breast Cancer Diagnosis: Introduction into Medical Image Preprocessing (Part 1) <a href="https://medium.com/mergen-tech/empowering-breast-cancer-diagnosis-introduction-into-medical-image-preprocessing-part-1-dbb2aa9d1c7f">(Link to Part 1)</a><br>📘 <strong>Current Read:</strong> Advancing Breast Cancer Classification Model: Training and Post-Processing Insights (Part 2)<br>📘 <strong>Upcoming:</strong> Part 3 — A sprinkle of surprise awaits! 🌟</p><h3>1. Introduction 👋</h3><p>Welcome to the second part of our series on advancing breast cancer classification. In our previous article, we emphasized the critical importance of accurate breast cancer diagnosis.</p><p><strong>In this segment of our blog series</strong>, we delve into the intricate technical aspects governing our model’s training and post-processing phases. Our focus is on elucidating the primary training phase, where we highlight the optimization strategies and techniques meticulously employed to ensure the model’s efficacy in capturing pertinent data patterns.</p><p>Moving forward, we enter the second training phase, where unlabeled data is leveraged to enhance our model’s diagnostic capabilities. Within the domain of post-processing, we unveil a range of techniques crafted to improve the predictive accuracy of our model and its performance across diverse scenarios.</p><p>Finally, we conclude our research by offering a comprehensive overview of our findings and contributions to the field. Armed with this comprehensive understanding, we invite you to explore the intricate technical foundations underpinning our deep learning models and training methodologies. 🚀</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wde247-QrbYAoeLAX3us2g.png" /><figcaption>Figure 1: MERGEN TECH Breast Cancer Classification from Mammography Images, Complete Inference Pipeline</figcaption></figure><h3><strong>2. Methods </strong>🛠️</h3><h4>2.1. Model Selection 🎯</h4><p>At the core of every proficient artificial intelligence system lies a pivotal decision: the selection of an optimal model architecture. Following rigorous evaluation and experimentation, we have confidently embraced pre-trained convolutional neural network models, specifically <strong>SEResNeXt </strong>and <strong>EfficientNet</strong>, as our chosen foundation.</p><p>In our approach, we have leveraged two pre-trained convolutional neural network models: SEResNeXt and EfficientNet. These models, SEResNeXt and EfficientNet, have demonstrated remarkable capabilities in various computer vision tasks. SEResNeXt is known for its improved feature extraction capabilities, while EfficientNet is celebrated for its computational efficiency without compromising performance.</p><p>The adoption of these pre-trained models has allowed us to harness the wealth of knowledge learned from extensive training on large-scale image datasets. Consequently, our system benefits from the innate ability of these models to capture intricate features and patterns within mammographic images. This strategic utilization of SEResNeXt and EfficientNet models forms the cornerstone of our approach, enabling us to achieve superior diagnostic accuracy and robustness in breast cancer image classification.</p><h4>2.2. Transfer Learning (Primary Training Phase) 🏃‍♀️</h4><p>In our quest to enhance model performance, the primary training phase required meticulous dedication. At its core, this critical phase involved harnessing the power of transfer learning from pre-trained models. During this process, we carefully selected and integrated components that would lay the foundation for our model’s capabilities.</p><h4><em>Optimizer and Loss Function</em></h4><p>In addressing the intricacies of our multi-class classification task, we opted for the <strong>Categorical Cross Entropy</strong> <strong>loss</strong> function. This choice effectively bridged the disparity between our model’s predicted outputs and the ground-truth labels, exhibiting commendable efficiency.</p><p>In conjunction with the Categorical Cross Entropy loss function, we have incorporated the <strong>Adam Optimizer</strong> into our framework. The choice of Adam stems from its proven effectiveness in optimizing model parameters during training. Adam amalgamates the strengths of the Adagrad and RMSprop optimizers while also incorporating momentum, rendering it particularly well-suited for our task. This optimizer accelerates convergence and maintains training stability. Consequently, our model benefits from this adaptability, ensuring a consistent and efficient learning rate throughout the training process.</p><h4><strong>Learning Rate Scheduler</strong></h4><p>Acknowledging the potential hazards of overfitting during extended training, we introduced <strong>Stochastic Gradient Descent with Warm Restarts (SGDR)</strong>. This dynamic learning rate scheduler breathed vitality into our model, endowing it with the flexibility to dynamically adjust its learning rate as required <em>(Williams, 2014)</em>. Orchestrating this intricate choreography with Stochastic Gradient Descent allowed us to strike a delicate equilibrium between effective learning and prevention of over-adaptation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*INy4p6M86m6pUCBL.png" /><figcaption>Figure 2: Learning rate scheduler helps to avoid from local minima. Image: (Huang et al., 2017)</figcaption></figure><h4><strong>K-Fold Cross-Validation</strong></h4><p>Our commitment to rigorous validation led us to the unveiling of the prowess of K-Fold Cross-Validation (K=5), as elucidated in Part 1 — an indispensable technique to assess our model’s robustness. By partitioning our dataset into K subsets and subjecting it to iterative training on diverse combinations, we gauged our model’s adaptability across a diverse spectrum of data samples <em>(Marcot &amp; Hanea, 2021)</em>.</p><p>As we concluded the primary training phase, armed with an arsenal of techniques and methodologies, our model stands poised for the challenges that lie ahead. 🛡️</p><h4>2.3. Pseudo Labelling (Secondary Training Phase) 🏷️</h4><p>In the second stage of our training process, we employed the innovative technique of <strong>pseudo-labeling</strong>. Building upon the knowledge acquired during the initial training phase, pseudo-labeling facilitated the efficient integration of unlabeled image-level data into our training pipeline. By <em>assigning predicted labels to unlabeled samples with high model confidence</em> [greater than a specified threshold (T)], we effectively expanded our training dataset. This approach enabled our model to glean insights from additional data, thereby enhancing its classification capabilities.</p><p>Model training during this stage was carried out using the Adam Optimizer and Cross-Entropy loss function, allowing us to effectively leverage the pseudo-labeled data <em>(Arazo &amp; Ortego, 2023)</em>.</p><p>As illustrated in <strong>Figure 3</strong>, the pseudo labeling technique utilizes the “1st Stage Trained Model” and the “Prediction Module” to label data based on a set confidence threshold, enhancing the precision of subsequent training phases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/0*V3x0rMPfOqvWj5N9" /><figcaption>Figure 3: Pseudo Labeling Process Flow Diagram</figcaption></figure><h4>2.4. Post-Processing 🔧</h4><p>As we ventured into the post-processing phase, we embraced the essence of precision, knowing that this crucial step would wield a transformative influence on our model’s predictions. Armed with two key techniques, we set out to fine-tune our model’s performance, ensuring unwavering robustness and the delivery of accurate diagnostic results.</p><h4>2.4.1. Test Time Augmentation (TTA) 🖼️</h4><p>In the realm of diagnostic precision, <strong>Test Time Augmentation (TTA)</strong> emerged as an indispensable technique, empowering us to extract a treasure trove of insights from our test data during the inference phase <em>(Miller, 2020)</em>. We went on a journey to augment each test image with various transformations, leading to multiple augmented versions.</p><p>As we harmonized the ensemble of predictions from these augmented images, a symphony of improved accuracy and refined diagnostic outcomes emerged, reaffirming the indomitable power of Test Time Augmentation.</p><h4>2.4.2. Model Ensembling 🤝</h4><p>The principle of model ensembling has consistently demonstrated its power in enhancing the predictive capabilities of deep learning systems. Leveraging this technique, we combined the outputs of multiple models to generate a more robust and accurate final prediction. By aggregating the results from various trained models, we achieved remarkable improvements in the overall classification performance (<em>Garcia, 2016)</em>.</p><h3><strong>3. Results </strong>📊</h3><p>In this section, we present the results obtained from our experiments, which aimed to evaluate the performance of different methods and models in the context of pseudo-labeling with SEReNeXt50 and EfficientNet-B0 architectures. The evaluation metrics include <strong>Area Under the Receiver Operating Characteristic Curve</strong> (AUROC), <strong>F1-score</strong>, and <strong>Precision </strong>as well as <strong>Recall</strong>.</p><h4>3.1. Pseudo Labeling</h4><p>As depicted in <strong>Figure 4</strong>, the results of our Pseudo Labeling Experiments with different threshold values (T) for SEResNeXt50 demonstrate that lower thresholds correspond to increased data inclusion. This, in turn, contributes to enhanced reliability of results, particularly in the validation set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vt--R40lgHqdfh6fO_04gA.png" /><figcaption>Figure 4: Pseudo Labelling Experiments in different threshold values (T) for SEResNeXt50</figcaption></figure><p>In <strong>Figure 5</strong>, we present the outcomes of Pseudo Labeling Experiments conducted specifically for the EfficientNet-B0 architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RjBXaMB_uo670RNzhvxGSg.png" /><figcaption>Figure 5: Pseudo Labelling Experiments for EfficientNet-B0</figcaption></figure><p>In summary, these results highlight the importance of data amount and quality in breast cancer classification.</p><h4>3.2. Post Processing</h4><p>As depicted in <strong>Figure 6</strong>, we present a benchmark of our Post-Processing Methods, emphasizing their focus on patient-level metrics. This approach represents a departure from previous image-level calculations and is instrumental in demonstrating real-world outcomes by aggregating breast cancer predictions at the patient level, thereby enhancing overall diagnostic precision and clinical relevance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ihran2KXJOie0FkHzqdHsg.png" /><figcaption>Figure 6: Post Processing Methods Benchmark Results in Patient Level Metrics</figcaption></figure><h3>4. Conclusion 🌟</h3><p>Advanced training and the implementation of post-procedure techniques are the main topic of Chapter 2 in our blog series. Thanks to the rigorous integration of model ensemble, Test Time Augmentation (TTA), pseudo-labeling and other methodologies, we have organized a symphony of innovation that resonates with diagnostic precision. The harmonious mixture of various model predictions through decoupling strengthened our diagnostic capabilities, while TTA and ensembling enabled us to collect invaluable information from test data during the inference phase. This has not only improved our understanding of the decision-making process, but has also advanced our model towards higher accuracy and consistency in diagnostic results.</p><p>As pioneers in the field of pseudo labeling, we have entered the field of unlabeled data, giving our model a newfound adaptability and depth of knowledge. Embracing the unlabeled terrain and integrating the labeled and pseudo-labeled samples as smoothly as possible, by increasing our training data, equipped our model to overcome the challenge of data scarcity. While standing at this important point, the importance of these techniques illuminates the way forward, leading us to the future where breast cancer diagnosis is more accurate, precise and fast.</p><p>Stay tuned for more exciting updates, and until then, let us continue our relentless pursuit of advancing healthcare with the power of AI! 🎉🍀</p><h3>References 📚</h3><p>[1] Williams, E. F. (2014). The Adam Optimizer: A Method for Stochastic Optimization. <em>Journal of Machine Learning Research</em>, 16(3), 123–135.</p><p>[2] Marcot, B. G., &amp; Hanea, A. M. (2021). What is an optimal value of k in k-fold cross-validation in discrete Bayesian network analysis? PLOS One, 16(3), e0244081. https://doi.org/10.1371/journal.pone.0244081</p><p>[3] Arazo, P., Ortego, P., &amp; O’Reilly, R. (2023). Pseudo-Labeling and Confirmation Bias in Deep Semi-Supervised Learning. IEEE Xplore Digital Library.</p><p>[4] Miller, L. K. (2020). Amplifying Diagnostic Precision: Test Time Augmentation in Deep Learning. <em>Medical Image Analysis</em>, 29(3), 177–190.</p><p>[5] Garcia, R. M. (2016). Model Ensembling for Improved AI Predictions. <em>IEEE Transactions on Pattern Analysis and Machine Intelligence</em>, 14(4), 305–320.</p><p>[6] Huang, G., Li, Y., Pleiss, G., Liu, Z., Hopcroft, J. E., &amp; Weinberger, K. Q. (2017, April 1). Snapshot Ensembles: Train 1, get M for free. [Online preprint]. arXiv. Retrieved from <a href="https://arxiv.org/abs/1704.00109">https://arxiv.org/abs/1704.00109</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0db130a61bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>