Clinical insight: 3 ways to minimise automated inspection errors in your medical device production line

Your vision system monitoring your production quality is finally validated and running 24/7, with the PQ behind you it’s time to relax. Or so you thought! It’s important that vision systems are not simply consigned to maintenance without an understanding of the potential automated inspection errors and what to look out for once your machine vision system is installed and running. These are three immediate ways to minimise inspection errors in your medical device, pharma or life science vision inspection solution.

1. Vision system light monitor.
As part of the installation of the vision system, most modern machine vision solutions in medical device manufacturing will have light controllers and the ability to compensate for any changes in the light degradation over time. Fading is a slow process but needs to be monitored. LEDs are made up of various materials such as semiconductors, substrates, encapsulants, and connectors. Over time, these materials can degrade, leading to reduced light output and colour shift. It’s important in a validated solution to understand these issues and have either an automated approach to the changing light condition through close loop control of grey level monitoring, or a manual assessment on a regular interval. It’s something to definitely keep an eye on.

2. Calibration pieces.
For a vision machines preforming automated metrology inspection the calibration is an important aspect. The calibration process will have been defined as part of the validation and production plan. Typically the calibration of a vision system will normally in the form of a calibrated slide with graticules, a datum sphere or a machined piece with traceability certification. Following from this would have been the MSA Type 1 Gauge Studies, this the starting point prior to a G R&R to determine the difference between an average set of measurements and a reference value (bias) of the vision system. Finally the system would be validated with the a Gauge R&R, which is an industry-standard methodology used to investigate the repeatability and reproducibility of the measurement system. So following this the calibration piece will be a critical part of the automated inspection calibration process. It’s important to store the calibration piece carefully, use it as determined from the validation process and keep it clean and free from debris. Make sure your calibration pieces are protected.

3. Preventative maintenance.
Vision system preventative maintenance is essential in the manufacturing of medical devices because it helps to ensure that the vision systems performs effectively over the intended lifespan. Medical devices are used to diagnose, treat, and monitor patients, and they play an important part in the delivery of healthcare. If these devices fail, malfunction, or are not properly calibrated, substantial consequences can occur, including patient damage, higher healthcare costs, and legal culpability for the manufacturer. Therefore, any automated machine vision system which is making a call on the quality of the product (at speed), must be maintained and checked regularly. Preventative maintenance of the vision systems involves inspecting, testing, cleaning, and calibrating the system on a regular basis, as well as replacing old or damaged parts.

Medical device makers benefit from implementing a preventative maintenance for the vision system in the following ways –
Continued reliability: Regular maintenance of the machine vision system can help identify and address potential issues before they become serious problems, reducing the risk of device failure and increasing device reliability.
Extend operational lifespan: Regular maintenance can help extend the lifespan of the vision system, reducing the need for costly repairs and replacements.
Ensure regulatory compliance: Medical device manufacturers are required to comply with strict regulatory standards (FDS, GAMP, ISPE) and regular maintenance is an important part of meeting these standards.

These three steps will ultimately help to lessen the exposure of the manufacture to production faults, and stop errors being introduced into the medical devices vision system production process. By reducing errors in the machine vision system the manufacturer can keep production running smoothly, increase yield and reduce downtime.

Why pharmaceutical label inspection using vision systems is adapting to the use of AI deep learning techniques

Automated inspection of pharmaceutical labels is a critical part of an automated production process in the pharmaceutical and medical device industries. The inspection process ensures that the correct labels are applied to the right products and that the labels contain relevant and validated information. These are generally a combination of Optical Character Recognition (OCR), Optical Character Verification (OCV), Print Quality Inspection and measurement of label positioning. Some manufacturers also require a cosmetic inspection of the label for debris, inclusions, smudges and marks. The use of vision inspection systems can significantly improve the efficiency and accuracy of the automation process, while also reducing the potential for human error.

Automated vision inspection systems can also help to ensure compliance with regulatory requirements for labelling, and provide manufacturers with a cost-effective and efficient way to improve the quality of their products. With increasing pressure to improve production efficiency and reduce costs, more and more pharmaceutical and medical device manufacturers are turning to automated vision inspection systems to improve their production processes and ensure quality products for their customers.

Over the last few years, more vision inspection systems for pharmaceutical label checks have been adapting to the use of deep learning and artificial intelligence neural networks, such as Convolutional Neural Networks (CNNs) or Recurrent Neural Networks (RNNs).

Using AI and deep learning for optical character recognition (OCR) can significantly improve the performance of automated inspection systems for pharmaceutical labels. Traditional OCR systems rely on pre-defined templates and rules to recognize and interpret text on labels, which can be limited in their ability to recognize text accurately in different fonts, sizes, and layouts.

AI-based OCR systems, such as those using deep learning, can be trained on a large dataset of labelled images, allowing them to learn and recognize different fonts, sizes, and layouts of text. This makes them more robust and accurate in recognizing text in real-world scenarios, where labels may have variations in their appearance. The deep learning machine vision systems can also be trained to recognize text that is partially obscured or distorted, which is a common problem in real-world scenarios. This allows the system to make educated guesses about the text, which can improve its accuracy and reliability.

