Process and system for identifying the gram type of a bacterium

11408819 · 2022-08-09

Assignee

Inventors

Cpc classification

International classification

Abstract

A detection of the Gram type of a bacterial strain includes: illumination, in the wavelength range 415 nm-440 nm, of at least one bacterium of said strain having a natural electromagnetic response in said range; acquisition, in the range 415 nm-440 nm, of a light intensity reflected by, or transmitted through, said illuminated bacterium; and determination of the Gram type of the bacterial strain as a function of the light intensity acquired in the range 415 nm-440 nm.

Claims

1. A process of imaging of a bacterial strain in a sample, comprising: illuminating at least one colony of the bacterial strain grown on an opaque nutritive medium with a light in a wavelength range of 415 nm-440 nm, to which the bacterial strain has a natural electromagnetic response; and measuring the intensity of the light that is reflected by, or transmitted through, the colony illuminated by the light.

2. The process as claimed in claim 1, further comprising: illuminating the colony with a second light in a wavelength range of 750 nm-800 nm, to which the bacterial strain has a natural electromagnetic response; and measuring the intensity of the second light that is reflected by, or transmitted through, the colony illuminated by the second light.

3. The process as claimed in claim 1, wherein the measured light that is reflected by, or transmitted through, the colony is in a wavelength of 420 nm.

4. The process as claimed in claim 1, wherein the opaque nutritive medium has a reflectance ρ of less than or equal to 10%.

5. The process as claimed in claim 1, wherein the opaque nutritive medium has a reflectance ρ of less than or equal to 5%.

6. The process as claimed in claim 1, further comprising: acquiring a hyperspectral or multispectral image of the colony; and determining the light intensity as the mean of at least one pixel of the image.

Description

BRIEF DESCRIPTION OF THE FIGURES

(1) The invention will be understood more clearly from reading the description which follows, given only by way of example, and provided in relation to the appended drawings, in which identical references denote identical or analogous elements, and in which

(2) FIG. 1 is a diagrammatic view of a system for predicting the Gram type according to the invention;

(3) FIG. 2 is a flowchart of a process for predicting the Gram type carried out by means of the system of FIG. 1;

(4) FIGS. 3A and 3B are plots illustrating spectra of reflectance of bacterial colonies having grown on a transparent medium;

(5) FIGS. 4A and 4B are plots illustrating spectra of reflectance of bacterial colonies having grown on an opaque medium;

(6) FIG. 5 is a plot illustrating the linear prediction model used for the prediction according to one variant of the invention;

(7) FIG. 6 is a plot illustrating the correlation obtained by a single-channel linear prediction model for the various acquisition wavelengths;

(8) FIG. 7 is a plot illustrating results of prediction of the Gram type by means of the single-channel linear prediction model;

(9) FIG. 8 illustrates a table of different variables of decisions that can be used for the prediction according to the invention;

(10) FIG. 9 is a plot illustrating results of prediction of the Gram type by means of a multi-channel linear prediction model;

(11) FIG. 10 is a plot illustrating the parameters of the multi-channel model as a function of the acquisition wavelengths;

(12) FIG. 11 is a plot illustrating the components of a prediction model based on an SVM classification as a function of the acquisition wavelengths;

(13) FIG. 12 is a plot illustrating the components of a prediction model based on learning of “fused Lasso” type as a function of the acquisition wavelengths; and

(14) FIGS. 13A and 13B are plots illustrating spectra of reflectance of bacterial colonies having grown on a TSA and an MH2 medium.

DETAILED DESCRIPTION OF THE INVENTION

(15) In the subsequent text, the notation A.sub.i,j relates to the element of the i.sup.th row and of the j.sup.th column of the matrix A.

(16) Referring to FIG. 1, a system 10 for detecting the Gram type of a bacterial strain according to a first embodiment comprises: a device 12 for acquisition of a hyperspectral image; and a data-processing computer unit 14 connected (e.g. by a wired or wireless link) to the device 12 for controlling it and for receiving and processing the images acquired by the device 12.

