<?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 Alexander Tolpygo on Medium]]></title>
        <description><![CDATA[Stories by Alexander Tolpygo on Medium]]></description>
        <link>https://medium.com/@atolpygo?source=rss-2fdca0fcdd06------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fl7TPnMp_tBOF-cE3nMW_g.jpeg</url>
            <title>Stories by Alexander Tolpygo on Medium</title>
            <link>https://medium.com/@atolpygo?source=rss-2fdca0fcdd06------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 20:58:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@atolpygo/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[Identifying Sinus Related Medical Conditions with AI-Based Diagnostic Tools]]></title>
            <link>https://medium.com/@atolpygo/identifying-sinus-related-medical-conditions-with-ai-based-diagnostic-tools-ba7f820af197?source=rss-2fdca0fcdd06------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba7f820af197</guid>
            <category><![CDATA[medical]]></category>
            <category><![CDATA[healthcare]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Alexander Tolpygo]]></dc:creator>
            <pubDate>Mon, 06 Jan 2020 00:40:23 GMT</pubDate>
            <atom:updated>2020-04-10T04:45:37.876Z</atom:updated>
            <content:encoded><![CDATA[<h4>Developing deep learning tools for medical image classification</h4><h4>Challenge:</h4><ul><li>Develop deep learning algorithms for 3D medical image classification for over 20 potentially concurrent sinus diseases</li><li>Create region of interest segmentation, registration, and heatmap algorithms and tools</li><li>Create ingestion, cleaning, transformation, and image pre-processing pipelines for 3D CT in DICOM format</li><li>Develop tools to achieve medical-grade accuracy, suitable for applications for FDA approval</li></ul><h3>Deep Learning Pipelines for Medical Imaging</h3><p>For many organizations, leveraging Artificial Intelligence’s full capability and effectiveness begins by exploring and creating an effective roadmap. As AI can itself create new offerings, products, and services, here we consider deploying machine learning and other tools on medical image data to systematically improve diagnostic tools. Health problems are fundamental issues for people worldwide and improving services, delivery methods, and diagnostic accuracy is critical for improving health outcomes. The collection and automation of health data play an equally critical role in addressing health problems as the industry works towards automated diagnosis and support systems for better patient care.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f2gstvS2z0xlNEFid7GYHA.png" /></figure><h4><strong>Examining challenges in medical imaging</strong></h4><p>Deep learning techniques, based on neural networks and other algorithms, have a tremendous potential to influence the practice of radiology and medical imaging at large. Unlike many other fields of medicine, nearly all of the primary data collected in medical imaging is now digital, and with advances in modern electronic health records, cloud networking, infrastructure, and clinical data distribution, these digital data lend themselves to analysis by Artificial Intelligence.</p><p>The result is an increasingly large amount of image data available to answer clinically meaningful questions and to develop advanced medical applications. Deep learning models, coupled with image processing, can be used for detection, diagnosis, segmentation, and simulation using raw MRI, CT, X-ray, and digital pathology data. This boom in innovation is partly due to the significant advances in the computational processing of very large datasets. NVIDIA is at the forefront of this computing renaissance, with its GPU architecture, and collectively, these advances constitute a disruptive force that will create new markets and drive transformation for many medical device, provider, and payer organizations, as well as traditional technology firms entering the healthcare space.</p><p>There have been several recent successes in applying deep learning to medical imaging tasks, notably in projects developing algorithms for the detection of diabetic retinopathy, breast cancer detection via CT, detection of skin lesions using dermatoscopic images, detection of cancer metastases in pathology, and detection of numerous anatomical and bone fracture conditions in X-ray images. Medical imaging is an optimal opportunity for deep learning-based success because there is often a direct mapping of the input image pixel data to a specific diagnosis and the increasing regulatory approval for AI-based tools. Further, early detection is often a primary driver of treatment and prognosis, therefore performing routine screenings in a cheaper and more automated manner may greatly impact health outcomes long-term.</p><p>SFL Scientific works to partner with organizations to accelerate the development of these novel tools by combining medical image analysis and deep learning. <a href="https://sflscientific.com/">SFL Scientific</a> teamed with <a href="https://www.informai.com/">InformAI</a>, a Houston-based AI- company, to focus on applying data-centric strategies and technology solutions to create clinical decision support tools with medical-grade accuracy. The goal was to create solutions that meet the confidence and consistency standards necessary for rigorous healthcare use as well as move towards FDA approval. These tools will assist clinicians with “augmented intelligence” by providing speed, filtering, and diagnostic capabilities, as well as helping mitigate the black-box mysticism of AI.</p><p>InformAI and SFL Scientific are fortunate to be working on applications that have a clinical impact and that improve patient outcomes. The two companies are poised at the tip of the iceberg of a market for scientists, physicians, and researchers to extract critical care information from increasingly available unstructured data.</p><h4>Medical applications for deep learning</h4><p>Every year, over 700,000 surgical procedures are performed to remedy sinus-related conditions, and $10B is spent annually in the United States on such medical care. The use of computerized tomography (CT) scans is the primary imaging modality used to diagnose these conditions and surgeries are performed to address conditions involving soft tissue inflammation, nasal deviations, fractures, and tissue masses. Together with InformAI’s R&amp;D team, SFL Scientific worked towards developing solutions to classify and predict such sinus-related conditions and disease states from 3D CT head scans. The goal was to create a suite of diagnostic tools centered around deep learning image classifiers to predict the occurrence of certain diseases and to assist radiologists and physicians by accelerating the diagnostic process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DwOz0HI5yBvlhoIFvOyVVQ.png" /></figure><p>Deep learning applications often rely on extremely large datasets to learn and be fully representative of real-world conditions, however, the availability of ground truth data annotated by expert radiologists and physicians is not easily available for many reasons, including privacy concerns, commercialization aspects, time and manpower considerations and, of course, cost. Simply, annotation of medical data is expensive, tedious, and requires a dedicated team with access to archived patient cases. For certain rare medical conditions, it is nearly impossible to collect enough representative data examples to use for training datasets.</p><p>In late 2017, InformAI and SFL Scientific started working together to develop a deep learning-based system for computer-aided diagnostics, bringing a new level of intelligence to legacy imaging solutions and clinics. To accomplish these goals, InformAI assembled some of the largest patient image datasets in the industry for AI model training development. One of the biggest issues facing healthcare radiology professionals is the operational fatigue that comes with information overload and visual strain associated with the review of medical images. In fact, this problem represents the “weak link” of a medical diagnosis that often slows downtime to decisions, and furthermore, may affect both the volume and quality of those medical decisions. To complicate matters, many parts of the world lack the volume of trained clinical staff to diagnose these indications within their local communities. For all these reasons, computer-aided diagnostic tools can affect the overall success of patient treatment and potentially reduce medical errors by working as an unbiased “assist tool” to reduce variability and increase the specificity of the readings. The amount of information available to clinicians is overwhelming, so systems need to aim at reducing the time to identify abnormalities and help improve the productivity of clinicians and the associated diagnostic accuracy. Similarly, automating routine image examination stands to reduce the burden placed on clinical staff who are already pressed for time, especially in emergency or surgical scenarios.</p><p>How do you teach a machine to behave like a radiologist and be trusted as an assist tool in a clinical setting? When radiologists study patient scans, they consider patient history and external variables, leveraging years of training and experience to identify patterns in medical images that historically are indicative of a medical issue. Today, there are vast archives of patient records that can be used for such an algorithmically driven project; this vault of normal and anomalous points on a medical record and corresponding imaging tests are used as the training input to build custom AI algorithms. Leveraging its unique position with its clients, InformAI worked with its Texas Medical Center partners to amass an image library consisting of 18 million images and using experts, structured the medical labeling of over 20,000 patient CT studies. Jim Havelka, CEO, believes it is the largest labeled image library and annotated datasets of its kind involving paranasal sinus conditions.</p><h4>Classification of Disease in 3D</h4><p>For machine learning, good predictive performance is only as good as the underlying criteria, data quality, and definitions of the annotations. A framework was created to review and segment over 23 diseases within the sinus scans into specific regions and groups, greatly reducing the region of interest of the resultant 3D image stack. The non-scalability of maintaining an expert team, and the volume of data required to do so, motivated the development of learning methods that can use weakly-labeled training sets with global and binary labels in those regions to create algorithms for rapid differentiation of abnormalities from the healthy state. By feeding increasingly complex data sets to the neural network, preprocessing, subsampling, and using augmentation techniques to computationally produce a larger volume of data, over time, these algorithms begin to behave like a trained radiologist to quickly identify anomalies and provide confidence intervals for areas which will require a second, human opinion. Despite these recent advances, standalone tools having no physician involvement using direct applications of machine learning to healthcare remains a challenge inherent in the goal of making personalized predictions from large amounts of noisy, biased, and unstructured data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*2_1L_zp4ctaZBlxdjuweYg.png" /></figure><blockquote>A thorough exploratory data analysis is critical, and inspection of the available images must precede solution design; understanding the variability, image size, disease incidence, modalities, and other parameters, directly affecting the final solutions.</blockquote><p>Instead of the normal shades of gray that a human radiologist sees in CT scans, a computer represents each image as a matrix of numbers representing the pixel brightness. Traditional computer vision techniques typically involve computing the presence of numerical patterns in this matrix, such as boundaries for low-level features, and applying machine learning algorithms designed to distinguish images based on these features. Significant expertise and time are required to engineer the best features for distinguishing specific conditions and separating classes of images. This optimization problem of distinguishing features is traditionally difficult, but is the basis of deep learning; it uses hierarchical abstractions and different functional layers to learn representations and features from the data. Convolutional neural networks (CNN) have been very successfully used for image classification and other types of imaging tasks. Convolution operations that extract image features produce matrices, and these “layers” in a CNN generate output matrices stacked in a volume. This volume can then serve as the input for another layer that may detect more complex features in the input image. Each layer can then be calculated and converted within the output nodes of the network into probabilities for classification. As no pre-trained deep networks are readily available for 3D image datasets for CT or MRI for baseline testing, CNNs for these images need to be trained from raw patient data with large labeled data sets to achieve the training/predict process desired.</p><p>InformAI compiled large volumes of 3D CT images in DICOM image format from its partner network of Houston-based medical centers and recruited expert radiologists to assist in annotation and diagnosis. SFL Scientific worked with InformAI to transform the inputs images and build the training data set with extensive work to tune the locations of the disease zones in response to the feedback from the radiologist teams and clinical researchers. To begin the process of creating a functional deep learning pipeline, a suite of tools was developed to take patient anonymized studies and annotate and process the raw DICOM data into a suitable format for AI model development. Tools were developed to automate extracting the target 3D image segments from the series of 3D CT scans to prepare and ingest into the CNN Tensorflow models. The extracted segments corresponded to regions that radiologists use to make diagnoses from different coronal, sagittal, and axial views of the human head. The software tools also reduced scan size, segmented the disease region of interest, lowered image noise to improve AI model prediction accuracy, and lowered the memory requirements and time required for training. As these voxel sizes are quite large, with scans approximately 400 x 400 x 300 pixels, the memory required surpassed what is typically available with consumer GPU hardware.</p><h4>Overcoming the complexity of 3D image data</h4><p>As part of this image preprocessing, registration algorithms were developed to accurately align anatomical features within regions of interest, resampling and normalizing the data in the process. As the disease features are very small, sometimes only a few voxels, training a CNN to detect and begin to generalize a particular disease in a volume of approximately 300,000 times the disease size requires many training epochs and computational scalability; using a typical computational platform to train these large CNNs is not practical. SFL Scientific brought together partners NVIDIA and Microsoft Azure on securing NC24s_v3 (24CPU/448 GB memory) instances, allowing for a network of NVIDIA V100 GPUs to serve as the computational platform that enabled project development. With the data ingestion and transfer requirements for this large volume of data, teams leveraged Microsoft Azure Blog Cloud Storage as a central repository, as using other storage schemes was not practical for maintaining the high data throughput required during training operations. By developing all code and software initially in Python and Tensorflow, the systems support transferability, ease of deployment, and operate in easily provisioned environments across locations.</p><p>Together, InformAI and SFL Scientific developed the Deep Learning technology stack, involving 3D CNN models consisting of approximately 400 million parameters, to detect the targeted list of medical conditions. As the accuracy of the final model is reliant on the quality of the dataset used for training the deep neural network, the extended curation, assembly, and pre- processing development was critical when considering performance. To refine the InformAI model, SFL Scientific conducted an extensive exploratory data analysis (EDA) on the datasets to understand the incidence and correlations of the medical conditions, concluding that despite the availability of thousands of annotated scans available, certain class imbalances, rare conditions, and positive examples of conditions of interest would still be underrepresented and would prevent achieving the necessary accuracies for viability in a real-world clinical setting.</p><p>To solve this problem, SFL Scientific used data augmentation techniques to increase the effective size of the training sets by exploiting all the symmetries of 3D space using random rotations, random transformations, random zooming by small amounts, mirroring, etc. Typically, there are two types of data augmentation that can be deployed: Lossless and lossy. Given the 3D nature of the data, the lossless augmentation refers to the symmetries of the cube where rotations, brightness/contrast adjustments, or adding de-noising steps preserves the fidelity of the image data. Lossy augmentation consists of small rotations (less than 90 degrees), zooming, and down-sampling of that data for multiple views. While lossless augmentation can be generated quickly by exploiting the processing power of GPUs, as the data is being read into the network, lossy augmentation requires slow operations that create new data on storage, as each 3D transformation needs to be individually computed and applied to each voxel.</p><p>For high-throughput performance, lossy data needs to be generated ahead of time and saved independently, effectively increasing the amount of data to be stored. By creating these various data assets with smaller input and features, curriculum learning can then be employed to progressively train the model in the same manner that humans learn increasingly complicated tasks by incrementally adding difficulty to the process. Specifically, learning performance is typically much better when the examples are not randomly presented in training, but feed in a meaningful order which illustrates gradually more complex concepts and produces a much more robust training strategy. Further, curriculum learning can be seen as a general strategy for the global optimization of non-convex functions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*qnvfie1OAE52E6cbFV7BZw.png" /></figure><p>For these novel and complex identification tasks, building network the architecture and training from scratch is the only option to achieve state of the art results and create clinically viable products. Each process can take several weeks to months and require numerous iterations between pre-processing, annotation and label quality, and benchmarking the network across different sets of parameters, images, or diseases. Hyperparameter tuning is difficult for deep learning models because the number of iterations combined with iteration time makes the problem intractable. Semi-automated methods that progressively iterate over different combinations are beginning to be developed, however, there is no substitute for a deep understanding of the mathematical options and leveraging cutting-edge techniques, similar to executing traditional R&amp;D processes.</p><blockquote>“The ability to couple large medical imaging datasets from our leading healthcare partners with the exceptional computational performance of the NVIDIA V100 GPUs and novel deep learning model development from SFL Scientific have been critical in building our portfolio of AI image classifier applications.”</blockquote><blockquote>— Jim Havelka, CEO, InformAI</blockquote><p>Models can be deployed as cloud services or on-premise alongside screening areas and surgical suites. If organizations choose a cloud-based solution (all major cloud providers have extensive GPU resources and can support data pipelines and deep learning environments), the generic paradigm to effectively address scaling, is to host the model, training, inferencing, model feedback loop, and model versioning remotely. Then, each model solution developed can become an &quot;edge deployment&quot; of the best model trained. Typically, such deployment-at- the-edge solutions address potential latency constraints, as well as scalability ones: The necessary edge software is installed locally, and scalability can be achieved with proper cloud configuration to respond elastically to on-demand use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O9kSEGydjShEkJ2i-YY47w.png" /><figcaption>Heatmap of the identified disease areas of interest via NNs.</figcaption></figure><p>InformAI worked with its healthcare partners to amass an image library consisting of 18 million images and structured medical labeling of over 20,000+ patient studies. InformAI is focused on building AI-enabled tools to assist healthcare organizations with improving operational efficiency, patient outcomes, and medical diagnosis. By working as an assist tool, the developed InformAI Sinus Classifier can help radiologists and physicians speed up the evaluation and triage of 3D CT scans, from workflow to filtering, and diagnosis of sinus medical conditions using an image viewer/AI algorithm product at the point-of-care.</p><p><a href="https://www.sflscientific.com/">SFL Scientific</a> is a data science consulting firm, working to share and develop business and corporate initiatives and provide technical insights, model development, and computing capabilities that are instrumental to building complex products and services. As a preferred service provider of NVIDIA, AWS, &amp; Microsoft, SFL Scientific creates flexible and enterprise-grade data and computing architectures, where we are able to assemble and deploy tools into production. SFL Scientific has world-class expertise in healthcare and biotechnology, using domain knowledge and emerging technologies to design, prototype, integrate, and manage sophisticated AI systems.</p><p>For more information about this project and how to develop AI capabilities in radiology, digital pathology, or other medical imaging modalities, please contact info@sflscientific.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba7f820af197" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Eliminating Manual Contract & Review with Natural Language Processing]]></title>
            <link>https://medium.com/@atolpygo/eliminating-manual-contract-review-with-natural-language-processing-d7d1babaaa34?source=rss-2fdca0fcdd06------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7d1babaaa34</guid>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[legaltech]]></category>
            <category><![CDATA[legal-services]]></category>
            <dc:creator><![CDATA[Alexander Tolpygo]]></dc:creator>
            <pubDate>Sun, 14 Jul 2019 04:55:47 GMT</pubDate>
            <atom:updated>2020-03-19T03:23:24.370Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Developing machine learning tools for the legal industry</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2pItJdVqMHlgTRfWbK3yFw.png" /></figure><p>For many organizations, leveraging Artificial Intelligence’s full capability and effectiveness begins by exploring and creating an effective roadmap. LinkSquares seeks to disrupt the legal and finance industries by providing an automated, software-based solution to streamline contract analysis. The company grew quickly and needed to optimize its existing solution in order to scale its services. As AI can itself create new offerings, products, and increase accuracy and efficiency of services, here we consider deploying machine learning and natural language processing on text documents.</p><p><strong>Enabling faster contract discovery</strong></p><p>Companies experiencing rapid growth often lack the bandwidth to track each line of every contract, service agreement, or legal document before it is executed. Even in the most carefully reviewed agreements, some information is forgotten as soon as the contract is signed. Once the business has matured and due diligence projects arise (ex. when a law changes, agreements expire, or an acquisition takes place), companies must conduct detailed reviews of all signed contracts and identify specific terms within them.</p><p>LinkSquares’ founders experienced the painful reality of reviewing existing legal contracts firsthand when their previous employer underwent an acquisition. “We manually searched through all of our existing contracts to identify privacy language and other information crucial to legally moving clients to a new infrastructure provider for our software service,” said Vishal Sunak, Co-Founder &amp; CEO at LinkSquares. “We found that the language deviated from contract to contract, making the review process of thousands of agreements both timely and frustrating.” The team identified existing software solutions helping companies efficiently address the pre-signature workflow: Contract creation, terms negotiation, and internal workflow. However, the industry lacked a software solution to help companies mine for information in existing contracts. LinkSquares saw this gap as an opportunity to develop software to help customers with post-signature contract analysis.</p><p><strong>Working to find a machine learning solution</strong></p><p>As their SaaS offering on AWS grew and even with the ability to quickly mine for contract data in a cloud-based environment, the LinkSquares team still needed a scalable solution for identifying and classifying legal language. Initially, they built a searchable contract database, but as the company expanded and required a more complex and sophisticated approach, so did its need for an automated solution for extracting key contract metadata. LinkSquares approached SFL Scientific about devising a solution to algorithmically extract key terms from various text documents.</p><p>SFL Scientific builds deep relationships with each client to understand the client’s challenges and its short- and long-term vision for using and deploying artificial intelligence and machine learning. We worked closely with LinkSquares to understand and build a data strategy and solution architecture suitable for their use case and timeline. “LinkSquares built its initial prototype using SQL running on AWS, but it was not using any machine learning technology,” said Michael Luk, CTO, SFL Scientific. “We learned about the team’s vision to process terms and language automatically and understood the business pain points. We proposed building a custom machine learning solution to help the team scale and improve accuracy.” Approximately one month after our initial engagement, data scientists at SFL Scientific conducted a proof of concept showing the LinkSquares team how they could deploy a scalable, automated analysis solution using natural language processing and machine learning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*DNTGuMMHTLTnq6EQ-Z1LPw.png" /></figure><h3>Solution development &amp; testing</h3><p>SFL Scientific’s task was to provide LinkSquares with an algorithm to perform two main operations:</p><p>1. Extract key terms from a legal document. <br>2. Classify tokenized text into pre-defined categories.</p><p>The algorithm that we delivered was then deployed through AWS, which ran the code on demand: Whenever a document was uploaded, the code was automatically launched. With AWS, the whole deployment into production process was streamlined and made easily accessible to all LinkSquares employees who needed access to this asset. The text extraction algorithm consisted of three main steps:</p><ol><li>Feature engineering</li><li>Modeling, model stacking &amp; ensemble methods</li><li>Post-processing</li></ol><p><strong>Feature Engineering.</strong> First, the algorithm tokenizes the raw text of the legal documents using a regular expression tokenizer, which simply means that each word of the text is parsed and stored as an independent observation. Following this, hundreds of features are created from the tokenized text in three ways: Rule-based features, token-based features, and sequence- level classes as features. Rule-based features are created by matching a “fuzzy dictionary” to a set of predefined, known smart terms values. Hard-coded rules should translate to a known class or entity. For example, North American states are hard-coded to be the “Governing Law” class for documents classified to have that category. The classes determined from these hard-coded set of rules are saved as features for generating the model. Token-based features are generated on a per-token basis based on knowledge of the pre-defined, known smart terms. The features are lumped into three general categories: Token- level [Is this word a noun?], sentence- level [Is this token the first token in a sentence?] and document-level [Is this token found in a particular section?]. Other examples of token-based features include categories and identifications such as “Is the token capitalized?”, “How many letters ’A’ or ‘B’, etc., are there in the token?”, “How long is the token?”, “Is the next word a known smart term?”. Sequence-level features are generated by predicting the classes of each token using several sequence-level machine learning models such as Conditional Random Field, Hidden Markov Model, <em>N</em>- gram model, and neural networks. Just as the rule-based classes are saved as features, the classes determined from these sequence-level machine learning models are also saved as features. This testing forms the basis of the modeling approach and is applicable across many natural language processing applications to analyze unstructured text data.</p><p><strong>Modeling.</strong> Since no single model or rule can guarantee a token is a specific class, a model stacking ensemble technique was implemented to better predict the class of a token. XGBoost, a gradient boosted decision tree-based model, was implemented as a meta-classifier, which uses the class predictions from the hard-coded rules and sequence-level models as features. The XGBoost meta-classifier also uses the hundreds of token-based features as predictors and is trained against human annotated ground truth or manually tagged data. XGBoost assigns a probability score associated with each class prediction, so a threshold (or level of guaranteed accuracy) was determined from the probabilities assigned using a holdout set to test and maximize the F-measure to determine the final class.</p><p><strong>Post Processing.</strong> Once the classes for each token were predicted via the XGBoost meta-classifier, the predictions were further cleaned. Continuous tokens are concatenated and strung together, enabling a more robust and homogenous output to be produced. For example, dates are formatted into Month/Day/Year as opposed to leaving them as separate entities for each value, making it easier to digest the data.</p><blockquote>A thorough exploratory data analysis is critical, and inspection of the available text and document data must precede solution design; Understanding the variability, structure, terms, meaning, and other parameters, directly affects the final approach and solutions.</blockquote><h3>Saving time, resources, and headaches: <strong>Automation via Natural Language Processing</strong></h3><p>The NLP algorithm developed by SFL Scientific completely revolutionized the post-signature contract review process for LinkSquares. The final machine learning solution enabled the LinkSquares software platform to automatically run the code on thousands of documents in seconds. Whenever a document was uploaded, the machine learning code automatically launched. As validation, every result showed an exponential improvement in time spent reviewing each document, and eventually, improvement in tagging and parsing accuracy compared to the human auditors.</p><p>LinkSquares placed the developed solution into production. Having identified SFL Scientific to help it take advantage of machine learning and NLP further emboldens LinkSquares as the team develops cutting- edge solutions in the cloud. “It’s been fantastic engaging with SFL Scientific as its team are experts in the AI space,” says Alexander, CTO, LinkSquares. “They understand the business challenges we’re trying to solve and they’ve given us the guidance we need to use new technology to tackle these challenges. I think of them like they’re a part of our team. They’re a valued partner.” The team plans to explore additional technologies that they can use to drive further innovation in their industry. “We’re excited about the future of our offering and how we can help legal and finance teams eliminate manual reviews of files,” said Sunak. “We’re excited to build out more AI and take advantage of new services to continue exploring what’s possible. For over two years, we’ve developed a strong relationship with SFL Scientific and leveraged their skills to develop and deploy machine learning in our systems.”</p><h3>Where do you start?</h3><p>As with any machine learning based undertaking, objectives, priorities, and expected outcomes should be clearly defined, mapping the business problem with the technology and proposed solutions. Below are steps that many leading organizations are taking to prepare themselves for this new environment:</p><p><strong>Roadmap. </strong>The first step of any AI investment should be setting measurable outcomes and end goals. This will enable organizations to pull in the correct personnel to develop a detailed, actionable roadmap with clear milestones.</p><p><strong>Technology-led. </strong>Organizations can spend too much time focusing on a single approach, or even worse, not exploring the flood of emerging technology advancements, whether open-source, products, or custom solutions in machine &amp; deep learning.</p><p><strong>Data, data, data. </strong>Capturing, storing, understanding, annotating, is at the heart of building successful algorithms and approaches. Along with understanding the financial impact of automation, assessing the data quality is a critical early step.</p><p><strong>Personnel. </strong>To accelerate AI adoption, organizations will need access to the right data sets, the ability to train algorithms on that data, and as critically, professionals who can execute. Putting in place machine learning models, dynamic data pipelines, develop the workflows, governance, storage, and architecture necessary will require a dedicated team.</p><blockquote><a href="https://sflscientific.com/"><em>SFL Scientific</em></a><em> provides data science consulting, engineering, machine learning, and Artificial Intelligence services to public and private clients spanning multiple industries. With a globally connected network of technology and cloud partners, SFL Scientific brings world-class capabilities, delivering professional services and insights to address the most complex business challenges. SFL Scientific uses emerging technologies to design, prototype, integrate, and manage sophisticated AI systems.</em></blockquote><p>For more information please visit: <a href="https://sflscientific.com/">https://sflscientific.com/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7d1babaaa34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning for Employee Attrition Modeling]]></title>
            <link>https://medium.com/@atolpygo/machine-learning-for-employee-attrition-modeling-b5c6a2012a95?source=rss-2fdca0fcdd06------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5c6a2012a95</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[human-resources]]></category>
            <category><![CDATA[employee-retention]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[consulting]]></category>
            <dc:creator><![CDATA[Alexander Tolpygo]]></dc:creator>
            <pubDate>Fri, 08 Feb 2019 05:16:19 GMT</pubDate>
            <atom:updated>2019-02-08T07:12:57.875Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Practical applications of employment data and understanding employee retention investments.</strong></h4><h4>Part 1: The Data Problem</h4><p>Human resources and personnel analysis is an often overlooked area in organizations to apply machine learning and Artificial Intelligence methods to find business insights. When making investments, companies go through great lengths to research technologies, procure software, hardware, and infrastructure as the backbone of their next initiative or project, but seldom are the same rigorous principles applied to employees after they’ve been brought on board. However, salaries are often an organization’s biggest expenditure and an employee’s abilities, determination, and productivity underlie most activity. Much in the same manner as companies are beginning to monitor and automate their operations, we can begin to model the workforce.</p><p><a href="http://www.sflscientific.com/">SFL Scientific </a>enables organizations to assess their data capabilities, develop use-cases, and to perform a technology audit of their current processes across divisions and business lines. The goal is to identify and focus on business-driven prototypes and their integration back to the company from a technology perspective, creating novel systems or products around their data through automation and machine learning. We assist business leaders to understand and evaluate areas for accelerating this technical growth.</p><p>Often the challenges in this process are collecting the correct datasets: Employee information, backgrounds &amp; demographics, hiring practices, salaries, promotions, titles, etc. all can be used to investigate and build models to help organizations and their <strong>Chief Human Resources Officer</strong> (CHRO) or C<strong>hief Recruiting Officer </strong>make better policies and estimate budgets. For organizations that have use cases in mind, but have not fully realized their potential, it is never too late (and never been easier) to create architectures and systems to start capturing the information.</p><p>A simple example is examining employee attrition and turnover. Employee attrition is the rate at which employees leave a company, generally, attrition refers to employees leaving from a normal life cycle of employment and is a part of larger analysis into employee turnover. Turnover is often critical for large workforces such as in retail, or understanding benefits packages, union activity, and optimizing HR practices. Attrition can also influence company decisions in higher skill fields as well, especially where attracting and retaining top talent is critical to R&amp;D, legal, finance, or management operations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FRBbSxn2gBzaLAoc" /><figcaption>Photo by <a href="https://unsplash.com/@venveo?utm_source=medium&amp;utm_medium=referral">Venveo</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The goal of this analysis is to model employee attrition and determine the most dominant contributing factors that govern this turnover. The benefits to the company are substantial: Not only is the best talent retained, but recruitment and training costs may be reduced significantly. Through this kind of analysis, we can understand how many employees are likely to leave, while also determining which employees are at the highest risk and for what reasons.</p><p>Companies face significant costs for having to search for, interview, and hire new employees. We will start with the good assumption that a company is highly motivated to retain their employees for a significant period of time, as a result of the onboarding, training, and integration time and overhead expenses. This analysis is particularly useful if a company wants to lower attrition levels but is unsure of the source of the problem. Conversely, if a company needs to decrease their labor costs and headcounts, through a company structuring, then understanding employee attrition can ease the transition by preparing affected groups to lose personnel.</p><h4>Exploratory Data Analysis</h4><p>As an example of what can be accomplished, we choose to examine an open source dataset which can be found <a href="https://www.kaggle.com/pavansubhasht/ibm-hr-analytics-attrition-dataset">here</a>. We then built a simple Shiny app to visualize the results, but any framework or tool can be used.</p><p>The dataset contains several pieces of information about each employee such as their department, job satisfaction, years at the company, work/life balance, and so on. Of all these, there are five that can be used to subset the users in our Shiny app: Age, gender, education level, monthly income, and marital status. Note that we do not recommend subsetting the dataset by more than three (3) parameters as there may be no data satisfying the conditions.</p><p>In terms of a machine learning analysis, the data has to be initially cleaned before it can be used. For most projects, cleaning and understanding the data is often the most time-consuming aspect of the entire process. Generally, a data scientist would want to fill in missing values, understand (potentially discard) outliers, correct erroneous ones, fix formatting issues, and standardize categories. The goal is to make the data as consistent and relevant across the board as possible and this will allow for the maximum accuracy of the final model.</p><p>We first conduct an exploratory analysis on the dataset using visual tools, which allows us to summarize the main characteristics of a dataset. From here, we perform the machine learning modeling that will determine the probability that each individual will attrite, thus, uncovering the most important factors that lead to overall employee turnover. Based on the needs of the employer, this analysis can also be narrowed down to determine key factors governing attrition for particular demographics, job titles, working groups, and even specific individuals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DN6W03jiROK7nJz3Mgo0rA.png" /><figcaption>Exhibit 1. Correlation Matrix for all Model Features</figcaption></figure><p>The above correlation matrix displays the linear correlation between every pair of features in the form of dots of varying colors and sizes. A larger dot indicates that the correlation between these selected features is stronger, whereas the color denotes the strength of the positive (blue) or negative (red) correlation coefficient. When two variables are correlated, we are essentially observing that change in one variable is accompanied by the change in the other. In this large matrix, it is clear that the majority of features are uncorrelated. However, even for those variables that are correlated, care must be taken when interpreting the correlation as it does not necessarily imply a causal relationship.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*lpIPYM8a0e8Qh-4xqxDr4w.png" /><figcaption>Exhibit 2. Correlation between Years with Current Manager and Years at Company</figcaption></figure><p>This application has an additional functionality: By clicking any element in the correlation matrix, a 2D histogram is displayed in order to better observe the correlation between those features. Correlation between variables allows us to determine the overlap between a feature in the dataset. In general, the machine learning algorithm should be given as much uncorrelated information as possible to maximize predictive accuracy.</p><p>Alternatively, clicking the elements along the leading diagonal will output violin plots of the selected features, bucketed by the true underlying attrition value (1 indicating employees that leave, and 0 indicating those that remain). Exhibit 3 below shows the violin plots for the <em>WorkLifeBalance</em> variable with those that leave the organization tending to have fewer mid-range scores. Unlike box plots, violin plots show the full distribution of the data, which is particularly useful if the data is multimodal. If we wanted to, we could even redefine attrition to include mid-level ranges and plot the violin plots of those levels.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*bDP8rCd4vTt60WPtdmbsaQ.png" /><figcaption>Exhibit 3. Violin Plots of Work/Life Balance, Separated by Attrition.</figcaption></figure><h4>Part 2: Data Modeling with Machine Learning</h4><p>In this example study, we use several popular algorithms to model employee attrition: Extreme gradient boosting (XGBoost), support vector machines (SVM), and logistic regression. XGBoost is a decision tree based algorithm where multiple trees are ensembled to improve the predictive power of the model. A SVM is a discriminative classifier that takes labeled training data and constructs a hyperplane to categorize new examples. Finally, logistic regression is a simple classifier used to estimate the probability of a binary outcome based on several predictors and a logit function.</p><p>All three algorithms are supervised learning methods — these take in a set of labeled data, in this case, the historical record of people who have either left the company or stayed, and learns the underlying patterns in the available data — in this case, from features such as age, job role, overtime worked, etc. This type of analysis is often overlooked when examining or monitoring underperforming divisions, offices, or making investment decisions when relocating employees and jump-starting new ventures.</p><p>Feature generation is an important aspect of modeling in machine learning. When generating features, we take the data and either decompose or aggregate it in order to answer an underlying question. In this particular case, since we want to know why employees attrite, we build features that explain this phenomenon. The features should be meaningful; that is to say, they are a significant part of an observation that helps the model learn about the structure of a problem.</p><p>After the creation of features, we can understand the overall impact of features. The library for one of the algorithms we used, XGBoost, has a built-in ranking function that ranks the importance of features and we can use it to manually eliminate redundant features. Performing these tasks provides a huge benefit such as the speed and simplification of the model, while also ensuring greater generalization by reducing the potential for overfitting.</p><p>When it comes to building the model, there are several steps to take before any predictions can be made. The data is partitioned into three sets: Training, validation, and testing. The <em>training set</em> is responsible for initially teaching the model the causal relationship between all information and the attrition probability. The <em>validation set</em> is then used to estimate how well the model has been trained and fine-tune the parameters to develop the best model. Once those two steps have been completed, the completed model is applied to the <em>testing set</em> in order to get accurate results on how the model would perform on real-world data. In this case, we can predict the likelihood for any employee to leave the company based solely on the quantifiable data that an HR department has collected.</p><h4>Fine-Tuning the Results</h4><p>Each algorithm gives a confidence score between 0 and 1 for each employee, indicating that the model thinks these individuals are somewhere between 0% and 100% likely to leave, respectively. By setting the confidence score threshold, above which we predict an employee to leave, we end up with a control on the precision and recall statistics and the cutoff can be adjusted in real-time to optimize the model based on the needs of the business.</p><p>In a true analysis, these algorithms would be further tuned and potentially ensembled to provide the most accurate prediction of employee attrition possible. For now, they can be compared using the graphical plots.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pg9fIQMHlGm491vjrs7waw.png" /><figcaption>Exhibit 4. Receiver Operating Characteristic (ROC) Curve</figcaption></figure><p>A receiver operating characteristic (ROC) curve is the result of plotting the true positive rate against the false positive rate. The closer the ROC curve is to the top left corner, the greater the accuracy of the test.</p><p>The slider allows the user to change the operation point of the algorithm by setting the false positive rate. The changes made to this cut-off are reflected in the confusion matrices shown, where each confusion matrix shows the performance of the predictions of the various algorithms with respect to the true label.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oLjcUvjTUtW-bFrcnqhNRA.png" /><figcaption>Exhibit 5. Confusion Matrices for each XGBoost, SVM, and Logistic Regression models.</figcaption></figure><p>Another way to visualize this result is to look at precision and recall. These two statistics are important aspects of any classification model and are components of the overall F1 score, given by the formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*mqyBRb3GulEdyllVYrx2ZA.png" /><figcaption>Exhibit 6. An equation for F1 Score</figcaption></figure><p>An ideal model has both high precision and recall, which is often difficult to achieve. Instead, we can choose to change the cutoff point directly to trade some precision for recall and vice-versa. By controlling the trade-off between false positives and false negatives, businesses can determine which direction to skew the analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4hBm5CAUCSWV7huPLV164g.png" /><figcaption>Exhibit 7. Precision vs. Cut-off Curve</figcaption></figure><p>As with the ROC curve in Exhibit 5, we have provided confusion matrices for each algorithm so that the user can see the effect that changes in cutoff have on the final results. For example, in the healthcare applications, where undiagnosed issues have much greater importance than being overly cautious with treatment options, we can skew the operation point to the left — where we find far fewer false negatives (but more false positive) instances. Conversely, in this instance, for businesses with very limited resources, it may be best to go for fewer false positives (to the right of the curve), rank the confidence scores given by the raw algorithm, and target only the highest risk employees with incentives.</p><p>The confidence score can be combined or augmented with any HR or employment metrics to give an expected value lost per individual. We can then use this to rank employees in terms of company value that is likely to be lost. Ultimately this provides the threshold of spending power that departments should be given access to retain each specific employee and inform the overall budget as well as help forecast financial implications longer term.</p><p>To actively address overall employee retention issues, we need to look more closely at the most important features that determine the attrition probability and see if we can improve company retention.</p><h4>Feature Importance</h4><p>One of the benefits of using XGBoost is the estimation of feature importance. The importance metric provides a score indicating how valuable each factor was in the construction of the boosted decision trees. Higher relative importance indicates a larger impact on the algorithm and final prediction. Since the importance is calculated explicitly for each attribute, these attributes can be ranked and compared to each other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*Pht05QaZuT2bA3DehIheng.png" /><figcaption>Exhibit 8. XGBoost Output, Top 10 Features</figcaption></figure><p>When the model is run on the entire dataset, the results show that employee attributes ‘Marital Status’, ‘Number of Companies Worked For’, and ‘Age’ are the dominant drivers of employee attrition for this dataset. In terms of HR adjustable parameters, we note that adjustments to ‘Job Involvement’, ‘Stock Options’ and ‘Monthly Income’ or salary might be used as incentives for high-value employees. While this seems common sense, we can model how these incentives operate over time to monitor their impact and effectiveness and better understand what ratios, values, and timing should be applied. In addition to this, we can use similar feature importance methods to create an employee specific ranking of controllable factors that can then be used to target employees on a job description, seniority, and individual-by-individual basis.</p><p>The final output of the classifier can be both a ranked list of individuals most likely to leave and also a ranked list of contributing factors that govern each employee’s attrition probability. Both are highly useful for any department aiming to minimize talent loss, financial impact, and ultimately improve operations.</p><h4><strong>About SFL Scientific</strong></h4><p><a href="http://www.sflscientific.com/">SFL Scientific</a> is a data science consulting and professional services company, providing a broad range of solutions in data engineering, machine learning, and Artificial Intelligence. We design, prototype, integrate, and manage sophisticated AI solutions by leveraging emerging technology. SFL Scientific creates opportunities for organizations to deliver on data-driven tools, products, diagnostic systems, and operational outcomes. SFL Scientific is a preferred deep learning service provider for NVIDIA and a machine learning consulting partner of Microsoft and AWS.</p><p>For more information, please connect with us at <a href="http://www.sflscientific.com/">www.sflscientific.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5c6a2012a95" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>