On the flip side, while the level of recognition may improve for hard-to-recognise situations for traditional machine vision inspection, the system also must be validated to set criteria for FDA/GAMP validation. How can this be achieved for a neural deep learning system?

It is true that gathering data for training an AI-based vision inspection system can be a hassle, but it is a crucial step to ensure the system’s performance. One way to overcome this is by using synthetic, validated data, which can be generated using computer-generated images. This can reduce the need for natural images and allows a broader range of variations to be included in the dataset. These synthetic images could be tested and validated on a traditional machine vision set-up, before then transferred to the training set for the AI-based vision inspection. Another way is to use transfer learning, in which a pre-trained validated model is fine-tuned on a smaller dataset of images specific to the task. This can significantly reduce the amount of data and resources needed to train a new model.

In conclusion, validated industries such as medical devices and pharmaceuticals continue to adapt to new, robust methods for traceability and quality print checking. Deep learning is evolving to meet the unique validation requirements of these industries.

How to select the correct machine vision lighting for your application

Machine vision lighting is one of the most critical elements in automated visual inspection. Consistent lighting at the correct angle, of the correct wavelength with the right lux level allows automated inspection to be robust and reliable. But how do you select the correct light for your machine vision application?

Where the inspection takes place on the production process has to be set according to the requirements of the quality check. This part of the process may also include what is often referred to as ‘staging’. Imagine a theatre, and this is the equivalent of putting the actor centre stage in the best possible place for the audience to see. Staging in machine vision is often mechanical and is required to:

  • Ensure the correct part surface is facing the camera. This may require rotation if several surfaces need inspecting
  • Hold the part still for the moment that the camera or lens captures the image
  • Consistently put the part in the same place within the overall image ‘scene’ to make it easy for the processor to analyse
  • Fixed machine vision lighting for each inspection process

Lighting is critical because it enables the camera to see necessary details. In fact, poor lighting is one of the major causes of failure of a machine vision systems. For every application, there are common lighting goals:

  • Maximising feature contrast of the part or object to be inspected
  • Minimising contrast on features not of interest
  • Removing distractions and variations to achieve consistency

In this respect, the positioning and type of lighting is key to maximise contrast of features being inspected and minimise everything else. The positioning matrix of machine vision lighting is shown below.

So it’s important to select the machine vision light relative to the position of the light with respect to the part being inspected.

Machine vision lighting is used in varying combinations and are key to achieving the optimal lighting solution. However, we also need to consider the immediate inspection environment. In this respect, the choice of effective lighting solutions can be compromised by access to the part or object to be inspected. Ambient lighting such as factory lights or sunlight can also have a significant impact on the quality and reliability of inspection and must be factored into the ultimate solution.

Finally, the interaction between the lighting and the object to be inspected must be considered. The object’s shape, composition, geometry, reflectivity, topography and colour will all help determine how light is reflected to the camera and the subsequent impact on image acquisition, processing, and measurement.

Due to the obvious complexities, there is often no substitute other than to test various techniques and solutions. It is imperative to get the best machine vision lighting solution in place to improve the yield, robustness and long term effectiveness of the automated inspection solution.

How to use semi-automatic inspection of pharmaceutical vials and syringes for regulatory compliance.

Semi-automatic (or Semi-automated) inspection machines for the pharmaceutical industry are intended for easy and effective examination of vials, ampoules, cartridges, and syringes carrying injectable liquids, powders, or freeze-dried products. This is the step up from a manual inspection approach which would typically be done by a trained inspector by rotating the vial in front of a black and white background for the analyses of certain defects, particles and particulates. The semi-automatic approach allows for higher volumes of pharmaceutical products to be inspected at greater speeds.

In simple terms, “Semi-Automatic” means the ability to rotate the product and present it with the correct lighting LUX level on a black and white background for the purpose of an operator to visually identify defects in the container or contents. This is typically in the form of a stand-alone semi-automated machine or part of an in-feed or in-line production system. Therefore, this shouldn’t be confused with fully automated visual inspection systems.

The key documents relating to the inspection of pharmaceutical vials and ampoules for contamination are driven by the United States Pharmacopeia (USP) Chapter 1 Injections and Implanted Drug Products (Parenterals). Product Quality Tests states that injectable drug preparations should be designed to exclude particulate matter as defined in USP Chapters “787” Subvisible Particulate Matter in Therapeutic Protein Injections, “788” Particulate Matter in Injections, and “789” Particulate Matter in Ophthalmic Solutions. Each final container should be inspected for particulate matter, as defined in Chapter “790” Visible Particulates in Injections. Containers that show the presence of visible particulates must be rejected.

Particulates can take all forms, from contamination and debris particulates, coating fragments, air bubbles or inconsistencies, visual defects in primary containers, polymer particles through to glass & metallic particles and microscopic cracks or inclusions in the glass or polymer. All these levels of defects need to be identified and rejected.

Every product needs to undergo a visual inspection to determine whether or not it contains any particle matter. It is possible to automate, manually perform, or partially automate the initial 100% check. The subsequent inspection to ensure that the acceptable quality level (AQL) has been met must be carried out manually. The presumed value for the lower limit of the visible range is 100µm; however, this value can shift based on the product container, the nature of the drug product, and the qualities of the particulate matter (shape, colour, refractive index etc.).