(17) The device 12, for example a hyperspectral imaging system of reference “Pika II” from the company Resonon, Mont. USA, comprises: a “hyperspectral” camera 18, consisting of a digital sensor comprising a network of elementary sensors, for example a digital sensor of CCD or CMOS type, sensitive in the wavelength range [λ.sub.min; λ.sub.max]=[400; 900] nanometers, and of a light-scattering element or of a spectrograph for selecting a wavelength to be acquired by the sensor; an objective 20 for focusing, on the digital sensor of the camera 18, the optical image of a Petri dish 22, of which it is desired to acquire a hyperspectral image; a front illumination 24, for example consisting of one or more allogenic lamps, e.g. 2 or 4 lamps, capable of emitting light in the range [λ.sub.min; λ.sub.max], for producing a uniform front illumination of the Petri dish 22. For example, the illuminations are white-light lamps; a back illumination 26, for example consisting of a white-light LED matrix, for producing a uniform back illumination of the Petri dish 22 in the range [λ.sub.min; λ.sub.max]; and a carriage 28 on which the Petri dish 22 sits and which allows the latter to pass in front of the objective 20 in order to obtain a whole image of the dish 22 by scanning.

(18) The device 12 is for example configured to acquire the image of a region of 90 millimeters by 90 millimeters with a sampling spacing of 160 micrometers (spatial resolution estimated at 300 micrometers) and with a spectral resolution of 1.7 nanometers over the range [λ.sub.min; λ.sub.max].

(19) The device 12 thus produces a digital image HSI of the light reflected by the Petri dish, having N rows and M columns, the Petri dish 22 preferably being open (i.e. without its lid):

(20) HSI ( λ ) = ( Rad 1 , 1 ( λ ) .Math. Rad 1 , j ( λ ) .Math. Rad 1 , M ( λ ) .Math. .Math. .Math. .Math. Rad i , 1 ( λ ) .Math. Rad i , j ( λ ) .Math. Rad i , M ( λ ) .Math. .Math. .Math. .Math. Rad N , 1 ( λ ) .Math. Rad N , j ( λ ) .Math. Rad N , M ( λ ) ) ( 1 )

(21) The radiance of a pixel, commonly referred to as “light intensity”, corresponds here to the amount of light incident on the surface of the corresponding elementary sensitive site of the sensor of the camera 18 during the exposure period, as is known per se from the digital photography field for example.

(22) Each pixel Rad.sub.i,j(λ) is composed of a digital spectrum of the radiance of the dish 22 corresponding to the pixel at various wavelengths [λ.sub.min; λ.sub.max], the digital spectrum being expressed according to the relationship:

(23) ( i , j ) ϵ [ 1 , N ] × [ 1 , M ] : Rad i , j ( λ ) = ( Rad i , j ( λ min ) Rad i , j ( λ min + Δλ ) Rad i , j ( λ min + 2 × Δλ ) .Math. Rad i , j ( λ min + p × Δλ ) .Math. Rad i , j ( λ max ) ) ( 2 )
wherein Δλ is the spectral resolution and p is a positive integer belonging to

(24) [ 0 , P = λ max - λ min Δλ ] .
The acquisition wavelengths λ.sub.minp×Δλ are usually denoted by the term “channels”.

(25) The data-processing unit 14 is for example a personal computer, a tablet, a smartphone, a server, a supercomputer, or more generally any system based on one or more microprocessor(s), in particular of DSP (digital signal processor) type, based on circuits of FPGA type, based on circuits mixing these technology types, etc., configured to perform processing of the HSI images produced by the acquisition device 12. The unit 14 has in particular all the memories (RAM, ROM, cache memory, main memory, etc.) for storing the images produced by the device 12, computing instructions for implementing the process according to the invention, parameters used for this implementation and for storing the results of the intermediate and final calculations, in particular the Gram type determined. The unit 14 optionally comprises a display screen for visualizing the final result of the determination of the Gram type. Although a single processing unit is described, the invention obviously applies to processing carried out by several processing units (e.g. a unit fitted within the camera 18 for carrying out preprocessing of HSI images and a unit external to the device 12 for carrying out the rest of the processing). Moreover, the system can be supplemented with an interface which makes it possible to enter, into the unit 14, data relating to the sample, in particular the type of culture medium used when the prediction depends on the medium, for example by means of a keyboard/mouse and of a scroll-down menu available to the operator, a barcode/QR code reader which reads a barcode/QR code present on the Petri dish and comprising information on the medium, etc.

