Want to Build an AI Model for Your Business? Read this.

By:
Filip Stachura
March 10, 2020

<h2>TL;DR</h2> Artificial Intelligence, Machine Learning, and Deep Learning models have demonstrated significant power to grow and improve businesses. We have found that the best approach to AI production is what venture capitalists do when they evaluate and invest in startups. A 2019 McKinsey survey found that a majority of executives whose companies have adopted AI solutions report that these solutions have provided an uptick in revenue, and 44 percent say that AI has reduced costs. However, AI models are often costly to develop and there’s a risk that the model will fail to have a meaningful impact on the organization and languish in<a href="https://appsilon.com/run-a-successful-ml-pilot-project-in-8-steps-how-to-avoid-pilot-purgatory/"> pilot purgatory</a> after completion. So how can we maximize the probability of success in such a scenario? How can we create a useful (and used) tool quickly and cost-effectively? We have worked on numerous such projects for a range of organizations. Here is something we learned: the best approach for AI production is similar to what venture capitalists (VC’s) do when they evaluate and invest in startups. <h2>Where to begin? How to Brainstorm AI/ML ideas</h2> It’s important to <b>develop an intuition</b> of what success looks like in any field. Jiro Ono, perhaps the most respected sushi chef in Japan, has a mantra: “In order to make delicious food, you must eat delicious food.” The same is true for AI and ML projects. Immerse yourself in the research and find out what is possible in, for example, natural language processing, computer vision, and object detection. Find examples of successful use cases and learn what you can about them. The Conference on Neural Information Processing Systems (NeurIPS) is a good place to start, as it provides a comprehensive overview of what is being discussed and developed in the field. Transfer research into your domain. Follow the news for your industry and find out what’s trending. <b>Start with simplicity</b>. Look for manual, mundane tasks that can be accomplished <a href="https://appsilon.com/decision-making-support-systems-3-differences-between-ia-and-ai/">with a few seconds of human thought</a>. These are the top candidates for automation with AI/ML, especially when labeled training data is available for the activity. <b>Inspire yourself</b>. Look at open datasets. Look at <b>your</b> datasets. What else can you collect? As a brainstorming technique, consider how you would remake your competitors’ organization or the market in general with ML automation (or augmentation). What kind of insights would that allow you to make? Before collecting this data look into the possibility of <b>buying</b> it. Once you have collected several ideas, how can you choose the best ones for investment? There is another group of folks that face a similar scenario of developing many projects and choosing among the best of them -- <b>venture capitalists</b>. Let’s see what we can learn from them. <h2>What Can We Learn from VC’s?</h2> First, gather a lot of ideas. Then validate the already promising ones, but also try those which contradict intuition. Don't invest a lot until you validate the top risks. Build a Proof of Concept (PoC) of the deep learning network or AI model. Build a PoC of the interface and test it with users. Pay attention to <b>traction</b>. What is traction for the AI project? You need to look for a group of organization employees who desperately need your solution. Are the employees excited or scared about the prospect of working with an AI or ML model, or of becoming a data-driven organization? If they are excited, they understand that implementation of the model is going to simplify their workflow and allow them to focus on more complex decisions. Buy-in from them is going to be very important for successful implementation. If the organization’s teams are afraid of the AI/ML model development, <strong>provide education and training</strong>. A McKinsey survey of “AI high performer” companies found that they make a conscious effort to educate, help, and if necessary, retrain employees to foster a partnership between humans and machines, instead of a replacement or a pilot purgatory scenario. Be careful not to only look at the excitement of your researchers, as most of them are excited by hard problems to solve, not with business impact. Many startups succeed – some wildly so – but unfortunately most startups will fail. VC’s understand this risk. That is why VC firms build a diversified portfolio. You can follow this lesson by building a portfolio of ideas. Be an explorer of ideas, and be cautious not to favor a single idea at the expense of others. Treat sunk costs as an investment in exploration rather than a justification for fixating on a single path. <strong>Machine Learning projects are research. Be ready for failures. Try different things. Adapt.</strong> Pull more resources when investment is less risky, and pull the plug on lines of attack that are clearly failing. <h2>Make Small Investments in Development and Construction of AI/ML</h2> Focus on <b>time to value</b> (TtV), which is the time between a business request and the initial delivery of that request. The goal of any business is to minimize TtV in order to realize some level of business value as quickly as possible. Typically the largest cost is the cost of staff time (i.e. engineers and researchers). If you want to get a good <strong>r</strong><b>eturn on investment, </b>work on reducing this. Use technology that helps to build stuff faster. For example, in many cases you don't need to build ML models from scratch like many teams tend to. You can build your AI solution using pre-made building blocks or use high-level tools that get good results quickly. Keep these four things in mind to maximize TtV and initial ROI for AI projects: 1) Find existing AI products specifically made for the problem you're solving 2) Search for existing APIs, e.g. voice recognition or object detection APIs from Google, Microsoft, or AWS 3) If the above is not enough, consider using AutoML tools to build your model 4) If a truly custom model is needed, build it using high-level ML libraries like Fast.ai or Keras and avoid using pure Tensorflow Keep a close eye on the tools space (or partner with someone who does) as it changes and evolves every quarter. <b>Use R/Shiny</b> to build a decision support system PoC. The only reason not to use Shiny is when you have something very basic to test (use BI) or your team is committed to Python and Python only (use Dash). For years now, Shiny has proved to be superior in the Decision Support Systems PoCs space. <b>Reduce infrastructure work</b>. In most cases this is going to be just a fraction of the cost of your project. Help yourself with the right tools: <ul><li>RStudio Connect</li><li>Domino Data Lab</li><li>W&amp;B</li><li>Neptune.ai</li><li>Google Cloud AI Notebooks</li><li>AWS SageMaker</li></ul> <b>Use clean data.</b> No shortcuts here. Invest in building proper data gathering and data pipeline, with a focus on good <a href="https://appsilon.com/data-quality/">data quality</a>. Validate and make sure you know what you have. A modest investment in this step will go a long way to ensure good results in all of the following steps. <h2>Denouement: Determine a Clear Cutoff and Listen to Users</h2> <b>Determine a clear cutoff</b>. Without the proper guide rails, research can become a black hole. Make sure that people working on the AI/ML models understand their runway and success criteria. Setting this success criteria is difficult, but ultimately necessary. It might require education on both sides; business often asks for 100% accuracy, tech often prefers not to promise anything. Those topics can only be addressed with openness, education, and deep conversations. <b>Speak with users early and often</b>. The Y Combinator mantra is "Make something people want.” If the end goal of your work is to make something that your teams are going to use, and I venture to guess that for  &gt;99% of team leaders it is, <b>make sure you speak with the potential users as soon as possible</b>. That's one of the best ways to not only reduce the overall investment but also to make sure you're building the right thing. An honest conversation with users is worth its weight in gold. <h2>Conclusion</h2> Your chances of success with any ML/AI project depend a lot on your planning and information gathering before you sit down to write model specifications for your engineering team. I recommend thinking like a venture capitalist as an approach to growing your organization with ML/AI. Gather a lot of ideas. Validate the promising ones, but don’t ignore the counter-intuitive ones. Don't over-spend. There are techniques and tools that will help you with this. Build a PoC and test it with users early and often. Use clean data and determine a clear cut-off for your project. And once again, <strong>speak with users early and often</strong>. Put it all together, and you will clear the way to cost-effective, org-changing ML/AI success. Thanks for reading! For more, follow me on <a href="https://www.linkedin.com/in/filipstachura/">Linkedin</a> and <a href="https://twitter.com/filipstachura">Twitter</a>. You can also check out my other articles on the Appsilon blog, including: <a href="https://appsilon.com/excel-is-obsolete-here-are-the-top-2-alternatives-from-r-and-python/">Excel Is Obsolete: Here Are the Top 2 Alternatives from R and Python</a>. <h2>Resources</h2> <h3>Time-saving AI infrastructure tools:</h3> <a href="https://rstudio.com/products/connect/">RStudio Connect</a> <a href="https://www.dominodatalab.com/">Domino Data Lab</a> <a href="https://www.wandb.com/">https://www.wandb.com/</a> <a href="https://neptune.ai/">https://neptune.ai/</a> <h3>Money-saving AutoML solutions:</h3> <a href="https://www.fast.ai/">https://www.fast.ai/</a> <a href="https://www.h2o.ai/">https://www.h2o.ai/</a> <a href="https://cloud.google.com/automl">https://cloud.google.com/automl</a> Shiny (<a href="https://shiny.rstudio.com">https://shiny.rstudio.com</a>) is an R package that makes it easy to build interactive web apps straight from R. You can host standalone apps on a webpage or embed them in R Markdown documents or build dashboards. You can also extend your Shiny apps with CSS themes, htmlwidgets, and JavaScript actions. <h3>References</h3> "<a href="https://www.mckinsey.com/featured-insights/artificial-intelligence/global-ai-survey-ai-proves-its-worth-but-few-scale-impact?cid=soc-web">Global AI Survey: AI proves its worth, but few scale impact</a>" from McKinsey.com "<a href="https://www.salesforce.com/blog/2014/03/it-agility-time-to-value.html">IT Agility: 7 Ways to Accelerate Time to Value</a>" from Salesforce.com <a href="https://nips.cc/">Conference on Neural Information Processing Systems</a> (NeurIPS) <div class="c-message_kit__blocks c-message_kit__blocks--rich_text"> <div class="c-message__message_blocks c-message__message_blocks--rich_text"> <div class="p-block_kit_renderer" data-qa="block-kit-renderer"> <div class="p-block_kit_renderer__block_wrapper p-block_kit_renderer__block_wrapper--first"> <div class="p-rich_text_block" dir="auto"> <div class="p-rich_text_section"><a class="c-link" href="https://www.ycombinator.com/about/" target="_blank" rel="noopener noreferrer" aria-describedby="slack-kit-tooltip">Y Combinator</a> is one of the world's most influential accelerators providing seed funding for startups</div> </div> </div> </div> </div> </div> <div class="c-message_kit__attachments"> <div class="c-message_attachment"></div> </div> <h2><b>Follow Appsilon Data Science on Social Media</b></h2><ul><li>Follow <a href="https://twitter.com/appsilon">@Appsilon</a> on Twitter</li><li>Follow Appsilon on <a href="https://www.linkedin.com/company/appsilon">LinkedIn</a></li><li>Sign up for our company <a href="https://appsilon.com/blog/">newsletter</a></li><li>Try out our R Shiny <a href="https://appsilon.com/opensource/">open source</a> packages</li><li>Sign up for the AI for Good <a href="https://appsilon.com/ai-for-good/">newsletter</a></li><li>We are hiring <a href="https://appsilon.com/careers/">software engineers</a></li></ul>

Have questions or insights?

Engage with experts, share ideas and take your data journey to the next level!

Is Your Software GxP Compliant?

Download a checklist designed for clinical managers in data departments to make sure that software meets requirements for FDA and EMA submissions.
Explore Possibilities

Share Your Data Goals with Us

From advanced analytics to platform development and pharma consulting, we craft solutions tailored to your needs.

Talk to our Experts
r
python
infrastructure
ai&research