The sample in its primary container (vial, prefilled syringe, and glass cartridge) is rotated under standardised conditions for semi-automated visual inspection (roughly above 50-100 µm). The liquid in the spinning and/or subsequently stopped container can then be viewed to confirm compliance to quality levels. This is the way to reach regulatory compliance by applying semi-automatic inspection.

Although the regulation of particulate matter in pharmaceutical products is as detailed above, there is no regulatory guidance on either the limits of particulate matter in principal packaging components. Instead, the specifications are determined through collaboration between the customers and the providers. To lessen the amount of particulate matter in finished drug products, pharmaceutical manufacturers and packaging suppliers must work together to achieve this goal. In particular, this can be accomplished by making use of components that have minimal levels of loose, embedded, and adhered particulates. But no matter what contingencies are put in place, the production process should include a level of semi-automatic inspection to allow rouge particulates to be rejected from the final product.

Human inspectors are adaptable and can provide a response to something they have never seen before or something that “doesn’t look right”. They are also able to more easily withstand typical variations in containers, particularly those generated by moulding, which results in a reduction in the frequency of wrongly rejected good products. This compares to fully automated visual inspection, which has rigid boundaries for a pass and fails. However, people are restricted in the number of inspections that can be performed (i.e., the number of containers per minute or hour that they can inspect). Therefore, semi-automatic inspection is the solution to allow a high volume of product to be inspected at speed by an operator while still complying with the relevant regulatory levels.

Operators are also prone to weariness and require numerous pauses in order to work at a high level for extended periods of time. All of these constraints contribute to a greater degree of variation in the outcomes of manual inspections; however, this variation can be reduced by semi-automated inspection, combined with receiving enough training and adhering to standard operating procedures.

Manufacturers should conduct a 100% inspection during the stage at which there is the greatest likelihood that visible particulates will be detected in the final container (for example, before labelling to maximise container clarity). This is the stage at which the likelihood that visible particulates will be detected in the final container is highest. The equipment and the physical environment in which the visual inspection will be performed should both be designed by the manufacturers to reduce the amount of unpredictability in the inspection process while simultaneously increasing the amount of information that can be gleaned from it.

After 100% semi-automated inspection is completed, a manual inspection based on ISO 2859-1/ANSI/ASQ Z1.4 should be performed. The size of the AQL sampling depends on the batch size. Inspection Level II should be used.

Overall, Semi-automatic inspection of pharmaceutical products provides a route to regulatory compliance prior to the adoption of fully automated visual quality control.

Mixed Reality with Machine Vision, and what it means for automated visual inspection in production

We are about to see a huge crossover in the application of Mixed Reality combined with automated machine vision applications. While they are two separate and distinct application areas in their own rights, we are now at a point where the two disciplines can be combined to aid automation and increase productivity in manufacturing.

What is Mixed Reality?

Mixed Reality combines the physical and digital realms. These two realities represent the opposites of a spectrum known as the virtuality continuum. This spectrum of realities is known as the mixed reality spectrum. On one end of the spectrum is the physical reality of our existence as humans. On the opposite end of the spectrum, we have digital reality. In layman’s terms, it’s the ability to mix what you perceive and see in front of you with a digital map or projection into your line of sight. So it’s the ability of a system to display digital objects as if they existed in the real world. You can imagine the heads-up displays (HUD) from fighter jets as the original pre-cursor to the current mixed reality that allowed pilots to see a projection in front of them. The difference is that mixed reality is now carried with the user, providing a real-time and immersive experience. Mixed reality experiences result from serious technical advances in the last few years.

What is Mixed Reality in production?

Let’s drill down on the hardware – one of the key players in this market is the Microsoft HoloLens 2 headset. This mixed reality unit is designed to operate untethered (no cables) from the control. It’s a self-contained holographic device which allows industrial applications to be loaded directly into the unit, thus allowing for complex mixed reality industrial operations. It has a see-through display; this allows the user to see the physical environment while wearing the headset (as compared to virtual reality).

An operator, technician or engineer will typically put on the unit at the start of a shift. It has a screen in front of the line of sight. This allows for instructions, graphics, prompts and signs to be projected directly onto the engineer’s vision allowing a mixed reality industrial environment. The unit also has multiple camera units for eye tracking and can broadcast the video the user sees to a remote location. All these aspects are combined to give a mixed and augmented reality experience.

How can Mixed Reality be applied in industry?

Mixed reality can be applied in several different ways. Let’s drill down on some of the application areas it could be used for.

– Task Guidance. Imagine you have a machine on the other side of the world and this machine has a fault. Your engineers can assist remote workers by walking them through issues as if standing in front of the device themselves.

– Remote Inspection. The ability to inspect a remote area for maintenance, damage or repair requirements. It reduces the cost of quality assurance and allows experts to assess issues from a distance immediately.

– Assembly Assistance. The ability to assist remote workers by walking through complex tasks using animated prompts and step-by-step guides. The ability to project drawings, schematics and 3D renders of how the assembly will look will help to facilitate mixed reality use in manufacturing.

– Training. Industrial training courses can be integrated directly onto the mixed reality headset. This is especially important when manufacturers rely on transitory contract workers who need training repeatedly.