(26) A process 30 for determining the Gram type of a bacterial strain by means of the system which has just been described is now detailed in relation to the flowchart of FIG. 2.

(27) In a first step 32 of the process, at least one colony of the bacterial strain is cultured at the surface of a nutritive medium, or “culture” medium, deposited in a Petri dish. The main objective of the nutritive medium is to cause said colony to grow, and optionally to reinforce the accuracy of the detection of the Gram type by limiting the light disruptions. Preferably with regard to a detection of the Gram type as a function of the reflected light intensity, the nutritive medium is opaque, thereby increasing the degree of accuracy of the detection. In particular, the opaque medium has a reflectance factor ρ of less than or equal to 10%, and preferably less than or equal to 5%, and even more preferentially less than or equal to 1%. For example, the culture medium is a “CPSO” agar (“CPS” agar comprising SiO.sub.2 in order to opacify the medium), a “Columbia” agar (or “CNA” agar), a Columbia agar with 5% sheep blood (or “COS” agar), a Man, Rogosa, Sharpe agar (“MRSM” agar), a chocolate agar (“PVX” agar), etc.

(28) Since this type of colony growth is conventional, it will not be subsequently described in greater detail. It can advantageously be performed manually by an operator, or automatically by means of an automated device for seeding in a manner known per se. Advantageously, the preparation is performed in such a way that the colonies, on the basis of which the prediction of the Gram type is carried out, are at a distance from one another and in such a way that the surface of a colony corresponds to a plurality of pixels in the image acquired by the device 12. This makes it possible in particular to facilitate their subsequent identification in the acquired image.

(29) Once the growth of the colonies has ended, the Petri dish is opened, placed on the carriage 28, the illuminations 24 and 26 are turned on and at least one hyperspectral image HSI of the Petri dish is acquired, at 34, by means of the acquisition device 12 and stored in the processing unit 14, which carries out computer processing to determine the Gram type of the strain on the basis of the acquired images.

(30) The unit 14 optionally begins, at 36, by preprocessing of the noise, consisting of one of the following processing operations or any combination of these processing operations: a. correction of the noise of the sensor of the camera 18, in particular its offset, its spatial noise, etc., in a manner known per se; b. processing of the parasitic, in particular specular, reflections forming “overly bright spots” in the HIS image, for example, thresholding performed in order to eliminate the pixels having values above a predetermined threshold, e.g. greater than or equal to two thirds of the maximum value that the pixels can have (i.e. greater than or equal to 170 in the case of pixels coded on 8 bits between 0 and 255); c. radiometric processing making it possible to reduce the variations in the images caused by outside fluctuations such as variations in illumination, by dividing the HSI image by a reflected light intensity at a wavelength which does not vary with the type of bacterium and the type of agar used; d. if several HSI images have been acquired, searching for and eliminating aberrant pixel values and/or averaging the acquired images.

(31) The processing continues, at 38, with the conversion of the preprocessed HSI image, which stores radiance values at different wavelengths, into a hyperspectral image of reflectance in order to extract the signal generated by the Petri dish alone. This makes it possible in particular to filter the fluctuations in the emission spectrum of the illumination sources 24, 26. For example, a correction of the “flat field correction” (FFC) type is carried out in order to obtain the reflectance, this also having the advantage of correcting the pixel-to-pixel sensor response dispersions (dispersion of the dark current, dispersion of the gain, etc.). This conversion is for example a correction according to the relationships:

(32) ( i , j ) ϵ [ 1 , N ] × [ 1 , M ] , p [ 0 , P ] : Υ i , j ( λ min + p × Δλ ) = Rad i , j ( λ min + p × Δλ ) - B i , j ( λ min + p × Δλ ) W i , j ( λ min + p × Δλ ) - B i , j ( λ min + p × Δλ ) × m ( λ min + p × Δλ ) ( 3 )

(33) wherein γ(λ) is a reflectance image, W is a hyperspectral image, stored in the unit 14, of a neutral object of high reflectance and illuminated by the illuminations 24, 26, for example a sheet of uniform reflectance greater than 90% (e.g. a “white” sheet or one with a chart of gray less than 10%), and B is a hyperspectral image, stored in the unit 14, of a neutral object of low reflectance, for example the image of a black cover blocking the objective 20 and m(λ.sub.min+p×Δλ)=1 or equal to the mean of the matrix W(λ.sub.min+p×Δλ)−B(λ.sub.min+p×Δλ).

