How Deep Learning Powers up Microbiology Labs for Faster, More Accurate Results
A human brain has a natural ability to see and recognize images. What kids can see and identify from their first weeks of life cannot be repeated by computers as for now, despite the recent breakthrough in machine learning and image recognition.
However, in certain circumstances, we keep relying on human vision, even though it’s not an optimal solution. When it comes to manual analysis of numerous samples performed repetitively (a standard routine of microbiology labs), a human error is hard to avoid. There were attempts to automate this process by using classical algorithms, but the reliability of these algorithms is not enough to eliminate the human presence.
Inspired with the idea to improve the reliability of computer object detection and eliminate the necessity to handle it manually, we initiated a proof-of-concept project on automating microbiological analysis with the help of deep learning for one of our clients. After few rounds of the meticulous testing, we are happy to share the outcomes:
The overall goal of the project was to improve the accuracy of automated microbiological analysis with the help of image recognition using deep learning algorithms. The applied technology would determine whether bacteria appeared on a Petri dish (a positive sample) or it stayed clean (a negative sample) by analyzing samples images without a human specialist being involved.
Benefits of higher accuracy in microbiological analysis performed by a computer are undoubtedly important. In healthcare, this would mean shorter time of test results expectation (just imagine a medical lab working 24/7) and more correct diagnoses based on more accurate test results, which is crucial for patients, especially those with urgent health issues. For businesses that deal with the microbiological analysis of their production (usually in great volume), it would be a significant time and cost reduction solution.
There were few problems that we faced during the project:
Different size of Petri dishes used in laboratories, which means different sample types.
Samples can contain additional information (such as notes and markings on Petri dishes, that could be treated as a bacterial colony).
Bacteria can grow in different shapes and sizes (e.g. cover the whole surface of a dish), that’s why traditional algorithms have problems with identifying all possible cases.
For the implementation, we’ve built a deep CNN (Convolutional Neural Network), that we trained using around 100 original images supplemented with artificially generated images (the ones with deliberately “complicated” data for the training purposes).
Making images eligible for the analysis was the main challenge in the project. To overcome it we created a special algorithm that pre-processed the images in a way that makes them suitable for further analysis: applies filters, places the elements in the center of the image, cuts off the edges which shouldn’t be analyzed etc.
The accuracy of negative samples identification is almost 99.9%. For the positive samples, it varies around 90-95%.
The applied deep learning algorithm showed better accuracy than classical algorithms when handling the edge cases, such as confusing for classical algorithms Petri dishes with notes and markings.
Check out the video below to see the image recognition app for microbiological analysis in action. It demonstrates two scenarios of the image recognition process: the first one - when a positive sample has been identified, the second - when it was negative.
The interface has been kept simple and intuitive (drag and drop action, followed by one of two results: positive or negative) for the sake of a demo.
The adaptation of the project as described above allows to eliminate fully the necessity of having a human specialist involved in samples analysis (read cost reduction), speed up the process, increase the accuracy, as well as minimize the risk of human error in this process.
The image recognition function as described above was created for the narrow purpose: microbiological analysis of a specific type of sample images. However, the deep learning technology used for this project has a broader field of adaptation: medical services, quality control in pharmaceutical industry and healthcare, industrial microbiology and so on.
Our next step in this field is to go further and develop a deep learning approach to bacterial colony classification.
We will be happy to consult you on artificial intelligence (AI), machine learning (ML), deep learning (DL) applications for your business. Drop us a line to get in touch.
What works well and what you should be aware of while working with TensorFlow. READ MORE
Learning methods go through tremendous changes. Right after the e-learning and video tutorials boom, another technology emerged that promises to revolutionize the way we share information. Find out why there is such hype around augmented reality and how it can transform your business in terms of training and knowledge retention. READ MORE
Retrospective meetings are a great occasion for generating insights and ideas to improve workflow efficiency. Sometimes such improvements start travelling from one project to another and become best practices eventually. We want to share our top 7 tried and tested retrospective findings - hope they come in handy for you as well. READ MORE
For tech professionals, staying up-to-date is more than a natural curiosity, it’s a must. How to be wired up without spending too much time on it, and what blogs to follow - further in the blog post. READ MORE
Smooth collaboration and effective project management are crucial for software development. No wonder there are so many approaches and tools designed especially for software project management. And whereas there is no single cure-all tool, you might find our experience in using the following tools helpful! READ MORE
The role of a CTO involves constant challenges. And a product release doesn't mean a retirement for a CTO, but a new mode of working and new issues to be prepared for. Check out these top 5 challenges that every CEO of a growing company might face and our tips for handling them. READ MORE
When there are so many examples of tremendous success done by pioneers of certain technologies, the fear of missing out becomes quite reasonable. Don’t miss out two biggest trends of 2018 (from our perspective) and learn how your business can respond to them by reading this blog post. READ MORE
A university-industry partnership is a win-win deal that gives a competitive advantage for both parties. Read more about our experience of collaborating with a university and how we benefited from it - in this blog post. READ MORE
The transition to Scrum is an exciting learning experience for everyone involved. However, it might be overshadowed with human skepticism and doubts. Read more to learn what challenged to expect during the Scrum adoption and how to avoid them. READ MORE
Changing the way how people used to work might be quite a pain. And doing it by introducing Scrum is not an exception. If you’re considering to adopt Scrum or started the transition process already, this blog post is for you. READ MORE
When development becomes painful and time-consuming the debate over “what to do now?” starts. Fueled by developers’ claims “the code is a mess”, “we can’t work with the legacy code”, “let’s rewrite it” from one side, and the business trying to solve the issue less dramatically - from the other, the discussion seems to be never-ending.
This blog post will guide you through potential pitfalls while deciding whether to improve the existing code (by refactoring, running unit tests etc.) or rewrite it from scratch.
Bringing together people to work on the same project from different locations is becoming a common practice. But distance and lack of physical connection take its toll and may bring impediments to the workflow. After 7 years of experience in setting up distributed teams using Scrum, we cut our teeth on the possible pitfalls and collected several rules to make things work... READ MORE