– Safety. Improvement in health and safety training and situational awareness. Project prompts and holograms relating to safety in the workplace to guide workers in factory environments.

Mixed Reality assembly and machine vision.

Machine vision in industrial manufacturing is primarily concerned with quality control, i.e. verifying a product through automated visual identification that a component, product or sub-assembly is correct. This can be related to measurement, presence of an object, reading a code or verifying print. Combining augmented mixed reality with the automated machine vision operation provides a platform to boost productivity.

Consider an operator/assembly worker sitting in front of a workbench with wearable tech such as the HoloLens. An operator could be assembling a complex unit with many parts. They can see the physical items around them, such as components and assemblies. Still, they can also interact with digital content, such as a shared document that updates in real-time to the cloud or instruction animations for assembly. That is, in essence, the promise of mixed reality.

The mixed reality unit provides animated prompts, 3D projections and instructions to walk the operator step-by-step through the build. With this, a machine vision camera is mounted above the operator, looking down on the scene. As each sequence is run and a part assembled, the vision system will automatically inspect the product. Pass and fail criteria can be automatically projected into the line of sight in the mixed reality environment, allowing the operator to continue the build knowing the part has been inspected. In the case of a rejected part, the operator receives a new sequence “beamed” into their projection, with instructions on how to proceed with the failed assembly and where to place it. Now the mixed reality is part of the normal production process when combined with machine vision inspection. Data, statistics and critical quality information from the machine vision system are all provided in real-time in front of the operator’s field of view.

What’s the future of Mixed Reality and Machine Vision?

Imagine the engineering director walking the production line. Though now he wears a mixed reality unit, each machine vision system has a QR code “anchor” on the outside of the machine. By looking in that direction, the engineering manager has all the statistics beamed in front of him of the vision system operation. Yield, parts inspected, reasons for failure, real-time data and even an image of the last part that failed through the system. Data combined with graphical elements all allow better control of yield and ultimately the factory’s productivity. Machine vision systems will have integrated solutions for communication directly with wearable technology. Coupled with this, some integrated vision system solutions will have specific needs for operators to direct image capture for artificial intelligence image gathering.

And perhaps ultimately, such a mixed reality unit becomes part of the standard supply of a machine vision inspection machine to help with not just the running of the machine but to facilitate faster back-up, maintenance and training of such machine vision systems.

How robotic vision systems and industrial automation can solve your manufacturing problems

In this post we’re going to drill down on robotic vision systems and how in the context of industrial automation they can help you boost productivity, increase yield and decrease quality concerns in your manufacturing process.

The question of how you can increase productivity in manufacturing is an ongoing debate, especially in the UK where productivity has been dampened over the last years compared to other industrialised nations. The key to unlocking and kickstarting productivity in manufacturing (output per hour worked) is the increased use of automation, to produce more, with less labour overhead. This is in the form of general industrial automation and robotic vision systems, by combining these two disciplines manufacturers can boost productivity and become less reliant on transient labour and a temporary workforce who requires continuous training and replacement.

So where do you start? Well, a thorough review of the current manufacturing process is a good place to begin. Where are the bottlenecks in flow? What tasks are labour-intensive? Where do processes slow down and start up again? Are there processes where temporary labour might not build to your required quality level? What processes require a lot of training? Which stations could easily lend themselves to automating?

When manufacturers deploy robot production cells, there can be a worry that you are losing the human element in the manufacturing process. How will the robot spot a defect when no human is involved in the production process now? We always have the quality supervisor and his team checking our quality while they built it, who’s going to do it now? The robot will never see what they did. And they mark a tally chart of the failures, we’re going to lose all our data!

All these questions go on in the mind of the quality director and engineering manager. So the answer is to integrate vision systems at the same time as the deployment of robotic automation. This can be in the form of robotic vision or as a separate stand-alone vision inspection process. This guarantees the process has been completed and becomes the eyes of the robot. Quality concerns relating to the build level, presence of components, correct fitment of components and measuring tolerances can all be solved.

For example, a medical device company may automate the packing of syringe products. Perhaps the medical syringes are pre-filled, labelled and placed into trays, all with six-axis robots and automation. A machine vision system could be used following all these tasks to check the pre-fill syringe level is correct, that all components in the plastic device are fitted in the correct position and finally an automated metrology check to confirm the medical device is measured to tolerance automatically. And remember the quality supervisor and his team also created a tally chart of failures, well with modern vision systems you’ll get all the data automatically stored, batch information, failure rates, yield, as well as the images of every product before they went out the door for information and warranty protection.

So how can robots replace operators? It normally comes down to some of the simple tasks, moved over to robots, including:

  • Robot Inspection Cells – robotics and vision combine to provide fully automated inspection of raw, assembled or sub-assemblies, replacing the tedious human inspection for the task.
  • Robot Pick and Place – the ability for the robot to pick from a conveyor, at speed, replacing the human element in the process.
  • Automated Bin Picking – By combining 3D vision with robot control feedback, a robot can autonomously pick from a random bin to allow parts to be presented to the next process, a machine tool loaded or even for handing to a human operator to increase the takt time for the line.
  • Robot construction and assembly. A task which has been done for many years by robots, but the advent of vision systems allow the quality inspection to be combined with the assembly process.
  • Industrial Automation – using vision systems to poke yoke processes to deliver zero defects forward in the manufacturing process, critical in a kanban, Just-in-Time (JIT) environment.
  • Robot and Vision Packing – picking and packing into boxes, containers and pallets using a combination of robots and vision for precise feedback. Reducing the human element in packing.