(34) The unit 14 implements, at 40, following step 38 or in parallel to the preceding steps, an algorithm for identifying the colonies of bacteria, e.g. from the HSI(λ) or γ(λ) image. Any conventional shape and object recognition algorithm can be used to extract a zone of the image, called “Col(λ)”, corresponding to a colony. As a variant, this selection is carried out manually by an operator who selects this zone with the assistance of the display screen and of a pointing mechanism of the mouse type for example. By way of example, the zone Col(λ) consists of a list of the pixel coordinates belonging to the colony. The pixel zones selected are stored by the unit 14.

(35) The process continues, at 42, with the calculation of a decision variable X.sub.col(λ) as a function of the pixels of the image γ(λ) included in the zone Col(λ), this variable being that to which rules for prediction of the Gram type apply. In one variant, the decision variable X.sub.col(λ) is based solely on the image γ(λ). In other variants, the image γ(λ) is supplemented with or replaced by one or more other types of parameters calculated as a function of the reflectance image γ(λ), as will be subsequently described in greater detail. To this effect, processing of the reflectance image γ(λ) is thus optionally carried out. In particular, the unit 14 calculates one and/or the other of the following parameters: i. an absorbance image A(λ), for example by means of the Beer-Lambert transform (relationship (4)) or of the Kubelka-Munk transform (relationship (5)). Without being bound by theory, the inventors are of the opinion that Gram-negative bacteria differ from Gram-positive bacteria by a higher content of cytochromes which are absorbent in the range [415-440] nm, which makes it possible to characterize the conversion into absorbance image:

(36) ( i , j ) ϵ [ 1 , N ] × [ 1 , M ] , p [ 0 , P ] : A i , j ( λ min + p × Δλ ) = log ( 1 Υ i , j ( λ min + p × Δλ ) ) ( 4 ) A i , j ( λ min + p × Δλ ) = ( 1 - A i , j ( λ min + p × Δλ ) ) 2 2 × A i , j ( λ min + p × Δλ ) ( 5 ) ii. a reflectance image γ(λ) which has been normalized or an absorbance image A(λ) which has been normalized in order to reduce the variabilities due to optical effects. The unit carries out for example an area normalization, a unit vector normalization, a mean normalization, a maximum normalization, a range normalization or a peak normalization. These normalizations are described for example in the document by K. Varmuza and P. Filzmoser, “Introduction to Multivariate Statistical Analysis in Chemometrics”, CRC Press, 2009 and the document by A. Rinnan, F. van den Berg and S. Engelsen, “Review of the most common pre-processing techniques for near-infrared spectra”, Trends in Analytical Chemistry, vol. 28, No. 10, 2009; iii. the first derivative

(37) λ
or second derivative

(38) 2 λ 2
of the wavelength of the reflectance image γ(λ), which is normalized or non-normalized, or of the absorbance image A(λ), which is normalized or non-normalized, in order to accentuate the changes in behavior of the spectrum and to reduce the baselines. Preferably, a polynomial local filtering algorithm is used to reduce the error propagation, advantageously an algorithm as described in the document by A. Savitzky and M. J. E. Golay “Smoothing and differentiation of data by simplified least squares procedures”, Anal. Chem., vol. 36, pp. 1627-1639, 1964.

(39) The Gram type of each colony is then predicted at 44 by the unit 14 as a function of the variable X.sub.col(λ) by applying predefined decision rules, variants of which are described below. The predicted Gram type is stored in the unit 44 and/or displayed on a screen. This prediction is for example delivered to another microbial analysis instrument for a subsequent step of identifying/characterizing the colony.

(40) A. Single-Channel Approach

(41) In a first variant, a single-variable and single-channel approach is implemented by the unit 14. According to this approach, the decision variable X.sub.col(λ) comes down to a single value taken at a predefined wavelength λ.sub.c in the wavelength range 415 nm-440 nm, e.g. the (normalized or non-normalized) reflectance of the colony, or the (normalized or non-normalized) absorbance of the colony, or the first derivative or the second derivative thereof.

