<?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 Feng Zhang on Medium]]></title>
        <description><![CDATA[Stories by Feng Zhang on Medium]]></description>
        <link>https://medium.com/@feng.zhang?source=rss-7f96228f639------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Wdud2ze4HHvlZ34kRoPtmA.png</url>
            <title>Stories by Feng Zhang on Medium</title>
            <link>https://medium.com/@feng.zhang?source=rss-7f96228f639------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 12:52:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@feng.zhang/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[Lighting — The Best Investment in a Remote Working Environment]]></title>
            <link>https://medium.com/@feng.zhang/lighting-the-best-investment-in-a-remote-working-environment-acf8011a4dd5?source=rss-7f96228f639------2</link>
            <guid isPermaLink="false">https://medium.com/p/acf8011a4dd5</guid>
            <category><![CDATA[webcam]]></category>
            <category><![CDATA[workplace]]></category>
            <category><![CDATA[remote-working]]></category>
            <category><![CDATA[work-from-home]]></category>
            <category><![CDATA[meetings]]></category>
            <dc:creator><![CDATA[Feng Zhang]]></dc:creator>
            <pubDate>Wed, 16 Feb 2022 02:42:33 GMT</pubDate>
            <atom:updated>2022-02-16T02:42:33.273Z</atom:updated>
            <content:encoded><![CDATA[<h3>Lighting — The Best Investment in a Remote Working Environment</h3><p>While the world has entered into the third year of broad acceptance of remote and mixed working patterns, we know so little about how to adapt and take advantage of this new working style.</p><p>Back when people are working in the office, no one ignores the importance of our appearance in front of bosses, colleagues, clients, and everyone in the workspaces. No one enjoys being judged for employment based on looks. However, your appearance can send messages to others about your motivation, judgment, professionalism, and “fit” within the working environment. Your professional attire makes you look professional, and others around you feel good.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LmBRCs9LSQK0UQBcUv22Fw.png" /></figure><p>In remoting working environments and countless video meetings stuffing your daily schedules, how you appear in front of the camera is very important. Here, instead of investing in professional business attires, there is another more substantial investment you should make immediately — good lighting for your webcam setup!</p><p>People make snap judgments in both online and offline environments. For example, it takes only 1/10th of a second to form a visual impression of a person.</p><p>Lighting is one of the most critical elements of your webcam setup, but it’s often overlooked. Cameras need a controlled amount of light — if it’s too dark or too bright, it can heavily affect the video quality.</p><p><strong>Proper lighting shows online professionalism.</strong> It is more important than having attractive attires in video meetings. People appreciate your extra work on your lighting to make their work easier to communicate with you.</p><p><strong>Proper lighting enhances facial communication.</strong> Believe it or not, we all depend on our visuals much more than any other sense when interacting with others. It becomes apparent when we are in front of a screen and a webcam.</p><p><strong>Proper lighting increases meeting productivity.</strong> We all feel more engaged if everyone in an online meeting turns on their cameras, making subtle identifying detection of emotions among coworkers much easier.</p><p><strong>Proper lighting implies a positive environment.</strong> Therefore, everyone would appreciate showing your positive attitude by tuning the proper lighting in front of the webcam. Furthermore, your smiles become much more attractive under bright lighting, so you do not want people to miss them!</p><p>There is still a lot to study to make remoting working more efficient. However, this simple and easy trick on setting up good lightings could be your best investment at this point!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=acf8011a4dd5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Four Common Things Between Developing A Career and Surfing]]></title>
            <link>https://medium.com/@feng.zhang/four-common-things-between-developing-a-career-and-surfing-c3a823ddddc8?source=rss-7f96228f639------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3a823ddddc8</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[surfing]]></category>
            <category><![CDATA[professional-development]]></category>
            <dc:creator><![CDATA[Feng Zhang]]></dc:creator>
            <pubDate>Wed, 26 Jan 2022 01:32:19 GMT</pubDate>
            <atom:updated>2022-01-26T01:32:19.863Z</atom:updated>
            <content:encoded><![CDATA[<p>Each year, tens of millions of waves are ridden by surfers, experienced or freshers, around the world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4A9yCB1IoX1fX0DUX7xbDw.png" /><figcaption>Topanga Beach Surfing, Images courtesy of Denise Taylor, Flickr</figcaption></figure><p>Some famous places are located in southern California around the cobblestone point breaking of Palos Verdes and Malibu, where I live, and I enjoy watching surfers choosing their waves, paddling, eyeing the aerial ramp, pumping, and showing off their new tricks.</p><p>They are always trying to improve their surfing, whether they’re a free surfer or a competitive surfer. While even small things cannot take your surfing to the next level, surfers can easily make the transition into the advanced arena with a practical yet straightforward collection of tricks, tips, and rules.</p><p>It was not the most entertaining thing to think about your career while enjoying wandering on beaches or surfing on the waves; there are indeed fascinating connections between developing a career and surfing.</p><p><strong>Learn to pick the right wave.</strong> All waves are the same for a beginner: the bigger, the better. Advanced surfers know how a wave will be breaking. There is never a lack of beautiful waves that can hold you high and steady enough. It takes your luck to spot and get an excellent wave to ride on. However, which one to pick IS the question! Get it too quickly; you may miss the next better one. Wait for another one, and you may waste your time. Think how often you are wondering if you are ready to take an opportunity: Is it good timing? Is it the best opportunity? Am I missing the next one?</p><p><strong>Eye your target.</strong> After surfers take off, their eyes are their steering wheel. They move their heads towards the next goal, and they know that setting a target with eyes can get them there fast. Also, an experienced surfer knows that completing one maneuver is better than completing three tricks! While riding in a wave, they get the most out of each ride, and advanced surfers are never quiet. Think how important it is to set your career goals, stay focused, and advance one step at a time toward them.</p><p><strong>Analyze your mistakes.</strong> Even professional surfers make mistakes; however, they don’t judge themselves after failing to complete an easy trick. Instead, they try to understand what was done wrong. Sometimes, advanced surfers use surf movies or videos to learn from: from the take-off to the aerial landing moment. There are always exciting details to watch and learn from yourself. Think about what you do after failing to achieve a goal, missing a deliverable, or not getting the contract you’ve worked very hard for; what have you learned from them?</p><p><strong>Learn how waves are formed.</strong> Advanced surfers are knowledgeable watermen who know how waves are formed and what wind is. Physics and oceanography play a critical role in modern surfing. For example, long-period waves tend to be larger and more robust but move quickly; short-period waves are smaller and less energetic but move slowly. Knowledge and science will help surfers make decisions when out in the line-up. You don’t need a Ph.D. to start a career. However, you will not go very far if you do not have the domain knowledge for your job.</p><p>Next time, while enjoying the waves, remember to boost your growth!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3a823ddddc8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Five Secrets in Building Scientific Rigor SaaS Products]]></title>
            <link>https://medium.com/@feng.zhang/five-secrets-in-building-scientific-rigor-saas-products-f09bc4488c5d?source=rss-7f96228f639------2</link>
            <guid isPermaLink="false">https://medium.com/p/f09bc4488c5d</guid>
            <category><![CDATA[analytics-platforms]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[science]]></category>
            <dc:creator><![CDATA[Feng Zhang]]></dc:creator>
            <pubDate>Tue, 04 Jan 2022 05:41:48 GMT</pubDate>
            <atom:updated>2022-01-04T05:41:48.382Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever heard PhD-As-A-Service? It is becoming a new paradigm of delivering SaaS (software as a service) to a targeted scientific community.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-sZzvBD0AWjzXzf2z7GPsg.png" /><figcaption>Images courtesy of <a href="https://exactrail.com/products/p-s-5344-boxcar-phd">exact rail</a></figcaption></figure><p>Standing at the crossroads of science and cloud computing, it distinguishes itself from other families of SaaS products with a lot of prominent features. Its root in providing sound and rigorous scientific foundations for scientists to build their research on is the key to success.</p><p>Unlike a salesperson using a CRM system on the cloud, a healthcare data scientist relies on models to support decisions that may have impacts on people’s lives. In such scenarios, features that are key to the success of a normal SaaS product may not be the essential factors anymore. For example, although supporting easy software trials, sales, onboarding, training, expansion of product usage, and support is still critical to make a SaaS offering easily consumable and user-initiated, it is not the selling point anymore to a data scientist and their organizations.</p><p><strong>The shift from easy-to-use to rigor-to-build paradigm makes a PhD-As-A-Service challenging to develop and maintain.</strong> However, their new business models also ensure sustainable and innovative eco-systems with higher bars for newcomers to enter. The secrets in building such novel systems have yet to be disclosed broadly.</p><p><strong>Validity is the king.</strong> While everything else matters, without ensuring the validity of the service, you will get nothing. It is the only leading “ones” before several “zeros.” Scientific findings depend on an interconnected network of assumptions and pieces of evidence, which are only reasonable on a certain level of errors. No matter where these errors come from (e.g., instrumental errors, human errors, observational errors, theoretical errors), you can only be “sure” about your conclusions (or findings) under a certain probability. Accumulating errors in the systems without quantifying them is the fundamental reason for such services’ failure.</p><p><strong>Transparency and reproducibility are the hard currency.</strong> Therefore, in building a PhD-As-A-Service, you want to make your creditability as much as possible. It is similar to a Ph.D. student who needs to earn his degree with the trust of their committed members. They’d document each step of the experiments and computations so that anyone having this information could reproduce their work. In the technical term, we need to version the data and all artifacts and conditions the service uses. In addition, people should answer questions like what, how, when, and why about their work done on the platform.</p><p><strong>Flexibility enables different routes and traffics.</strong> Good science requires imagination and combinations. Therefore, in building the tools, keep in mind that users will change their minds when the service is deployed from day one. Some products, such as web-based notebooks, provide flexibility by allowing users to “program.” Such a feature is good in some ways. However, it introduces an anti-pattern to a SaaS product that prefers configuration over customization. It is hard to make the trade-offs between them, but it is an art to fully understand your end-users domain, which can be very challenging.</p><p><strong>Adaptability connects everything and everyone.</strong> It refers to users who can substantially customize the system by tailoring activities. This is important because you do not want to build too many customized features that only work for a specific group of users as SaaS software. In the scientific community, this means that people may want to apply the same ideas, procedures, models to similar datasets or a changing dataset. Usually, when people iterate or refine their ideas, they may want to change but not redo their work.</p><p><strong>Performance is the power that drives evolving for good.</strong> Running faster means that the end-users (i.e., scientists) get their results quickly. In addition, it forms an efficient feedback loop that is critical for data scientists to test more hypotheses, perform sensitivity analyses, and factor in more possible variables in their research.</p><p>Building a PhD-As-A-Service platform on the cloud is new and challenging, but also fun and rewarding. It needs a lot of thinkings to understand the end-users fully and to adapt to the unique ways they work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f09bc4488c5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Big Data With Complex Models Won’t Always Work?]]></title>
            <link>https://medium.com/@feng.zhang/why-big-data-with-complex-models-wont-always-work-d1e3c2e6e26a?source=rss-7f96228f639------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1e3c2e6e26a</guid>
            <category><![CDATA[predictions]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[modeling]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[scale]]></category>
            <dc:creator><![CDATA[Feng Zhang]]></dc:creator>
            <pubDate>Mon, 03 Jan 2022 20:54:45 GMT</pubDate>
            <atom:updated>2022-01-03T20:54:45.476Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jI7XXYC9pu58FfN_CXHwpQ.jpeg" /></figure><p>Our world is generating and recording data faster than any period in our history. The good thing is, we are using them more broadly with technologies democratized everywhere around us.</p><p>It is generally believed that having more data is “better” than having less data, hoping the extra data provides additional information equal to or better quality in a model simulating the real world. However, this is not always true. People sometimes ignore another critical factor when using data in their models — scale. Mixing data in different scales, spatial and temporal dimensions, usually degrades your model skills instead of improving them.</p><p><strong>It is easier to understand that you cannot predict variables on a smaller scale by using larger-scale variables alone.</strong></p><p>It is evident to a climatologist that the global model cannot capture the subscale climatic mechanisms no matter how much data you have or how powerful the predictive model is. It is just an insufficient scale level to make such predictions. In another example, it is not hard to understand that it is improbable to predict how many books a person will buy from Amazon on a particular day even with all historical sales data on Amazon with 100% accuracy.</p><p><strong>However, people consistently ignore the issue on the flip side of this issue: predicting variables on a larger scale using a lot of data on smaller scales is usually a problem.</strong></p><p>One of my trails as a data scientist was to use sea surface temperature at smaller scales (e.g., 1km * 1km grid daily) to predict seasonal precipitation at regional scales (e.g., 100km * 100km). However, it does not always (actually less possible) outperform a simple linear model relating the average seasonal sea surface temperature by a leading time of 30 days.</p><p><strong>Big data plus complex models do not solve everything without considering the correct scales.</strong></p><p>Did someone tell you that they can predict and optimize the transportation system precisely if they can train their ANN models using data corrected from everybody’s mobile devices plus other monitoring devices’ data? Did someone tell you that if all genomic and environmental data about a person is collected and fed into a complex model, they can predict all diseases that person will have?</p><p>It is simply not going to work. Why? The big data plus complex model does not simulate the correct relationships at the right scale; it is impossible to emulate the exact physics controlling such complex relationships. Scale mismatched learning models always capture more noises than predominant signals.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1e3c2e6e26a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Rule-based Validation Framework (RVF) for Real-World Healthcare Data]]></title>
            <link>https://medium.com/aetion-technology/building-a-rule-based-validation-framework-rvf-for-real-world-healthcare-data-3dc05d661382?source=rss-7f96228f639------2</link>
            <guid isPermaLink="false">https://medium.com/p/3dc05d661382</guid>
            <category><![CDATA[real-world-evidence]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[data-quality]]></category>
            <category><![CDATA[healthcare]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[Feng Zhang]]></dc:creator>
            <pubDate>Tue, 16 Jul 2019 20:10:59 GMT</pubDate>
            <atom:updated>2019-07-16T20:10:59.455Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Building a Rule-based Validation Framework (RVF) for Real-World Healthcare Data</strong></p><p><em>Written by </em><a href="https://www.linkedin.com/in/hariesh/"><em>Hariesh Rajasekar</em></a><strong><em>, </em></strong><em>Data Scientist and </em><a href="http://www.linkedin.com/in/feng-zhang-data"><em>Feng Zhang</em></a><strong><em>, </em></strong><em>Software Engineer</em></p><p><strong><em>Hariesh</em></strong><em>: A few years ago, my first assignment at Aetion as a Data Scientist was to download a collection of de-identified electronic health records, which were delivered as compressed and encrypted SAS data files from an FTP server. I was then told to use a language of my choice to convert them into CSV format and upload them to an S3 bucket. It was a good introductory assignment and I was able to finish by the end of the day.</em></p><p><em>The next day, one of my Science colleagues slacked me a thank you note, and asked: “how can I test if the CSV files are good to use?” My first thought was “What do you mean ‘good to use’? If you open the file, inside is the data in CSV format. What more do you need to know?”</em></p><p><em>It shortly became clear to me that we could neither rely on the consistency of the source data nor the accuracy of my code’s output simply by scanning a few lines of the CSV. There were innumerable corner cases relating to things like varying date formats, encoding inconsistencies, relational integrity, the encoding of missing values and other similar problems that my code might not address properly and thus would produce problems within the output.</em></p><p><em>Did I mention that these files were big? How big? In nearly all cases over 10 million rows with some exceeding 100 million. And wide — over 100 columns in some cases. I then learned that after converting the data into CSV format, it would then undergo another transformation into Aetion’s proprietary binary format, which is optimized for fast access by the Aetion Evidence Platform (AEP). So any quirks or inconsistencies that were left behind or created by my code would likely get passed down the line and possibly multiplied by any deficiencies in this 2nd transformation process.</em></p><p><em>Finally, I learned that this was a process that we would be repeating with new and updated data sets from multiple disparate sources, with new data arriving almost every week. I realized we had a problem — both we and our customers needed to rely on accuracy, consistency, and transparency of all data transformation steps and the output they produced. This needed to be provided at a grand scale even though each new data set carried its own unique schema and encoding variations. This is where I began working with Feng and others to figure out what we were going to do.</em></p><p><strong><em>Feng</em></strong><em>: I have been with Aetion almost since its original founding and I had worked on the design and development of many different parts of the AEP. We were in the process of evolving from a start-up to an operating company with multiple customers and thus were beginning to shift from thinking about just making things work to figuring out how to make them work at scale with consistency and reliability. When Hariesh raised his concerns about our need for scalability, my responsibility was shifted to focus entirely on our Data Ingestion Pipeline (DIP). From then on Hariesh, myself and others from our respective teams became laser-focused on the need to build scalable and reliable data ingestion into Aetion’s platform.</em></p><p>When we first started working together a few years ago and with the help of many others, we asked: “how can our end-users trust our data ingestion/integration process?”. We clearly did not have a good answer at that point. We spent a lot of time on the drawing board thinking through the problem to define a clear scope to tackle the challenge. During the course of developing our approach, we employed several methods to validate our direction, conducting user and customer research from the beginning. After lots of discussions, meetings, and brainstorming around possible techniques, we were set on implementing a data validation process that would be as well documented, consistent and transparent as possible. At the outset, our data validation strategy was viewed as a 2-level process to check for:</p><ol><li>The integrity of the data (i.e. consistency with the expected IT schema requirements)</li><li>Logical and statistical consistency of the data — before, and after data transformation (including schema merge and data enrichment)</li></ol><p>We defined our validation framework as a decisional procedure, based on a set of conditional checks evaluating for a purpose. These checks include things like testing for acceptable values in a given field, profiling how many records are missing data for each field, data density, and relational integrity. If data satisfies the conditions, it means that the behavior rules are not violated and the data are considered valid for the final use for which they are intended.</p><p>This conceptual definition seemed self-evidently correct, but could it be implemented in a way that would be agile and scalable? Understanding and validating data may seem like a trivial task for tiny amounts of data that can be inspected manually. However, in practice, the data are too large for manual inspection and were arriving with ever-increasing frequency. So it becomes necessary to automate and scale the tasks of data validation. That got us into developing Aetion’s Rule-based Validation Framework (RVF).</p><p><strong>Our Design Approach for RVF</strong></p><p>The Aetion RVF was designed to be an autonomous framework built-in pyspark and Spark SQL to provide flexibility and scalability to Aetion’s data validation process. It was designed to allow for a more agile way of performing checks on the data transformation workflows by improving the turnaround time and accuracy of the validation process.</p><p>Our spectrum of clients ranges from big pharma to healthcare payor — all of whom require research quality data for analyses! But, how good is good enough? It is hard to answer because good is a relative concept and is very much contextual as the level of data quality required will depend on the purpose of the study concerned. Explicitly defining a standard on which metrics can be developed and measured seems to make it less relative.</p><p>We thought of RVF conceptually as an automated Turing Test-like methodology that evaluates data quality from the perspective of a Scientist. Data produced by systems created by Data Engineer would be evaluated based on a set of rules provided by Scientists. Reports generated via RVF would provide complete information on the tests that have been applied and their resulting compliance with Science’s expectations. Providing reports such as this would not only enable transparency but also provide a useful profile of study results for investigators/scientists using the dataset downstream for an analytical study. Success would be determined by the ability of RVF to replicate the results that one would expect from diligent manual inspection by a Scientist.</p><p>Investigators in specific are looking for data quality metrics relevant to their analyses rather than a set of measures that defines the overall data quality of a dataset. For example, a Scientist can specify that the ratio of patients having a missing primary diagnosis code in outpatient events is an important metric of quality based on their understanding that these metric influences risk scores or confidence intervals. However, this results in an interesting issue and creates a bottleneck where work can’t begin before the data ingestion processes are complete: trade-offs must be defined between efficiencies and usefulness to justify the highly-competitive engineering efforts. Our approach is to provide generic data quality metrics of a dataset deployed to our client’s instance and also enable end-users to measure their own data quality metrics on the platform. The latter is made possible by connecting not only the derived (transformed) data but also the raw data to the platform in Aetion’s data-agnostic model.</p><p><strong>Requirements for Reproducibility and Transparency</strong></p><p>As mentioned earlier, due to the fact that our platform supports regulatory grade analysis, there are non-negotiable requirements relating to reproducibility and transparency into every step along the pipeline of transformation, filters, and analyses.</p><p>To enable end-users to reproduce our data ingestion, and integration process of connecting data to Aetion’s Evidence Platform (AEP), we believe, at the very least, it should satisfy the following 4 conditions:</p><ul><li>All programs, scripts, and steps need to be well documented so users can follow and understand on their own.</li><li>End users should be able to redo the whole data connection with “one-click” using the scripts provided</li><li>Reproducible output(s) should be reported in a format that’s both readable and comparable for the end-users.</li><li>Data connection or results should be reproducible within a reasonable time frame</li></ul><p><strong>Figuring out the right approach from many options…</strong></p><p><strong><em>Feng: </em></strong><em>To satisfy all of our requirements, it becomes important to understand the full spectrum of people who would be part of the validation process — their domain knowledge, tech stack, preferred coding languages and other factors defining their roles, abilities, and know-how. Healthcare scientists, software engineers, and data scientists come from a multitude of backgrounds, so it was difficult for us to understand what might be the best suitable option to pursue would satisfy the 4 requirements listed above and also make it sufficiently easy for use and comprehension.</em></p><p><em>We attempted proof-of-concept work with several technology implementations with an eye towards scalability (could it handle our huge data sets), extensibility and maintainability (how efficiently and accurately could we implement new or modified rules from Scientists). Some of these options included</em></p><ul><li><em>multithreading in Java running on AWS instances</em></li><li><em>enterprise licensed SAS software installed on dedicated windows systems accessed from RDP clients</em></li><li><em>Python and R scripts to read data from a mount S3 bucket</em></li><li><em>manually filled validation spreadsheets with numbers copied from random ad-hoc queries</em></li><li><em>hive data store connected via JDBC or ODBC</em></li></ul><p><em>Each of these above options satisfied some of the requirements, but none of them met all of the required criteria. One notable example was our early alignment that SAS would be the right technology platform for the RVF. A key reason we were so attracted to SAS was that it is one of the most common languages used by Epidemiologists and we initially thought it could serve as a universal language to process, transform, and validate our data. However, it turned out that there were many challenges to integrate SAS as a fit-for-all tool. We found that it was not easy to set SAS up on non-windows environments, scale it to distributed environments, and support multiple-level and heterogeneous input data formats in the way we wanted. We also tried to use two separate technologies (SAS and Java) for data connection and validation, but that approach added more complexity to configuration management and scaling. The process of incorporating new data sets from different sources using different schemas and encoding standards required too much Engineering time and run-time issues relating to setup and configuration management were too numerous to count.</em></p><p><em>At that point in time, we were fortunate to benefit from convergence in the big data unified analytics space. Apache Spark had achieved a number of notable successes in high-profile use cases — and as a result, a very effective ecosystem of components, managed services, and talent-pool expertise was emerging. We were able to quickly validate several POCs using Apache Spark, and Apache Airflow. I felt that this would provide the right foundation to</em></p><ul><li><em>execute analytic and transformation loads in the scalable infrastructure (Spark),</em></li><li><em>using a language (SQL) that was sufficiently familiar to Data Scientists, and</em></li><li><em>Data Engineers with advanced programming skills can use Python, R, Scala, Java to implement more advanced functions and re-usable extension.</em></li></ul><p><strong>The Missing Link: Databricks</strong></p><p>At Aetion, our two biggest departments are Technology and Science. We are tightly knit and closely collaborate on platform-related work, including the data ingestion and integration processes. In order for the RVF platform to achieve maintainability, we needed to empower the Science team to perform semi-technical operations in the definition of new validation rules. At the time, the Science team were highly aligned with using SAS and the idea of having to make a shift from SAS to SQL received some pushback.</p><p><strong><em>Feng</em></strong><em>: What we lacked was an abstraction layer for Scientists with varying backgrounds and coding skills. In some cases, Scientists need to understand what transformations have been done to the data and what validation checks had been used without having to write any code. So, we decided to create another layer on top of Spark SQL to provide the necessary transparency and reproducibility. And we were able to create this additional layer quickly and effectively by adding Databricks to our technology mix.</em></p><h4>Ready — Get Set — RVF!</h4><p>As shown in <strong>Figure 1</strong>, RVF automates the comparison between data from Aetion’s longitudinal format and transformed raw data. On both sides, the data are loaded from the same data catalog source.</p><p><strong><em>Figure 1</em></strong>: Rule-based Validation Framework (RVF) — Architecture</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dSEPToKTFiSqYfpp" /></figure><p>Rules applied are designed to explicitly answer questions that may be of interest to investigators. These are generally classified into two different types of checks: descriptive checks and comparative checks.</p><p><strong>Descriptive checks: </strong>Checks implemented to test and validate the distribution of data variabilities. Some of which includes:</p><ul><li>The total number of events and number of patients with an event for each event type; the number of events and number of patients with an event for each attribute</li><li>The number of patients with an event for each attribute having a specific value</li><li>The distribution for all numeric attributes (mean, stddev, min, max)</li><li>Time trends for all events over the span of data</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fSGfq4_ElHpMtcg5" /></figure><p><strong>Comparative checks:</strong> Compare aggregated statistics between results from the Data Engineer and the Scientist to validate data ingestion and integration process. This can be obtained from the RVF report, which provides a detailed overview of checks implemented and how they performed at each of those.</p><h4>Conclusion</h4><p>Our search for an optimal solution to answer questions regarding transparency and reproducibility of our data ingestion process was a success. At Aetion, RVF is now a high functioning piece of technology that has become an integral part of our infrastructure. Over the last few months, it has become a core system fueling many of our most critical workflows.</p><p>We learned many things from this journey. One of our most important lessons is that the definition of data quality is neither static nor objective. Context and subjective requirements must be applied on a case-by-case basis. There is no single silver bullet to measure the quality of data.</p><p>Our key themes for building an RVF were to enable flexibility, modularity, openness, transparency, and reproducibility in the data ingestion and validation process at Aetion. It has been a fascinating, educational and rewarding journey to see how this project has taken shape and how the promise of RVF has actualized into significant gains in our teams’ productivity and effectiveness.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3dc05d661382" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aetion-technology/building-a-rule-based-validation-framework-rvf-for-real-world-healthcare-data-3dc05d661382">Building a Rule-based Validation Framework (RVF) for Real-World Healthcare Data</a> was originally published in <a href="https://medium.com/aetion-technology">Aetion Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>