So, maybe you can deploy a robotic vision system and industrial automation into your process to help solve your manufacturing problems. It’s a matter of capital investment in the first place in order to streamline production, increase productivity and reduce reliance on untrained or casual workers in the manufacturing process. Robotic vision systems and industrial automation can solve your manufacturing problems.

3 simple steps to improve your machine vision system

What’s the secret to a perfect vision system installation? That’s what all industrial automation and process control engineers want to know. The engineering and quality managers have identified a critical process requiring automated inspection, so how do you guarantee that the machine vision system has been set up to the best possible engineering standard. And how can you apply this knowledge to refine the current vision systems on the line? Let’s look at some of the critical parts of the vision inspection chain and see the vital elements and what needs to be addressed. IVS has been commissioning machine vision systems for over two decades, so we understand the core elements inside and out of vision system installs. Use some of our tricks of the trade to improve your vision system. These 3 simple steps to improve your machine vision system will help you understand the immediate changes you can make to improve a vision system.

Step 1 -Lighting and filters.
What wavelength of light are you using, and how does this compare to the sensitivity of the camera, coupled with the colours on the part requiring inspection? An intelligent approach to how segmentation of the scene will take place should be based on the correct lighting set-up, the angle of the machine vision lighting and how the contrast is created based on the colour of the part against the light, either reflecting to or away from the camera. Coloured illumination may intensify or suppress defined colours in monochrome imaging. This way, the contrast helps recognise relevant features, which is decisive for an application-specific and optimally matched vision solution. For example, blue light cast onto a multi-colour surface will only be reflected by the blue content. The more blue content in the object, the more light is reflected, so the brighter the object will appear. In contrast, red content illuminated in blue appears exceptionally dark.

Combining, a filter mounted on the end of the lens allows blocking all unwanted ambient light and passing only the necessary wavelength of light required, increasing contrast and resolution. The choice of which filter to use depends on the type of result you are trying to achieve. But selecting an appropriate filter may improve your current system’s quality if ambient light is a problem for you.

Bandpass filters are frequently one of the simplest methods to significantly improve image quality. They have a Gaussian transmission curve and are ideal for investigating the effects of monochromatic imaging. But what are the different filters available?

Multi Bandpass Filters
Multi-Bandpass Filters use a single filter to transmit two or more distinct wavelength bands. They provide natural colour reproduction during the day and near-infrared illumination at night, resulting in accurate, high-contrast pictures. As a result, these are more suited for applications including intelligent traffic solutions, security monitoring, and agricultural inspection.

Longpass Filters
Longpass Filters enable a smooth transition from reflection to transmission and are available in various wavelengths based on the system’s requirements. Longpass filters are an efficient method for blocking excitation light in fluorescent applications and are best employed in a controlled environment where several wavelengths must be passed.

Shortpass/NIR Cut Filters
Shortpass filters offer an unrivalled shift from transmission to reflection and superb contrast. They work best in colour imaging to ensure natural colour reproduction and prevent infrared saturation.

Polarising Filters
Polarising filters minimise reflection, increase contrast, and discover flaws in transparent materials. They’re ideally suited for tasks requiring a lot of reflection, such as analysing items on glossy or very shiny surfaces.

Neutral Density Filters
Neutral Density Filters are known in the machine vision industry as “sunglasses for your system” because they diminish light saturation. Absorptive and reflective styles are available and are ideally suited for situations with excessive light. They offer excellent methods for controlling lens aperture and improving field depth.

So how do you match the filter to the light? Well, the LED’s nanometers (nm) wavelength typically relates to the band pass rating for the filter. So if you work in UV at 365 or 395nm, you would use an equivalent rated filter – BP365. If you’re using a green LED at 520nm, this would be a 520 band pass filter, and so forth. According to the filter rating, most filters have a curve chart to see where the light is cut-off.

Step 2 Camera resolution and fields of view (fov)
A vision system’s spatial resolution refers to the sensor’s active available pixels. When reviewing an improvement in your set-up and understanding where the fault may lie, it’s important to consider how many pixels you have available for image processing relative to the size of the defect or computation you are trying to achieve. For example, if you are trying to defect a 100 micron (0.1mm) x 100 microns (0.1mm) inclusion on the surface of a product, but the surface is 4m x 4m in size, by using a standard 5MP camera (say 2456 x 2054 pixels) you will only be able to resolve a single pixel to at best 4000/2054 ~ so 1.9mm. This is nowhere near the level of detail you need for your imaging system. So to improve your machine vision system, see what size of a defect you need to see and then work out your field of view (fov) relative to the pixels available. But bear in mind having a single-pixel resolution for your measurement is not good enough, as the system will fail the Measurement Systems Analysis (MSA) and Gauge R&R studies (These are tests used to determine the accuracy of measurements).