(42) In a first variant based on the reflectance, the unit 14 calculates, at 42, a spectrum of reflectance of the colony, e.g. a mean spectrum on the pixels of the colony according to the relationship:

(43) p [ 0 , P ] : Υ col ( λ min + p × Δλ ) = 1 N col × .Math. ( i , j ) Col ( λ ) Υ i , j ( λ min + p × Δλ ) ( 6 )
wherein N.sub.col is the number of pixels of the zone Col(λ). The decision variable X.sub.col(λ) is then equal to γ.sub.col(λ.sub.c). The unit 14 also calculates an error of measurement of the colony at the wavelength λ.sub.c, in particular the standard deviation, denoted “SD”, of all the values γ.sub.i,j(λ.sub.c) of the pixels belonging to the pixel zone Col(λ).

(44) At 44, the unit 44 then applies the following comparison rules to the value of the spectrum γ.sub.col(λ.sub.c):
if γ.sub.col(λ.sub.c)<γ.sub.GN.sub.max(λ.sub.c)+SD then the colony is Gram-negative  (7)
if γ.sub.col(λ.sub.c)>γ.sub.GP.sub.min(λ.sub.c)−SD then the colony is Gram-positive  (8)
if γ.sub.col(λ.sub.c)∈[γ.sub.GP.sub.min(λ.sub.c)−SD;γ.sub.GN.sub.max(λ.sub.c)+SD] then the Gram is undetermined  (9)
wherein γ.sub.GN.sub.max(λ.sub.c) and γ.sub.GP.sub.min(λ.sub.c) are two predefined thresholds, preferentially depending on the culture medium and stored in the unit 14. As a variant, the error of measurement SD can be chosen as zero.

(45) FIG. 3A illustrates mean spectra γ.sub.col(λ) of colonies having grown on a transparent medium (in this case CPSE), namely 10 Gram-negative (“GN”) strains (Escherichia coli (3 strains), Enterobacter cloacae, Proteus mirabilis, Providencia stuartii, Serratia marcescens, K pneumoniae, Morganella morganii, Citrobacter freundii) and 10 Gram-positive (“GP”) strains (Staphylococcus saprophyticus, Enterococcus faecalis (2 strains), Streptococcus agalactiae, Staphylococcus saprophyticus (2 strains), Streptococcus agalactiae, Enterococcus faecium, Streptococcus agalactiae). FIG. 3B is a view in greater detail of the range 415 nm-440 nm. FIGS. 4A and 4B illustrate the same spectra, but for strains having grown on an opaque medium (in this case CPSO, different than CPSE in that it contains SiO.sub.2 particles). As can be noted in these examples, at least in the range 415 nm-440 nm, the two Gram types differ from one another, the difference even being very marked for the opaque medium. In particular, in the range 415 nm-440 nm, it is observed that the spectra of the Gram-negative bacteria are below the spectra of the Gram-positive bacteria.

(46) The first variant was tested on 30 bacterial strains, cultured for each culture medium, among the most commonly involved in clinical infections, namely (number of the strains per species between parentheses): for Gram-negative: Escherichia coli (1), K. pneumoniae (1), Klebsiella oxytoca (1), Proteus mirabilis (1), Morganella morganii (1), Stenotrophomonas maltophilia (1), Acinetobacter baumanii (1), Enterobacter cloacae (1), Serratia marcescens (1), Citrobacter koseri (1), Enterobacter aerogenes (1), Moraxella catarrhalis (1), Hafnia alvei (1), Pseudomonas aeruginosa (1), Haemophilus influenzae (1); for Gram-positive: Corynebacterium jeikeium (1), Corynebacterium amycolatum (1), Enterococcus faecalis (1), Enterococcus faecium (1), Staphylococcus aureus (1), Staphylococcus epidermidis (1), Staphylococcus haemolyticus (1), Staphylococcus hominis (1), Streptococcus pneumoniae (1), Streptococcus agalactiae (1), Streptococcus pyogenes (1), Streptococcus anginosus (1), Streptococcus viridans (1).

