Báo cáo hóa học: " Design of a Vision-Based Sensor for Autonomous Pig House Cleaning"
lượt xem 4
download
Tuyển tập báo cáo các nghiên cứu khoa học quốc tế ngành hóa học dành cho các bạn yêu hóa học tham khảo đề tài: Design of a Vision-Based Sensor for Autonomous Pig House Cleaning
Bình luận(0) Đăng nhập để gửi bình luận!
Nội dung Text: Báo cáo hóa học: " Design of a Vision-Based Sensor for Autonomous Pig House Cleaning"
- EURASIP Journal on Applied Signal Processing 2005:13, 2005–2017 c 2005 Ian Braithwaite et al. Design of a Vision-Based Sensor for Autonomous Pig House Cleaning Ian Braithwaite Automation Section, Ørsted·DTU, Technical University of Denmark, 2800 Kongens Lyngby, Denmark Email: idb@oersted.dtu.dk Mogens Blanke Automation Section, Ørsted·DTU, Technical University of Denmark, 2800 Kongens Lyngby, Denmark Email: mb@oersted.dtu.dk Guo-Qiang Zhang Danish Institute of Agricultural Sciences, Research Centre Bygholm, P.O. Box 536, 8700 Horsens, Denmark Email: guoqiang.zhang@agrsci.dk Jens Michael Carstensen Informatics and Mathematical Modelling, Technical University of Denmark, 2800 Kongens Lyngby, Denmark Email: jmc@imm.dtu.dk Received 24 February 2004; Revised 15 February 2005 Current pig house cleaning procedures are hazardous to the health of farm workers, and yet necessary if the spread of disease between batches of animals is to be satisfactorily controlled. Autonomous cleaning using robot technology offers salient benefits. This paper addresses the feasibility of designing a vision-based system to locate dirty areas and subsequently direct a cleaning robot to remove dirt. Novel results include the characterisation of the spectral properties of real surfaces and dirt in a pig house and the design of illumination to obtain discrimination of clean from dirty areas with a low probability of misclassification. A Bayesian discriminator is shown to be efficient in this context and implementation of a prototype tool demonstrates the feasibility of designing a low-cost vision-based sensor for autonomous cleaning. Keywords and phrases: computer vision, spectral characterisation, Jeffreys-Matusita, Bayesian discriminant analysis, robotic cleaning. 1. INTRODUCTION faces. The essence of experience is that the key to success of autonomous cleaning will be a sensing system that can deter- Manual cleaning of livestock buildings, using high-pressure mine where cleaning effort should be concentrated. cleaning technology, is a tedious and health-threatening task In the cleaning problem, the first issue to be solved is to conducted by human labour in intensive livestock produc- define the level of cleanness required. A subsequent issue is tion. To remove this health hazard, recent development has to develop methods to discriminate effectively between re- resulted in cleaning robots, some of which have been com- mains to be removed and the background. The possible ways mercialised. The working principle of these robots is to fol- to categorise remains include chemical and optical composi- low a pattern initially taught to them by the operator. Expe- tion and shape, which differ from those of the building mate- rience shows that cleaning effectiveness is poor and utilisa- rials. Sensing remains with specific characteristics could call tion of detergent and water is higher than for manual clean- for vision or ultrasound or laser-based principles. ing. Furthermore, robot cleaning entails subsequent manual In this paper, we discuss the spectral properties of cleaning as robots are unable to detect the cleanness of sur- residues of organic materials, mainly manure, and report how these alone can be used for discrimination from build- ing materials used in livestock buildings, even though change This is an open access article distributed under the Creative Commons in optical properties caused by wear of the background is Attribution License, which permits unrestricted use, distribution, and a major issue. Other properties, such as surface texture, are reproduction in any medium, provided the original work is properly cited.
- 2006 EURASIP Journal on Applied Signal Processing not considered here as it is believed that spectral properties the cleaning level, and pass on the obtained data to the alone, if shown sufficient, will provide a robust method for cleaning robot. The level of embedded functionality of the cleanness measurement. The paper shows that a multispec- cleaning sensor would be high enough to let it be used for tral vision technique shows good promise to solve the dis- autonomous operation with a cleaning robot. Several com- crimination problem and shows how feature extraction from plex features could be considered for a final system, including clean and nonclean surfaces can effectively be used to char- correlation between area segments, texture properties, clean- acterise, with high probability, areas of a surface that need ing history, records of cleanness conditions, and records from intensive cleaning. The paper shows how statistical classifi- past cycles of cleaning. cation methods can be adopted to this application and used However, the fundamental issue is whether a clean con- with promising results. The remainder of this paper is organ- dition can reliably be discriminated from the dirty one for ised as follows. individual segments of size 2 mm in diameter. Section 2 formulates more precisely the problem ad- dressed in this work. Section 3 presents the model of com- 2.1. Clean surfaces puter vision used in the design. Section 4 describes the pro- The requirement for cleaning in livestock buildings is that all cedure used to characterise the material surfaces relevant visible dirt be removed. This means to remove visible organic for the sensor. Section 5 provides insights into the possibil- contaminants, in our case down to a size specified above. ities presented by multidimensional classification, and mea- This would enable subsequent chemical disinfection of the sures available to analyse multidimensional data. Section 6 surfaces, should this be desired. The higher levels of clean- presents the design of the sensor and the discrimination pro- ing, where contamination by microorganisms needs to be re- cedure used. Section 7 describes a prototype used to demon- moved, is not within the scope of this paper. strate the design, and Section 8 presents the conclusions of the work. 2.2. Properties of contamination Contamination of housing equipment in pig buildings is ex- 2. REQUIREMENTS pected mainly to consist of bedding and faecal materials, but it is likely also to contain traces of skin and feed. It was there- The requirements for cleanness detection and to the context fore important that the contaminants in pig houses were in which an intelligent sensor should operate have been con- thoroughly characterised in view of alternative sensor prin- sidered in detail by Strøm et al. [1]. Pig houses consist of pig ciples at an early stage of the project. According to Møller et pens: the floor and wall areas to clean in each pig pen are typ- ically 26 m2 . Wall surfaces could be steel or plastic, and floor al. [2], pig manure is characterised as an average content of dry matter 242 g/l with content of volatile solids 838 g/kg dry areas are made of concrete. matter. Thus, more than 80% of manure is organic material The main purpose of the cleaning process in livestock and less than 20% is inorganic. The contamination on hous- buildings is to reduce the risk of infection between batches ing surfaces in pig houses may be slightly different from fresh of animals. Experience from real-life pig production shows manure characterised in this reference. that a visually clean house reduces infection pressure to an The chemical composition of the organic contents of the acceptable level. The absence of visible contamination with residues left on the surfaces in the pig environment indicate dirt and/or manure may thus be considered to be a proper there should be a possibility to discriminate residues from definition for remote, online detection of cleanness of hous- building materials based on spectral properties. ing equipment after washing. A complication is that parts of buildings are made of Batch production with cleaning between batches is used inorganic materials, in particular concrete and steel, while in growing and finishing pig houses, and most of the cleaning time and effort is spent in the finishing houses. The project other areas are made of plastic coated elements or wood. Figure 1 shows an inhabited compartment before cleaning. therefore focuses on cleaning in finishing pig houses. A fundamental requirement is to be able to distinguish 2.3. Functional requirements between clean and nonclean conditions of a surface. The probability of misclassification is a crucial parameter to con- The requirements for the sensor were defined in terms of sider, noting that the required highest misclassification rates what the combined sensor and robot system must achieve. for clean and dirty surfaces are not equal. A clean surface be- The cleanness sensor will be able autonomously to ing characterised as unclean has the consequence of adding (i) identify selected surface types in finishing pig houses; an additional round of cleaning of an area. Misclassifying a (ii) distinguish a nonclean from a clean surface in a raster dirty area as clean would leave specks of dirt uncleaned. size of less than 2 mm; Noting that the remains of manure are inhomogeneous (iii) specify position and area of nonclean parts of the sur- and unevenly distributed, and that specks can be expected face; anywhere over the surface, it is required that any area seg- (iv) function reliably in the environment of the empty pig ment of 2 mm in diameter can be reliably characterised as house during cleaning; clean or dirty. (v) define surfaces to clean, specify cleaning parameters, In a final implementation, the sensor is envisaged to and report results. move around in the pig pen with the robot arm, record
- A Vision-Based Sensor for Autonomous Pig House Cleaning 2007 0.7 0.6 0.5 Quantum efficiency 0.4 0.3 0.2 0.1 0 Figure 1: A pig pen with solid and slatted floor in a finishing pig 300 400 500 600 700 800 900 1000 1100 building. Wavelength/nm Figure 2: CCD quantum efficiency η(λ). Based on the requirements, the first issue to investigate is the fundamental question of which properties of clean and dirty surfaces would best inform on cleanness of the individ- The sensor designer has some control over the subject il- ual segments. lumination. Since different illumination spectra can reveal different features in the viewed object, a number of im- 3. VISION MODEL ages can be captured under different lighting conditions. So, the sensor operates with a number of channels, where each The basic elements in a vision-based measurement system channel is defined by the spectra of the corresponding light consist of three components: illumination, subject, and cam- source. Thus, a sensor pixel measurement consists of a vector era. The complexity of the system is to a large degree de- of readings, one for each channel: termined by the extent to which the relative placement of the three can be controlled and constrained. Particularly in x = I1 · · · I p . (1) the case of illumination, control is often critical—external (stray) light can be a seriously limiting factor for system ef- fectiveness. Then, all the image pixels can be assembled into an image The light collected by a camera lens is determined by array, giving a single camera measurement of the form the colour of the viewed object, the spectra of the illuminat- x11 · · · xw1 ing light sources, and the relative geometries of these to the . X = . ... . , camera. The influence of geometry on measured colour can . . (2) . be seen clearly with reflective materials: when viewed such x1h · · · xwh that a light source is directly reflected on a surface, the re- flected light is almost entirely determined by the light source where w and h are the width and height of the image in pixels, rather than by the reflecting material. Since this behaviour respectively. makes measurement of surface colour impossible, measure- ment systems attempt to avoid this geometry. In the mea- surement system described in Section 4, for example, sur- 4. PROPERTIES OF CLEAN AND DIRTY SURFACES faces are illuminated at 45 ◦ and observed at 90 ◦ relative to How to catch the cleanness information on the different the surface plane. types of surfaces is the major issue in the design of an intel- If direct reflections can be avoided, the light reaching a ligent sensor. One of the hypotheses is that the reflectance of viewer can be considered to be independent of the measure- building materials and contamination differs in the visual or ment system geometry. In this case, the spectrum of the light the near-infrared wavelength range. To validate the hypothe- entering the camera is simply a function of the spectra of ses, the optical properties of surfaces to be cleaned and the the light sources and the colour of the material being viewed. different types of dirt found in finishing pig units were inves- Uniform (homogeneous) materials have single colour, while tigated in the VIS-NIR optical range. If this method is val- composite (inhomogeneous) materials have varying colours idated, an ordinary CCD camera with defined light sources across a surface. could be used for cleanness detection. The camera itself has a wavelength-dependent sensitivity Measurements were conducted on materials of varying across a range of wavelengths. For a CCD camera, this sensi- ages and conditions taken from pig houses. The selected tivity covers the visible wavelengths, and some of the adjoin- housing elements of inventory materials were placed in a ing ultraviolet and near-infrared bands. A typical sensitiv- pig production building for 4 to 5 weeks in real pig pens, ity curve is shown in Figure 2; sensitivities vary considerably and then removed for study. In all, four surface materials with CCD type and coating treatments.
- 2008 EURASIP Journal on Applied Signal Processing were considered: concrete, plastic, wood, and metal, in each 5. CLASSIFICATION of four conditions: clean and dry, clean and wet, dry with Classification of a surface part as clean or not clean has ob- dirt, and wet with dirt. In each measurement condition, spec- vious consequences in the application. For the clean surface, tral data were sampled at 20 randomly determined positions, misclassification as not clean will call for another round of in order to avoid the effect caused by the nonhomogeneous cleaning by the robot. Misclassification of the unclean sur- properties of the measured surfaces. At each measurement face as clean has consequences for the quality of the cleaning position, spectral outputs were sampled 5 times with an in- result. Subsequent manual inspection and cleaning should be tegration time of 2 seconds for each. The average of the five avoided if possible, but it could be acceptable for a user to spectra was recorded for analysis. have certain areas characterised as uncertain, as long as these The spectrometer used in the characterisation was a do not constitute a large part of the total area to clean. diffraction grating spectrometer,1 incorporating a 2048- With a clear relation between cost and the probability of element CCD (charge-coupled device) detector. The spectral misclassification, methods to extract features of the observed range 400 nm–1100 nm was covered using a 10 µm slit, giving spectra would be preferred, that could minimise the proba- a spectral resolution of 1.4 nm. bility of misclassification, constrained by the complexity of The light source used was a Tungsten-Krypton lamp2 the vision system. with a colour temperature of 2800 K, suitable for the In our context, the number of frequency bands to be VIS/NIR applications from 350 nm to 1700 nm. analysed has an impact on both the cost of computer-vision A Y-type armoured fibre optic reflectance probe, with equipment and the time needed to capture and analyse the six illuminating fibres around one read fibre (400 µm) spec- pictures taken. ified for VIS/NIR, was used to connect the light source, the Several classical methods exist that provide measures of spectrometer, and the measurement objective aided with a misclassification and separability between the clean and un- probe holder. The probe head was maintained at 45 ◦ to clean cases. the measured surface and a distance of 7 mm from the sur- Let a frequency band in the spectrum be chosen for anal- face. ysis. A set of measurements on a surface will have a distribu- tion of reflectivity due to differences in the clean surface itself The primary results on the reflectance of the different and due to the uneven distribution of residues to be cleaned. materials under the measurement conditions are showed in Let the distribution function for an ensemble of measure- Figures 3a, 3b, 3c, and 3d. The curves show the data from the ments given the case is θi (clean or not clean) be 20 random measurement points under each measurement set-up. f r |θi = fi (r ). (3) The spectral analysis system has its highest sensitivity in the range 500 to 700 nm, but the entire range from 400 to A convenient first assumption for analytical discussion is that 1000 nm is useful to provide reflection as function of wave- the population has a multivariate normal distribution of di- length. The results suggest that it will be able to make a sta- mension n: tistically significant discrimination and hence classify areas that are visually clean. A scenario with multispectral analysis, fi (r ) = N µi , Σi combined with appropriate illumination or camera filters, is (4) 1 1 therefore being pursued. T −1 Σi =√ n exp − r − µi r − µi . 2π det Σi 2 Concrete, the predominant material used for floors, is an inorganic material. The manure and the contami- With two such distributions for the clean and unclean nants may thus be spotted as organic materials on an inor- cases, respectively, the problem is to determine, from one ganic background. Under wet conditions, a significant dif- or more measurements of reflectance, whether a given mea- ference may be seen in wavelengths of 750–1000 nm; see surement represents a clean or an unclean area. This is il- Figure 3a. However, the clear differences for steel (stain- lustrated in Figure 4 where a measurement would be charac- less) are shown in 400–500 and 950–1000 nm; see Figure 3b. terised as representing a clean area when reflectance is below For the brown wood plate, the reflectance under dirty-wet the borderline between the two distributions. The figure also conditions was higher in the wavelengths of 500–700 nm shows the probability for misclassification. In signal process- and lower in 750–1000 nm compared with clean-wet con- ing, measurement noise is often the prime source of misclas- ditions. For the green plastic plate, the reflectance un- sification and repeated measurements would be used to in- der dirty-wet conditions was lower for wavelengths lower crease the likelihood that the right decision is made. than 550 nm and higher than 800 nm, but higher in wave- When noise is the prime nuisance, optimisation based on lengths between 600–700 nm compared with clean-wet con- the Kullbak divergence is often used, for example, in a sym- ditions. metric version of the divergence [3]: f j (r ) f i (r ) 1 EPP2000-VIS, StellarNet Inc., USA. Di j = E ln |θi + E ln |θ j . (5) f j (r ) f i (r ) 2 SL1, StellarNet Inc., USA.
- A Vision-Based Sensor for Autonomous Pig House Cleaning 2009 0.2 0.2 0.18 0.18 0.16 0.16 0.14 0.14 0.12 0.12 Reflection Reflection 0.1 0.1 0.08 0.08 0.06 0.06 0.04 0.04 0.02 0.02 0 0 400 500 600 700 800 900 1000 400 500 600 700 800 900 1000 Wavelength/nm Wavelength/nm (a) (b) 0.2 0.2 0.18 0.18 0.16 0.16 0.14 0.14 0.12 0.12 Reflection Reflection 0.1 0.1 0.08 0.08 0.06 0.06 0.04 0.04 0.02 0.02 0 0 400 500 600 700 800 900 1000 400 500 600 700 800 900 1000 Wavelength/nm Wavelength/nm (c) (d) Figure 3: Spectral data histograms for four selected materials: (a) concrete slab, (b) steel slab, (c) brown wood plate, (d) green plastic plate. Blue points indicate readings from clean surfaces, yellow/red points indicate readings from dirty surfaces. Darker colours correspond to a higher density of measurement data. The problem at hand is peculiar, however, as the reason should cope with unequal dispersion matrices of distribu- for uncertainty in data is not the measurement noise. As seen tions for the clean and dirty cases. from the data plotted in Figures 3a to 3b, considerable vari- The classical Mahalanobis measure [4] is a distance mea- ance is caused by inhomogeneities in reflection from the in- sure between normal multidimensional distributions with equal dispersion. The Jeffreys-Matusita distance (JM dis- dividual area segments of the clean surface. Simultaneously, there is even larger variation in the reflection caused by inho- tance) [5] is a generalisation that applies to distributions with mogeneous composition of the remains of dirt. One area may nonidentical dispersion and it does not require distributions comprise specks with tiny remains of straw and solid parti- to be normal. Further, it is possible to derive lower and up- cles, others are covered by a thin layer of uniform contam- per bounds for misclassification. Distance measures are dis- ination. Taking a number of identical pictures of each area cussed in [3, 6, 7]. The Jeffreys-Matusita distance between distributions fi element does not enhance information about the area and does not reduce the likelihood of misclassification. and f j is For this reason, it would be advantageous to find a tech- nique of analysis by which the probability of misclassifica- 1/ 2 2 tion Pe is minimised for each single area segment treated Ji j = fi (r ) − f j (r ) dr . (6) individually. As apparent from Figures 3a to 3d, the method Ω
- 2010 EURASIP Journal on Applied Signal Processing 3 the probability of misclassification Pe is bounded by Probability density 2.5 2 12 Correct ρ ≤ Pe ≤ ρi j (12) 1.5 8 ij Correct 1 0.5 which is equivalent to Misclassi. Misclassi. 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0 1 2 1 1 12 Reflectance at 650 nm 1 − Ji2j ≤ Pe ≤ 1 − J. (13) 2 ij 8 2 Clean √ Dirty The lower bound of Pe is reached when Ji j = 2 [3, 6]. Salient features for the present context are the applica- 3 bility of the JM measure to arbitrary distributions and the Probability density 2.5 bounds for misclassification, although the analytic result of 2 Correct (13) is only an approximation when the distributions are not 1.5 Correct normal. 1 0.5 Misclassi. Misclassi. 5.1. Multispectral techniques to reduce probability 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0 1 of misclassification Reflectance at 790 nm The JM distance measure will express the quality of a chosen technique to distinguish between the clean and nonclean sur- Clean face cases. The complete spectra presented in Section 4 were Dirty obtained using a dedicated spectrometer. For commonplace Figure 4: Distributions obtained at two distinct wavelengths for computer-vision techniques to be applied, we need to limit clean and dirty cases. the number of frequencies analysed. Figure 4 illustrates the theoretic distribution of re- flectance for the clean and nonclean cases if monochromatic The JM distance measure has been found to be useful in light is used. The result is two normal distributions with a a range of fields, from mineral classification [8] to identifica- large overlap. If the discrimination was based on a single tion of fungal colonies [9]. wavelength, the area would correspond to misclassification The JM distance is Ji j = 0 when the distributions fi (r ) given the surface was clean: and f j (r ) are equal. The JM distance takes the value Ji j = √ 2 when the two distributions are totally separated. Bhat- 1 tachatyya introduced the coefficient Pe θd |πc = p r |πc dr , (14) rsep ρi j = fi (r ) f j (r )dr (7) where rsep is shown as the dashed line in Figure 4. Misclassi- Ω fication that the dirty surface was declared clean is shown: and used the negative logarithm, αi j , of this quantity: rsep Pe θc |πd = p r |πd dr. αi j = − ln ρi j . (15) (8) 0 These have the obvious relation to the JM distance Using monochromatic or narrowband light at a single wave- length was found to give a rather large overlap between dis- Ji2j = 2 1 − ρi j = 2 1 − e−αi j (9) tributions and hence a large probability of misclassification for all wavelengths when the surface is made of concrete. Kailath [3] showed that when the two distributions are nor- If two monochromatic measurements are used, the dis- mal multivariate of degree n: fi (r ) = N (µi , Σi ) and f j (r ) = tribution is two-dimensional, as illustrated in Figure 5. The N (µ j , Σ j ), then two dimensions correspond to observing the reflectance of the surface at two different wavelength bands. The x-axis 1 T µi − µ j Σ−1 µi − µ j αi j = is reflectance obtained for band λ1 , the y -axis is that ob- ij 8 tained for band λ2 . While misclassification is large if either of (10) det Σi j 1 the two wavelength bands are used individually, combining + ln , det Σi det Σ j 2 the two observations results in the two-dimensional proba- bility distribution functions shown in Figure 5. The curves shown in Figure 4 are the projections of the same distribu- where tions shown in Figure 5. It is indeed possible to discrimi- 1 nate using a separation in the x- y plane of reflectance as the Σi j = Σi + Σ j ; (11) 2 boundary for classification.
- A Vision-Based Sensor for Autonomous Pig House Cleaning 2011 1000 20 10 5 15 5 20 18 900 14 16 12 5 Probability density 5 20 14 1015 15 10 800 Wavelength 2 (nm) 20 8 12 10 10 6 700 10 10 5 4 5 5 8 2 5 600 0 5 6 1 5 0 0.8 5 0.2 4 0.6 Refl 0.4 ecta 500 nce 0.4 m 90 n 0.6 at 7 0.2 2 at 6 0.8 nce 50 n ecta 0 1 5 Refl m 5 5 400 0 400 500 600 700 800 900 1000 Wavelength 1 (nm) Figure 5: The two-dimensional normal distributions of clean and dirty areas are quite well separated and a low probability of misclas- Figure 7: Upper bound of classification error as a function of wave- sification is achieved. length pairs. The case is a concrete floor after 3-month use of the pen. Measurements were taken in a dry condition. 1000 20 5 10 15 5 18 1.2 10 20 900 16 5 15 1 10 20 15 14 800 Wavelength 2 (nm) 5 15 2 5 0.8 10 12 20 10 20 Jeffreys-Matusita distance 15 10 1000 2 5 700 1.5 10 20 15 20 5 5 0.6 900 10 5 10 5 20 8 1 2 800 nm 15 15 600 0.4 10 10 5 6 gth/ 0.5 20 10 15 700 5 20 elen 4 600 2 0.2 0 500 10 Wav 15 1000 900 500 2 800 700 5 0 20 5 400 600 15 10 Waveleng 500 400 0 th/nm 400 400 500 600 700 800 900 1000 Wavelength 1 (nm) Figure 6: Jeffreys-Matusita distance computed for a range of can- Figure 8: Upper bound of classification error. The case is a 15-year- didate wavelength pairs. old concrete floor after 3-month contamination in the pen. Mea- surements were taken in a dry condition. With this approach being promising, the formal ap- It was first investigated which pair of two frequency proach to design a sensor system should start with choosing bands would be optimal based on minimising the probabil- two wavelengths, or more, that together give a desired low ity of misclassification. This is equivalent to maximising the level of misclassification. Second, a method is needed to find JM distance. Figure 6 shows the JM distance measure using the discriminator function to be used. measurements from a pig pen that was emptied after three months of use. Data for concrete in dry condition is shown 5.2. Best choice based on pig pen data in Figure 7. The upper bound for misclassification proba- bility using two narrowbands around wavelengths 780 nm Comprehensive measurement data were obtained from a pig pen where different materials had been in use. The pen had (infrared) and 650 nm (orange) will have a misclassification probability below 2%. Data for a fifteen-year-old part of the been in use for three months when emptied. Part of the floor concrete floor in the same pen are shown in Figure 8. Classi- was made of newly finished concrete, other parts were 15 years old. Samples of the different materials were collected fication can be obtained from multispectral data with a mis- classification likelihood below 2%. After cleaning, the floor for analysis.
- 2012 EURASIP Journal on Applied Signal Processing surements presented in Section 4 form the basis of the dis- 1000 20 20 20 10 10 criminator. 18 15 The spectrographic characteristics of pig house sur- 900 15 5 16 faces provide much more data than is expected from the 10 camera-based sensor. The camera sensor provides a small 20 14 800 Wavelength 2 (nm) 20 5 10 number of channels, each described by the pair of fil- 5 20 15 12 15 ter/illumination characteristics for the respective channel. In 15 20 10 700 15 10 10 10 the design presented here, each channel is restricted to a nar- 5 15 20 rowband of frequencies, produced, for example, by a number 8 20 20 5 10 of powerful light-emitting diodes. The sensor collects im- 15 600 20 15 6 ages corresponding to each channel in turn, by sequencing 5 10 through the light sources for each channel. By synchronising 4 500 the light sources to the camera’s frame rate, a set of images 10 15 2 corresponding to a single two-dimensional measurement can 20 15 20 400 0 be acquired in a relatively short time. 400 500 600 700 800 900 1000 Wavelength 1 (nm) 6.1. Wavelength selection From the spectra presented in Section 4, a number of wave- Figure 9: Upper bound of classification error as a function of wave- lengths must be selected such that classification into clean length pairs. The case is a concrete floor after 3-month use of the and dirty classes for pig house surface materials is possi- pen. Measurements were taken in a wet condition. ble. While some materials may be amenable to classification based on a single light colour (consider, for example, the will be wet, and it is thus essential that discrimination can green plastic in Figure 3d at around 490 nm or 620 nm), con- also be achieved in a wet condition. Figure 9 shows the up- crete, the most important material, is clearly not. However, as per bound for misclassification for the new floor in wet con- illustrated previously, multidimensional analysis can reveal dition. The available ranges for illumination wavelength have structure that is sufficient to discriminate classes. now narrowed but good classification is still possible. Selecting the wavelengths 800 nm and 650 nm, for exam- The analysis of large sets of experimental pig pen data ple, the surface characteristics can be illustrated in the scatter have thus enabled a selection of illumination parameters to plot shown in Figure 10a. Four populations are shown, cor- make good classification possible using multispectral dis- responding to wet concrete and steel, in both clean and dirty crimination. conditions. As can be seen, with these wavelengths, clean and dirty concrete are well separated, whereas clean and dirty 5.3. Possibilities for improvement steel share a significant overlap. Selecting 650 nm and 450 nm In order to reduce the misclassification likelihood even fur- on the other hand, as shown in Figure 10b, separates clean ther, it may be necessary to consider additional features to from dirty steel, but fails for concrete. Using all three wave- aid discrimination. Textural features, for example, could def- lengths, a discriminator can be constructed to handle both initely add relevant information under highly controlled cir- material types. cumstances. However, variability in the image acquisition 6.2. Bayesian discrimination geometry—scale and orientation—for a practical scenario will contribute a significant amount of noise in textural fea- From the training data and the choice of wavelengths de- tures. In addition to this, it has been seen that the texture termined as just described, a number of populations πi are itself shows a high variation, and that there is a combined modelled as normally distributed, multidimensional random effect of this variation and the abovementioned variation in variables: image acquisition geometry. This could develop into a highly complex texture study, which could be interesting, but which πi ←→ N µi , Σi . (16) will almost certainly end up with a system less robust and general than a purely spectral system. The aim of this paper Using the experimental data, xi j , for each class i, estimates of has been to check the potential of such a purely spectral sys- the mean vectors and variance-covariance matrices for each tem. population can be derived: 1 µi = 6. SENSOR DESIGN xi j , n j The sensor is pixel based: each pixel is classified either as (17) 1 Σi = “clean” or “dirty.” The classification procedure is the Bayesian xi j − µi xi j − µi . n−1 discriminant analysis, which assigns pixel measurements to j classes from which they are most likely to have been pro- duced. The method relies on adequate knowledge of the A Bayesian classifier assigns new measurements to the statistics of the possible classifications, in this work the mea- population to which the measurement is most likely to be
- A Vision-Based Sensor for Autonomous Pig House Cleaning 2013 12 16 11 14 10 12 Reflection at 800 nm (%) Reflection at 650 nm (%) 9 10 8 8 7 6 6 5 4 4 2 3 2 0 2 3 4 5 6 7 8 9 10 11 12 0 2 4 6 8 10 12 14 Reflection at 650 nm (%) Reflection at 450 nm (%) Clean steel Clean concrete Clean steel Clean concrete Dirty steel Dirty concrete Dirty steel Dirty concrete (a) (b) Figure 10: Scatter plots showing characteristics of concrete and steel in both clean and dirty states. Each plot shows two selected wavelengths, with each point corresponding to a single spectral measurement. Ellipses show one and two standard deviations for each material state. (a) Possible discriminator for concrete but not for steel—800 versus 650 nm. (b) Possible discriminator for steel but not for concrete—650 versus 450 nm. associated. Bayes’ rule states that the probability that a mea- rule is achieved by applying a monotonic transformation to surement x is associated with the class πi is given by (19), so that pi 1 x − µi Σ−1 x − µi Si (x) = log − P πi P x | πi (21) i P πi | x = 2 . (18) det Σi P (x ) is minimised instead. Since this function is quadratic in x, it A Bayesian classifier assigns a measurement to the class for is known as a quadratic discriminant function. which the probability calculated in (18) is the greatest. The term P (x | πi ) is simply the probability distribution function for class i, which can be written as fi (x), and P (πi ) is the prior 7. A PROTOTYPE SENSOR probability of class i, which can written as pi . The denomi- In order to demonstrate the proposed vision-based classi- nator P (x) is independent of the class, and is therefore irrel- fication method, a prototype sensor has been constructed. evant with respect to maximising (18) across classes. Thus, a First, a colour digital video camera was used with white light Bayesian classifier chooses the class maximising in a seminatural environment. Subsequently, a monochrome camera with controlled multispectral lighting was used in a Si = fi (x) pi , real pig house setting. (19) 7.1. Seminatural environment where Si is being referred to as a discriminant value or score. A prototype vision-based classifier was constructed us- The term pi is the a priori probability of a measurement cor- ing readily available components—a desktop computer and responding to the population πi , and reflects knowledge of colour digital video camera. The prototype demonstrates the environment prior to the measurement being taken. multivariable statistical classification using two of the three In the case of multidimensional normal classes, the prob- colour channels available in a normal colour image. ability density is given by In an initial training phase, statistical spectral properties of each type of object to be recognised are measured. This is done by selecting areas of images corresponding to each ob- 1 1 −1 e−(1/2)(x−µi ) Σi (x−µi ) . f i (x ) = √ n (20) ject type, and calculating mean and variance measures of the 2π det Σi pixels in these areas. Based on these statistics, subsequent im- ages are automatically classified, pixel by pixel, to the learned object classes. Each pixel is allocated to the most likely object Substituting this into (19) gives the discriminant value for class, based on the learned statistical properties of each class. the normally distributed case. In practise, the same decision
- 2014 EURASIP Journal on Applied Signal Processing White Class reference boundary Pixel mask Live video pixel scatter plot Live video window Class variance/ covariance ellipse Classification Pixel statistics window window Figure 11: Screen shot of prototype classifier. Top left: original camera image. Right: colour map—each dot corresponds to a pixel in the original image, increasing red intensity to the right and increasing blue intensity down. Bottom left: result of classification—each image pixel is now coloured to show its classification. The red area shows what will be cleaned. Ellipses in the right-hand window show trained class definitions. A continuous lighting calibration is carried out by ensur- ing that one corner of the image has a known colour. The im- portance of this calibration underlines the necessity of con- 40 trolled lighting for the actual sensor. 30 Figure 11 shows a screen shot of the prototype in ac- 20 tion. Live video from the camera is displayed in the top-left 10 window, two-dimensional colour statistics are shown in the right-hand window, and final pixel classifications are shown 0 0 in the bottom-left window. The display is updated in real 0.2 time, with a frame rate of 5 Hz. Re 0.4 A pixel mask is displayed in the video window, indicated fle cta 0.6 with a circular, dashed black line. The user is free to re- 0 nc 0.2 ea size and move the mask, in order to select regions of inter- 0.4 0.8 t5 0.6 90 t 850 nm est. The large square window displays two types of informa- 0.8 nce a 1 nm Reflecta 1 tion: statistics about the selected live video pixels and def- initions of previously learnt object classes. Video pixels are Figure 12: Histogram of clean and dirty pixel measurements from displayed as a scatter plot of white pixels with mean and vari- two concrete samples: the red surface shows the distribution of dirty ance drawn on top in black. The background shows the de- pixel measurements, while the blue surface shows the distribution fined object classes as strongly coloured ellipses, lighter ver- of clean pixel measurements. sions of the same colours show the regions the Bayesian clas- sifier associates with each class. Finally, the classification win- dow shows, for each pixel in the original image, which class the distributions obtained from the first image pair, which the pixel is assigned to by the Bayesian classifier. The same can be compared with the theoretical case presented earlier colours are used as in the statistics window. and illustrated in Figure 5. The images obtained and the resulting classifications are 7.2. Pig house environment shown in Figure 13. A simple median filter has also been ap- plied to the final classification to remove some of the classi- In order to test the sensor design under realistic condi- fication “noise,” particularly in the clean case. Misclassifica- tions, images of concrete surfaces from a working pig house tion in the clean case is expensive in the application, since it were collected using a monochrome camera with controlled, results in wasted cleaning effort. Classification accuracy, both strobe lighting. Two wavelengths were selected, one in the with and without the filter, is presented in Table 1. The error visible range—590 nm and one from the infrared one— rates are in good agreement with the earlier analyses. 850 nm. Two images of each of two materials, clean and Several approaches to deal with the misclassification are dirty concrete, were obtained. Each individual image con- possible. Firstly, further postprocessing of the classified im- tains 400 by 400 pixels, providing 160 000 individual mea- age, perhaps considering textural properties, could be used surements. to identify misclassified areas. For areas falsely classified as In order to test the method, a classifier was trained us- dirty, this would be very helpful. Small areas falsely classi- ing the first clean/dirty image pair and tested using the sec- fied as clean are probably less problematic—repeated clean- ond image pair. Subsequently the pairs were swapped and the ing close by will in any case be required. process repeated—twofold cross-validation. Figure 12 shows
- A Vision-Based Sensor for Autonomous Pig House Cleaning 2015 Figure 13: Results of image classifications for two clean and dirty concrete samples. The first two columns show the raw images captured with light with wavelengths 590 nm and 850 nm, respectively. The third column shows the pixel-by-pixel classification, where blue pixels have been classified as clean and red as dirty. The fourth column shows the result of applying a five-by-five median filter to the classified image. The first two rows correspond to clean 1 and clean 2, respectively, whereas the third and fourth rows correspond to dirty 1 and dirty 2, respectively. 7.3. Algorithm Repeat (1) Read new image from camera: The program operation can be summarised more formally as follows. x11 X = . .. Given (24) . (1) A circular image mask with centre (mx , m y ) and radius xhw mr . (2) A list of classes, ck = (µk , Σk , pk , γk ), with mean vec- (2) Update live image display with X . (3) Compute mean µm and variance-covariance Σm of the tors, variance-covariance matrices, prior probabilities and display colours, respectively. set of mask pixels given by Initialisation 2 2 ≤ m2 . xm = xi j | i − m y + j − mx (25) r (1) Draw the scatter plot background showing class dis- crimination boundaries—calculate for each combina- (4) Update mask statistics in scatter display by drawing the tion of class cq and possible pixel measurement x = ellipse defined by µm and Σm . ( I1 I2 ) , (5) Update scatter plot. Compute pq e−(1/2)(x−µq ) Σq −1 (x−µq ) Sqx = sαβ = xi j = I1 I2 | I1 = α ∧ I2 = β , (22) . (26) det Σq sαβ is the number of pixels measuring (αβ) . For sαβ > and choose colour γk for (I1 , I2 ) such that 0, plot a scatter plot pixel (α, β) with intensity increas- ing with s. Skx = max Sqx . (6) Calculate, for each pixel xi j and class cq , (23) q pq (2) Draw the class ellipses defined by µk and Σk using e−(1/2)(x−µq ) Σq −1 (x−µq ) Sqx = . (27) det Σq colour γk .
- 2016 EURASIP Journal on Applied Signal Processing Design of a prototype algorithm to discriminate clean Table 1: Classification results for test images, with and without a median filter. from dirty areas of a surface based on a Bayesian design of the multivariate classifier was demonstrated using a low-cost Classification With filter Sample camera and standard computer interface. The results demon- Clean Dirty Clean Dirty strate the potential for designing a reliable and inexpensive Clean 0.996 0.004 0.999 0.001 vision system for autonomous pig house cleaning. Dirty 0.044 0.956 0.025 0.975 ACKNOWLEDGMENTS Update class display with The support of this research from the Sustainable Technol- y11 ogy in Agriculture programme is gratefully acknowledged. Y = , .. The programme is funded jointly by the Danish Ministry (28) . of Science, Technology and Innovation and the Ministry of yhw Food Agriculture and Fisheries under Grant number 2053- 01-0021. choosing yi j = γk such that Skx = max Sqx . (29) REFERENCES q [1] J. S. Strøm, G.-Q. Zhang, P. Kai, M. Lyngbye, I. Braithwaite, The computational requirements of the algorithm are and S. Arrøe, “Intelligent sensor for autonomous cleaning of modest, and the scenario envisioned for the cleaning robot pig houses—system in context,” DJF Internal Rep. 182, Danish does not require real-time performance. The prototype de- Institute of Agricultural Sciences, Tjele, Denmark, 2003. scribed here can process multiple frames per second with un- [2] H. B. Møller, S. G. Sommer, and B. K. Ahring, “Methane pro- optimised desktop computer hardware, which is far beyond ductivity of manure, straw and solid fractions of manure,” that which is actually required for a cleaning robot. Biomass and Bioenergy, vol. 26, no. 5, pp. 485–495, 2004. A partially offline procedure would also be acceptable, [3] T. Kailath, “The divergence and Bhattacharyya distance mea- since it is expected that the cleaning and inspection phases sures in signal selection,” IEEE Transaction on Communication Technology, vol. 15, no. 1, pp. 52–60, 1967. will be staggered. The practical problems associated with [4] B. K. Ersbøll and K. Conradsen, An Introduction to Statis- protecting the sensor during cleaning, and capturing a suit- tics, vol. 2, Informatics and Mathematical Modelling, Technical able image immediately after cleaning, mean that some time University of Denmark, Kongens Lyngby, Denmark, 2003. will elapse between a picture being taken and cleaning re- [5] K. Matusita, “A distance and related statistics in multivariate suming. analysis,” in Multivariate Analysis, P. R. Krishnaiah, Ed., pp. 187–200, Academic Press, New York, NY, USA, 1966. 8. CONCLUSIONS [6] B. K. Nielsen, Transformations and classifications of remotely sensed data, Ph.D. thesis, Informatics and Mathematical Mod- Based on strong incentives to replace manual labour in the elling (IMM), Technical University of Denmark, Kongens Lyn- cleaning of pig houses by a fully autonomous robot system, gby, Denmark, 1989. this paper analysed the key factors in the design of a vision- [7] J. Lin, “Divergence measures based on the Shannon entropy,” based sensor system to classify surfaces as clean or dirty. IEEE Trans. Inform. Theory, vol. 37, no. 1, pp. 145–151, 1991. Spectral properties of floor and walls in pig houses were char- [8] H. Flesche, A. A. Nielsen, and R. Larsen, “Supervised mineral classification with semiautomatic training and validation set acterised using spectrometer measurements on clean and generation in scanning electron microscope energy dispersive dirty surfaces. The raw spectral data showed a fairly high spectroscopy image of thin sections,” Mathematical Geology, variation in reflection from dirty surfaces and direct dis- vol. 32, no. 3, pp. 337–366, 2000. crimination was found to be impossible for surfaces made [9] M. E. Hansen and J. M. Carstensen, “Density based retrieval of concrete using any single wavelength in the visible or near- from high-similarity image databases,” Pattern Recognition, infrared ranges, 400–1100 nm, which were covered by the ex- vol. 37, no. 11, pp. 2155–2164, 2004. perimental study. The key problem was shown to be varia- tion in reflection caused by the differences in surface mate- rial, and contamination, as a function of position, whereas Ian Braithwaite was born in London, Eng- land, in 1965. He received his B.A. (hon- fluctuation over time caused by measurement noise was mi- ors) degree in control engineering from the nor. Obtaining a low probability of misclassification for an University of Cambridge in 1988 and, af- observation of an element of the surface was therefore es- ter moving to Denmark in 1993, received sential for the success of the concept. The paper employed an M.S. degree from the Technical Univer- the Jeffreys-Matusita distance measure and bounds on the sity of Denmark in 1999. Mr. Braithwaite misclassification probability to assess different scenarios for is currently employed as a Research Assis- sensor design. An optimal choice of wavelengths for the il- tant at the Technical University of Den- lumination was calculated using actual field data and it was mark, within the research project “Intelli- demonstrated that a probability below 2% was obtainable gent Sensor for Autonomous Cleaning.” His other research interests with just two different illumination wavelengths. include real-time systems and embedded software development.
- A Vision-Based Sensor for Autonomous Pig House Cleaning 2017 Mogens Blanke is a Professor of automation at the Technical University of Denmark. He graduated from the Technical University of Denmark (DTU) in 1974, was with DTU in 1974–1975, at the European Space Agency in The Netherlands in 1975–1976, and again with DTU from 1976 till 1985. He received the Ph.D. degree from DTU in 1982. He was in the marine automation industry from 1985 to 1990 when he obtained the chair as a Professor in control engineering at Aalborg University, Den- mark. He started his present position at DTU in 2000. His primary fields of interest are fault-tolerant control and diagnosis, modeling, and system identification. Application areas include autonomous robots, spacecraft, and surface ships. He has applied his research re- sults for autonomous attitude control for the Danish Ørsted satel- lite, for autopilot, platform, and maneuvering control, for mer- chant and naval vessels, and for adaptive diesel engine control. He has published results in about 150 articles and conference papers and in a recent textbook. He is an active member of IFAC, the In- ternational Federation of Automatic Control, where he served as a Technical Committee Chair for several years, and was a coordi- nating Chair and Member of the IFAC Council. He is also a Senior Member of the IEEE. Guo-Qiang Zhang received the B.S. degree in mechanical engineering from Jilin Uni- versity of Technology, Changchun, China, in 1982, and the Ph.D. degree in agricultural engineering from the Royal Veterinary and Agricultural University, Copenhagen, Den- mark, in 1989. He is currently a Senior Sci- entist at the Danish Institute of Agricultural Sciences and an Adjunct Professor in China Agricultural University. His research inter- ests include indoor environmental and climatic control for live- stock buildings, process modeling, and experimental fluid dynam- ics. Dr. Zhang has over 70 international publications in the areas of agricultural and biosystems engineering. In his research career, he also evolved in many research activities on automation, remote sensing, and information technology in agricultural and biosys- tems process. He is a Member of the Danish Society of Engineers, Danish Society of Agricultural Engineering, and European Agricul- tural Engineering. Jens Michael Carstensen received the M.S. degree in engineering from the Technical University of Denmark, Lyngby, in 1988, and the Ph.D. degree in statistical image analysis from the Technical University of Denmark in 1992. He joined the Technical University of Denmark faculty in 1992 as an Assistant Research Professor and is cur- rently an Associate Professor. Since 1999, he has been the Chief Technical Officer and founder of Videometer A/S, a vision technology R&D company. His current research interests include statistical methods for image analysis, Markov random fields, texture analysis, shape and appear- ance models, and industrial and biotechnological applications.
CÓ THỂ BẠN MUỐN DOWNLOAD
-
Báo cáo hóa học: " Designed hybrid TPR peptide targeting Hsp90 as a novel anticancer agent"
12 p | 62 | 6
-
Báo cáo hóa học: "Design of Experiments for Performance Evaluation and Parameter Tuning of a Road Image Processing Chain"
10 p | 41 | 5
-
Báo cáo hóa học: " Research Article Nonparametric Interference Suppression Using Cyclic Wiener Filtering: Pulse Shape Design and Performance Evaluation"
14 p | 62 | 5
-
Báo cáo hóa học: " Research Article Design and Performance Evaluation of an Adaptive Resource Management Framework for Distributed Real-Time and Embedded Systems"
20 p | 56 | 5
-
Báo cáo hóa học: " Research Article Design Flow Instantiation for Run-Time Reconfigurable Systems: A Case Study"
9 p | 55 | 4
-
Báo cáo hóa học: " Design and Implementation of MC-CDMA Systems for Future Wireless Networks"
12 p | 44 | 4
-
Báo cáo hóa học: " Design and Realization of a New Signal Security System for Multimedia Data Transmission"
15 p | 51 | 4
-
Báo cáo hóa học: " Design of a Low-Power VLSI Macrocell for Nonlinear Adaptive Video Noise Reduction"
10 p | 45 | 4
-
Báo cáo hóa học: " Design of Nonrecursive Digital Filters Using the Ultraspherical Window Function"
13 p | 43 | 4
-
Báo cáo hóa học: " Research Article Implementing a WLAN Video Terminal Using UML and Fully Automated Design Flow"
15 p | 49 | 4
-
Báo cáo hóa học: " Research Article On Energy-Efficient Hierarchical Cross-Layer Design: Joint Power Control and Routing for Ad Hoc Networks"
9 p | 53 | 4
-
Báo cáo hóa học: " Design and Characterization of a 5.2 GHz/2.4 GHz ΣΔ Fractional-N Frequency Synthesizer for Low-Phase Noise Performance"
11 p | 53 | 4
-
Báo cáo hóa học: " Research Article A Design Framework for Scalar Feedback in MIMO Broadcast Channels"
12 p | 42 | 4
-
Báo cáo hóa học: " Design of Low-Cost FPGA Hardware for Real-time ICA-Based Blind Source Separation Algorithm"
11 p | 33 | 3
-
Báo cáo hóa học: " Design of Ultraspherical Window Functions with Prescribed Spectral Characteristics"
13 p | 31 | 3
-
Báo cáo hóa học: " Design of Farthest-Point Masks for Image Halftoning"
13 p | 35 | 3
-
Báo cáo hóa học: " Designing Tone Reservation PAR Reduction"
14 p | 18 | 3
-
Báo cáo hóa học: " Design and Implementation of a DSP-Based MIMO System Prototype for Real-Time Demonstration and Indoor Channel Measurements"
13 p | 65 | 2
Chịu trách nhiệm nội dung:
Nguyễn Công Hà - Giám đốc Công ty TNHH TÀI LIỆU TRỰC TUYẾN VI NA
LIÊN HỆ
Địa chỉ: P402, 54A Nơ Trang Long, Phường 14, Q.Bình Thạnh, TP.HCM
Hotline: 093 303 0098
Email: support@tailieu.vn