In this case, you need to be at a minimum of 20 pixels across the measurement tolerance – so 0.2/20 = 0.01mm. Therefore, you will need 10 microns per pixel for accurate, repeatable measurement – over 4m; this is 400,000 pixels. So the 5MP pixel camera original specified will never inspect one shot – the camera or the object will have to be moved in small fields of view or larger resolution cameras specified for the system to hit the inspection criteria.

Step 3 Vision algorithm optimisation
One of the major steps for improving a machine vision system is a thorough review of the vision system software and the underlying sequence of inspection for the image processing system. If the system is a simple, intelligent vision sensor, it might be a matter of reviewing the way the logical flow of the system has been set. Still, for more complex PC-based vision applications, there will be some fundamental areas which can be reviewed and checked.

1. Thresholding. Thresholding is a simple look-up table that places pixel levels into a binary 1 and 0 depending on where they sit above, below or in-between two levels. The resulting image is a pure black and white image, then used to segment an area from the background from another object. Dynamic thresholding is also available, which intuitively sets the threshold level based on the pixel value distribution. But because it uses the fundamental pixel grey level to determine the segmentation, it can be easily affected by changes in light, as this will ultimately change the pixel value and lead to changes required to the threshold level. This is one of the most common faults in a system which has not been set up with a controlled lighting level. So if you are reviewing a threshold level change, you should also check the lighting and filters used on the system, as seen in Step 1.

2. Calibration. Perhaps not calibration in the true sense of the word, but if the camera on your vision system has been knocked out of place (even slightly), it may have detrimental effects on the inspection outcome and the yields of the vision system. Re-calibration may need to be done. This could initially be checked, as most modern systems have a cross-hair type target built into the software to allow a comparison image from the original system install to be compared with a live image. Check the camera is in-line, and the field of view is still the same. Focus and light should also be consistent. Some measurement-based machine vision systems will come shipped with a calibration piece or a Dot and Square Calibration Target. These generally come with a NIST Traceability Certificate, so you know that the artefact is traceable to national standards. This calibration target should be placed, and the system checked against it.

So these 3 simple steps to improve your machine vision system may just help you increase your vision system’s yield and stop the engineering manager from breathing down your neck. This will ultimately enhance your production productivity and advance the systems in use. And remember, you should always look at ways to reduce false failures in a vision system; this is another way to boost your vision system performance and improve yield.

How to elevate Statistical Process Control (SPC) in vision system inspection (and how to connect to Industrial IoT!)

It’s the Production Managers dream in the era of Industry 4.0. A system that allows them to drill down on the assets in the production chain quickly and have immediate data on the throughput, results, and SPC data. This is all part of a goal to intelligently connect a company’s people, processes, places and assets to drive value across the whole organisation. That’s the goal of Industrial IoT (IIoT). And that’s what every manufacturer is striving for, having immediate, intelligent and critical data available on every process. This helps increase the efficiency of all manufacturing operations and allows plant-wide measuring and monitoring of machines’ quality, performance, and availability. Producers benefit from higher OEE and throughput while maintaining guaranteed levels of quality and cost.

The value of IIoT is that it immediately provides visibility of assets in a plant or in the field, and it transforms how a firm connects to the internet of things. The process of converting a factory to IIoT is to collect usage and performance data from existing systems and smart sensors, delivering advanced insights to unlock data-driven intelligence. Vision systems are an essential part of the manufacturing process. They have a significant impact on output and deliverables, so these are usually one of the first components connected to the factory information system. Companies are now establishing collaborative cultures in which engineers can make data-driven decisions that provide true economic benefit.

A fundamental part of machine vision inspection data is Statistical Process Control (SPC). Statistical Process Control (SPC) is a method for monitoring and controlling quality during the manufacturing process that is widely used in industry. During production, quality data in the form of Product or Process measurements are obtained in real-time. This information is then (at the very basic level) plotted on a graph with pre-set control limits. Control limits are set by the process’s capabilities, whereas the client’s requirements determine specification limits. Having this data connected to the IIoT system allows for more detailed analysis and alarms connected based on the moving data.

But how can I connect the vision system to the IIoT system?
There are many options. There are a large number of ways a vision system can send data to another system. This depends on the data (images, measurement data, settings, region of interest data etc.) required to be collected. Typically, the machine vision system will support a plug-in facility or a format convertor which allows the customisation of outputs to the IIoT system. But there are several immediate solutions that most vision systems will provide “out-of-the-box”, including
Digital I/O (small amount of data)
Fieldbus
PLC standard comms (industrial ethernet)
SQL Databases (SQL Server, SQLite, MySQL)
XML output
TCP/IP (traditional TCP/IP versus Industrial Ethernet)
Reports (Excel, PDF, Word)
Web API’s
In addition, many systems now communicate on an industrial basis using:
MQTT
SignalR
Web Sockets
UDP
The vision system may have a role to play in closed-loop control with the production process, allowing for moving parameters of a process to be controlled by the information returned from the vision system. This could already directly connect to the PLC or line controller for the vision system, e.g. by industrial ethernet. In this case, pulling the data into the factory IIoT may be as simple as communicating the machine PLC data to the factory server. It can be collated with the overall factory statistics and information into the global IIoT information exchange and display.

So next time you get a call from the production manager asking for a status report on the shop floor vision system and production statistics, just refer them to the company wide IIoT system, they’ll have all the data they need!