(47) For each channel λ of the range 415 nm-440 nm, the minimum γ.sub.GP.sub.min(λ) of the spectra at the value λ of the Gram-positive strains is determined. Likewise, the maximum γ.sub.GN.sub.max(λ) of the spectra at the value λ of the Gram-negative strains is determined. The channel λ.sub.c retained for the culture medium is then that which maximizes the range [γ.sub.GP.sub.min(λ.sub.c); γ.sub.GN.sub.max(λ.sub.G)], and the predefined thresholds retained for the medium are, respectively, the values γ.sub.GP.sub.min(λ.sub.c) and γ.sub.GN.sub.max(λ.sub.c). For the CPSE medium, the Gram type of 19 strains of species identical to those listed above, including 10 Gram-positive strains and 9 Gram-positive strains, was predicted with a success rate close to 90%. For the CPSO medium, the success on these same strains is 100%.

(48) In a second variant based on the first derivative of the reflectance, the unit 14 calculates, at 42, a spectrum of reflectance of the colony, e.g. a mean spectrum γ.sub.col(λ) on the pixels of the colony as described above, then calculates the first derivative

(49) Υ col λ ( λ )
or me mean spectrum. The decision variable X.sub.col(λ) is then equal to

(50) 0 Υ col λ ( λ c ) .
At 44, the unit 14 applies a prediction model to said variable, for example a linear model which discriminates according to the relationships:

(51) Gram = b + a × Υ col λ ( λ c ) ( 10 )
if Gram<0.5 then the colony is Gram-negative  (11)
if Gram>0.5 then the colony is Gram-negative  (12)
wherein Gram is a score, and the parameters a and b are predefined coefficients stored in the unit 14 and preferentially dependent on the culture medium.

(52) The second variant was tested on 52 strains, 28 being Gram-negative and 24 being Gram-positive, belonging to 19 different species among the most commonly involved in clinical infections, namely (number of strains per species between parentheses): for Gram-negative: Escherichia coli (9), Klebsiella pneumoniae (3), Enterobacter cloacae (1), Serratia Marcescens (2), Citrobacter freundii (2), Proteus mirabilis (2), Providencia stuartii (1), Morganella morganii (2); for Gram-positive: Staphylococcus saprophyticus (9), Streptococcus agalactiae (7), Enterococcus faecium (3), Enterococcus faecalis (3), Staphylococcus aureus (1), Candida albicans (1).

(53) FIG. 5 illustrates the learning model for the relationship (10), the Gram-negative observed being assigned the value 0 and the Gram-positive observed being assigned the value 1. A linear regression between the observed and predicted Grams is carried out in order to determine the parameters a and b in a manner known per se. The model was learned for each wavelength of the range 400 nm-900 nm, and FIG. 6 illustrates the correlation coefficient as a function of the wavelength for a transparent culture medium (in this case CPSE). The maximum of this correlogram corresponds to the wavelength λ.sub.c and it is thus observed that the distinguishing character of the range 415 nm-440 nm is automatically found by linear regression, λ.sub.c, in fact being equal to 415.3 nanometers. FIG. 7 illustrates the predicted Gram as a function of the known Gram of the strains described above for the CPSE medium, the success rate being greater than 80%. The success rate for an opaque medium is, moreover, 100%. Several decision variables were tested, the table of FIG. 8 listing said variables. It appears that the first and second derivatives of the non-normalized reflectance are the variables which lead to the highest success rate, the first derivative being, however, preferred according to the principle of parsimony.

(54) B. Multi-Channel Approach

(55) According to this approach, several channels of the wavelength range 415 nm-440 nm are used, advantageously and optionally in combination with channels of the range 750 nm-800 nm. The decision variable is X.sub.col(λ) is for example the mean spectrum reflectance (normalized or non-normalized), of absorbance (normalized or non-normalized), the first derivative or the second derivative over the whole of the range 400 nm-900 nm.

(56) According to a first variant, and for the reasons mentioned above, the first derivative of the non-normalized reflectance is used. The unit 14 thus calculates, at 42, the first derivative

(57) Υ col ( λ ) λ
of the mean spectrum γ.sub.col(λ) over the range 400 nm-900 nm, as previously described, this derivative constituting the decision variable X.sub.col(λ). At 44, the unit 14 applies a prediction model to said variable, for example a linear model according to the relationships:

