<?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 zahra jalalkhan on Medium]]></title>
        <description><![CDATA[Stories by zahra jalalkhan on Medium]]></description>
        <link>https://medium.com/@Zahrajalalkhan?source=rss-243a549be686------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*M-vjXMMHRVGM-2C-.jpeg</url>
            <title>Stories by zahra jalalkhan on Medium</title>
            <link>https://medium.com/@Zahrajalalkhan?source=rss-243a549be686------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 02:52:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Zahrajalalkhan/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[Breast cancer prediction tool, portfolio project.]]></title>
            <link>https://medium.com/@Zahrajalalkhan/breast-cancer-prediction-tool-portfolio-project-944b5fdba332?source=rss-243a549be686------2</link>
            <guid isPermaLink="false">https://medium.com/p/944b5fdba332</guid>
            <dc:creator><![CDATA[zahra jalalkhan]]></dc:creator>
            <pubDate>Wed, 14 Jun 2023 17:47:54 GMT</pubDate>
            <atom:updated>2023-06-14T17:47:54.627Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="cancerzilla logo" src="https://cdn-images-1.medium.com/max/200/0*b46uDv1jDviVTY3A" /></figure><h3><strong>CANCERZILLA</strong></h3><p><strong>Introduction</strong>:</p><figure><img alt="breast cancer awareness" src="https://cdn-images-1.medium.com/max/800/0*_qV-3cIV-uMcc0gD" /></figure><p>Breast cancer is a global health concern affecting millions of women every year. Early detection and accurate diagnosis play a pivotal role in improving treatment outcomes and saving lives. Recognizing this critical need, the Cancerzilla project was initiated to develop an advanced breast cancer prediction model using artificial intelligence (AI) and machine learning techniques. In this blog post, we will summarize the accomplishments achieved so far, highlight the technological choices made, discuss the key features of the model, and delve into the most challenging technical hurdle faced during the project.</p><p>CancerZilla is a web-based application developed for breast cancer prediction. It utilizes machine learning techniques to provide accurate predictions based on various patient data inputs.</p><p>As a woman who has witnessed the devastating impact of breast cancer on my own family, I was inspired to create a breast cancer prediction application as part of a women empowerment movement. Having experienced the loss of family members to this disease, I felt compelled to take action and make a difference.</p><p>My personal journey ignited a deep desire to empower women by providing them with the tools they need to proactively manage their health. I wanted to develop a solution that could contribute to the early detection of breast cancer, a critical factor in improving survival rates.</p><p>By leveraging technology and advanced analytics, my vision was to create an application that enables timely risk assessments, promotes regular screenings, and encourages women to prioritize their well-being. I believe that knowledge is power, and by equipping women with accurate predictions and personalized insights, we can empower them to make informed decisions about their health.</p><p>The flow of data through the application is as follows:</p><figure><img alt="flowchart breast cancer prediction model" src="https://cdn-images-1.medium.com/max/573/0*aWNTF8teK7vkyvuI" /></figure><p>1. Data Collection: The model integrates with various medical databases and research institutions to gather a diverse and comprehensive dataset of breast cancer cases.</p><p>2. Preprocessing: The collected data undergoes thorough preprocessing to remove noise, handle missing values, and normalize features. This step is crucial for ensuring accurate and reliable predictions.</p><p>3. Feature Engineering: A wide range of features, such as patient demographics, medical history, and genetic markers, are extracted and engineered to capture the complex patterns associated with breast cancer.</p><p>4. Deep Learning: The engineered features are fed into a deep learning architecture comprising multiple layers of neural networks. This architecture is designed to learn and identify intricate relationships between the features and the occurrence of breast cancer.</p><p>5. Training and Evaluation: The model is trained using a combination of labeled datasets and validated against separate test sets. This iterative process helps fine-tune the model’s parameters and optimize its performance.</p><p>6. Prediction and Real-time Analytics: Once trained, the CancerZilla model can make predictions on new, unseen data in real-time. It provides accurate insights into the likelihood of breast cancer, enabling healthcare professionals to take appropriate actions promptly.</p><p>Technological Choices:</p><p><strong>Programming languages used: Python, HTML, css.</strong></p><p>Python is a widely used programming language in the field of data science and machine learning. It offers a rich ecosystem of libraries and tools that make it convenient for developing breast cancer prediction applications. Here’s an explanation of why each technology has been used:</p><p>1. Python: Python is known for its simplicity, readability, and vast community support. It offers a wide range of libraries and frameworks specifically designed for machine learning tasks. Its easy-to-understand syntax makes it accessible for both beginners and experienced developers.</p><p>2. HTML and CSS: HTML (Hypertext Markup Language) and CSS (Cascading Style Sheets) are fundamental technologies for developing web-based applications. In the context of a breast cancer prediction application, HTML is used for creating the structure and layout of the web pages, while CSS is used for styling and formatting the visual elements of the application.</p><p><strong>Machine learning libraries such as:</strong></p><p>- <strong>scikit-learn</strong>: scikit-learn is a popular machine learning library in Python. It provides a comprehensive set of tools for data preprocessing, feature selection, model training, and evaluation. It includes various algorithms for classification, such as logistic regression, support vector machines, and random forests, which are commonly used in breast cancer prediction.</p><p>- <strong>NumPy</strong>: NumPy is a fundamental library for scientific computing in Python. It provides efficient data structures and mathematical functions for working with large multidimensional arrays. NumPy is used extensively in machine learning tasks for data manipulation and numerical operations.</p><p>- <strong>pandas</strong>: pandas is a powerful library for data manipulation and analysis. It provides convenient data structures (such as DataFrames) and functions for handling structured data. In the context of a breast cancer prediction application, pandas is useful for loading and preprocessing the dataset, performing exploratory data analysis, and preparing the data for model training.</p><p>- <strong>matplotlib and seaborn</strong>: matplotlib and seaborn are visualization libraries in Python. They offer a wide range of plotting functions and customization options, allowing developers to create informative and visually appealing graphs and charts to analyze the data and present the results.</p><p><strong>Web framework Flask</strong>. Flask is a lightweight web framework in Python for building web applications and APIs. It provides a simple and flexible way to handle HTTP requests and responses. Flask is suitable for developing the backend of a breast cancer prediction application, where it can serve the machine learning model and provide an interface for users to interact with the application.</p><p>By leveraging these technologies, developers can utilize the power of Python, the simplicity of HTML and CSS for user interface design, the robust machine learning capabilities of libraries like scikit-learn, NumPy, and pandas, and the visual representation of data using matplotlib and seaborn. Flask serves as the glue that ties everything together, allowing the application to be accessed and utilized via the web.</p><p>Several machine learning algorithms can be used to create a breast cancer prediction application. Here are some that i employed</p><p><strong>Support Vector Machines (SVM):</strong> SVM is a powerful algorithm for classification tasks. It finds an optimal hyperplane that maximally separates the data points of different classes. SVMs can handle both linear and non-linear classification problems and are effective when dealing with high-dimensional feature spaces.:</p><p><strong>Logistic Regression</strong>: Logistic regression is a binary classification algorithm that is frequently used for breast cancer prediction. It models the relationship between the input features and the probability of a patient having breast cancer. Logistic regression can handle both numerical and categorical features.</p><p><strong>K-Nearest Neighbors (KNN)</strong>: KNN is a simple yet effective algorithm for classification. It classifies an instance by considering the majority class of its k nearest neighbors in the feature space. KNN is a non-parametric algorithm, meaning it does not make any assumptions about the underlying data distribution.</p><p>These are just a few examples of the algorithms that can be used to create a breast cancer prediction application. The choice of algorithm depends on factors such as the dataset characteristics, the desired interpretability, the available computational resources, and the specific performance requirements. It is often beneficial to experiment with multiple algorithms and compare their results to select the most suitable one for the given task.</p><p><strong>Features include:</strong></p><p>CancerZilla offers a range of features designed to meet the needs of healthcare professionals:</p><p>1. Accuracy: The model’s architecture and rigorous training ensure high prediction accuracy, enabling reliable identification of breast cancer cases.</p><p>2. Fast and easy to use: The optimized design of the model allows for fast predictions, reducing the time required for diagnosis and enabling prompt medical interventions.</p><p>3. Real-time Analytics: The ability to make predictions in real-time empowers healthcare professionals with instant insights, facilitating timely decision-making and improving patient outcomes.</p><figure><img alt="Cancerzilla prediction input form" src="https://cdn-images-1.medium.com/max/1024/0*AsJA34tsKAsZZtse" /></figure><p>One of the most challenging aspects I faced when creating the breast cancer prediction application is integrating the machine learning model with the Flask framework and providing a user interface for users to input data and receive predictions. Here’s an overview of the challenge and how it I overcame it:</p><p>Challenge: Integrating the Machine Learning Model with Flask</p><p>- The machine learning model needs to be trained, saved, and then integrated into the Flask application.</p><p>- Flask requires the model to be loaded and used within its application context.</p><p>Solution:</p><p>1. Train and Save the Machine Learning Model: First, the machine learning model needs to be developed and trained using the chosen algorithm and the breast cancer dataset. Once trained, the model should be saved in a serialized format (e.g., using the pickle library) to preserve its learned parameters and structure.</p><p>2. Create a Flask Application: I set up a Flask application that will serve as the backend for the breast cancer prediction application. This involves creating the necessary routes and views to handle HTTP requests.</p><p>3. Load the Saved Model: In the Flask application, I loaded the saved machine learning model within the application context. This ensures that the model is accessible whenever the application is running.</p><p>4. Create an HTML Form: I developed an HTML form that will serve as the user interface for inputting the necessary data. The form included appropriate input fields, such as text boxes or drop-down menus, for collecting the required information from the user.</p><p>5. Process User Input and Make Predictions: In the Flask application, I defined the route or view that handles the user input submitted through the HTML form. Extracted the data from the form, which gets preprocessed (e.g., convert it to the appropriate data types), and passed it to the loaded machine learning model for prediction. Then retrieval is done by the prediction results from the model.</p><p>6. Render the Prediction Results: Once the prediction results are obtained, they are rendered in an appropriate format (e.g., as text or in a visual representation) and displayed to the user through the Flask application.</p><p>The Flask application acts as the bridge between the front-end interface and the back-end model, enabling the entire prediction workflow to function smoothly.</p><p>Creating Cancerzilla provided me with several valuable learnings and insights, both technically and professionally. Here are some takeaways from the project and how it has had an effect on my engineering path:</p><p>Developing Cancerzilla involved going through the entire machine learning workflow, including data preprocessing, feature engineering, model training, evaluation, and deployment. This hands-on experience helped in understanding the end-to-end process of developing a machine learning application.</p><p>Breast cancer prediction applications typically use real-world datasets, which can be complex and require careful data cleaning and preprocessing. Dealing with such datasets provided me with the experience in handling real-world challenges, including missing values, outliers, and feature scaling.</p><p>Evaluating the performance of the machine learning model is essential to ensure its accuracy and reliability. Metrics like accuracy, precision, recall, and F1-score are commonly used in breast cancer prediction. Additionally, interpreting the model’s results helped understand the factors contributing to the predictions and identified areas for improvement.</p><p>Further, deploying a machine learning model within a Flask application enhanced my understanding of integrating models into production systems. It involved handling API requests, maintaining application scalability, and ensuring efficient utilization of computational resources.</p><p>Lets not forget that creating a breast cancer prediction application is an iterative process that involves constant experimentation, evaluation, and refinement. The project taught me the value of continuously improving the model’s performance, exploring different algorithms, and incorporating new features or techniques.</p><p>During the project, I developed a new interest in exploring different machine learning algorithms which sparked a fascination for deep learning and AI.</p><p>I am grateful for the opportunity to contribute to the fight against breast cancer and to be part of a women empowerment movement. Together, we are changing the narrative surrounding breast cancer, empowering women to prioritize their health, and fostering a future where this disease is detected at its earliest stages.</p><p>To check the project out please view the links below.</p><p><a href="https://github.com/ZahraJkhan/Cancerzilla/tree/master">https://github.com/ZahraJkhan/Cancerzilla/tree/master</a></p><p><a href="https://zahrajid.wixsite.com/cancerzillab">https://zahrajid.wixsite.com/cancerzillab</a></p><p><a href="http://localhost:5000/">http://localhost:5000</a>.</p><p><a href="https://www.linkedin.com/in/zahra-jalalkhan-51b4564a/">https://www.linkedin.com/in/zahra-jalalkhan-51b4564a/</a></p><h3>Resources</h3><ol><li><strong>Flask User’s Guide: </strong><a href="https://flask.palletsprojects.com/en/1.1.x/">Welcome to Flask — Flask Documentation (1.1.x) (palletsprojects.com)</a></li><li><a href="https://timmyreilly.azurewebsites.net/python-flask-windows-development-environment-setup/">Python Flask Windows Development Environment Setup — Timmy Reilly’s Blog</a>.</li><li>The data comes from The Wisconsin Cancer Data-set. This data was gathered by the University of Wisconsin Hospitals, Madison and by Dr. William H. Wolberg.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=944b5fdba332" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What happens when you type https://www.google.com in your browser and press Enter]]></title>
            <link>https://medium.com/@Zahrajalalkhan/what-happens-when-you-type-https-www-google-com-in-your-browser-and-press-enter-b8220e669569?source=rss-243a549be686------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8220e669569</guid>
            <dc:creator><![CDATA[zahra jalalkhan]]></dc:creator>
            <pubDate>Sat, 15 Apr 2023 08:57:15 GMT</pubDate>
            <atom:updated>2023-04-15T08:57:15.243Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Browsing the internet" src="https://cdn-images-1.medium.com/max/1024/1*JUNYxN1bJUirpYdBLRfthg.jpeg" /></figure><p>Almost every day in your life if not most is spent traversing the internet and searching for various information. We do this by accessing a web browser such as Chrome, Firefox, Opera etc and key in a particular search sentence or URL(Uniform Resource Locator) such as <a href="http://www.whatscooking.com/">www.whatscooking.com</a> on your keypad and press enter. The process within which information is displayed on our screen takes mere seconds and viola we are provided with pages or a web page entailing our search. We never bother to think what is really happening under the hood.</p><p>Well, let us not ponder any further, as I shall provide the nitty gritty details in this article for you to fully grasp what actually goes on form when you key in your search in your browser to the point where you get the information on your screen. I shall try avoid too many jargons and make it easy for any laymen to understand.</p><p>When you type “https://www.google.com&quot; in your browser and press enter, a series of events are triggered that ultimately lead to the display of Google’s homepage on your screen. Let’s break down the steps involved in this process.</p><figure><img alt="Network Diagram" src="https://cdn-images-1.medium.com/max/880/1*L5gemWaBuRw082ceIGv-jA.png" /></figure><p>Before getting started, I want to first explain what a webpage is. A webpage is basically a text file formatted a certain way so that your browser (ie. Chrome, Firefox, Opera, etc) can understand it; this format is called HyperText Markup Language (HTML). These files are located in computers that provide the service of storing said files and wait for someone to need them to deliver them. They are called servers because they serve the content that they hold to whoever needs it.</p><p>Now, how does your browser know which server to send the request to? Yes, you guessed it right, it needs to find its address. So, it queries the DNS (Domain Name Server) to find the IP.</p><p><strong>DNS Request</strong></p><p>The first step is a Domain Name System (DNS) request. Your browser sends a request to the DNS server to translate the website name into an IP address. The DNS server responds with the IP address of the server where the website is hosted.</p><p>The DNS is the Internet’s version of Google Maps. It routes you to your destination. Your computer or your router knows the address of the DNS server. When you type the URL in a browser for the first time, it sends a request to the DNS server, which responds back with the IP address of the web server hosting, for example, google.com. This value is usually then cached or gets added into the list of known hosts, so your browser doesn’t have to do this lookup every time.</p><p>The primary purpose of DNS is human-friendly navigation. You can easily access a website by typing the correct IP address for it on your browser, but imagine having to remember different sets of numbers for all the sites we regularly access? Therefore, it is easier to remember the name of the website using a URL and let DNS do the work for us by mapping it to the correct IP.</p><p>To find the DNS record, the browser checks four caches.</p><p>1. First, it checks the browser cache. The browser maintains a repository of DNS records for a fixed duration for websites you have previously visited. So, it is the first place to run a DNS query.</p><p>2. Second, the browser checks the OS cache. If it is not in the browser cache, the browser will make a system call to your underlying computer OS to fetch the record since the OS also maintains a cache of DNS records.</p><p>3. Third, it checks the router cache. If it’s not on your computer, the browser will communicate with the router that maintains its’ own cache of DNS records.</p><p>4. Fourth, it checks the ISP cache. If all steps fail, the browser will move on to the ISP. Your ISP maintains its’ own DNS server, which includes a cache of DNS records, which the browser would check with the last hope of finding your requested URL.</p><figure><img alt="How DNS works" src="https://cdn-images-1.medium.com/max/1024/1*R8mvVflA138Mtv0lA9HLdA.png" /></figure><p><strong>TCP/IP</strong></p><p>The next step is the Transmission Control Protocol/Internet Protocol (TCP/IP) connection. Your browser initiates a connection to the server’s IP address using TCP/IP. TCP/IP is a set of communication protocols that allow computers to communicate over the internet.</p><p>An Internet Protocol address (IP address) is a numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication. An IP address serves two main functions: host or network interface identification and location addressing.</p><p>Not only does the server for the site you’re trying to reach have an IP address, you have one too. Yours can change depending on how you connect to the internet, but it’s there to identify you so that your interactions online can be understood and interpreted with a set of protocols, Internet Protocols.</p><p>An IP address is very much a sequence of numbers, such as 34.234.197.104 in IPv4, and 2001:db8:0:1234:0:567:8:1 in IPv6. (We need more numbers now, so we’re getting a larger set with IPv6). The complex mapping system used for IP addresses is, well, complex.</p><p><strong>Firewall</strong></p><p>The firewall is a security measure that protects the server from unauthorized access. The firewall checks the incoming request and blocks any suspicious traffic. For example , if a bad source starts flooding the web server with a large number of concurrent requests, the firewall will detect the problem and block requests from that IP address to keep them from reaching the web server.</p><p><strong>HTTPS:SSL</strong></p><p>The next step is the HTTPS (Hypertext Transfer Protocol Secure) connection. HTTPS is a secure version of the HTTP protocol that encrypts the communication between your browser and the server. When you request google.com, the HTTP server checks whether the requested URL matches any existing files, and if found, sends the files’ content back to the browser, or sends a “404 Not Found” error.</p><p>The server response contains the web page you requested as well as the status code, compression type (Content-Encoding), how to cache the page (Cache-Control), any cookies to set, privacy information, etc.</p><p><strong>SSL</strong> (Secure Sockets Layer) is the encryption protocol used to secure the connection. SSL ensures that your data is protected from interception and tampering. This certificate is issued and managed by trusted Certificate Authorities such as Let’s Encrypt. Public and private key pairs are issued and configured by the owner, and they are compared in a “handshake” every time a client requests access. If they don’t match, that request is revoked. On Firefox and other browsers you can check for secure connections in the address bar, and it is often represented by a small lock icon.</p><p><strong>Load Balancer</strong></p><p>We still haven’t loaded the web page in our browser. When the request was checked for security, it hit the first Firewall as well, and it’s likely that Firewall was protecting a server type called a Load Balancer. Popular websites have to serve several thousands of concurrent requests and return correct text, image and video responses to them. To serve a large number of requests, the content is usually distributed across multiple servers. A load balancer is used to distribute the traffic across multiple servers to improve performance and ensure reliability. If the website receives high traffic, the load balancer will distribute the traffic across multiple servers to prevent overload. If a server goes down, it starts redirecting the requests to different servers that are online.</p><p><strong>Web Server</strong></p><p>Once the HTTPS connection is established, the web server receives the request. The web server is responsible for processing the request and sending the response back to the client. The web server can be Apache, Nginx, or Microsoft IIS, depending on the server configuration.</p><p><strong>Application Server</strong></p><p>The web server may send the request to an application server if the website is running complex applications. The application server is responsible for processing the request and generating the response. It also provides the environment to run specific applications. For example, a cloud service may need to process data on a Windows machine. A Linux-based server may provide the web interface for the cloud service, but it cannot run Windows applications. Therefore, it may send input data to a Windows-based application server. The application server can process the data, then return the result to the web server, which can output the result in a web browser. The application server may use a scripting language like PHP, Python, or Ruby.</p><p><strong>Database</strong></p><p>If the website is storing data, the application server may request data from a database. The database stores the website’s data and retrieves it when requested. A database is an organized collection of structured information, or data, typically stored electronically in a computer system. A database is usually controlled by a database management system (DBMS). Together, the data and the DBMS, along with the applications that are associated with them, are referred to as a database system, often shortened to just database. The database may be MySQL, Oracle, or Microsoft SQL Server.</p><p>In conclusion, accessing a website like “https://www.google.com&quot; involves several steps, including DNS request, TCP/IP, Firewall, HTTPS:SSL, load balancer, web server, application server, and database. Understanding how these components work together is essential for web developers and IT professionals to optimize website performance and ensure security</p><p><strong>Some useful resourses:</strong></p><ul><li><a href="https://www.oracle.com/database/what-is-database/">https://www.oracle.com/database/what-is-database/</a></li><li><a href="https://www.hostinger.com/tutorials/what-is-dns">https://www.hostinger.com/tutorials/what-is-dns</a></li><li><a href="https://www.f5.com/services/resources/glossary/load-balancer">https://www.f5.com/services/resources/glossary/load-balancer</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8220e669569" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>