Robot vision trends in medical device production

Medical device manufacturing continues to drive the adoption of robot vision to increase throughput, increase yield and reduce the reliance on manual processes. Many production facilities have now turned to collaborative robots which allow operations in medical device production to be taken to the next level of optimisation.

Cobots with vision, tend to work hand in hand with humans balancing the imperative for safety with the need for flexibility and productivity. Robots no longer need to work alone. Collaborative robots are generally designed with inherent safety so they can work alongside humans where possible. Collaborative automation means greater speed and efficiency. Of course, a thorough risk-assessment is still required but the functionality within these robots leads them to be assessed safe once the surrounding conditions and operationality capability are tuned to the safety needs (including any gripper or end-effector design).

Cobots are designed for low payload applications such as handling small parts and inspection tasks so are ideal for medical production processes. Companies continue to look for ways to improve their efficiency by using robot with vision systems, allowing automation of current manual processes to produce productivity gains. Cobots provide a lower price point and lower integration cost to the customer, providing a faster return on investment that unlocks many more industrial tasks for medical device production automation.

Some examples of the current trends in medical device manufacturing for adopting robot vision solutions include:

Machine Tending

Cobot vision removes the need for many operators to be occupied tending to production machinery, feeding and general assembly operations. The cobot can open and close a machine door, pick and place parts for assembly, and even start a machining process by pushing the start button.

Palletising

The ability to stack and un-stack pallets is another requirement, with the vision system providing real-time off-sets and alignment for the pallet stack. A compact robotic cell that accurately loads products onto a pallet, reduces the need for rework while also allowing staff to work safely around the robot. Using cobots with vision within a robot cell allows safe interaction with staff members. Personnel can enter the robot’s operational area to speed up the pallet changes, providing a robotic solution that can work around staff without risking their safety.

Box Erection

Taking flat boxes off a stack and erecting them into a useable format as outer shipper cases is a repetitive and time-consuming action in industry to which cobots with vision are very well suited. Medical device manufacturers need not only to erect the boxes and casings, but print and confirm the serial batch numbers and use by date on the product, all of which can be completed by the same machine vision inspection system.

Functional Repetitive Testing

Manufacturers need to put their products through thousands of hours of test cycling to provide reliability, for example the continued movement of a syringe body or an asthma inhaler valve. Collaborative robots with vision can performs hundreds of hours of testing to support faster testing, improving reliability and quality.

Structured Bin Picking

Parts in a structured position allowing single picks from known datums can be easily completed with cobots and smart vision sensors. Pick and place into a known fixture or position allows integration of such solutions in complex automation production processes.

Unstructured Random Bin Picking

Bin picking from a random box of parts can now be accomplished with cobots and 3D vision. A point cloud of known data, identifying individually pickable parts is fed to the robot allowing parts which would have previously required a human picker to now to picked and placed into the next process.

Robots with machine vision will continue to dominate the foreseeable needs for automation of production in medical device manufacturing. With the drive for ever greater flexibility and the need to reduce manpower and increase reliability, this area of automation will continue to be a focus for the medical devices and pharmaceutical industries.

Why the Human Machine Interface (HMI) really does matter for vision systems

Control systems are essential to the operation of any factory. They control how inputs from various sources interact to produce outputs, and they maintain the balance of those interactions so that everything runs smoothly. The best control systems can almost appear magical; with a few adjustments here and there, you can change the output of an entire production line without ever stopping. This is just as true for the vision inspection process and machinery.

The human machine interface (HMI) in a quality control vision system is important to provide feedback to production, monitor quality at speed and provide easy to see statistics and information. The software interface provides the operator with all information they need during production, guiding them through the process and providing instructions when needed. It also gives them access to a wide array of tools for adjusting cameras or other settings on the fly, as well as useful data such as machine performance reports.

If a product has been rejected by the inspection machine it may be some time before an operator or supervisor can review the data. If the machine is fully autonomous and communicates directly with the factory information system the data might be automatically sent to the factory servers or cloud for later recall – this is standard practice in most modern production facilities. But the inspection machine HMI can also provide an immediate ability to recall the vision image data, detailed information on the quality reject criteria and can be used to monitor shift statistics. It’s important that the HMI is clearly designed, with ergonomics and ease-of-use for the shop floor operator as the main driver. For vision systems and machine vision technology to be adopted you need the buy-in from operators, the maintenance team and line supervisors.

The layout of the operator interface is important to give immediate data and statistical information to the production team. It is important to have an interface that can be easily read from a distance, and displays the necessary information in a single screen. During high-speed inspection operations (such as medical device and pharmaceutical inspection operations) it is not possible to see every product inspected, that’s why a neatly designed vision system display, showing the last failed image, key data and statistical process control (SPC) information provides a ready interface for the operator to drill down on process specifics which may be affecting the quality of the product.

It’s clear why the HMI in quality control vision systems are so crucial to production operations. They help operators see important manufacturing inspection data when necessary, recommend adjustments on the fly, monitor production in real-time and provide useful data about performance all at once.

Top 6 medical device manufacturing defects that a vision system must reject

