Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
METHOD AND APPARATUS FOR IMAGE PROCESSING
Document Type and Number:
WIPO Patent Application WO/2018/051142
Kind Code:
A1
Abstract:
In order to detect gross subject movement in a video image in a way which is not sensitive to illumination change, for example illumination changes caused by movement of shadows or sunlight, spaced pairs of image frames are selected from a video sequence and sub-divided into cells, and spatial frequency analysis is performed in each cell. The magnitude of the spatial frequency components in corresponding cells in the two selected image frames are compared. If the number of cells with high magnitude difference is high then the video image is determined as containing gross subject movement whereas if the number of cells with high magnitude differences is low, the sequence is determined as not containing gross movement, though it may contain illumination changes or no or fine movement.

Inventors:
ELMIKATY MOHAMED (GB)
JONES SIMON MARK CHAVE (GB)
Application Number:
PCT/GB2017/052779
Publication Date:
March 22, 2018
Filing Date:
September 19, 2017
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
OXEHEALTH LTD (GB)
International Classes:
G06T7/262
Foreign References:
US20030138149A12003-07-24
EP1571594A22005-09-07
Attorney, Agent or Firm:
NICHOLLS, Michael John (GB)
Download PDF:
Claims:
CLAIMS

A method of analysing a video image comprising a sequence of image frames to detect gross movement of a subject in the image, the method comprising the steps of;

selecting from the video image two image frames spaced by a predetermined number of image frames;

dividing each of the selected image frames into a plurality of cells;

calculating the magnitude of the spatial frequency components in each of the cells in each of the selected image frames;

determining differences between the magnitudes of corresponding spatial frequency components in corresponding cells of the selected frames;

determining the number of cells and spatial frequency components for which the magnitude differences are greater than a first threshold; and

determining that the video sequence contains gross movement of a subject if the number exceedsa second threshold.

A method according to claim 1 wherein the magnitude of the spatial frequency components in each of the cells in each of the selected image frames is calculated by a two-dimensional fast Fourier transform in each cell.

A method according to claim 1 or 2 wherein at least one of the first and second thresholds are set in a parameter tuning process comprising the steps of:

capturing a video image sequence of a subject who is performing gross movement; capturing a video image sequence containing an illumination change; and setting the first threshold to maximise the difference in the number of cells and spatial frequency components for which the magnitude differences are greater than the first threshold between the two video image sequences.

A method according to claim 1, 2 or 3 wherein the spatial frequency magnitudes are respectively normalised by the largest value of the magnitude of each spatial frequency component before taking the differences.

A method according to any one of the preceding claims wherein the mean or sum of the number of spatial frequency components for which the magnitude differences are greater than the first threshold is compared to the second threshold to perform said determination that the video sequence contains gross movement.

6. A method according to any one of the preceding claims wherein the frames are subdivided into a rectangular grid of the cells.

7. A method according to any one of the preceding claims wherein the frames are subdivided into a square grid of the cells.

8. A method according to any one of the preceding claims further comprising repeating the method with a different number or size of cells.

9. Apparatus for monitoring a subject in a room to provide status or alerting of a subject's condition, the apparatus comprising:

a video camera configured to capture a video image sequence of the room; a data processor configured to automatically process the video image sequence to distinguish between movement of a subject in the image and illumination changes in accordance with the method of any one of the preceding claims; and a display or other output device which under the control of the data processor outputs a visible or audible indication of the classification of movement and an indication of the detection of the vital signs.

10. A computer program comprising program code providing a means for executing on a

computer system the processing of a captured video image sequence of a subject in a room to automatically distinguish between movement of a subject in the image and illumination changes in accordance with the method of any one of claims 1 to 8.

Description:
METHOD AND APPARATUS FOR IMAGE PROCESSING

The present invention relates to a method and apparatus for image processing, and in particular for processing video images.

The automatic analysis and processing of video images, in particular to extract useful information, is of interest in a wide variety of fields. For example, in the field of monitoring the health or welfare of subjects (human or animal for example) proposals have been made for analysing the video images to detect the vital signs (such as heart rate, breathing rate, blood oxygen saturation) of the subject. Such analysis may be based on the PPGi signal in the image as in WO-A2-2013/027027 or on detecting fine movement associated with breathing or heart beat or a combination of the two. In the health and security monitoring fields proposals have also been made for detecting and classifying the gross movement of subjects in a video image as dangerous or non-dangerous, for example the proposal for detecting clonic seizures as described in the paper "Real-time automated detection of clonic seizures in newborns" by Pisani et al..