(58) Gram = b + .Math. p [ 0 , P ] a p × Υ col ( λ min + p × Δλ ) λ ( 13 )
if Gram<0.5 then the colony is Gram-negative  (14)
if Gram>0.5 then the colony is Gram-positive  (15)
wherein Gram is a score, and the parameters a.sub.p and b are predefined coefficients stored in the unit 14, and preferentially dependent on the culture medium. The prediction model for the relationship (13) is learned in a manner similar to that previously described, by linear regression. FIG. 9 illustrates the predicted Gram as a function of the observed Gram for the CPSE medium. For the latter, the degree of correlation is 95%. FIG. 10 illustrates the coefficients a.sub.p. It is noted here that the prediction model uses two principal wavelength ranges in the prediction model, namely the range 415 nm-440 nm, and more particularly the range 421 nm-436 nm, and the range 750 nm-800 nm. It is thus observed that the range 750 nm-800 nm also comprises distinguishing spectral information concerning the Gram type of the bacteria.

(59) According to a second variant, the decision variable is multi-channel and also multi-pixel, the spectral information of each pixel of the colony being used, and not averaged as previously described. As opposed to the term “mean”, the spectral information associated with a pixel is denoted under the term “individual”. In particular, the decision variable is X.sub.col(λ) consists of all of the individual spectra of reflectance (normalized or non-normalized), of absorbance (normalized or non-normalized), of their first derivatives or of their second derivatives, of the pixels of the zone Col(λ).

(60) For example, by considering the spectra of normalized reflectance {γ.sub.i,j(λ)}.sub.(i,j)∈Col(λ) (e.g. by dividing each individual spectrum by its Euclidean norm) over the range 400 nm-900 nm, the unit 14 implements, at 44, a prediction rule based on a two-class classification (i.e. Gram-positive, assigned for example to the positive values, and Gram-negative, assigned for example to the negative values) according to the relationships:
Gram=X.sub.col(λ).Math.{circumflex over (β)}  (16)
if Npos(Gram)>Nneg(Gram),then the colony is Gram-positive  (17)
if Npos(Gram)<Nneg(Gram),then the colony is Gram-negative  (18)
where Gram is a dimension vector equal to the number P of channels in the range 400 nm-900 nm, X.sub.col(λ) is in this case a matrix of which the rows are respectively equal to the normalized individual spectra of reflectance {γ.sub.i,j(λ)}.sub.(i,j)∈Col(λ), {circumflex over (β)} is a predefined column vector of dimension equal to P, Npos(Gram) is the number of components of the Gram vector which are positive and Nneg(Gram) is the number of components of the Gram vector which are negative. The parameters {circumflex over (β)} and β.sub.0, stored in the unit 14, are preferentially dependent on the culture medium. The prediction, based on a majority vote, can as a variant be made on the mean of the vector {circumflex over (β)}, Gram-negative being predicted if this mean is negative and Gram-positive being predicted if this mean is positive.

(61) In a first example, the prediction model for the relationship (14) is learnt on the basis of the pixels of the 52 strains previously described by resolving a problem of optimization of SVM (for Support Vector Machine) type according to the following relationships:

(62) β = arg min β , ξ m ( 1 2 .Math. β .Math. 2 + C .Math. m = 1 M ξ m ) ( 19 )
under the constraints:

(63) m [ 1 , M ] : ξ m 0 ( 21 ) m [ 1 , M ] : q m ( Υ m ( λ ) .Math. β ) 1 - ξ m .Math. β .Math. 2 + C .Math. m = 1 M ξ m ( 22 )
wherein N is the number of normalized individual spectra of reflectance, denoted γ.sub.m(λ), used for the learning, numbered from 1 to M, q.sub.m∈{−1,1} with q.sub.m=1 if the m.sup.th spectrum is associated with a Gram-positive bacterium, and q.sub.m=−1 if the m.sup.th spectrum is associated with a Gram-negative bacterium, and C is a predefined scalar.

(64) The model was validated on 10 Gram-negative strains (Escherichia coli (3 strains), Enterobacter cloacae, Proteus mirabilis, Providencia stuartii, Serratia marcescens, K pneumoniae, Morganella morganii, Citrobacter freundii) and 10 Gram-positive strains (Staphylococcus saprophyticus, Enterococcus faecalis (2 strains), Streptococcus agalactiae, Staphylococcus saprophyticus (2 strains), Streptococcus agalactiae, Enterococcus faecium, Streptococcus agalactiae). For an opaque medium (e.g. CPSO), the success rate is 100%. For a transparent medium (e.g. CPSE), the success rate is close to 94% for the Gram-negative bacteria and close to 98% for the Gram-positive bacteria. As can be noted in FIG. 10, which shows the components of the vector {circumflex over (β)} as a function of the channels, the prediction based on the SVM classification does not allow the emergence of a particular range of wavelengths.

