Vision system eliminates count deviations, inspects vials
Quality, accountability and product reconciliation are production mandates at Eli Lilly and Company (Indianapolis, IN), which is why the leading pharmaceutical manufacturer has automated its mechanical vial counting process. The company enlisted Clarke Engineering Services Inc. (CES), an Indianapolis, IN-based systems integrator that specializes in vision system integration, commissioning, installation, and validation for the pharmaceutical and diagnostic industries. Together, Eli Lilly and CES co-developed a groundbreaking tray inspection system using a color visual inspection process powered by In-Sight® machine vision systems from Cognex. This quality inspection system, dubbed TIS-3000, is reportedly the first fully-integrated tray inspection system for the pharmaceutical industry that combines machine vision with automatic tray handling, to enable one hundred percent accountability of products.
While Eli Lilly’s mechanical counter provided only vial count, TIS-3000 uses machine vision to perform a visual inspection that detects fallen vials, identifies missing flip-seals, and verifies cap color on each vial. As a result, the tray inspection system improves product quality, in addition to increasing vial-counting efficiency for one hundred percent product reconciliation.
By counting vials in trays at the front end of a packaging line, TIS-3000 helps Eli Lilly eliminate count-related deviations and resultant rework as specific job lots are run. This saves money, time, and resources required for costly reworks. “The TIS-3000 establishes the initial count on our packaging line,” explained Rob Stapleton, Operations Team Leader at Eli Lilly. “If the numbers do not reconcile at the end of the line, we have to open up the entire job and find out why a discrepancy exists. This can be very costly and time consuming considering packaging order sizes range up to 360,000 vials.”
Eli Lilly and Company also noted that the existing mechanical counters that were being utilized were prone to jams and that operators could easily miss-handle vials around the counters resulting in a count discrepancy. This made identification of root causes for mechanical counter errors difficult to identify. A major benefit to the new tray inspection system is that root causes to count deviations are easier to identify, correct, and explain.
First a feasibility study:
In selecting a vision system, two primary criteria were used, according to CES President Chris Clarke. “First, the system chosen would need powerful vision tools to meet Eli Lilly’s demand for accuracy and repeatability to comply with ever more stringent regulatory requirements,” Clarke explained. “Second, it had to be very simple to use, so operators with no vision experience could easily modify the inspection on-the-fly during product changeovers.”
Several criteria were needed for the system to be successful in meeting Eli Lilly’s requirements. The vision system would have to establish a tray count, look for vials that have fallen over, check that flip seals are in place, and inspect for vials with the wrong color caps, called strangers. After evaluating a number of systems, CES selected the In-Sight color machine vision system from Cognex. The system combines a DSP-based vision-processing unit with a 640 x 480, 8-bit progressive scan digital vision camera in a compact housing with built in communications, and a library of vision software tools.
“We tested several systems to prove which could do the job, then selected the vision system based on the results,” said Clarke. “Cognex tools were more robust for this application than the other vision tools we evaluated, and the powerful pre-processing filters helped us achieve the desired inspection results. The Cognex vision tools provided the most robust solution.” The image pre-processing filter tools that other systems offered were not extensive enough to accomplish the inspection goals for the vial trays used by Eli Lilly. The total count of each tray was not repeatable and therefore not reliable. Filter tools could not easily be referenced together in order to obtain a refined pre-processed image. Also, to obtain real-time counts of a tray being inspected, additional front-end programming would be required within the other systems evaluated.
Due to Cognex’s unique spreadsheet interface the user can also use one filter to look through another filter resulting in a further pre-processed image for blob counting. The software is user friendly to navigate through and making changes to the program, or adding a new product.
System set up:
To set up the application, CES used the In-Sight vision spreadsheet interface. The process involved selecting vision tools and parameters from drop-down menus. The vision spreadsheet then automatically generated tool results into worksheet cells, which were then linked together to set up the inspection.
CES used In-Sight’s blob analysis tools to count the number of vials and determine cap shape, and color histogram tools to verify cap color in order to identify strangers. Additionally, the vision system was trained to distinguish specific colors using hue, saturation, and intensity.
The TIS-3000 features Allen-Bradley controls. A SLC-5/04 PLC handles sequential control and logic. Communications are handled via hardwired discrete I/O (Input and Output), serial data transfer and Data-Highway Plus. A PanelView 1000 mounted on a pivoting arm serves as the main operator interface for program selection, fault display and maintenance functions.
At Eli Lilly’s request, the TIS 3000 also incorporates an industrial PC from Advantech (Cincinnati, OH). Mounted within the inspection hood, the industrial PC runs a custom Visual Basic front-end interface developed by CES.
The result is a flexible vial counting and tray inspection system that can be run by a single operator with minimal machine vision knowledge, and handles a wide range of tray sizes with minimal mechanical changeover. The TIS-3000 can run Lilly’s largest tray configuration at over three trays per minute which equates to over one thousand vials per minute. The system speed capabilities are well within the packaging line speed requirements of 320 vials per minute.
Easy-to-use tray inspection
During the inspection process, the operator first selects the program and inputs the data required for a given product run and then loads a tray onto the load station. The TIS 3000 uses three counting programs; each designed to handle a different type of count. The most common is a fixed tray count where the operator selects tray style, the specific count for that tray type, and cap color. “Trays that don’t meet these test criteria, would be rejected,” explained Clarke.
Operators can also choose a manual-input program scripted for counting new tray styles that aren’t yet programmed into the system. For example, if the manufacturer comes out with a new style tray designed to hold 100 vials, the operator programs the system to handle this count by selecting manual count, and entering 100. Once again, if the count isn’t met, the tray is rejected.
The third type of count handles random counts, such as when the operator must establish counts for various tray styles each containing a different number of vials. In this instance, the system inspects as usual, but accepts all counts, while recording individual tray counts as well as the total count of all of the trays in the production run. After selecting the count type, and entering the necessary data for a given product run, the operator places a tray onto the load station.
An indexing conveyor belt with cleats carries the tray full of capped vials into the inspection area. Inside the hood, linear high-frequency fluorescent lamps, complemented by a custom designed dome, provide cloudy day illumination to enhance the features of interest. A single In-Sight vision sensor, suspended in the hood above the tray, captures the image of the tray and vials.
After applying filters to pre-process the image, an on-board microprocessor analyzes the image, compares it with stored data that comprises a standard, and makes the pass-fail decision, which is output to the main system controller.
If the tray contains the correct number of vials, it passes the inspection area, and is indexed to the unload station. A second PanelView 1000 mounted on the back end of the machine downstream of the unload station displays the actual tray count data. The operator verifies this count with the expected total, which is printed on a tag attached to the tray. Once verified, an operator lifts the passed tray off and places it onto an accumulator table for further processing.
If the tray fails, a servo-controlled reject arm transfers it to the reject conveyor, unless cap of the wrong color is identified. “If a stranger is detected, the system locks up and requires supervisor intervention in order for the tray to proceed to the reject station,” said Clarke. “This is an important feature in order to error-proof the process to prevent the wrong medication from being packaged into a lot.”
Trays that fail due to a wrong count or downed vial error are automatically cycled back to the load station operator on the reject conveyor. As the tray returns, the operator can see the cause of failure on the pivot-arm display. For example, it will say either down vials or incorrect tray count so the operator can correct the problem and send it through again. “Defective trays do not make it past the inspection station if it doesn’t meet the test criteria,” Clarke said.
The first systems that have been installed are being used for accountability purposes on packaging lines to reconcile incoming lot counts with final order counts. Additional applications for the TIS-3000 include 100% accountability of vials, syringes, cartridges, and ampoules for controlled substance manufacturers that are required by law to account for any product diversion during the manufacturing and packaging processes. The TIS-3000 concept can be utilized to establish initial lot counts and monitor lot counts throughout the controlled substance manufacturing/packaging process steps. The TIS-3000 enables 100% accountability of all product throughout the process. Where manufacturers have color coded product vials the system can be utilized for Nude Vial (Bright Stock) Identification.
Clarke Engineering Services, Inc. has also developed a smaller footprint Tray Inspection System (TIS-2000) that is approximately half the footprint of TIS-3000 but does not incorporate a reject conveyor system. This system can be used for slower speed lines and off-line inspection activities. In addition, an on-line printer to print and apply labels to product trays is available as an option.
A comprehensive validation package including engineering, functional and computer system validation documentation was developed for Eli Lilly and Company. The TIS-3000 has been tested and validated down to unit level testing and has successfully passed Eli Lilly’s stringent validation requirements. Two TIS-3000 systems have been installed and validated at Eli Lilly’s Indianapolis, Indiana manufacturing facility.
A significant improvement in vial accountability on both lines where the TIS-3000 systems have been implemented has been demonstrated and measured in the parenteral packaging area. The tray inspection systems have also eliminated the need for in-process “count checks” required as part of the mechanical counting process resulting in less documentation requirements and improved line efficiencies.