However a problem common to such fields is distinguishing between the signals of interest and artefacts caused by other effects. For example, illumination changes, whether the scene is illuminated by artificial light or by daylight, can often confound automated image analysis. For example, in the event of trying to detect gross movement of a subject or part of a subject in a video image where the scene is under daylight illumination, an effect such as a cloud passing in front of the sun or trees, bushes or vehicles passing between a window illuminating the scene and the sky or sun, may cause fast movements to appear in the image as shadows, or changes in illumination, passing across the scene. One part of a scene may be in strong sunlight and one in shade creating an apparent edge, which may move. Distinguishing such changes from subject movement is a difficult problem. In the security field the inability to distinguish these effects may result in many false alarms, and thus an alarm eventually being ignored, or in a threshold for triggering an alarm being set high, and then failing to detect intruders. In the health or welfare monitoring field, similar problems of excessive false alarms with low trigger thresholds or lack of alarm with high trigger thresholds also arise.

One aspect of the problem which makes it tough to solve is that one part of the scene may remain under steady illumination (sunlit or shaded) while another part of a scene has large illumination changes. A scene may also be illuminated by a combination of daylight and artificial light, either of which may be at times stable and at times change rapidly. So a global solution (i.e. across the whole image frame) may not work properly. According to the present invention there is provided a method of analysing a video image comprising a sequence of image frames to detect gross movement of a subject in the image, the method comprising the steps of: selecting from the video image two image frames spaced by a predetermined number of image frames;

dividing each of the selected image frames into a plurality of cells;

calculating the magnitude of the spatial frequency components in each of the cells in each of the selected image frames;

determining differences between the magnitudes of corresponding spatial frequency components in corresponding cells of the selected frames;

determining the number of cells and spatial frequency components for which the magnitude differences are greater than a first threshold; and

determining that the video sequence contains an illumination change rather than movement of a subject if the number is lower than a second threshold.

This method is effective at distinguishing between gross subject movement and fine or no movement in a way which is unaffected by a changes in illumination caused, for example, by movement of sunlit areas, because image texture, such as is commonly associated with subjects of interest, show up well in a spatial f equency analysis of the image (i.e. have a lot of spatial frequency content), so if the subject (associated with image texture) has gross movement, this will be seen in a high number of large magnitude changes in the spatial frequency components between the two frames under consideration. On the other hand sunlight changes tend to have lower amounts of spatial frequency information in them, thus producing a lower number of large magnitude differences in spatial frequency components between the two frames. This overcomes the problem of simpler video analytics methods that illumination changes can look like gross subject movement.

Thus the method is particularly good at distinguishing between gross movement of the subject and illumination artefacts. By "gross movement" is meant large movement of the subject, the subject as a whole moving (e.g. walking, running, jumping) or movements of whole body parts of the subject (e.g. movement of arms or legs), contrasted with "fine movement", which is the type of small distance movement associated with breathing, heart beat, natural trembling or unconscious movement of the body.

The first and second thresholds may be set by observing video sequences of a subject and scene being imaged and setting thresholds to distinguish gross movement from fine movement and illumination changes. The characterisation of gross movement in the video image sequence is conducted with reference to a threshold which is preferably set in a calibration process. The aim is to distinguish large movements, such as a subject deliberately walking around, moving their arms, or changing position when lying or seated, from the smaller, e.g. unconscious, movements related to, for example, breathing or the cardiac cycle, such as chest rise and fall, small head movement, etc.. The distance that such a gross movement or fine movement corresponds to in the individual image frames of the video image sequence depends on the field of view of the video camera and the hardware used (optics and sensor). In the image it will be characterized by different number of pixels affected and the magnitude of the change per pixel. However, a threshold which distinguishes the two types of movement can be established for any given equipment in a calibration process by capturing a video image sequence of a volunteer who is asked, on the one hand, to perform gross movement, such as walking around, moving arms, or changing position when seated or lying, and on the other hand to remain as still as possible, while breathing normally. By observing the spatial frequency changes between the selected frames of the video image sequence in these two different states, the thresholds can be set which distinguishes between them and characterises the gross movement and the fine movement. Thus the first and second thresholds are set in a parameter tuning process comprising the steps of: capturing a video image sequence of a subject who is performing gross movement; capturing a video image sequence containing an illumination change; and setting the first threshold to maximise the difference in the number of cells and spatial frequency components for which the magnitude differences are greater than the first threshold between the two video image sequences. The second threshold is also set by observing the number of cells and spatial frequency components for which the magnitude differences are greater than the first threshold between the two video image sequences. The magnitude of the spatial frequency components (also known as the 2D power spectrum) in each of the cells in each of the selected image frames may be calculated by a two-dimensional fast Fourier transform in each cell or by another known spectral analysis technique. The spatial frequency magnitudes may be respectively normalised by the largest value of the magnitude of each spatial frequency component before taking the differences which improves invariance to illumination changes.

