Mbaza Shiny App Case Study

By:
Appsilon Team
July 21, 2022

<strong>W</strong><b>e care about the impact our work has on the world around us</b>. That's why we want to ensure our work paves the way to a sustainable future. Using 🌍<a href="https://appsilon.com/data-for-good/" target="_blank" rel="noopener">Data for Good</a> is how we achieve this.  <b>Technology can help resolve sustainability challenges</b> related to climate change and biodiversity conservation. That’s why we commit time and resources to ideas that are genuinely having a positive impact on our planet.  R Shiny provides a great way to showcase the ability of data for good. One such example is our Mbaza Shiny App, complementing the Mbaza AI. <h2>Mbaza AI</h2> Mbaza AI is an open-source, free-use application for biodiversity conservationists. Appsilon created this tool for change, in collaboration with researchers at the University of Stirling and The National Parks Agency of Gabon (ANPN), as part of our Data for Good initiative. Mbaza AI automatically, accurately, and rapidly classifies animal species in camera trap images or videos. And it does so using a state-of-the-art artificial intelligence (AI) model. <img class="alignnone size-full wp-image-14749" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01bd3790b9e1ad88c33c6_mbaza-ai-workflow-presentation.webp" alt="Process of manual identification of camera trap images" width="960" height="540" /> Our model can classify 3000 images per hour and is up to 96% accurate, using an average laptop without an internet connection. And best of all - it’s free to use! <h2>Mbaza Shiny App</h2> Complementing the Mbaza AI algorithm is an interactive data explorer interface - <a href="https://demo.prod.appsilon.ai/mbaza/">Mbaza Shiny App</a>. The Mbaza Shiny App intakes the data from the AI model and allows for analysis and visualization in an interactive dashboard. Shiny Dashboards are an excellent tool for telling data-centric stories. <blockquote>“The Mbaza Shiny App integrates with the Mbaza desktop app for camera trap image analyses and can be used to automatically calculate daily activity patterns of different animal species, create maps and calculate measures of relative abundance with no coding or statistical knowledge.” - Robin Whytock, PhD, former Postdoctoral Researcher at The University of Stirling</blockquote> <img class="alignnone size-full wp-image-14741" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01dbe99f568749835c191_Mbaza-Shiny-App-workflow.webp" alt="Mbaza AI and Shiny App workflow" width="1080" height="324" /> Improving the <a href="https://demo.prod.appsilon.ai/mbaza/" target="_blank" rel="noopener">Mbaza Shiny App</a> for visualizing data produced by our AI model, offered a great opportunity to leverage another aspect of our technical expertise - R Shiny development.  By combining our data science skills across AI & R Shiny programming, we found a way to use technology to accelerate nature conservation efforts in Gabon. In short, we used technology to fight threats to biodiversity and we made it available to you. <h2>Challenges</h2> Projects like this require a good understanding of the end user’s needs. In this case, our primary users are researchers, ecologists, and park rangers. These users are working tirelessly in the field and typically do not have extensive programming knowledge.  This is just one side of the equation though. Product development requires knowledge exchange, flowing both ways. We as experts and consultants in our tech niches have to explain in a comprehensive way what is feasible or not. And our clients must share their domain knowledge.  <blockquote>Are you looking to apply AI to nature conservation? Discover <a href="https://appsilon.com/applying-ai-to-nature-conservation/" target="_blank" rel="noopener">the technology helping endangered animals</a>.</blockquote> When exchanging domain knowledge and working with specialists, it’s important to overcome the following challenges: <ol><li style="font-weight: 400;" aria-level="1">Succinctly express and understand the ultimate goal of the project (biodiversity conservation) and all intrinsic aspects of the end users’ (wildlife conservationists) day-to-day responsibilities.</li><li style="font-weight: 400;" aria-level="1">Address working with unique data. This was the first time we were tasked with visualizing camera-trap data, and due to the remote nature of the project access to end users was limited.</li><li style="font-weight: 400;" aria-level="1">Explaining R/Shiny strengths and limitations to manage expectations.</li><li style="font-weight: 400;" aria-level="1">Balancing all aspects of the work (time, quality, and functionality) so that both parties were satisfied with the end product.</li></ol> In doing so, the end product will better serve the users and the project timeline will be realized. <h2>Approach</h2> Close collaboration rooted in open communication and mutual trust set the stage for overcoming these challenges. We discussed all requirements and pain points from our partners, and the whole team put themselves in the shoes of the end users.  This is how we approached the implementation: <ol><li style="font-weight: 400;" aria-level="1">Constant feedback from the partner - closely listening to the experts.</li><li style="font-weight: 400;" aria-level="1">Incorporate data and algorithms prepared by biologists into our application - combining domain knowledge and new technologies.</li><li aria-level="1">Sound planning and robust quality assurance process throughout the entirety of the project.</li></ol> You can apply this approach to any Shiny development project to build higher-quality products that are more likely to see user adoption. <h2>Results</h2> Today, the Mbaza Shiny App has progressed with improved functionalities. We’ve accelerated effective biodiversity conservation in Gabon, by speeding up the data analysis process. The user base is growing and user feedback is overwhelmingly positive.  And at the same time, we know it is just the beginning. We want to reach more people and more projects across the globe. We want to help them efficiently protect endangered animals with the power of AI and R Shiny! We’ve learned a lot from our fruitful journey with the Mbaza Shiny App. In many ways, we improved ourselves as well as efforts in biodiversity conservation: <ol><li style="font-weight: 400;" aria-level="1">The team expanded our technical skillset in utilizing technology for biodiversity conservation.</li><li style="font-weight: 400;" aria-level="1">We gained a sense of fulfillment in delivering a useful tool for nature and society.</li><li style="font-weight: 400;" aria-level="1">We see the project continuing and expanding into something even greater.</li></ol> Both we, and the clients, came away satisfied with the end product. You can explore the Mbaza Shiny App demo.  <h2>Summary</h2> <blockquote><b>"These tools greatly enhance the ability of protected area managers to rapidly analyze camera trap data and make informed conservation decisions.</b> The Shiny app is in the development phase but we hope to roll it out soon as a core part of the Mbaza image analysis pipeline." - <strong>Robin Whytock, PhD, former Postdoctoral Researcher at The University of Stirling</strong></blockquote> If you're looking to accelerate your biodiversity monitoring and conservation efforts with an R Shiny dashboard, check out <a href="http://templates.appsilon.com/" target="_blank" rel="noopener">Appsilon's free-use Shiny Dashboard Templates</a>. Simplify and speed up your Shiny dashboard build with our ready-to-use templates. The bundle contains several beautiful and easy-to-use templates with a range of features and tech stacks. The best part is - it's entirely free! <blockquote>Discover what it means to be an <a href="https://appsilon.com/appsilon-data-science-is-now-an-rstudio-full-service-certified-partner/" target="_blank" rel="noopener">RStudio Full Service Certified Partner and how we can serve you</a>.</blockquote> If you need a more customized, advanced option - reach out to us. We're here to help. <a href="https://appsilon.com/" target="_blank" rel="noopener">Appsilon</a> is an <a href="https://appsilon.com/rstudio-certified-partner/" target="_blank" rel="noopener">RStudio Full Service Certified Partner</a>. We develop advanced R Shiny applications for Fortune 500 companies across the globe. We'd be happy to help you choose the right options for your use case. <a href="https://appsilon.com/#contact" target="_blank" rel="noopener">Let's talk</a> and see how Shiny can help you grow. <blockquote>Tired of manual data labeling and mislabeled training data? See how the Appsilon ML team built a <a href="https://appsilon.com/ml-data-labeling-cleaning-machine-learning-labels/" target="_blank" rel="noopener">streamlit widget for cleaning ML labels</a>.</blockquote> This article was co-authored by Appsilon Project Manger <a href="https://appsilon.com/author/konrad/" target="_blank" rel="noopener">Konrad Ć»urawski</a> and D4G Lead <a href="https://appsilon.com/author/andrzej/" target="_blank" rel="noopener">Andrzej BiaƂaƛ</a>.

Have questions or insights?

Engage with experts, share ideas and take your data journey to the next level!
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
shiny
mbaza ai
data for good
r
shiny dashboard
ai&research