(65) In a second example, the prediction model for the relationship (14), with has been learnt on the basis of the pixels of the 52 strains previously described by resolving a problem of optimization of “Fused Lasso” type according to the following relationship:

(66) β ^ = arg min β ( .Math. q m - Υ m ( λ ) .Math. 2 2 + μ 1 .Math. p = 1 P .Math. β p .Math. + μ 2 .Math. p = 1 P - 1 .Math. β p + 1 - β p .Math. ) ( 23 )
wherein μ.sub.1 and μ.sub.2 are two parameters which regulate, respectively, the parsimony of the model (i.e. the number of components of {circumflex over (β)} which are not zero) and the regularity of the model (i.e. the variability between two successive components of {circumflex over (β)}). As can be seen in FIG. 12, when the parsimony and the regularity are forced during the learning of {circumflex over (β)} (μ.sub.1=0.0001 and μ.sub.2=0.0025), the non-zero components of {circumflex over (β)} automatically retained are those of the ranges 415 nm-440 nm and 750 nm-800 nm. The success rate is 100% for an opaque medium (e.g. CPSO), and for a transparent medium (e.g. CPSE), the success rate is 92% for Gram-positive and 84% for Gram-negative.

(67) An acquisition by means of a hyperspectral camera in the range 400 nm-900 nm has been described. Obviously, the invention also applies to an acquisition carried out by a multispectral camera which acquires spectra in two separate ranges comprising, or consisting of, respectively, the ranges 415 nm-440 nm and 750 nm-800 nm. Likewise, the invention applies two distinct cameras configured for respectively acquiring these ranges.

(68) An acquisition in a broader range than the range 415 nm-440 nm has been described, in particular an acquisition in the range 750 nm-800 nm which comprises spectral information distinguishing the Gram type of the bacteria. As a variant, the acquisition is carried out only in the range 400 nm-500 nm, more preferentially in the range 415 nm-440 nm, and the prediction of the Gram type is carried out only as a function of the spectral information from this range. Obviously, the invention applies to any acquisition range comprising the range 415 nm-440 nm, combined with processing carried out only over this range for predicting the Gram type.

(69) Image acquisition, that is to say the acquisition of spatial and spectral information, has been described. Quite obviously, the invention also applies to the acquisition of solely spectral information, for example by means of microspectroscopy. For example, a colony may be localized beforehand by means of a standard imaging system or by an operator, and then a reflection or transmission spectrum emitted by the colony is acquired by microspectroscopy and processed in order to predict the Gram type.

(70) Two culture media, CPSE (transparent) and CPSO (opaque) have been described. Other culture media were tested, giving analogous results. For example, in FIGS. 13A and 13B, it is observed, on TSA (tryptone casein soy agar) and MH2 (Mueller Hinton 2 agar) culture media, that Gram-positive and Gram-negative differ from one another at least over the range 415 nm-440 nm. As previously described, the opaque media are preferred since they facilitate the prediction of the Gram type. The invention thus applies to any type of transparent and non-colored culture medium, e.g. those of the prior art, to which an opacifier, for example SiO.sub.2 particles, is added.

(71) Various predictions have been described (thresholding, linear model, SVM, Lasso). Of course, the invention applies to any type of processing which makes it possible to classify measurements in two classes (Gram-positive and Gram-negative), for example a spectrum comparison algorithm (e.g. a centroid method), a neuronal network-based classification, a tree-based classification (e.g. CART, for “classification and regresssion tree”, algorithm), etc. Such methods are, for example, those described in the document by Eric Laloum, “Une méthode chimiométrique originate d'identification de produits par spectroscopic proche infrarouge” [“An original chemometric method for identifying products by near infrared spectroscopy”], Spectra Analyse, vol. 33, No. 237, 2004.

(72) Embodiments based on a reflection spectrum have been described. As a variant, the spectrum is acquired in transmission, with the processing operations previously described for the prediction of the Gram type applying.