The mean or sum of the number of cells and spatial frequency components for which the magnitude differences are greater than the first threshold is preferably compared to the second threshold to perform said determination that the video sequence contains an illumination change rather than movement. The image frames may be subdivided into a rectangular, e.g. square, grid of the cells and the method may be repeated on the video image with a different number or size of cells. Larger cells are more robust to noise and complex changes in illumination whereas smaller cells are more sensitive to smaller movements.

The invention also provides an apparatus for analysing video image in accordance with the method above, the apparatus comprising a video image processor programmed to execute the method on an input video image. The apparatus may be part of a video monitoring system including a video camera to capture video images and a display to display the captured video together with the results of the image analysis. This may form part of a health or welfare monitoring system or a security monitoring system. The video camera is preferably a standard digital video camera so that the video image sequence is a conventional frame sequence with each frame comprising an array of pixel intensities. The camera may be monochrome or may be a colour camera providing pixel intensities in the red, green and blue channels.

The invention may be embodied in a computer program for processing a captured video image sequence in accordance with the invention and for outputting the resulting determination.

The invention will be further described by way of non limited example with reference to the accompanying drawing in which: -

Figure 1 illustrates schematically a vital signs monitoring method;

Figure 2 schematically illustrates a vital signs monitoring method on which the invention may be applied;

Figure 3 is a flow diagram illustrating one embodiment of the invention;

Figure 4 schematically illustrates a welfare monitoring system including an image analysis apparatus in accordance with an embodiment of the invention.

The invention will be described as applied to a vital signs/welfare monitoring system usable in a secure room environment, for monitoring the welfare of subjects such as patients or prisoners who are restrained in a secure room. Figure 4 schematically illustrates an apparatus in accordance with an embodiment of the invention being used to monitor a subject 3 in a room 1 . The room 1 can be a secure room such as a police or prison cell or some other detention facility, or could be a room in a hospital or other care facility such as a care home, sheltered accommodation or the subject's own home. The subject 3 is monitored by a video camera 5 whose output is processed by a video signal processor 7 and the results of the analysis are displayed on a display 9 which is visible to staff of the facility. The video signal processor 7 may be a dedicated signal processor or a programmed general purpose computer. The room may be naturally lit, e.g. via window 10 and may be artificially illuminated using a visible light source 1 1 or infrared light source 13.

The video camera 5 is a standard digital video camera outputting video data in the form of a sequence of image frames, each frame being a pixel array of intensities in red, green, blue channels. The red, green and blue channels also give a response in the infrared range allowing the production of an infrared (IR) image useful when the room is dark. Video cameras of this type typically output the signal at twenty frames per second, though of course different frame rates are possible.

The display 9 preferably displays the video image of the room and also displays information regarding the health or safety of the subject 3. This information is preferably:-

Whether movement is detected.

Whether vital signs are being acquired.

Whether the subject is judged to be safe.

Current values of estimated vital signs such as heart rate and breathing rate. Whether no vital signs have been detected and the time for which no vital signs have been detected.

A no movement and no vital signs alert or alarm,

Staff monitoring the subject by way of the display 9 can therefore tell at any given time whether the subject is considered safe, for example because they are moving or because the vital signs are being detected and are in a physiologically normal range, or whether the system is unable to detect vital signs and safe movement is detected (and for how long that situation has persisted), or that no vital signs and no movement is detected, in which case an alert is generated willing staff to check the subject. If the lack of vital signs detection persists for more than a configurable amount of time an alert may be generated to call on staff to check the subject. Alerts can include a range of electronic notification methods including automated telephone message, pager, SMS, as well as indication on the display 9 with the alert containing the condition and location of the subject and the condition being alerted.