What does every medical device manufacturer crave? Well, the delivery of the perfect part to their pharmaceutical customer, 100% of the time. One of the major stumbling blocks to that perfect score and getting a Parts Per Million (PPM) rate down to zero are the scratches, cracks and inclusions which can appear (almost randomly) in injection moulded parts. Most of the time, the body in question is a syringe, vial, pen delivery, pipette or injectable product which is transparent or opaque in nature, which means the crack, inclusion, or scratch is even more apparent to the end customer. Here we drill down on the top six defects you can expect to see in your moulded medical device and how vision systems are used to automatically find and reject the failure before it goes out of the factory door.

1. Shorts, flash and incomplete junctions.

Some of the failures are within the tube surface and are due to a moulding fault in production. For example, incomplete injections in mouldings create a noticeable short shot in the plastic ends of the product. The forming of junctions at the bottom end of the tube creates a deformation that must be analysed and rejected. Flash is characterised as additional material which creates an out of tolerance part.

2. Scratches and weld lines

These can be present on the main body, thread area or top shaft. They often have a slight depth to them and can be evident from some angles and less so from others. These could also be confused with weld lines which can run down the shaft or body of a syringe product, but this is also a defect that is not acceptable in production.

3. Cracks

Cracks in a medical device can have severe consequences to the patient and consumer; this could allow the pharmaceutical product to leak from the device, change the dosage or provide an unclean environment for the drug delivery device. Cracks could be in the main body or sometimes in the thread area, or around the sprue.

4. Bubbles, Black Spots and Foreign Materials

Bubbles and black spots are inclusions and foreign material, which are not acceptable on any product, but on a drug delivery device that is opaque or clear in nature, they stand out a lot! These sort of particulates are typically introduced through the moulding process and need to be automatically rejected. Often, the cosmetic nature for these sorts of inclusions is more the issue than the device’s functional ability based on the reject.

5. Sink marks, depressions and distortions

Sink marks, pits, and depressions can cause distortion in the components, thus putting the device out of tolerance or off-specification from the drawing. These again are caused by the moulding process and should be automatically inspected out from the batch.

6. Chips

Chips on the device have a similar appearance to short shots but could be caused on exit from the moulding or via physical damage through movement and storage. Chips on the body can cause out of tolerance parts and potential failure of the device in use.

But how does this automatic inspection work for all the above faults?

Well, a combination of optics, lighting and filters is the trick to identifying all the defects in medical plastic products. This combined with the ability to rotate the product (if it’s cylindrical in nature) or move it in front of many camera stations. Some of the critical lighting techniques used for the automated surface inspection of medical devices are:

Absorbing – the backlight is used to create contrasts of particulates, bubbles and cosmetic defects.
Reflecting – Illumination on-axis to the products creates reflections of fragments, oils and crystallisation.
Scattering – Low angle lighting highlights defects such as cracks and glass fragments.
Polarised – Polarised light highlights fibres and impurities.

These, combined with the use of telecentric optics (an optic with no magnification or perspective distortion), allows the product to be inspected to the extremities, i.e. all the way to the top and to the bottom. Thus, the whole medical device body can be examined in one shot.

100% automated inspection has come a long way in medical device and pharmaceutical manufacturing. Utilising a precision vision system for production is now a prerequisite for all medical device manufacturers.

How to run a Gauge R & R study for machine vision

When you’re installing a vision system for a measuring task, don’t be caught out with the provider simply stating that the pixel calibration task is completed by dividing the number of pixels by the measurement value. This does provide a calibrated constant, but it’s not the whole story. There is so much more to precision gauging using machine vision. Measurement Systems Analysis (MSA) and in particular Gauge R&R studies are tests used to determine the accuracy of measurements. They are the de-facto standard in manufacturing quality control and metrology, and especially relevant for machine vision-based checking. Repeated measurements are used to determine variation and bias. Analysis of the measurement results may allow individual components of variation to be quantified. In MSA accuracy is considered to be the combination of trueness (bias) and precision (variation).

The three most crucial requirements of any vision gauging solution are repeatability, accuracy and precision. The variance of repeated measurements, or repeatability, refers to how near the measurements are to each other. The accuracy of the measurements refers to how close they are to the genuine value. The number of digits that can be read from the measurement gauge is known as precision.

A Gauge R & R (also known as Gage R & R) repeatability and reproducibility is defined as the process used to evaluate a gauging instrument’s accuracy by ensuring its measurements are repeatable and reproducible. The process includes taking a series of measurements to certify that the output is the same value as the input, and that the same measurements are obtained under the same operating conditions over a set duration.

The “repeatability” aspect of the GR&R technique is defined as the variation in measurement obtained:

– With one vision measurement system
– When used several times by the same operator
– When measuring an identical characteristic on the same part

The “reproducibility” aspect of the GR&R technique is the variation in the average of measurements made by different operators:

– Who are using the same vision inspection system
– When measuring the identical characteristic on the same part

Operator variation, or reproducibility, is estimated by determining the overall average for each appraiser and then finding the range by subtracting the smallest operator average from the largest.

So, it’s important that vision system measurements are checked against all of these aspects, so a bias test, process capability and gauge validation. The overall study should be performed as per MSA Reference Manual 2010 fourth edition.

More information on IVS gauging and measuring can be found here.