Inattentiveness detection device and inattentiveness detection method
The inattentiveness detection device uses a combination of image analysis and gaze validation techniques to accurately determine a vehicle occupant's line of sight, addressing errors in conventional methods and enhancing the reliability of inattentiveness detection.
Patent Information
- Application Number
- JP2024527733
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-06-17
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-06-17
AI Technical Summary
Conventional methods for detecting a vehicle occupant's line of sight direction based on captured images are prone to errors, particularly when the iris or pupil is obscured, leading to incorrect determinations of inattentiveness, such as falsely detecting a downward gaze when the occupant is not looking aside.
An inattentiveness detection device that includes an image acquisition unit, line of sight detection unit, eye-opening degree determination unit, and gaze correctness determination unit to validate the direction of the occupant's gaze, preventing false detections by considering the eye-opening state and using machine learning models to confirm the accuracy of the detected line of sight.
The device effectively prevents false detection of inattentiveness by accurately determining the correctness of the occupant's line of sight direction, reducing erroneous judgments and improving the reliability of inattentiveness assessments.
Smart Images

Figure 0007546815000002 
Figure 0007546815000007 
Figure 0007546815000008
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an apparatus and method for determining whether an occupant is looking inattentively in a vehicle. [Background technology]
[0002] Conventionally, there is known a technique for detecting the direction of gaze of a vehicle occupant based on an image captured of the occupant, and determining whether the occupant is looking aside from the direction of gaze based on the detected direction of gaze (for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2019-91268 A Summary of the Invention [Problem to be solved by the invention]
[0004] In general, the direction of a person's gaze based on a captured image is detected, for example, by detecting the iris or pupil on the captured image. Here, the area occupied by the occupant's eyes (more specifically, eyeballs) on the captured image of the occupant in the vehicle is small. For example, if an event occurs in which the iris or pupil is hidden by the eyelids or eyelashes, there is a possibility that the iris or pupil cannot be detected from the eye area, which is originally a small area, and as a result, the direction of the occupant's gaze may be erroneously detected. In this way, it is difficult to detect the direction of the occupant's gaze based on the captured image, and the direction of the occupant's gaze may be detected fraudulently. Specifically, even though the occupant cannot be looking downward, the direction of the occupant's gaze may be fraudulently detected as being downward. In the conventional technology, there is a problem that if the direction of an occupant's gaze detected based on an image is incorrectly detected as being downward, the occupant may be mistakenly determined to be looking away when in fact they are not. In addition, the technology disclosed in Patent Document 1 does not take into consideration the possibility that the direction of gaze detected based on an image may be detected fraudulently, so there is still a problem that if the direction of an occupant's gaze detected based on an image is fraudulently detected to be downward, the occupant may be erroneously determined to be looking aside when in fact they are not.
[0005] The present disclosure has been made to solve the above-mentioned problems, and aims to provide an inattentive detection device that prevents erroneous detection of an occupant looking away when the gaze direction of an occupant detected based on an captured image is incorrectly detected as being downward. [Means for solving the problem]
[0006] The inattentive detection device according to the present disclosure includes an image acquisition unit that acquires an image of the face of an occupant in a vehicle, a gaze detection unit that detects the direction of the occupant's gaze based on the image acquired by the image acquisition unit, an inattentive provisional judgment unit that makes a provisional judgment as to whether or not the occupant is looking aside based on the direction of the occupant's gaze detected by the gaze detection unit, a gaze correctness judgment unit that makes a gaze correctness judgment as to whether or not the direction of the occupant's gaze detected by the gaze detection unit is correct if the inattentive provisional judgment unit provisionally judges that the occupant is looking aside downward, and an inattentive judgment unit that judges that the occupant is not looking aside if the gaze correctness judgment unit judges that the direction of the occupant's gaze detected by the gaze detection unit is incorrect even if the inattentive provisional judgment unit provisionally judges that the occupant is looking aside downward. and an eye opening degree determination unit that determines the degree of eye opening of the occupant based on the captured image acquired by the image acquisition unit, and the gaze validity determination unit performs a gaze validity determination as to whether the direction of the occupant's gaze detected by the gaze detection unit is valid or not based on the direction of the occupant's gaze detected by the gaze detection unit and the degree of the occupant's eyes opened determined by the eye opening degree determination unit when the inattentive determination unit provisionally determines that the occupant is inattentively looking downward. It is something. Effect of the Invention
[0007] According to the present disclosure, an inattentive detection device can prevent erroneous detection of an occupant looking away when the gaze direction of an occupant detected based on an captured image is incorrectly detected as being downward. [Brief description of the drawings]
[0008] [Figure 1]1 is a diagram showing an example of the configuration of an inattentive driving determination device according to a first embodiment; [Diagram 2] 2A and 2B are diagrams showing an example of a captured image of an occupant inside a vehicle. [Diagram 3] 4 is a flowchart for explaining the operation of the inattentive driving determination device according to the first embodiment. [Figure 4] This is a flowchart for explaining the details of the gaze correctness judgment performed by the gaze correctness judgment unit in step ST4 of Figure 3 when the inattentive gaze provisional judgment unit provisionally judges that the occupant is looking aside in the downward direction in step ST3 of Figure 3. [Diagram 5] 4 is a flowchart for explaining details of an inattentive driving determination made by an inattentive driving determination unit in step ST5 of FIG. 3. [Figure 6] 6A and 6B are diagrams illustrating an example of a hardware configuration of the inattentive driving determination device according to the first embodiment. [Figure 7] FIG. 11 is a diagram illustrating an example of the configuration of an inattentive driving determination device according to the second embodiment. [Figure 8] 10 is a flowchart for explaining the operation of the inattentive driving determination device according to the second embodiment. [Figure 9] FIG. 11 is a diagram illustrating an example of the configuration of an inattentive driving determination device equipped with a learning device that generates a first machine learning model in a second embodiment. [Figure 10] 10 is a flowchart for explaining the operation of a learning device installed in the inattentive driving determination device shown in FIG. 9 in the second embodiment. [Figure 11] 11 is a flowchart for explaining details of the operation of generating learning data by the learning data generating unit in step ST101 of FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings. Embodiment 1 FIG. 1 is a diagram showing an example of the configuration of an inattentive driving determination device 1 according to the first embodiment. The inattentive driving judgment device 1 is mounted on a vehicle (not shown) and is connected to an imaging device 2 and an output device 3. The inattentive driving judgment device 1, the imaging device 2, and the output device 3 constitute an inattentive driving judgment system 400.
[0010] The imaging device 2 is mounted on a vehicle and is installed so as to be able to capture an image of at least the area in which the face of an occupant is expected to be present. In the first embodiment, it is assumed that the imaging device 2 is provided in the vehicle near the front of the head of the occupant or below the front of the head of the occupant, more specifically, below the front of the eyes of the occupant. For example, the imaging device 2 is provided below the steering wheel, above the instrument panel, on the center console, or on a pillar inside the vehicle. The imaging device 2 may be, for example, a device shared with a so-called DMS (Driver Monitoring System) that is installed for the purpose of monitoring the interior of a vehicle. The imaging device 2 is a visible light camera or an infrared camera. The imaging device 2 outputs the captured image to the inattentive driving judgment device 1.
[0011] The output device 3 is mounted on the vehicle and outputs a warning based on the warning information output from the inattentive behavior judgment device 1. The output device 3 issues a warning based on the warning information output from the inattentive behavior judgment device 1, thereby calling the occupant's attention to inattentive behavior. The output device 3 is, for example, a display device such as a touch panel display provided in a car navigation device (not shown), or an audio output device such as a speaker provided in the car navigation device. The display device displays, for example, a message to warn the occupant. The audio output device outputs, for example, an audio message or an alarm sound to warn the occupant.
[0012] The inattentive driving judgment device 1 according to the first embodiment judges whether or not an occupant in a vehicle is looking aside, based on an image of the face of the occupant present in the vehicle captured by the imaging device 2. In the first embodiment, the judgment of whether or not an occupant is looking aside, made by the inattentive driving judgment device 1, is also referred to as "inattentive driving judgment." Specifically, the inattentive viewing judgment device 1 according to the first embodiment detects the direction of the occupant's gaze based on a captured image, and performs an inattentive viewing judgment based on the detected direction of the occupant's gaze. Here, the inattentive viewing judgment device 1 judges whether the occupant's gaze direction has been fraudulently detected as downward, and if it is determined that the gaze direction has been fraudulently detected as downward, it prevents erroneous judgment that the occupant is looking aside based on the detected direction of the occupant's gaze. In the first embodiment, if the inattentive viewing judgment device 1 detects that the occupant's gaze direction is downward even though it is impossible for the occupant to be looking downward, it judges that the detected direction of the occupant's gaze is fraudulent.
[0013] In the first embodiment, the inattentive behavior judgment device 1 judges whether or not the occupant is in a state where it is impossible for the occupant to look downward based on a captured image. In detail, the inattentive behavior judgment device 1 judges whether or not the occupant is in a state where it is impossible for the occupant to look downward based on the degree of eye opening of the occupant based on the captured image. Here, FIG. 2A and FIG. 2B are diagrams showing an example of a captured image of an occupant inside a vehicle. For example, when an occupant looks downward, that is, when the occupant directs his / her gaze downward, it is assumed that the occupant is in a so-called downcast state (see FIG. 2A). Therefore, when the occupant's gaze direction is detected as downward, the occupant's eyes are not fully open, in other words, the degree of eye opening is low. However, the area occupied by the eyes (more specifically, the eyeballs) of an occupant on a captured image of the face of the occupant inside a vehicle is small.
[0014] In general, the direction of a person's gaze based on a captured image is detected, for example, by detecting the iris or pupil on the captured image. For example, when a visible light camera detects the direction of an occupant's gaze from an image captured inside a vehicle, the inner corners of the occupant's eyes and irises are detected on the captured image, and the direction of the occupant's gaze can be detected from the positional relationship between the inner corners of the eyes and the irises. Also, for example, when an infrared camera detects the direction of an occupant's gaze from an image captured inside a vehicle, the infrared camera detects the positions of the Purkinje image and pupil obtained by irradiating a near-infrared point light source and reflecting it off the cornea, and the direction of the occupant's gaze can be detected from the positional relationship between the Purkinje image and the pupil. Here, for example, in the captured image, the iris or pupil may be hidden by the eyelids or eyelashes, but as described above, the area indicated by the occupant's eyes in the captured image is small. Therefore, if the iris or pupil is hidden by the eyelids or eyelashes, it becomes difficult to detect the position of the iris or pupil, and there is a possibility that the detection of the iris or pupil will fail. In detail, if the iris or pupil is hidden by the eyelids or eyelashes, the iris or pupil may be detected at a position lower than the actual position. As a result, there is a possibility that the direction of the occupant's gaze will be erroneously detected. In particular, the vertical area of the occupant's eyes is partially hidden even when the occupant has his / her eyes open, and if the occupant has half-closed eyes or has narrow eyes to begin with, the iris is further hidden. Therefore, it is more difficult to detect the vertical position of the iris based on a captured image than the horizontal position. Also, due to the shape of the eyelids, it is more difficult to detect the downward position of the iris or pupil based on a captured image than the upward position. Therefore, when the direction of the occupant's gaze is detected based on a captured image, it is easy for the gaze direction of the occupant to be erroneously detected as downward. Also, for example, when an occupant wears glasses, near-infrared light from a landscape or visible light camera may be reflected by the lenses of the glasses and may overlap with the iris or pupil, causing the iris to appear white. If the iris or pupil appears white on the captured image, the direction of the occupant's gaze may be detected as downward, regardless of the actual direction of the occupant's gaze. In this way, for example, even when an occupant wears glasses, the direction of the occupant's gaze is likely to be erroneously detected as downward. As described above, since the area indicated by the occupant's eyes is small on the captured image, the entire area of the iris or pupil may appear white.
[0015] As such, it is difficult to detect the direction of an occupant's gaze based on an image capture, and when the direction of the occupant's gaze is detected based on an image capture, it may be detected that the occupant is looking downward, i.e., is gazing downward, even when the occupant's eyes are fully open, in other words, the degree of eye opening (see Figure 2B). For example, when the inattentive viewing judgment device 1 detects that the occupant's gaze is directed downward even though the occupant's eyes are fully open in the captured image as shown in FIG. 2B, it judges that the detection result of the gaze direction is incorrect, and prevents the device from erroneously judging that the occupant is looking aside based on the gaze direction.
[0016] An example of a detailed configuration of the inattentive driving judgment device 1 according to the first embodiment will be described. As shown in FIG. 1, the inattentive driving judgment device 1 includes an image acquisition unit 11, a gaze detection unit 12, an eye opening degree judgment unit 13, a provisional inattentive driving judgment unit 14, a gaze correctness judgment unit 15, an inattentive driving judgment unit 16, and a warning unit 17.
[0017] The image acquisition unit 11 acquires a captured image in which the face of an occupant inside the vehicle is captured by the imaging device 2. The image acquisition unit 11 outputs the acquired captured image to the gaze detection unit 12 and the eye opening degree determination unit 13.
[0018] The gaze detection unit 12 detects the direction of the gaze of the occupant based on the captured image acquired by the image acquisition unit 11. The line-of-sight detection unit 12 may detect the direction of the passenger's line of sight by using a known image recognition technique on the captured image. For example, when the imaging device 2 is a visible light camera, the gaze detection unit 12 detects the inner corners of the eyes and the irises of the occupant on the captured image, and can detect the direction of the occupant's gaze from the positional relationship between the inner corners of the eyes and the irises. Also, for example, if the imaging device 2 is an infrared camera, the gaze detection unit 12 can detect the direction of the occupant's gaze from the positional relationship between the pupil and a Purkinje image obtained by irradiating a near-infrared point light source from the infrared camera and reflecting it off the cornea. Note that these are merely examples, and the gaze detection unit 12 may detect the direction of the gaze of the occupant using various known algorithms.
[0019] In the first embodiment, the line of sight of the occupant is expressed as an angle with respect to a predetermined reference direction. For example, the line of sight of the occupant is expressed as an angle with respect to a reference direction in which the occupant looks straight ahead from the seat. More specifically, in embodiment 1, the direction of the occupant's line of sight is expressed as an angle, for example, with 0 degrees being the reference direction when the occupant looks straight ahead, and a direction above the reference being a positive angle and a direction below the reference being a negative angle. The gaze detection unit 12 outputs information indicating the detected direction of the gaze of the occupant (hereinafter referred to as “gaze information”) to the inattentive behavior provisional determination unit 14. The gaze information is, for example, information in which the direction of the gaze of the occupant is associated with the captured image acquired by the image acquisition unit 11. Furthermore, the gaze detection unit 12 stores the gaze information in a storage unit (not shown) in association with the acquisition date and time of the captured image. The acquisition date and time of the captured image may be, for example, a date and time given to the captured image by the imaging device 2, or may be a date and time when the captured image is acquired by the image acquisition unit 11. The gaze detection unit 12 may acquire information on the date and time when the captured image is acquired from the image acquisition unit 11.
[0020] The eye opening degree determining unit 13 determines the degree to which the eye of the occupant is opened based on the captured image acquired by the image acquiring unit 11 . For example, the eye opening degree determination unit 13 detects the upper eyelid and the lower eyelid of the occupant by using a known image recognition technique for the captured image. For example, an area in which the occupant's face may exist (hereinafter referred to as a "face detection area") is set in advance in the captured image, and the eye opening degree determination unit 13 performs known edge detection on the face detection area of the captured image to extract feature points indicating the occupant's upper eyelid and feature points indicating the lower eyelid. Next, the eye opening degree determination unit 13 calculates, for example, the vertical distance between the upper eyelid and the lower eyelid of the occupant in the captured image (hereinafter referred to as an "eyelid distance") in order from the left on the captured image, and calculates the maximum eyelid distance. Then, the eye opening degree determination unit 13 determines the eye opening degree based on the ratio between the calculated maximum eyelid distance and a reference value of the eye opening degree. That is, the unit of the eye opening degree is a percentage. For example, the average eye opening degree of an adult with a general physique when awake, calculated by performing a test, is set in advance as the reference value of the eye opening degree. Note that this is just one example, and the reference value for the degree of eye opening may be, for example, the average value of the occupant's eye opening at a predetermined time after the occupant boards the vehicle, or it may be the average value of all eye opening degrees determined by the eye opening degree determination unit 13 up to now. The above-mentioned method for determining the degree of eye opening is merely an example, and the eye opening degree determining unit 13 may determine the degree of eye opening using various known algorithms.
[0021] The eye opening degree determination unit 13 outputs information indicating the determined eye opening degree of the occupant (hereinafter referred to as "eye opening degree information") to the gaze correctness determination unit 15. The eye opening degree information is, for example, information in which the eye opening degree of the occupant and the captured image acquired by the image acquisition unit 11 are associated with each other. Further, the eye opening degree determination unit 13 stores the eye opening degree information in a storage unit (not shown) in association with the acquisition date and time of the captured image. The acquisition date and time of the captured image may be, for example, the date and time given to the captured image by the imaging device 2, or the date and time when the captured image is acquired by the image acquisition unit 11. The eye opening degree determination unit 13 may acquire information on the date and time when the captured image is acquired from the image acquisition unit 11.
[0022] The inattentive driving provisional judgment unit 14 makes a provisional judgment as to whether or not the occupant is looking aside based on the direction of the occupant's gaze detected by the gaze detection unit 12 (hereinafter referred to as an “inattentive driving provisional judgment”). For example, the inattentive behavior temporary determination unit 14 makes a temporary determination as to whether or not the occupant is looking aside depending on whether or not the direction of the occupant's line of sight satisfies a preset condition (hereinafter referred to as the "condition for inattentive behavior temporary determination"). When the direction of the occupant's line of sight satisfies the condition for inattentive behavior temporary determination, the inattentive behavior temporary determination unit 14 makes a temporary determination that the occupant is looking aside.
[0023] The conditions for provisional inattentive judgment include, for example, a condition that "the vertical direction (in other words, the up-down direction) of the occupant's line of sight is outside the range for inattentive judgment." The conditions for provisional inattentive judgment are generated in advance by an administrator or the like and stored in a location that can be referenced by the inattentive judgment device 1. The inattentive driving provisional judgment range in the inattentive driving provisional judgment conditions is a permissible range of upward and downward gaze movement for an occupant to perform the necessary confirmation action, and is set in advance by an administrator or the like and stored in a location that can be referenced by the inattentive driving judgment device 1. For example, if the direction of the occupant's line of sight is upward from the inattentiveness judgment range, the inattentiveness provisional judgment unit 14 provisionally judges that the occupant is looking aside upward. Also, for example, if the direction of the occupant's line of sight is downward from the inattentiveness judgment range, the inattentiveness provisional judgment unit 14 provisionally judges that the occupant is looking aside downward.
[0024] The determination by the inattentiveness provisional determination unit 14 as to whether or not the occupant is looking aside is a provisional determination, and the inattentiveness determination unit 16 finally determines whether or not the occupant is looking aside. Details of the inattentiveness determination unit 16 will be described later.
[0025] When the inattentiveness judgment unit 14 provisionally judges that the occupant is looking inattentively, it counts up an inattentiveness warning counter. The inattentiveness warning counter is a counter for counting the time that has elapsed since the inattentiveness judgment unit 14 provisionally judged that the occupant is looking inattentively. The inattentiveness warning counter is stored in a location that can be referenced by the inattentiveness judgment device 1. The inattentiveness warning counter is reset when the inattentiveness judgment unit 16 determines that the occupant is not looking inattentively. The inattentiveness warning counter is also reset when the power supply of the inattentiveness judgment device 1 is turned off, when the inattentiveness judgment device 1 rejects the result of the provisional judgment that the occupant is looking inattentively, when the inattentiveness judgment device 1 outputs warning information, when the vehicle stops, etc. This reset is performed by a control unit (not shown) of the inattentiveness judgment device 1, the inattentiveness judgment unit 16, the warning unit 17, or the like.
[0026] The inattentive gaze provisional judgment unit 14 outputs the result of the inattentive gaze provisional judgment (hereinafter referred to as the “inattentive gaze provisional judgment result”) to the line of sight validity judgment unit 15. Further, the provisional inattentive judgment unit 14 outputs the gaze information acquired from the gaze detection unit 12 to the gaze validity judgment unit 15 together with the provisional inattentive judgment result.
[0027] When the inattentiveness provisional judgment unit 14 provisionally judges that the occupant is looking aside downward, the gaze validity judgment unit 15 judges whether the direction of the occupant's gaze detected by the gaze detection unit 12 is valid or not (hereinafter referred to as "gaze validity judgment"). In detail, when the inattentive judgment unit 14 provisionally judges that the occupant is looking aside downward, the gaze validity judgment unit 15 judges whether the direction of the occupant's gaze detected by the gaze detection unit 12 is valid or not, based on the direction of the occupant's gaze detected by the gaze detection unit 12 and the degree of eye opening of the occupant judged by the eye opening degree judgment unit 13.
[0028] The gaze correctness determination performed by gaze correctness determining unit 15 will be described in detail below. First, the gaze correctness judgment unit 15 calculates the proportion of captured images (hereinafter referred to as the "captured images for correctness judgment") among the captured images acquired by the image acquisition unit 11 going back from the present (hereinafter referred to as the "captured images for correctness judgment"), in which the direction of the occupant's gaze detected by the gaze detection unit 12 is below a predetermined threshold (hereinafter referred to as the "threshold for gaze judgment") and the degree of eye opening of the occupant judged by the eye opening degree judgment unit 13 is above a predetermined threshold (hereinafter referred to as the "threshold for eye opening degree judgment"). The direction of the occupant's gaze that the gaze validity determination unit 15 compares with the gaze determination threshold is, more specifically, the upward and downward direction of the occupant's gaze. The gaze validity determination unit 15 calculates a validity determination ratio of captured images in which the upward and downward direction of the occupant's gaze detected by the gaze detection unit 12 is equal to or smaller than the gaze determination threshold, in other words, the direction of the occupant's gaze is downward relative to the gaze determination threshold, and the degree of eye opening of the occupant determined by the eye opening degree determination unit 13 is equal to or larger than the eye opening degree determination threshold.
[0029] In embodiment 1, the captured images for determining correctness may be captured images of a number of frames acquired by the image acquisition unit 11 during a period going back a predetermined period from the present, or may be captured images of a predetermined number of frames. In addition, the gaze correctness judgment unit 15 simply acquires the captured image for correctness judgment, information on the direction of the occupant's gaze detected by the gaze detection unit 12 based on the captured image, and information on the degree of eye opening of the occupant determined by the eye opening degree judgment unit 13 based on the captured image, from the gaze information and eye opening degree information stored in the memory unit.
[0030] Next, the line of sight correctness determination unit 15 determines whether or not the calculated correctness determination ratio is equal to or greater than a preset threshold value (hereinafter referred to as the "correctness determination threshold value"). When the proportion for determining whether or not the occupant is facing the eye is equal to or greater than the threshold for determining whether or not the occupant is facing the eye, the gaze correctness determining unit 15 determines that the gaze direction of the occupant detected by the gaze detection unit 12 is incorrect, in other words, that the gaze direction of the occupant has been erroneously detected. The proportion for determining whether or not the occupant is facing the eye is equal to or greater than the threshold for determining whether or not the occupant is facing the eye. The proportion for determining whether or not the occupant is facing the eye is equal to or greater than the threshold for determining whether or not the occupant is facing the eye. On the other hand, when the proportion for determining whether or not the gaze is correct is less than the threshold for determining whether or not the gaze is correct, the gaze correctness determining unit 15 determines that the direction of the gaze of the occupant detected by the gaze detection unit 12 is correct.
[0031] In addition, when the inattentive judgment unit 14 provisionally judges that the occupant is not looking aside, and when the inattentive judgment unit 14 provisionally judges that the occupant is looking aside but the inattentive gaze is not downward, the gaze validity judgment unit 15 judges that the direction of the occupant's gaze detected by the gaze detection unit 12 is valid.
[0032] The gaze correctness determination unit 15 outputs the gaze correctness determination result (hereinafter referred to as the “gaze correctness determination result”) to the inattentive driving determination unit 16 together with the provisional inattentive driving determination result acquired from the provisional inattentive driving determination unit 14.
[0033] The inattentive driving determination unit 16 performs inattentive driving determination based on the provisional inattentive driving determination result by the provisional inattentive driving determination unit 14 and the gaze correctness determination result by the gaze correctness determination unit 15 to determine whether or not the occupant is looking aside.
[0034] When the inattentiveness provisional judgment unit 14 provisionally judges that the occupant is not looking aside, the inattentiveness judgment unit 16 maintains the result of the inattentiveness provisional judgment by the inattentiveness provisional judgment unit 14 and judges that the occupant is not looking aside.
[0035] Furthermore, when the inattentiveness determination unit 14 provisionally determines that the occupant is looking aside, the inattentiveness determination unit 16 determines that the occupant is looking aside. However, when the inattentiveness determination unit 14 provisionally determines that the occupant is looking aside downward, the inattentiveness determination unit 16 determines whether the gaze correctness determination unit 15 has determined that the direction of the occupant's gaze detected by the gaze detection unit 12 is incorrect. When the gaze correctness determination unit 15 determines that the direction of the occupant's gaze detected by the gaze detection unit 12 is incorrect, the inattentiveness determination unit 16 determines that the occupant is not looking aside. In other words, the inattentiveness determination unit 16 rejects the result of the inattentiveness provisional determination made by the inattentiveness determination unit 14 and determines that the occupant is not looking aside. In this way, even if the inattentive judgment unit 14 provisionally judges that the occupant is looking aside downwards, if the gaze correctness judgment unit 15 judges that the direction of the occupant's gaze detected by the gaze detection unit 12 is incorrect, the inattentive judgment unit 16 judges that the occupant is not looking aside.
[0036] When the inattentiveness determination unit 16 determines that the occupant is not looking aside, it resets the inattentiveness warning counter. As described above, the inattentiveness warning counter is counted up when the inattentiveness provisional determination unit 14 provisionally determines that the occupant is looking aside. By resetting the inattentiveness warning counter, the inattentiveness determination unit 16 prevents the warning unit 17 from outputting a warning to the occupant despite determining that the occupant is not looking aside. Details of the warning unit 17 will be described later.
[0037] Even if the inattentiveness provisional judgment unit 14 provisionally judges that the occupant is looking aside downward, if the gaze validity judgment unit 15 judges that the direction of the occupant's gaze detected by the gaze detection unit 12 is not invalid, in other words, is valid, the inattentiveness judgment unit 16 maintains the result of the inattentiveness provisional judgment by the inattentiveness provisional judgment unit 14 and judges that the occupant is looking aside. In this case, the inattentiveness judgment unit 16 does not reset the inattentiveness warning counter. Furthermore, when the inattentiveness determination unit 16 determines that the occupant is looking aside in a direction other than downward, the inattentiveness determination unit 16 maintains the result of the inattentiveness determination by the inattentiveness determination unit 14 and determines that the occupant is looking aside. In this case, the inattentiveness determination unit 16 does not reset the inattentiveness warning counter.
[0038] The inattentive driving determination unit 16 outputs the result of the inattentive driving determination (hereinafter referred to as the “inattentive driving determination result”) to the warning unit 17. The warning unit 17 outputs warning information for making the output device 3 give a warning when the inattentiveness determining unit 16 determines that the occupant is inattentive. In detail, the warning unit 17 outputs warning information when the state of the occupant determined by the inattentiveness determination unit 16 to be looking aside continues for a preset time (hereinafter referred to as the "warning target time"). The warning unit 17 may determine whether the state of the occupant determined to be looking aside continues for the warning target time from the inattentiveness warning counter. When the warning unit 17 outputs the warning information, it resets the inattentiveness warning counter. When the warning information is output from the warning unit 17, the output device 3 outputs a warning based on the warning information.
[0039] The operation of the inattentive driving judgment device 1 according to the first embodiment will be described. Fig. 3 is a flowchart for explaining the operation of the inattentive driving judgment device 1 according to embodiment 1. Note that the inattentive driving judgment device 1 repeats the operation shown in the flowchart of Fig. 3, for example, while the vehicle is traveling.
[0040] The image acquisition unit 11 acquires an image of the face of an occupant in a vehicle captured by the imaging device 2 (step ST1). The image acquisition unit 11 outputs the acquired captured image to the gaze detection unit 12 and the eye opening degree determination unit 13.
[0041] The line-of-sight detection unit 12 detects the direction of the line of sight of the occupant based on the captured image acquired by the image acquisition unit 11 in step ST1 (step ST2-1). The gaze detection unit 12 outputs the gaze information to an inattentive driving determination unit 14. Furthermore, the line-of-sight detection unit 12 stores the line-of-sight information in the storage unit in association with the acquisition date and time of the captured image.
[0042] The eye opening degree determining unit 13 determines the eye opening degree of the occupant based on the captured image acquired by the image acquiring unit 11 in step ST1 (step ST2-2). The eye opening degree determination unit 13 outputs the eye opening degree information to the line of sight correctness determination unit 15 . Moreover, the eye opening degree determining section 13 stores the eye opening degree information in the storage section in association with the acquisition date and time of the captured image.
[0043] The inattentive driving provisional judgment unit 14 makes a provisional inattentive driving judgment based on the direction of the occupant's line of sight detected by the line of sight detection unit 12 in step ST2-1 (step ST3). When the inattentive driving provisional judgment unit 14 provisionally judges that the occupant is looking aside, it counts up an inattentive driving warning counter. The inattentive gaze provisional judgment unit 14 outputs the inattentive gaze provisional judgment result to the line of sight validity judgment unit 15. Further, the provisional inattentive judgment unit 14 outputs the gaze information acquired from the gaze detection unit 12 to the gaze validity judgment unit 15 together with the provisional inattentive judgment result.
[0044] If the inattentive gaze provisional judgment unit 14 provisionally judges in step ST3 that the occupant is looking aside downward, the gaze validity judgment unit 15 performs a gaze validity judgment as to whether the direction of the occupant's gaze detected by the gaze detection unit 12 in step ST2-1 is valid (step ST4). If the inattentive judgment unit 14 provisionally judges in step ST3 that the occupant is not looking aside, and if the inattentive judgment unit 14 provisionally judges that the occupant is looking aside but the inattentive gaze is not downward, the gaze validity judgment unit 15 performs a gaze validity judgment in step ST4 to determine that the direction of the occupant's gaze detected by the gaze detection unit 12 is valid. The gaze correctness determination unit 15 outputs the gaze correctness determination result to the inattentive driving determination unit 16 together with the provisional inattentive driving determination result acquired from the provisional inattentive driving determination unit 14 in step ST3.
[0045] The inattentive driving judgment unit 16 performs an inattentive driving judgment to determine whether or not the occupant is looking aside based on the inattentive driving provisional judgment result by the inattentive driving provisional judgment unit 14 in step ST3 and the gaze correctness judgment result by the gaze correctness judgment unit 15 in step ST4 (step ST5). The inattentive driving determination unit 16 outputs the inattentive driving determination result to the warning unit 17.
[0046] When the inattentiveness determination unit 16 determines in step ST5 that the occupant is looking aside, the warning unit 17 outputs warning information for causing the output device 3 to issue a warning (step ST6). In detail, when the state of the occupant determined to be looking aside by the inattentiveness determination unit 16 in step ST5 continues for a warning target time, the warning unit 17 outputs the warning information. When the warning information is output from the warning unit 17, the output device 3 outputs a warning based on the warning information. The warning unit 17 does not output warning information if the state of the occupant that the inattentive judgment unit 16 judges to be looking aside does not continue for the warning time, and if the inattentive judgment unit 16 does not judge in step ST5 that the occupant is looking aside.
[0047] 3, the process of step ST2-2 is performed before the process of step ST3, but this is merely an example. The process of step ST2-2 may be performed before the process of step ST4.
[0048] FIG. 4 is a flowchart for explaining the details of the gaze correctness judgment performed by the gaze correctness judgment unit 15 in step ST4 of FIG. 3 when the inattentive gaze provisional judgment unit 14 provisionally judges that the occupant is looking aside downward in step ST3 of FIG. 3.
[0049] The gaze correctness judgment unit 15 calculates a correctness judgment ratio, which is the ratio of captured images for correctness judgment acquired by the image acquisition unit 11 going back from the present, in which the direction of the occupant's gaze detected by the gaze detection unit 12 in step ST2-1 of Figure 3 is below the gaze judgment threshold and the degree of eye opening of the occupant judged by the eye opening degree judgment unit 13 in step ST2-2 of Figure 3 is above the eye opening degree judgment threshold (step ST41).
[0050] The line of sight correctness determination unit 15 determines whether or not the proportion for correctness determination calculated in step ST41 is equal to or greater than a threshold for correctness determination (step ST42).
[0051] If it is determined in step ST42 that the ratio for determining whether or not the vehicle is in a correct or incorrect state is greater than or equal to the threshold for determining whether or not the vehicle is in a correct or incorrect state (if "YES" in step ST42), the gaze correctness determination unit 15 determines that the direction of the occupant's gaze detected by the gaze detection unit 12 in step ST2-1 is incorrect (step ST43).
[0052] If it is determined in step ST42 that the ratio for determining whether or not the vehicle is in a correct or incorrect state is less than the threshold for determining whether or not the vehicle is in a correct or incorrect state (if the answer is "NO" in step ST42), the gaze correctness determination unit 15 determines that the direction of the occupant's gaze detected by the gaze detection unit 12 in step ST2-1 is correct (step ST44).
[0053] FIG. 5 is a flowchart for explaining details of the inattentive driving determination made by the inattentive driving determination unit 16 in step ST5 in FIG.
[0054] The inattentive behavior determination unit 16 determines whether or not the inattentive behavior provisional determination unit 14 provisionally determined that the occupant is looking aside downward in step ST3 of FIG. 3 (step ST51).
[0055] If the inattentive driving provisional judgment unit 14 provisionally judges in step ST3 of FIG. 3 that the occupant is looking aside downwards (if "YES" in step ST51), the inattentive driving judgment unit 16 judges in step ST4 of FIG. 3 whether the gaze correctness judgment unit 15 has judged that the direction of the occupant's gaze detected by the gaze detection unit 12 in step ST2-1 of FIG. 3 is incorrect (step ST52).
[0056] 3, if the gaze validity determination unit 15 determines that the gaze direction of the occupant detected by the gaze detection unit 12 in step ST2-1 in FIG. 3 is invalid (if "YES" in step ST52), the inattentive behavior determination unit 16 determines that the occupant is not looking aside (step ST53). That is, the inattentive behavior determination unit 16 rejects the result of the provisional inattentive behavior determination by the provisional inattentive behavior determination unit 14, and determines that the occupant is not looking aside. At this time, the inattentive behavior determination unit 16 resets the inattentive behavior warning counter.
[0057] 3, if the gaze validity determination unit 15 determines that the gaze direction of the occupant detected by the gaze detection unit 12 in step ST2-1 in Fig. 3 is not invalid, in other words, is valid (if "NO" in step ST52), the inattentiveness determination unit 16 maintains the result of the provisional inattentiveness determination by the provisional inattentiveness determination unit 14 and determines that the occupant is looking aside, more specifically, that the occupant is looking aside downward (step ST54). Note that in this case, the inattentiveness determination unit 16 does not reset the inattentiveness warning counter.
[0058] If the inattentive driving provisional judgment unit 14 does not provisionally judge that the occupant is looking aside downward in step ST3 of FIG. 3 (if "NO" in step ST51), the inattentive driving judgment unit 16 maintains the result of the inattentive driving provisional judgment by the inattentive driving provisional judgment unit 14 (step ST55). That is, when the inattentiveness provisional judgment unit 14 provisionally judges that the occupant is not looking aside in step ST3 in Fig. 3, the inattentiveness judgment unit 16 judges that the occupant is not looking aside. Also, when the inattentiveness provisional judgment unit 14 provisionally judges that the occupant is looking aside in a direction other than downward in step ST3 in Fig. 3, the inattentiveness judgment unit 16 judges that the occupant is looking aside. At this time, the inattentiveness judgment unit 16 resets the inattentiveness warning counter.
[0059] In this manner, the inattentive driving determination device 1 detects the direction of the occupant's line of sight and determines the degree to which the occupant's eyes are open, based on the captured image of the face of the occupant inside the vehicle captured by the imaging device 2. The inattentiveness judgment device 1 makes a provisional inattentiveness judgment based on the detected direction of the occupant's gaze. When the inattentiveness judgment device 1 provisionally judges that the occupant is looking aside downward as a result of the provisional inattentiveness judgment, the inattentiveness judgment device 1 makes a gaze validity judgment as to whether the detected direction of the occupant's gaze is valid or not based on the detected direction of the occupant's gaze and the judged degree of eye opening of the occupant. Then, even if the inattentiveness judgment device 1 provisionally judges that the occupant is looking aside downward, if it judges that the detected direction of the occupant's gaze is invalid, it judges that the occupant is not looking aside. This allows the inattentive driving judgment device 1 to prevent erroneous detection of an occupant looking away when the gaze direction of the occupant detected based on the captured image is actually downward and is incorrectly detected as such.
[0060] 6A and 6B are diagrams illustrating an example of a hardware configuration of the inattentive driving determination device 1 according to the first embodiment. In the first embodiment, the functions of the image acquisition unit 11, the gaze detection unit 12, the eye opening determination unit 13, the inattentiveness provisional determination unit 14, the gaze validity determination unit 15, the inattentiveness determination unit 16, the warning unit 17, and a control unit (not shown) are realized by the processing circuit 1001. That is, when determining whether or not an occupant is looking aside based on the direction of the occupant's gaze detected based on a captured image, the inattentiveness determination device 1 includes the processing circuit 1001 which, when detecting that the occupant's gaze is directed downward, determines whether this is valid or not and then performs control to determine whether or not the occupant is looking aside. The processing circuit 1001 may be dedicated hardware as shown in FIG. 6A, or may be a processor 1004 executing a program stored in a memory 1005 as shown in FIG. 6B.
[0061] When the processing circuit 1001 is dedicated hardware, the processing circuit 1001 may be, for example, a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a combination thereof.
[0062] When the processing circuit is the processor 1004, the functions of the image acquisition unit 11, the gaze detection unit 12, the eye opening degree determination unit 13, the provisional inattentive judgment unit 14, the gaze correctness judgment unit 15, the inattentive judgment unit 16, the warning unit 17, and a control unit (not shown) are realized by software, firmware, or a combination of software and firmware. The software or firmware is written as a program and stored in the memory 1005. The processor 1004 reads out and executes the program stored in the memory 1005 to execute the functions of the image acquisition unit 11, the gaze detection unit 12, the eye opening degree determination unit 13, the provisional inattentive judgment unit 14, the gaze correctness judgment unit 15, the inattentive judgment unit 16, the warning unit 17, and a control unit (not shown). That is, the inattentive judgment device 1 includes a memory 1005 for storing a program that, when executed by the processor 1004, results in the execution of steps ST1 to ST6 in FIG. 3 described above. Also, the programs stored in the memory 1005 can be said to cause the computer to execute the procedures or methods of the image acquisition unit 11, the gaze detection unit 12, the eye opening degree determination unit 13, the inattentive gaze provisional determination unit 14, the gaze correct / incorrect determination unit 15, the inattentive gaze determination unit 16, the warning unit 17, and a control unit (not shown). Here, the memory 1005 corresponds to, for example, a non-volatile or volatile semiconductor memory such as a RAM, a ROM (Read Only Memory), a flash memory, an EPROM (Erasable Programmable Read Only Memory), an EEPROM (Electrically Erasable Programmable Read-Only Memory), a magnetic disk, a flexible disk, an optical disk, a compact disk, a mini disk, a DVD (Digital Versatile Disc), and the like.
[0063] The functions of the image acquisition unit 11, the gaze detection unit 12, the eye opening degree determination unit 13, the provisional inattentive judgment unit 14, the gaze correctness determination unit 15, the inattentive judgment unit 16, the warning unit 17, and a control unit (not shown) may be partially realized by dedicated hardware and partially realized by software or firmware. For example, the image acquisition unit 11 may be realized by a processing circuit 1001 as dedicated hardware, and the gaze detection unit 12, the eye opening degree determination unit 13, the provisional inattentive judgment unit 14, the gaze correctness determination unit 15, the inattentive judgment unit 16, the warning unit 17, and a control unit (not shown) may be realized by a processor 1004 reading out and executing a program stored in a memory 1005. The storage unit (not shown) is composed of a memory 1005 and the like. The inattentive driving judgment device 1 also includes an input interface device 1002 and an output interface device 1003 that perform wired or wireless communication with devices such as the imaging device 2 or the output device 3.
[0064] In the above-described first embodiment, the inattentive viewing judgment device 1 is equipped with the warning unit 17, but this is merely one example. For example, the function of the warning unit 17 may be provided by an external device connected to the inattentive viewing judgment device 1 outside the inattentive viewing judgment device 1. In this case, the inattentive viewing judgment unit 16 in the inattentive viewing judgment device 1 outputs the result of the inattentive viewing judgment and the value of the inattentive viewing warning counter to the external device.
[0065] In addition, in the above embodiment 1, the inattentive driving judgment device 1 is an on-board device mounted on a vehicle, and the image acquisition unit 11, the gaze detection unit 12, the eye opening degree judgment unit 13, the provisional inattentive driving judgment unit 14, the gaze correctness judgment unit 15, the inattentive driving judgment unit 16, the warning unit 17, and a control unit (not shown) are provided in the on-board device. Without being limited to this, the system may be configured with the in-vehicle device and the server, with some of the image acquisition unit 11, gaze detection unit 12, eye opening degree determination unit 13, provisional inattentive determination unit 14, gaze correct / inattentive determination unit 15, inattentive determination unit 16, warning unit 17, and a control unit (not shown) being mounted on the vehicle's in-vehicle device and the others being provided in a server connected to the in-vehicle device via a network. In addition, the image acquisition unit 11, gaze detection unit 12, eye opening degree determination unit 13, provisional inattentive determination unit 14, gaze correct / inattentive determination unit 15, inattentive determination unit 16, warning unit 17, and a control unit (not shown) may all be provided in the server.
[0066] As described above, the inattentive viewing judgment device 1 according to the first embodiment is configured to include an image acquisition unit 11 that acquires an image in which the face of an occupant inside the vehicle is captured, a gaze detection unit 12 that detects the direction of the occupant's gaze based on the image acquired by the image acquisition unit 11, an inattentive viewing provisional judgment unit 14 that makes a provisional judgment as to whether or not the occupant is looking aside based on the direction of the occupant's gaze detected by the gaze detection unit 12, a gaze correctness judgment unit 15 that judges whether or not the direction of the occupant's gaze detected by the gaze detection unit 12 is correct if the inattentive viewing provisional judgment unit 14 provisionally judges that the occupant is looking aside downwards, and an inattentive viewing judgment unit 16 that judges that the occupant is not looking aside if the gaze correctness judgment unit 15 judges that the direction of the occupant's gaze detected by the gaze detection unit 12 is incorrect even if the inattentive viewing provisional judgment unit 14 provisionally judges that the occupant is looking aside downwards. Therefore, the inattentive driving judgment device 1 can prevent erroneous detection of an occupant looking away when the gaze direction of the occupant detected based on the captured image is actually downward and is incorrectly detected as such.
[0067] In detail, the inattentive viewing judgment device 1 according to the first embodiment includes an eye opening degree judgment unit 13 that judges the degree of eye opening of the occupant based on the captured image acquired by the image acquisition unit 11, and the gaze validity judgment unit 15 is configured to judge whether the direction of the occupant's gaze detected by the gaze detection unit 12 is valid or not based on the direction of the occupant's gaze detected by the gaze detection unit 12 and the degree of eye opening of the occupant judged by the eye opening degree judgment unit 13 when the inattentive viewing provisional judgment unit 14 provisionally judges that the occupant is looking aside downward, and to judge whether the direction of the occupant's gaze detected by the gaze detection unit 12 is valid or not based on the direction of the occupant's gaze detected by the gaze detection unit 12 and the degree of eye opening of the occupant judged by the eye opening degree judgment unit 13. Therefore, the inattentive viewing judgment device 1 can prevent erroneous detection of the occupant's inattentive viewing when the direction of the occupant's gaze detected based on the captured image is a gaze direction that is incorrectly detected as downward.
[0068] Moreover, the inattentive driving judgment device 1 according to the first embodiment can be configured to include a warning unit 17 that outputs warning information for issuing a warning when the inattentive driving judgment unit 16 judges that the occupant is looking aside. Therefore, the inattentive driving judgment device 1 can alert the occupant to not look aside. Furthermore, in the inattentive driving judgment device 1 according to the first embodiment, the warning unit 17 can be configured to output warning information when the state of an occupant that is determined to be inattentive by the inattentive driving judgment unit 16 continues for a warning target time. Therefore, the inattentive driving judgment device 1 can call the occupant's attention to inattentive driving and can avoid issuing unnecessary warnings when the occupant only momentarily moves their line of sight.
[0069] Embodiment 2 In embodiment 1, when the inattentive judgment device provisionally judged that an occupant was looking aside downward, it judged whether the gaze was correct or not by comparing the detected direction of the occupant's gaze with the judged degree of eye opening of the occupant with preset conditions. In the second embodiment, an embodiment will be described in which the inattentive viewing determination device determines whether the line of sight is correct or not by using a trained model (hereinafter, referred to as a "machine learning model").
[0070] FIG. 7 is a diagram showing an example of the configuration of an inattentive driving determination device 1a according to the second embodiment. Regarding the configuration of the inattentive driving judgment device 1a according to the second embodiment, the same components as those of the inattentive driving judgment device 1 explained in the first embodiment with reference to FIG. 1 are assigned the same reference numerals and duplicate explanations will be omitted. The inattentive looking judgment device 1a according to the second embodiment differs from the inattentive looking judgment device 1 according to the first embodiment in that the inattentive looking judgment device 1a does not include the eye opening degree judgment unit 13, but includes a model storage unit 18. Also, the specific operation of the gaze correctness judgment unit 15a in the inattentive looking judgment device 1a according to the second embodiment differs from the specific operation of the gaze correctness judgment unit 15 in the inattentive looking judgment device 1 according to the first embodiment. The inattentive driving judgment device 1a, the imaging device 2, and the output device 3 constitute an inattentive driving judgment system 400a.
[0071] When the inattentiveness provisional determination unit 14 provisionally determines that the occupant is looking aside downward, the gaze validity determination unit 15a performs a gaze validity determination as to whether or not the direction of the occupant's gaze detected by the gaze detection unit 12 is valid, based on the captured image acquired by the image acquisition unit 11 and a machine learning model (first machine learning model). Note that the gaze validity determination unit 15a may acquire the captured image via the gaze detection unit 12 and the inattentiveness provisional determination unit 14. The first machine learning model is a machine learning model that takes as input an image of an occupant's face and outputs information indicating whether the direction of the occupant's gaze detected based on the image is valid or not.
[0072] The first machine learning model is generated in advance by an administrator or the like and stored in the model storage unit 18. For example, before product shipment, the administrator etc. performs a test drive of the vehicle and collects captured images when a warning for inattentive driving is issued even though the occupant does not look downward (hereinafter referred to as a "first test image"), captured images when a warning for inattentive driving is issued because the occupant looks downward (hereinafter referred to as a "second test image"), and captured images when a warning for inattentive driving is not issued because the occupant does not look downward (hereinafter referred to as a "third test image") Then, the administrator etc. generates learning data by adding information indicating whether the direction of the occupant's gaze detected based on the captured images is valid or not as a teacher label to the collected captured images. In detail, the administrator etc. assigns to the first test image as a teacher label information indicating that the direction of the occupant's gaze detected based on the first test image is not valid, assigns to the second test image as a teacher label information indicating that the direction of the occupant's gaze detected based on the second test image is valid, and assigns to the third test image as a teacher label information indicating that the direction of the occupant's gaze detected based on the third test image is valid. The administrator or the like trains a learning device to learn the generated learning data and generate a first machine learning model.
[0073] The gaze validity determination unit 15a inputs the captured image acquired by the image acquisition unit 11 into the first machine learning model, and if information indicating that the direction of the occupant's gaze detected based on the captured image is valid is obtained, it determines that the direction of the occupant's gaze detected by the gaze detection unit 12 is valid. The gaze validity determination unit 15a inputs the captured image acquired by the image acquisition unit 11 into the first machine learning model, and if information is obtained indicating that the direction of the occupant's gaze detected based on the captured image is invalid, i.e., is fraudulent, it determines that the direction of the occupant's gaze detected by the gaze detection unit 12 is fraudulent.
[0074] In addition, when the inattentive judgment unit 14 provisionally judges that the occupant is not looking aside, and when the inattentive judgment unit 14 provisionally judges that the occupant is looking aside but the inattentive gaze is not downward, the gaze validity judgment unit 15a judges that the direction of the occupant's gaze detected by the gaze detection unit 12 is valid.
[0075] The gaze correctness determination unit 15a outputs the gaze correctness determination result to the inattentive driving determination unit 16 together with the provisional inattentive driving determination result acquired from the provisional inattentive driving determination unit 14.
[0076] The model storage unit 18 stores a first machine learning model that is generated in advance by an administrator or the like. 7, the model storage unit 18 is provided in the inattentive behavior judgment device 1a, but this is merely an example. The model storage unit 18 may be provided in a location outside the inattentive behavior judgment device 1a that can be referenced by the inattentive behavior judgment device 1a.
[0077] The operation of the inattentive driving judgment device 1a according to the second embodiment will be described. Fig. 8 is a flowchart for explaining the operation of the inattentive driving judgment device 1a according to the embodiment 2. Note that the inattentive driving judgment device 1a repeats the operation shown in the flowchart of Fig. 8, for example, while the vehicle is traveling. In the flowchart of FIG. 8, the specific operations of step ST1, step ST2-1, step ST3, and steps ST5 to ST6 are similar to the specific operations of step ST1, step ST2-1, step ST3, and steps ST5 to ST6 by the inattentive driving judgment device 1 already described in embodiment 1, and therefore duplicated explanations will be omitted.
[0078] If the inattentive gaze provisional judgment unit 14 provisionally judges in step ST3 that the occupant is looking aside downward, the gaze validity judgment unit 15a judges whether the direction of the occupant's gaze detected by the gaze detection unit 12 in step ST2-1 is valid or not based on the captured image acquired by the captured image acquisition unit in step ST1 and the machine learning model stored in the model memory unit 18 (step ST4a). The gaze validity determination unit 15a inputs an captured image into a first machine learning model, and if information is obtained indicating that the direction of the occupant's gaze detected based on the captured image is valid, it determines in step ST2-1 that the direction of the occupant's gaze detected by the gaze detection unit 12 is valid. The gaze validity determination unit 15a inputs an captured image into a first machine learning model, and if information is obtained indicating that the direction of the occupant's gaze detected based on the captured image is invalid, i.e., is fraudulent, it determines in step ST2-1 that the direction of the occupant's gaze detected by the gaze detection unit 12 is fraudulent.
[0079] In addition, if the inattentive judgment unit 14 provisionally judges in step ST3 that the occupant is not looking aside, and if the inattentive judgment unit 14 provisionally judges that the occupant is looking aside but the inattentive gaze is not downward, the gaze validity judgment unit 15a judges that the direction of the occupant's gaze detected by the gaze detection unit 12 is valid. The gaze correctness determination unit 15a outputs the gaze correctness determination result to the inattentive driving determination unit 16 together with the provisional inattentive driving determination result acquired from the provisional inattentive driving determination unit 14.
[0080] In this way, the inattentive driving judgment device 1a makes a provisional inattentive driving judgment based on the direction of the occupant's gaze detected based on the captured image of the face of the occupant in the vehicle captured by the imaging device 2. When the inattentive driving judgment device 1a provisionally judges that the occupant is looking aside downward as a result of the provisional inattentive driving judgment, the inattentive driving judgment device 1a judges whether the detected direction of the occupant's gaze is valid or not based on the captured image and a first machine learning model generated in advance, such as before product shipment. Then, even if the inattentive driving judgment device 1a provisionally judges that the occupant is looking aside downward, if it judges that the detected direction of the occupant's gaze is invalid, it judges that the occupant is not looking aside. This enables the inattentive driving judgment device 1a to prevent erroneous detection of an occupant looking away when the gaze direction of the occupant detected based on the captured image is actually downward and is incorrectly detected as such.
[0081] In the above-described second embodiment, the first machine learning model may be generated based on a captured image acquired by the vehicle after the vehicle starts traveling. In detail, the inattentive driving judgment device may be equipped with a learning device that generates a first machine learning model based on an image captured by the vehicle, and may determine whether the gaze is correct or not using the first machine learning model generated by the learning device.
[0082] FIG. 9 is a diagram showing an example of the configuration of an inattentive driving determination device 1b incorporating a learning device 100 that generates a first machine learning model in the second embodiment. 9, the same components as those of the inattentive driving judgment device 1a described with reference to FIG. 7 are designated by the same reference numerals, and duplicated description will be omitted. The inattentive driving judgment device 1b shown in FIG. 9 differs from the inattentive driving judgment device 1a shown in FIG. The inattentive driving judgment device 1b, the imaging device 2, and the output device 3 constitute an inattentive driving judgment system 400b.
[0083] The learning device 100 generates learning data based on captured images (hereinafter referred to as "captured images for generating learning data") acquired by the image acquisition unit 11 during a preset period (hereinafter referred to as "learning data generation period"), and generates a first machine learning model using the generated learning data. In the second embodiment, the learning data generation period is, for example, a predetermined period from when the vehicle starts traveling. The learning device 100 includes a learning data generating unit 101 and a learning unit 102 .
[0084] The learning data generation unit 101 generates learning data for generating a first machine learning model.
[0085] A method for generating learning data by the learning data generating unit 101 will be described below with a specific example.
[0086] Example 1 First, the learning data generation unit 101 detects the direction of the occupant's gaze based on the captured image for generating learning data. The learning data generation unit 101 may detect the direction of the occupant's gaze in a manner similar to that used by the gaze detection unit 12 to detect the direction of the occupant's gaze. Note that, although the learning data generation unit 101 detects the direction of the occupant's gaze here, this is merely an example. For example, the gaze detection unit 12 may detect the direction of the occupant's gaze based on the captured image for generating learning data, and the learning data generation unit 101 may acquire the direction of the occupant's gaze from the gaze detection unit 12. Furthermore, the learning data generating unit 101 determines the degree to which the eyes of the occupant are open based on the captured image for generating learning data. The learning data generating unit 101 may determine the degree to which the eyes of the occupant are open in a manner similar to that of the eye opening degree determining unit 13 described in the first embodiment.
[0087] Then, the learning data generation unit 101 determines whether the detected direction of the occupant's gaze is valid or not based on the direction of the occupant's gaze detected based on the captured image for generating learning data and the degree of eye opening of the occupant determined based on the captured image for generating learning data. Specifically, when the direction of the gaze of the occupant is equal to or smaller than the gaze determination threshold, the learning data generation unit 101 determines whether the detected direction of the gaze of the occupant is valid or not in the same manner as the gaze validity determination by the gaze validity determination unit 15 described in the first embodiment. The learning data generation unit 101 stores the captured images acquired from the image acquisition unit 11 in a storage unit (not shown). When the storage unit does not store captured images in the number of frames of the captured images for validity determination, the learning data generation unit 101 may perform the gaze validity determination using only the stored captured images. The learning data generating unit 101 may determine that the detected direction of the occupant's gaze is valid if the direction of the occupant's gaze is not equal to or less than the gaze determination threshold.
[0088] When the learning data generation unit 101 determines whether the detected direction of the occupant's gaze is valid or not, it associates the result of the determination with the captured image and generates learning data including the captured image and information indicating whether the direction of the occupant's gaze is valid or not.
[0089] Example 2 As described above, in the second embodiment, the learning data generation period is, for example, a predetermined period from when the vehicle starts traveling. During the predetermined period from when the vehicle starts traveling, it is assumed that the occupant is likely to be facing forward without looking aside. Therefore, the learning data generating unit 101 can generate learning data on the assumption that the occupant faces straight ahead without looking aside.
[0090] First, the learning data generating unit 101 detects the direction of the passenger's gaze based on the captured image for generating learning data, in a manner similar to that described in the first specific example. The learning data generating unit 101 judges whether the detected direction of the occupant's gaze is valid or not based on the detected direction of the occupant's gaze. In detail, when the direction of the occupant's gaze is equal to or less than the gaze judgment threshold, the learning data generating unit 101 judges that the detected direction of the occupant's gaze is invalid, that is, fraudulent. As described above, this is because it is assumed that the occupant faces forward during the learning data generating period. The learning data generating unit 101 may determine that the detected direction of the occupant's gaze is valid if the direction of the occupant's gaze is not equal to or less than the gaze determination threshold.
[0091] When the learning data generation unit 101 determines whether the detected direction of the occupant's gaze is valid or not, it associates the result of the determination with the captured image and generates learning data including the captured image and information indicating whether the direction of the occupant's gaze is valid or not.
[0092] The learning data generating unit 101 outputs the generated learning data to the learning unit 102.
[0093] The learning unit 102 generates a first machine learning model using the learning data generated by the learning data generation unit 101. The learning unit 102 stores the generated first machine learning model in the model storage unit 18.
[0094] When the learning unit 102 stores the first machine learning model in the model storage unit 18, the gaze correctness determination unit 15a performs gaze correctness determination using the first machine learning model.
[0095] In embodiment 2, the specific operation of the inattentive driving judgment device 1b shown in FIG. 9 is similar to the specific operation of the inattentive driving judgment device 1a shown in FIG. 7, which has already been explained using the flowchart of FIG. 8, so duplicated explanations will be omitted. However, the inattentive driving judgment device 1b performs the operation shown in the flowchart of Fig. 8 after the first machine learning model generated by the learning device 100 is stored in the model storage unit 18. The inattentive driving judgment device 1b repeats the operation shown in the flowchart of Fig. 8, for example, while the vehicle is traveling.
[0096] FIG. 10 is a flowchart for explaining the operation of the learning device 100 mounted on the inattentive driving judgment device 1b shown in FIG. 9 in the second embodiment. The learning device 100 performs an operation as shown in the flowchart of FIG. 10 before the inattentive driving determination device 1b performs an operation as shown in the flowchart of FIG.
[0097] The learning data generation unit 101 generates learning data for generating a first machine learning model (step ST101). The learning data generating unit 101 outputs the generated learning data to the learning unit 102.
[0098] The learning unit 102 generates a first machine learning model by using the learning data generated by the learning data generation unit 101 in step ST101 (step ST102).
[0099] FIG. 11 is a flowchart for explaining the details of the operation of generating learning data by the learning data generating unit 101 in step ST101 of FIG. For example, when the vehicle starts traveling, the learning data generating unit 101 repeats the operation shown in the flowchart of FIG. 11 during a learning data generating period. Note that the flowchart in Figure 11 is a flowchart explaining the operation of the learning data generation unit 101 when the learning data generation unit 101 generates learning data using the method described above in <Specific Example 1>.
[0100] The learning data generating unit 101 acquires the captured images for generating learning data acquired by the image acquiring unit 11 (step ST1011). The learning data generating unit 101 detects the direction of the passenger's line of sight based on the captured image for generating learning data acquired in step ST1011 (step ST1012). Furthermore, the learning data generating unit 101 determines the degree to which the occupant's eyes are open, based on the captured image for generating learning data acquired in step ST1011 (step ST1013).
[0101] Then, based on the direction of the occupant's gaze detected in step ST1012 and the degree of eye opening of the occupant determined in step ST1013, the learning data generation unit 101 determines whether the direction of the occupant's gaze detected in step ST1012 is valid or not (step ST1014). Specifically, when the direction of the occupant's gaze detected in step ST1012 is equal to or less than the gaze judgment threshold, the learning data generation unit 101 judges whether the detected direction of the occupant's gaze is valid or not in a manner similar to the gaze validity judgment by the gaze validity judgment unit 15 described in embodiment 1 (see Figure 4). If the direction of the gaze of the occupant detected in step ST1012 is not equal to or smaller than the gaze determination threshold, the learning data generating unit 101 may determine that the detected direction of the gaze of the occupant is valid.
[0102] In step ST1014, the learning data generation unit 101 determines whether the direction of the occupant's gaze detected in step ST1012 is valid or not, and then associates the result of the determination with the captured image and generates learning data including information indicating whether the captured image and the direction of the occupant's gaze are valid or not (step ST1015).
[0103] In addition, if the learning data generation unit 101 generates learning data by the method described in the above-mentioned <Specific Example 2>, the process of step ST1013 can be omitted from the process described using the flowchart in Fig. 11. In step ST1014, if the direction of the gaze of the occupant detected in step ST1012 is equal to or less than the gaze determination threshold, the learning data generation unit 101 determines that the detected direction of the gaze of the occupant is invalid, that is, fraudulent. If the direction of the gaze of the occupant detected in step ST1012 is not equal to or less than the gaze determination threshold, the learning data generation unit 101 may determine that the detected direction of the gaze of the occupant is valid.
[0104] In this way, when the inattentive judgment device 1b provisionally judges that the occupant is looking downward as a result of the provisional inattentive judgment, it can also perform a gaze validity judgment as to whether the detected direction of the occupant's gaze is valid or not, based on the captured image and the first machine learning model generated by the learning device 100 based on the captured image acquired in the vehicle. Even in this manner, the inattentive driving judgment device 1b can prevent erroneous detection of an occupant looking away when the gaze direction of the occupant detected based on the captured image is incorrectly detected as being downward.
[0105] In the above-mentioned second embodiment, the inattentive driving judgment device 1b is equipped with the learning device 100, but this is merely one example. The inattentive driving judgment device 1b may not be equipped with the learning device 100, and the learning device 100 may be provided in a location outside the inattentive driving judgment device 1b that can be referenced by the inattentive driving judgment device 1b.
[0106] The hardware configuration of the inattentive driving judgment device 1a, 1b according to the second embodiment is similar to the hardware configuration of the inattentive driving judgment device 1 described in the first embodiment with reference to Figs. 6A and 6B, and therefore is not illustrated. In the second embodiment, the functions of the image acquisition unit 11, the gaze detection unit 12, the inattentive behavior tentative judgment unit 14, the gaze validity judgment unit 15a, the inattentive behavior judgment unit 16, and the warning unit 17 are realized by a processing circuit 1001. That is, the inattentive behavior judgment devices 1a and 1b include a processing circuit 1001 that, when judging whether or not an occupant is looking aside based on the direction of the occupant's gaze detected based on a captured image, judges whether or not the direction of the occupant's gaze is downward and then performs control to judge whether or not the occupant is looking aside.
[0107] The processing circuit 1001 executes the functions of the image acquisition unit 11, the gaze detection unit 12, the inattentiveness provisional judgment unit 14, the gaze correctness judgment unit 15a, the inattentiveness judgment unit 16, and the warning unit 17 by reading and executing the programs stored in the memory 1005. That is, the inattentiveness judgment devices 1a and 1b include a memory 1005 for storing a program that, when executed by the processing circuit 1001, results in the execution of steps ST1 to ST6 in Fig. 8 described above. Also, it can be said that the programs stored in the memory 1005 cause a computer to execute the processing procedures or methods of the image acquisition unit 11, the gaze detection unit 12, the inattentiveness provisional judgment unit 14, the gaze correctness judgment unit 15a, the inattentiveness judgment unit 16, and the warning unit 17. The storage unit (not shown) is configured by, for example, the memory 1005 . The inattentive driving determination devices 1a and 1b also include an input interface device 1002 and an output interface device 1003 that perform wired or wireless communication with devices such as the imaging device 2 or the output device 3.
[0108] The hardware configuration of the learning device 100 according to the second embodiment is similar to the hardware configuration of the inattentive driving determination device 1 described in the first embodiment with reference to FIGS. 6A and 6B, and therefore is not illustrated. In the second embodiment, the functions of the learning data generation unit 101 and the learning unit 102 are realized by a processing circuit 1001. That is, the learning device 100 includes the processing circuit 1001 for generating learning data based on captured images and for controlling the generation of a first machine learning model using the generated learning data. The processing circuit 1001 may be dedicated hardware as shown in FIG. 6A, or may be a processor 1004 executing a program stored in a memory 1005 as shown in FIG. 6B.
[0109] When the processing circuit is the processor 1004, the functions of the learning data generation unit 101 and the learning unit 102 are realized by software, firmware, or a combination of software and firmware. The software or firmware is written as a program and stored in the memory 1005. The processor 1004 executes the functions of the learning data generation unit 101 and the learning unit 102 by reading and executing the program stored in the memory 1005. That is, the learning device 100 includes the memory 1005 for storing a program that, when executed by the processor 1004, results in the execution of steps ST101 to ST102 in FIG. 10 described above. It can also be said that the program stored in the memory 1005 causes a computer to execute the processing procedure or method of the learning data generation unit 101 and the learning unit 102.
[0110] It should be noted that the functions of the learning data generation unit 101 and the learning unit 102 may be partially realized by dedicated hardware and partially realized by software or firmware. For example, the function of the learning data generation unit 101 may be realized by a processing circuit 1001 as dedicated hardware, and the function of the learning unit 102 may be realized by a processor 1004 reading and executing a program stored in a memory 1005. The storage unit (not shown) and the model storage unit 18 are configured with the memory 1005 and the like. The learning device 100 also includes an input interface device 1002 and an output interface device 1003 that perform wired or wireless communication with devices such as an imaging device 2.
[0111] In the above-described second embodiment, the inattentive driving judgment devices 1a and 1b are provided with the warning unit 17, but this is merely an example. For example, the function of the warning unit 17 may be provided by an external device connected to the inattentive driving judgment devices 1a and 1b outside the inattentive driving judgment devices 1a and 1b.
[0112] In addition, in the above embodiment 1, the inattentive driving judgment devices 1a, 1b are in-vehicle devices mounted on a vehicle, and the image acquisition unit 11, the gaze detection unit 12, the eye opening degree judgment unit 13, the provisional inattentive driving judgment unit 14, the gaze correctness judgment unit 15a, the inattentive driving judgment unit 16, the warning unit 17, and a control unit (not shown) are provided in the in-vehicle device. Without being limited to this, the system may be configured with the in-vehicle device and the server, with some of the image acquisition unit 11, gaze detection unit 12, eye opening degree determination unit 13, provisional inattentive determination unit 14, gaze correct / incorrect determination unit 15a, inattentive determination unit 16, warning unit 17, and a control unit (not shown) being mounted on the vehicle's in-vehicle device and the others being provided in a server connected to the in-vehicle device via a network. In addition, the image acquisition unit 11, gaze detection unit 12, eye opening degree determination unit 13, provisional inattentive determination unit 14, gaze correct / incorrect determination unit 15a, inattentive determination unit 16, warning unit 17, and a control unit (not shown) may all be provided in the server. In addition, with respect to the learning device 100, a part or the whole of the learning data generating unit 101 and the learning unit 102 may be provided in a server.
[0113] As described above, the inattentive viewing judgment device 1a, 1b according to embodiment 2 is configured to include an image acquisition unit 11 that acquires an image in which the face of an occupant inside the vehicle is captured, a gaze detection unit 12 that detects the direction of the occupant's gaze based on the image acquired by the image acquisition unit 11, an inattentive viewing provisional judgment unit 14 that makes a provisional judgment as to whether or not the occupant is looking aside based on the direction of the occupant's gaze detected by the gaze detection unit 12, a gaze correctness judgment unit 15a that makes a gaze correctness judgment as to whether or not the direction of the occupant's gaze detected by the gaze detection unit 12 is correct if the inattentive viewing provisional judgment unit 14 provisionally judges that the occupant is looking aside downward, and an inattentive viewing judgment unit 16 that judges that the occupant is not looking aside if the gaze correctness judgment unit 15 judges that the direction of the occupant's gaze detected by the gaze detection unit 12 is incorrect even if the inattentive viewing provisional judgment unit 14 provisionally judges that the occupant is looking aside downward. Therefore, the inattentive driving judgment device 1 can prevent erroneous detection of an occupant looking away when the gaze direction of the occupant detected based on the captured image is actually downward and is incorrectly detected as such.
[0114] In detail, in the inattentiveness judgment devices 1a and 1b according to the second embodiment, the gaze validity judgment unit 15a is configured to judge whether the gaze direction of the occupant detected by the gaze detection unit 12 is valid or not, based on the captured image acquired by the image acquisition unit 11 and a machine learning model (first machine learning model) that receives an input of an captured image of the occupant's face and outputs information indicating whether the gaze direction of the occupant detected based on the captured image is valid or not, when the inattentiveness judgment unit 14 provisionally judges that the occupant is looking aside downward. Therefore, the inattentiveness judgment devices 1a and 1b can prevent erroneous detection of inattentiveness by the occupant when the gaze direction of the occupant detected based on the captured image is a gaze direction that is incorrectly detected as downward. In addition, the inattentive driving judgment devices 1a and 1b use a machine learning model to judge whether the gaze is correct or not, thereby quickly analyzing the relationship between parameters and making a flexible judgment on whether the gaze is correct or not that matches the acquired captured image.
[0115] Moreover, the inattentive viewing judgment device 1a, 1b according to the second embodiment can be configured to include a learning data generation unit 101 that judges whether or not the detected direction of the gaze of the occupant is valid based on the direction of the gaze of the occupant detected based on the captured image for generating learning data acquired by the image acquisition unit 11 during the learning data generation period, and generates learning data including information indicating whether the captured image and the direction of the gaze of the occupant are valid, and a learning unit 102 that generates a machine learning model (first machine learning model) using the learning data generated by the learning data generation unit 101. Therefore, the inattentive viewing judgment device 1a, 1b can use a machine learning model according to the situation when the vehicle actually travels to perform a gaze validity judgment according to the situation when the vehicle actually travels. As a result, the inattentive viewing judgment device 1a, 1b can improve the accuracy of the gaze validity judgment.
[0116] Moreover, the inattentiveness judgment device 1a, 1b according to the second embodiment can be configured to include a learning data generation unit 101 that judges whether or not the detected direction of the gaze of the occupant is valid based on the direction of the gaze of the occupant detected based on the captured image for generating learning data acquired by the image acquisition unit 11 during the learning data generation period and the degree of eye opening of the occupant judged based on the captured image for generating learning data, and generates learning data including information indicating whether or not the captured image and the direction of the gaze of the occupant are valid, and a learning unit 102 that generates a machine learning model (first machine learning model) using the learning data generated by the learning data generation unit 101. Therefore, the inattentiveness judgment device 1a, 1b can use a machine learning model according to the situation when the vehicle actually travels to perform a gaze validity judgment according to the situation when the vehicle actually travels. As a result, the inattentiveness judgment device 1a, 1b can improve the accuracy of the gaze validity judgment.
[0117] It should be noted that the embodiments may be freely combined, or any of the components in each embodiment may be modified, or any of the components in each embodiment may be omitted. [Industrial Applicability]
[0118] The inattentive driving judgment device of the present disclosure can prevent erroneous detection of an occupant's inattentive driving when the gaze direction of a vehicle occupant detected based on an captured image is incorrectly detected as being downward. [Explanation of symbols]
[0119] 1, 1a, 1b inattentive viewing judgment device, 11 image acquisition unit, 12 gaze detection unit, 13 eye opening judgment unit, 14 provisional inattentive viewing judgment unit, 15, 15a gaze correct / incorrect judgment unit, 16 inattentive viewing judgment unit, 17 warning unit, 18 model storage unit, 100 learning device, 101 learning data generation unit, 102 learning unit, 2 imaging device, 3 output device, 400, 400a, 400b inattentive viewing judgment system, 1001 processing circuit, 1002 input interface device, 1003 output interface device, 1004 processor, 1005 memory.
Claims
1. an image acquisition unit that acquires an image of a face of an occupant in a vehicle; A gaze detection unit that detects a gaze direction of the occupant based on the captured image acquired by the image acquisition unit; an inattentive driving provisional determination unit that provisionally determines whether the occupant is looking aside based on the direction of the occupant's gaze detected by the gaze detection unit; a gaze validity determination unit that performs a gaze validity determination as to whether or not the direction of the gaze of the occupant detected by the gaze detection unit is valid when the inattentiveness provisional determination unit provisionally determines that the occupant is inattentively looking downward; an inattentiveness determination unit that determines that the occupant is not looking aside when the gaze correctness determination unit determines that the gaze direction of the occupant detected by the gaze detection unit is incorrect even if the inattentiveness provisional determination unit provisionally determines that the occupant is looking aside downward; an eye opening degree determination unit that determines an eye opening degree of the occupant based on the captured image acquired by the image acquisition unit, When the inattentiveness provisional determination unit provisionally determines that the occupant is inattentively looking downward, the gaze validity determination unit performs a gaze validity determination as to whether the gaze direction of the occupant detected by the gaze detection unit is valid or not, based on the gaze direction of the occupant detected by the gaze detection unit and the eye opening degree of the occupant determined by the eye opening degree determination unit. The inattentive driving detection device is characterized in that
2. The gaze authenticity determination unit determines that the gaze direction of the occupant detected by the gaze detection unit is invalid when, among the captured images for authenticity determination acquired by the image acquisition unit going back from the present, the direction of the gaze of the occupant detected by the gaze detection unit is equal to or smaller than a gaze determination threshold, and the ratio of the captured images in which the degree of eye opening of the occupant determined by the eye opening degree determination unit is equal to or larger than a genuineness determination threshold is equal to or larger than a genuineness determination threshold.
2. The inattentive driving detection device according to claim 1,
3. an image acquisition unit that acquires an image of a face of an occupant in a vehicle; A gaze detection unit that detects a gaze direction of the occupant based on the captured image acquired by the image acquisition unit; an inattentive driving provisional determination unit that provisionally determines whether the occupant is looking aside based on the direction of the occupant's gaze detected by the gaze detection unit; a gaze validity determination unit that performs a gaze validity determination as to whether or not the direction of the gaze of the occupant detected by the gaze detection unit is valid when the inattentiveness provisional determination unit provisionally determines that the occupant is inattentively looking downward; and an inattentiveness determination unit that determines that the occupant is not looking aside when the inattentiveness provisional determination unit provisionally determines that the occupant is looking aside downward and the gaze correctness determination unit determines that the gaze direction of the occupant detected by the gaze detection unit is incorrect, When the inattentiveness provisional determination unit provisionally determines that the occupant is looking aside downward, the gaze validity determination unit performs a gaze validity determination as to whether the direction of the occupant's gaze detected by the gaze detection unit is valid or not, based on the captured image acquired by the image acquisition unit and a machine learning model that receives as input the captured image in which the occupant's face is captured and outputs information indicating whether the direction of the occupant's gaze detected based on the captured image is valid or not, a learning data generating unit that determines whether or not the detected direction of the gaze of the occupant is valid based on the captured image for generating learning data acquired by the image acquiring unit during a learning data generating period and the degree of eye opening of the occupant determined based on the captured image for generating learning data, and generates learning data including information indicating whether the captured image and the direction of the gaze of the occupant are valid; A learning unit that generates the machine learning model using the learning data generated by the learning data generation unit. The inattentive driving detection device includes:
4. The learning data generating unit determines that the detected direction of the gaze of the occupant is incorrect when a ratio of the captured images for generating the learning data in which the direction of the gaze of the occupant is equal to or smaller than a gaze determination threshold and the degree of eye opening of the occupant is equal to or larger than a correct / incorrect determination threshold is equal to or larger than a correct / incorrect determination threshold.
4. The inattentive driving detection device according to claim 3.
5. a warning unit that outputs warning information for issuing a warning when the inattentive judgment unit judges that the occupant is inattentive The inattentive looking judgment device according to any one of claims 1 to 4, further comprising:
6. The warning unit outputs the warning information when the state of the occupant that is determined to be inattentive by the inattentive determination unit continues for a warning target time.
6. The inattentive driving detection device according to claim 5,
7. An image acquisition unit acquires an image of a face of an occupant in a vehicle; A line of sight detection unit detects a direction of a line of sight of the occupant based on the captured image acquired by the image acquisition unit; a step of a provisional inattentive determination unit provisionally determining whether or not the occupant is looking aside based on the direction of the occupant's gaze detected by the gaze detection unit; a gaze validity determination unit performing a gaze validity determination as to whether or not the direction of the gaze of the occupant detected by the gaze detection unit is valid when the inattentiveness provisional determination unit provisionally determines that the occupant is inattentively looking downward; a step of determining that the occupant is not looking aside when the gaze correctness determination unit determines that the gaze direction of the occupant detected by the gaze detection unit is incorrect even if the inattentive gaze determination unit provisionally determines that the occupant is looking aside downwards; An eye opening degree determining unit determines an eye opening degree of the occupant based on the captured image acquired by the image acquiring unit, When the inattentiveness provisional determination unit provisionally determines that the occupant is inattentively looking downward, the gaze validity determination unit performs a gaze validity determination as to whether the gaze direction of the occupant detected by the gaze detection unit is valid or not, based on the gaze direction of the occupant detected by the gaze detection unit and the eye opening degree of the occupant determined by the eye opening degree determination unit. A method for determining whether or not a person is looking away.
8. A step of an image acquisition unit acquiring an image of a face of an occupant in a vehicle; A line of sight detection unit detects a direction of a line of sight of the occupant based on the captured image acquired by the image acquisition unit; a step of a provisional inattentive determination unit provisionally determining whether or not the occupant is looking aside based on the direction of the occupant's gaze detected by the gaze detection unit; a gaze validity determination unit performing a gaze validity determination as to whether or not the direction of the gaze of the occupant detected by the gaze detection unit is valid when the inattentiveness provisional determination unit provisionally determines that the occupant is inattentively looking downward; a step of determining that the occupant is not looking aside when the gaze correctness determination unit determines that the gaze direction of the occupant detected by the gaze detection unit is incorrect even if the inattentive gaze determination unit provisionally determines that the occupant is looking aside downward, When the inattentiveness provisional determination unit provisionally determines that the occupant is looking aside downward, the gaze validity determination unit performs a gaze validity determination as to whether the direction of the occupant's gaze detected by the gaze detection unit is valid or not, based on the captured image acquired by the image acquisition unit and a machine learning model that receives as input the captured image in which the occupant's face is captured and outputs information indicating whether the direction of the occupant's gaze detected based on the captured image is valid or not, a learning data generating unit determining whether or not the detected direction of the gaze of the occupant is valid based on the direction of the gaze of the occupant detected based on the captured image for generating learning data acquired by the image acquiring unit during a learning data generating period and the degree of eye opening of the occupant determined based on the captured image for generating learning data, and generating learning data including information indicating whether the captured image and the direction of the gaze of the occupant are valid; A learning unit generates the machine learning model using the learning data generated by the learning data generation unit. The method for determining whether or not a person is looking away comprises the steps of:
Citation Information
Patent Citations
Carelessness warning device, vehicle equipment control method for the device and program for vehicle control device
JP2008204107A
Inattentive driving determination device, inattentive driving determination method, and program
JP2019091268A
Inattentive driving detection device
JP2020024532A
Line-of-sight data correction device, evaluation device, line-of-sight data correction method, evaluation method, line-of-sight data correction program, and evaluation program
JP2021051564A
Visual line estimation device
JP2021060937A