Figure 1 schematically illustrates the overall processing by video signal processor 7. In this embodiment the video analysis system analysis the video image captured by camera 5 to detect the vital signs of the subject (such as heart rate and breathing rate), and in parallel analyses the video image to detect whether it contains gross movement of the subject, fine movement of the subject or no movement of the subject. As mentioned above gross movement is, for example, the subject walking or running or jumping, and in the case of gross movement it is normal to suspend analysis of the video to detect vital signs such as heart rate or breathing rate because it is difficult to perform such analysis in the presence of gross movement. As illustrated in Figure 1 , therefore, in step 100 the video is acquired and is subject both to movement detection in step 102 and vital signs detection or estimation in step 104. Step 104 may be suspended if gross movement is detected in the video sequence. The results of the movement detection and vital signs detection are interpreted and validated in step 106 and displayed in step 108 on display 9.

Figure 2 schematically illustrates the interpretation and validation step 106. In step 200 the first determination is made as to whether gross subject movement is present in the video image. If gross movement is present then the movement is analysed to be classified as safe or unsafe and a corresponding display made in step 202. If no gross movement is present then, firstly, if valid vital signs have already been detected (in the previous pass through the process), then these are displayed in step 206. If not, then a determination is made as to whether fine movement is present in the image. If fine movement is present, but no vital signs have been detected, then a display "no vital signs" is made in step 210. On the other hand if no fine movement is detected, then a display "no vital signs and no movement" alert is made in step 212, which may indicate that the subject is in a serious condition.

It will be understood, therefore, that a critical point in the process is determining in step 200 whether or not gross movement is present. If gross movement is present in the image then it is difficult to detect vital signs reliably and so vital signs detection is suspended, but such gross movement is also regarded as indicating that the subject is, at least, alive. Consequently if some image artefact is mistaken for gross movement of the subject, serious consequences may result. The present invention is therefore designed to accurately detect gross movement of a subject despite the presence of image artefacts such as illumination changes, especially in natural light illuminated scenes. The image processing in accordance with one embodiment of the invention is illustrated in Figure 3. Firstly, in step 300, in the sequence of image frames forming the video image, two frames separated by a predetermined number (d) of frames are selected. The separation may be, for example, ¼ second or 5 frames. Then in step 302 the two selected frames are each divided into a square grid of m cells of 2" pixels, for example 16 or 32 cells, which may be each of 8x8=64 or 16x16=256 pixels. The size of the cells will determine how big a gross movement of the subject is before it is recognised and thus the size of the cells needs to be tuned to the particular image view being analysed.

Then in step 304 each of the cells is subjected to a two dimensional spectral analysis, for example by Fast Fourier transform, to determine the spatial frequencies (2D power spectrum) in each of the cells. The spectral analysis will return values for components from a minimum spatial frequency corresponding to one cycle per cell and a maximum of spatial frequency of one cycle per sample

(pixel position). There will be / = n*n different frequency components. In step 306 the magnitude χ,,,,ί of each of the / different frequency components is then taken in each of the m cells. It is the difference between the magnitudes of corresponding frequency components in corresponding cells of the pair of selected frames which will be used to determine whether image changes are caused by illumination variations or gross movement. In this embodiment each of the magnitudes is processed in step 308 by adding one and taking the logarithm, and then in step 310 the resulting values are normalised within each cell by dividing them by the value of the largest magnitude for that cell.

Then, in step 3 10, for each corresponding air of cells in the two selected frames, the absolute differences between the normalised log magnitudes X' of corresponding frequency components is taken for all frequency components \X' m ,i, frame a- X'najwme In step 316 these values are thresholded to give a value D m ,j of 1 if they are above the threshold or 0 if below. This first threshold is set by comparing a video sequence which contains subject movement and one which contains, for example, changes in illumination by sunlight. In step 318 the number of cells and components giving a value of 1 is compared to a threshold, either by summing the D m, i values or taking the mean of the D m ,; values, and if the number is greater than the second threshold then the video image is determined as containing gross movement, whereas if the number is lower than the second threshold the video image is determined as not containing gross movement, (it may include an illumination change or no/fine movement). This determination forms the output of step 200 of Figure 2. Subsequent processing can determine if there is fine or no movement, and can also determine that, if no gross movement has been detected, then large-scale changes are illumination changes.

The processing will be continuously repeated for further pairs of image frames selected from the video sequence, for example, a new pair each moved along by one frame so that a continual analysis is conducted on a video sequence as to whether it is containing gross subject movement or not.

It should be noted that the number and size of cells m may be varied and the spacing d of the pair of frames under consideration may be varied. Furthermore, the method may be enhanced by varying the way in which the selected image frames are divided into cells. For example, in successive passes through the processing, the position and/or size of the cells may be varied so that there are successive sets of overlapping cells.