Method and device for identifying swallowing disorder risk based on machine vision
Using machine vision technology to extract swallowing-related features, combined with risk assessment models, this solves the problems of low accuracy and lack of convenience in swallowing disorder screening methods in existing technologies in complex scenarios, achieving more accurate and convenient risk identification of swallowing disorders. .
Patent Information
- Application Number
- CN202410904391.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-08
AI Technical Summary
Existing computer vision-based dysphagia screening methods have low prediction accuracy in complex dining scenes, are cumbersome to operate, and lack convenience.
A method based on machine vision is used to obtain video images of users' dining scenes, extract mouth shape features, eating speed features, and neck movement features, and combine it with a risk assessment model to identify the risk of dysphagia in real time.
It improves the accuracy and convenience of swallowing disorder risk identification, provides more specific risk assessment information, is suitable for a variety of dining scenarios, and does not require specific user actions.
Smart Images

Figure CN118447580B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of nursing technology, and in particular to a method and device for identifying dysphagia risks based on machine vision. Background Art
[0002] As one of the common health problems among the elderly, dysphagia not only affects their quality of life, but may also cause a series of complications, such as aspiration pneumonia, malnutrition, etc. Therefore, it is particularly important to timely detect and assess the risk of dysphagia in the elderly.
[0003] CN117274878A provides a method for screening swallowing disorders based on computer vision, firstly collecting video data of the side of several subjects when drinking water at multiple stages to obtain a training data set, training the model through the training data set, collecting the video data to be identified of the side of the subject when drinking water at multiple stages, inputting the video data to be identified into the trained model, and obtaining the classification result. This method is limited to the prediction of a certain accuracy in the case of swallowing a specific volume of warm water in a specific order, but in more complex practical application scenarios, due to the diversity of meals and differences in eating habits of users during meals, the prediction accuracy of this method is low, and the complex operation of its multiple test steps leads to a long time consumption, which is not convenient for the subjects.
[0004] Therefore, a method and device for identifying dysphagia risk based on machine vision are needed to improve the accuracy of dysphagia risk identification. Summary of the invention
[0005] In view of this, in order to solve the problems of low accuracy of swallowing disorder risk identification in the prior art and lack of convenience for subjects, an embodiment of the present invention provides a swallowing disorder risk identification method and device based on machine vision, which can improve the accuracy of swallowing disorder risk identification.
[0006] In a first aspect, an embodiment of the present invention provides a method for identifying swallowing disorder risks based on machine vision, the method comprising: acquiring a video image including a user dining scene, and selecting a number of video frames from the video image; based on the number of video frames, acquiring a facial area image and a neck area image of the user in each video frame; based on the facial area images in the number of video frames, extracting mouth shape features; based on the facial area images in the number of video frames, extracting eating speed features; based on the neck area images in the number of video frames, extracting neck movement features; and determining the degree of swallowing disorder risk of the user based on the mouth shape features, the eating speed features and the neck movement features.
[0007] Preferably, extracting the mouth shape feature based on the facial area images in the several video frames includes: determining the mouth opening amplitude corresponding to the video frame based on the mouth area image included in the facial area image in each of the video frames; and determining the largest mouth opening amplitude as the mouth shape feature based on multiple mouth opening amplitudes corresponding to the several video frames.
[0008] Preferably, extracting eating speed characteristics based on the facial area images in the several video frames includes: determining a set of video frames between two adjacent swallowing time points based on the several video frames; determining the number of mouth openings corresponding to the video frame set by comparing with a preset threshold value based on the mouth opening amplitude corresponding to each video frame in the video frame set; determining the eating speed characteristics based on the number of mouth openings corresponding to the video frame set.
[0009] Preferably, extracting neck motion features based on the neck area images in the several video frames includes: determining neck texture dynamic features based on the neck area images in the several video frames; determining neck contour dynamic features based on the neck area images in the several video frames; determining neck motion features based on the neck texture dynamic features and the neck contour dynamic features.
[0010] Preferably, determining the dynamic features of the neck texture based on the neck area images in the several video frames includes: determining the grayscale co-occurrence matrix corresponding to the neck area image based on the neck area image in each frame of the several video frames; extracting the texture features corresponding to the neck area image based on the grayscale co-occurrence matrix corresponding to the neck area image; and obtaining the dynamic features of the neck texture based on several texture features corresponding to the several video frames.
[0011] Preferably, determining the dynamic features of the neck contour based on the neck area images in the several video frames includes: extracting the contour line of the neck area image based on the neck area image in each of the several video frames; determining the curvature at several points in the contour line; determining the curvature difference between the several points on the contour line in two adjacent video frames; arranging the curvature difference between the several points on the contour line in two adjacent video frames in a predefined sorting manner to form a curvature difference sequence; and obtaining the dynamic features of the neck contour based on the several curvature difference sequences determined from the several video frames.
[0012] Preferably, the degree of dysphagia risk includes a risk probability; determining the degree of dysphagia risk of the user based on the mouth shape characteristics, the eating speed characteristics and the neck movement characteristics includes: determining the risk probability of dysphagia of the user through a risk assessment model based on the mouth shape characteristics, the eating speed characteristics and the neck movement characteristics, wherein the risk assessment model is used to weight the input mouth shape characteristics, the eating speed characteristics and the neck movement characteristics, and processing the weighted results through a Sigmoid function to obtain the risk probability.
[0013] Preferably, the acquisition of the video image including the user's dining scene includes: acquiring the video image through a camera device; converting the video image into a video frame; determining whether the user belongs to a target user based on the video frame through a user recognition model; outputting catering supplies information based on the video frame through a catering supplies recognition model; when the user belongs to the target user, determining whether the catering supplies information meets a preset condition, and if so, using the video image as the video image including the user's dining scene.
[0014] On the other hand, a swallowing disorder risk identification device based on machine vision is provided, characterized in that the device includes: an acquisition module, used to acquire a video image including a user's dining scene, and select a number of video frames from the video image; a recognition module, used to acquire a facial area image and a neck area image of the user in each video frame according to the number of video frames; a first extraction module, used to extract mouth shape features and eating speed features according to the facial area images in the number of video frames; a second extraction module, used to extract neck movement features according to the neck area images in the number of video frames; a determination module, used to determine the degree of swallowing disorder risk of the user according to the mouth shape features, eating speed features and the neck movement features.
[0015] On the other hand, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that when the program is executed by a processor, any of the methods described above is implemented.
[0016] In summary, the beneficial effects of the present invention are as follows: by acquiring video images of user dining scenes, and selecting video frames therefrom in real time for analysis using machine vision methods, the identification of dysphagia is made more real-time and convenient; by extracting specific features related to dysphagia identification, including mouth shape features, eating speed features, and neck movement features, the user's swallowing condition can be more accurately reflected; the risk level of dysphagia is determined based on mouth shape features, eating speed features, and neck movement features, and this quantitative risk assessment can provide more specific reference information; by analyzing video images of users dining to identify the risk of dysphagia, the user does not need to perform specific actions or cooperation, thereby improving the user experience, and can also be applied to a variety of dining scenarios, without being limited to a specific detection environment, thereby enhancing the applicability of the method. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings required for use in the embodiment of the present invention will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work, and these are all within the protection scope of the present invention.
[0018] Figure 1 It is a schematic diagram of an application scenario of a method for identifying dysphagia risk based on machine vision according to an embodiment of the present invention.
[0019] Figure 2 It is an exemplary flow chart of a method for identifying swallowing disorders risk based on machine vision according to an embodiment of the present invention.
[0020] Figure 3 It is an exemplary flow chart of determining mouth shape features and eating speed features according to an embodiment of the present invention.
[0021] Figure 4 It is a module schematic diagram of a swallowing disorder risk identification device based on machine vision according to an embodiment of the present invention.
[0022] Figure 5 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and Examples. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.
[0024] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0025] Example 1
[0026] The embodiment of the present invention provides a method for identifying swallowing disorders based on machine vision. The method can be executed by a processor of an electronic device. For more information about the electronic device, please refer to the relevant description of other embodiments. The method and electronic device can be used in application scenarios of remote intelligent care for elderly people, patients with stroke, neurodegenerative diseases, head and neck tumors, etc. who are at risk of swallowing disorders, or other application scenarios that require identification of the risk level of swallowing disorders in users. For example, Figure 1As shown, in the application scenario 100 of remote intelligent care for the elderly, patients with stroke, neurodegenerative diseases, head and neck tumors, etc. who are at risk of dysphagia, the assistant (which can be a robot or a mobile care electronic device itself) places an electronic device 110 in the dining scene of the elderly, and a dysphagia risk identification method based on machine vision is integrated in the electronic device 110. For example, the electronic device 110 can be a remote care machine for the elderly, patients with stroke, neurodegenerative diseases, head and neck tumors, etc. who are at risk of dysphagia. After obtaining the user's (the elderly and patients with stroke, neurodegenerative diseases, head and neck tumors, etc. who are at risk of dysphagia) image, the assistant places an electronic device 110 in the dining scene of the elderly, and a dysphagia risk identification method based on machine vision is integrated in the electronic device 110. For example, the electronic device 110 can be a remote care machine for the elderly, patients with stroke, neurodegenerative diseases, head and neck tumors, etc. who are at risk of dysphagia. After authorization, the remote elderly care device can take a photo of the user and provide it to the remote caregiver for reference, so as to know whether the elderly are in a safe and healthy state. It can also obtain real-time video images of the elderly dining in the dining scene. The electronic device 110 can also identify the swallowing disorder risk of the user 120 in the dining scene through the video image during the elderly dining process, and output the identification result to provide a reference for the remote caregiver, so as to better understand the swallowing ability of the elderly, so as to adjust the care method when necessary, such as adjusting the elderly's diet structure, changing to more suitable food for the elderly, avoiding swallowing hazards in advance, or facilitating the electronic device to execute subsequent methods, such as outputting reminders, etc. It should be noted that this method does not involve the direct diagnosis or treatment process of the disease, but focuses on the identification and assessment of risks.
[0027] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this disclosure are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards in the relevant area, and provide corresponding operation portals for users to choose to authorize or refuse. For example, the video information involved in this disclosure is obtained with full authorization. In the following embodiments of the present invention, the elderly population is taken as an example to describe the present invention, but it is not actually limited to the elderly. The technical solution can also be used to care for patients with stroke, neurodegenerative diseases, head and neck tumors, etc. who are at risk of swallowing disorders, and these cares are all within the scope of protection of the present invention.
[0028] like Figure 2 As shown in the figure, the risk identification method of swallowing disorders based on machine vision includes:
[0029] S1, obtaining a video image including a user's dining scene, and selecting a number of video frames from the video image.
[0030] The dining scene refers to the environment in which the user eats, which may include the dining table, tableware, the user or other users, and the background wall.
[0031] Video images can be acquired through a camera device. The camera device may include a camera, a mobile smart terminal with a camera function, etc., which are fixed at a designated position in the dining environment after debugging, facing the user. For example, in the application scenario of remote smart care for the elderly, the camera device can be placed flat on the dining table used by the user, or fixed with a support frame, and the shooting direction is horizontal or slightly upward, facing the position of the user when dining. The shooting area of the camera device covers at least the user's face, and can also cover at least part of the desktop area (for example, part of the tableware and part of the dining table can be captured), and video images of the dining scene are generated in real time.
[0032] Exemplarily, the camera device uses a monocular camera with a resolution of 4K and a frame rate of 20 frames per second.
[0033] The video image in the dining scene may include the image of the user. When no one is using it, it may include the image of the background wall and other objects. It may also include the images of other users who have entered the dining scene.
[0034] The processor can convert the video image into video frames by any feasible method such as time window-based selection, frame interval-based selection, frame-by-frame acquisition, etc., for example, selecting continuous video frames within a certain time period from the current time point.
[0035] In some embodiments, step S1 includes:
[0036] S11, acquiring a video image through a camera device.
[0037] S12, converting the video image into a video frame. The conversion may be performed by referring to the above method, which will not be described in detail here.
[0038] S13, determining whether the user is a target user based on the video frame and using a user recognition model.
[0039] According to the video frame, the user group estimation information is output through the user recognition model. The user group estimation information may include the estimated age group, etc. The processor may output the estimated age group according to the video frame through the user recognition model.
[0040] The processor can input the video frame into a trained user recognition model and output facial area data. The user recognition model can be a deep learning model, for example, it can include any one or a combination of Faster R-CNN, SSD, YOLO (such as YoloV8s), MTCNN, etc. When training the initial user recognition model, it can be trained based on a large number of first training samples with a first label. Each first training sample can include a first sample image, the first sample image includes the face of the test user, and the first label includes the sample facial area data corresponding to the first training sample. For example, the sample age group in the first sample image (which can be the age group corresponding to the actual age of the test user, such as between 60 and 80 years old) can be manually marked in the first sample image as the corresponding first label.
[0041] S14, outputting catering supplies information according to the video frame through a catering supplies recognition model.
[0042] The dining supplies may include supplies that may be involved in dining, such as at least one of tableware, food, and dining tables. The dining supplies information may include the type of supplies in the dining supplies area in the video frame, the area position of the dining supplies area (such as starting coordinates, width, height, etc.), etc.
[0043] The processor can input the video frame into the trained catering supplies recognition model and output the catering supplies information. The catering supplies recognition model can be a deep learning model, for example, it can include any one or combination of Faster R-CNN, SSD, YOLO, MTCNN, etc. When training the initial catering supplies recognition model, it can be trained based on a large number of second training samples with second labels. Each second training sample can include a second sample image, and the second sample image includes sample catering supplies, such as various sample tableware, sample meals, sample dining tables, etc. The second label includes the type of supplies and the regional location of the sample catering supplies area corresponding to the second training sample, which can be obtained by manual annotation.
[0044] S15, when the user is a target user, determine whether the dining supplies information meets a preset condition, and if so, use the video image as a video image including the user's dining scene.
[0045] In the application scenario of caring for the elderly, users with an estimated age range of 60 to 80 years old can be selected as target users.
[0046] The preset conditions are the conditions that the dining supplies information needs to meet when the user is dining. For example, the preset conditions may include the following conditions or any other feasible conditions:
[0047] When the type of the catering supplies area is dining table / dining plate / food, the distance between the area position of the facial area data and the area position of the catering supplies area does not exceed the corresponding preset distance threshold.
[0048] The present invention uses a user recognition model and a catering supplies recognition model to determine whether user information and catering supplies information meet preset conditions, and can accurately screen out video images containing user dining scenes, greatly reducing the impact of non-dining scenes on subsequent swallowing disorder risk identification, improving the pertinence and accuracy of the entire system, reducing the computational burden, and improving the system's operating efficiency; both the user recognition model and the catering supplies recognition model are based on deep learning technology, have strong adaptability and generalization capabilities, can handle different users, different catering supplies and different dining environments, and have strong robustness and practicality.
[0049] S2, according to the plurality of video frames, obtaining a facial region image and a neck region image of the user in each video frame.
[0050] The processor can obtain the regional position of the user's facial area and the regional position of the neck area in each video frame through a target recognition model (such as a YoloV8s model) based on several video frames. The specific method can refer to the relevant method of outputting user information through a user recognition model in the above step S13 to obtain facial area data including regional positions, which will not be repeated here. When training the target recognition model, the sample images in the training samples need to include the test user's neck in addition to the face, and the corresponding labels need to include the regional position of the sample neck area (such as starting coordinates, width, height, etc.).
[0051] Since the neck area is fixed relative to the face, the processor can also obtain facial area data including the area position based on several video frames through the user recognition model in step S13, and then obtain the neck area under the face based on the position of the facial area and prior knowledge to obtain a neck area image.
[0052] After obtaining the regional position F(x, y, w, h) of the facial region and the regional position J(x, y, w, h) of the neck region, the facial region image and the neck region image can be obtained from the corresponding positions of the video frame.
[0053] S3, extracting mouth shape features OI and eating speed features JC according to facial region images in a number of video frames.
[0054] Mouth shape features refer to features related to the shape of the mouth area, such as at least one of the opening and closing state, mouth opening amplitude, shape, width, height, area, lip outer contour, lip inner contour, etc.
[0055] The eating speed feature is a feature related to the speed of the user during the meal, for example, including at least one of chewing frequency, chewing speed, swallowing frequency, and the number of chews before each swallowing.
[0056] The processor can extract mouth shape features and eating speed features based on facial area images in several video frames through various feasible methods, such as methods based on image processing technology, deep learning, etc.
[0057] Extracting mouth shape features based on facial area images in several video frames through image processing-based technology may include: for the facial area image of each video frame in the several video frames, detecting the mouth area K(x, y, w, h) through the Viola-Jones algorithm (VJ face detection algorithm) to obtain a mouth area image; based on the mouth area image, obtaining the inner contour of the lips through the Canny edge detection algorithm; based on the inner contour of the lips, extracting geometric features of the inner contour of the lips, such as width, height, area, etc.; and using the geometric features of the inner contour of the lips as the mouth shape features corresponding to the video frame.
[0058] According to the facial area images in several video frames, extracting the eating speed features through a deep learning-based timing model (such as an LSTM network, a GRU network, etc.) may include: arranging the several video frames obtained above in chronological order to form a video frame sequence; and inputting the video frame sequence into a pre-trained LSTM timing model to obtain the eating speed features.
[0059] When training the initial LSTM timing model, training can be performed based on a large number of third training samples with third labels. Each third training sample may include a sample video frame sequence. Considering that eating speed is related to mouth movement, the sample video frame sequence includes sample mouth shape features corresponding to each sample video frame, such as height, area, etc. The third label includes the actual eating speed corresponding to the third training sample, which can be obtained by manual labeling, for example, marking the third label as the actual number of chewings per unit time corresponding to the third training sample.
[0060] In some embodiments, Figure 3 As shown, step S3 includes:
[0061] S31, determining a mouth opening amplitude corresponding to each video frame according to a mouth area image included in a facial area image in each video frame; and determining a maximum mouth opening amplitude as a mouth shape feature according to multiple mouth opening amplitudes corresponding to a plurality of video frames.
[0062] For example, for the mouth area K (x, y, w, h) of each video frame in several video frames, determine the video frame with the largest height K (h) and use it as the mouth opening amplitude. The maximum vertical distance of the oral contour line is calculated as the mouth opening amplitude A, and the calculation method can also be A = max (y_max-y_min, x_max-x_min), where (x_min, y_min) and (x_max, y_max) represent the lower left corner coordinates and upper right corner coordinates of the mouth area K, respectively.
[0063] Alternatively, the processor determines the relevant feature points of the mouth area (such as the 48th to 67th points) based on the facial area image in each video frame through a facial feature point detection algorithm (such as Dlib's 68-point facial feature point detection); determines the polygonal or rectangular area surrounding the relevant feature points of the mouth area, and uses the image included in the area as the mouth area image; calculates the distance between the upper edge of the mouth (such as the 48th and 54th points) and the lower edge of the mouth (such as the 60th and 66th points), and uses the distance as the mouth opening amplitude corresponding to the video frame. Since each of the several video frames may contain an image of the user's open mouth, and as time goes on, the mouth opening amplitude corresponding to the video frame may change from large to small, or from small to large. Based on the multiple mouth opening amplitudes corresponding to the several video frames, the processor can directly use the largest mouth opening amplitude as the value of the mouth shape feature OI to characterize the user's ability to open the mouth when dining.
[0064] The present invention analyzes the mouth area image of each video frame and determines the mouth opening amplitude of each frame, so as to capture the specific changes of the user's mouth movement in more detail. The assessment of dysphagia requires accurate identification of the user's mouth opening and closing amplitude during eating, which is an important indicator for measuring whether the swallowing action is smooth. The maximum mouth opening amplitude as a mouth shape feature can represent the extreme state of the user's mouth movement during eating. By paying attention to and quantifying the maximum mouth opening amplitude, abnormal behaviors related to dysphagia can be captured more sensitively, and the effectiveness and risk of swallowing actions can be evaluated with higher accuracy. Taking the maximum mouth opening amplitude as a mouth shape feature can be combined with other features (such as eating speed, neck movement, etc.) to provide more comprehensive information for risk assessment of dysphagia.
[0065] In some embodiments, step S3 includes:
[0066] S32, determining a set of video frames between two adjacent swallowing time points based on the plurality of video frames. Specifically, step S32 may include:
[0067] S321, extracting neck movement features based on neck area images in a plurality of video frames.
[0068] This step S321 may be completely the same as or similar to step S4. For the specific implementation method, please refer to the relevant description in step S4 below.
[0069] S322, detecting the time point when the swallowing action occurs according to the neck movement characteristics as the swallowing time point.
[0070] The processor can detect the time point when the swallowing action occurs based on the neck movement characteristics and the swallowing detection model.
[0071] The swallowing detection model is a pre-trained model suitable for processing time series data, such as a long short-term memory network (LSTM), a bidirectional LSTM, or a temporal convolutional network (TCN).
[0072] When training the initial swallowing detection model, the training can be performed based on a large number of fourth training samples with fourth labels. Each fourth training sample can include sample neck motion features. A set of sample continuous video frames can be obtained from various test users when they are eating, or a set of sample continuous video frames can be obtained from the same test user when they are eating in different time periods. The sample continuous video frames all include the neck image of the test user. The sample continuous video frames may include the process of the test user from the beginning of chewing to the completion of swallowing, or the process of continuing to chew after the beginning of swallowing to the completion of swallowing, or only the chewing process, or only the swallowing process, and other possible dining processes. Neck motion features are extracted from the neck area images in the obtained sample continuous video frames as sample neck motion features. The fourth label includes the actual swallowing time point corresponding to the fourth training sample, which can be obtained by manual annotation. Since the neck motion feature is a characteristic or attribute that describes and quantifies the movement change of the neck in continuous time or space, it is obtained by comparing the changes in shape features and texture features between adjacent video frames. According to the actual swallowing situation of the test user in the sample continuous video frames, the shape features / shape features / contour curvature, texture features, etc. (elements in the sequence) corresponding to the corresponding video frames in the sample neck motion feature (sequence) are manually annotated. For example, when the test user swallows in some video frames of the sample continuous video frames, the sample The shape features / shape features / contour curvature, texture features, etc. (elements in the sequence) corresponding to the corresponding video frames in this neck motion feature (sequence) are marked as 1. When the test user does not swallow in other video frames of the sample continuous video frames, the shape features / shape features / contour curvature, texture features, etc. (elements in the sequence) corresponding to the corresponding video frames in the sample neck motion feature (sequence) are marked as 0. Therefore, after the shape features / shape features / contour curvature, texture features, etc. (elements in the sequence) corresponding to each frame in the sample neck motion feature (sequence) are marked, the fourth label corresponding to the fourth training sample is completed.
[0073] After training the initial swallowing detection model according to the fourth training sample and the fourth label to obtain a pre-trained swallowing detection model, the processor can input the neck movement features into the swallowing detection model, and output a prediction result of whether the shape features / shape features / contour curvature, texture features, etc. corresponding to each frame of the neck movement features are in a swallowing action, such as 0 or 1; according to the prediction results, determine the target video frame where the swallowing action occurs from several video frames; according to the timestamp of the target video frame, determine the time point when the swallowing action occurs as the swallowing time point.
[0074] S323, according to two adjacent swallowing time points, determine a plurality of video frames belonging to the two adjacent swallowing time points from the plurality of video frames to form a video frame set.
[0075] Specifically, all detected swallowing time points may be sorted; based on the sorting result, two adjacent swallowing time points are selected, and multiple video frames with time stamps between the two adjacent swallowing time points are selected from a plurality of video frames to form a video frame set.
[0076] S33, determining the number of mouth opening times corresponding to the video frame set according to the mouth opening amplitude corresponding to each video frame in the video frame set by comparing with a preset threshold.
[0077] The preset threshold can be used to distinguish chewing from not opening the mouth, normal opening of the mouth, yawning or other behaviors related to opening the mouth. The preset threshold may include a maximum threshold and a minimum threshold. When the mouth opening amplitude is less than the minimum threshold, it can be considered that the user in the video frame has not opened his mouth. When the mouth opening amplitude corresponding to multiple video frames in the video frame set changes from less than the minimum threshold to between the minimum threshold and the maximum threshold, it can be considered that the user is opening his mouth while chewing. If the mouth opening amplitude corresponding to multiple video frames in the video frame set changes from between the minimum threshold and the maximum threshold to less than the minimum threshold, it can be considered that the user has completed a complete chewing. When the mouth opening amplitude is greater than the maximum threshold, it can be considered that the user in the video frame is yawning. The preset threshold can be adjusted according to experience, actual needs or video quality.
[0078] For each video frame in the video frame set, compare its mouth opening amplitude with the preset threshold. If the mouth opening amplitude exceeds the threshold, it is considered that the state corresponding to the video frame is open mouth; since the video frames in the video frame set are continuous, the mouth opening action may span multiple frames. In order to avoid repeated counting, if multiple consecutive video frames in the video frame set exceed the preset threshold, these multiple consecutive video frames correspond to one mouth opening; traverse the video frame set, process each video frame by the above method, and obtain the number of mouth openings corresponding to the video frame set.
[0079] S34, determining an eating speed feature JC according to the number of mouth openings corresponding to the video frame set.
[0080] The processor can directly use the value of the number of mouth opening times corresponding to the video frame set as the eating speed feature.
[0081] Considering that the number of times food is chewed before swallowing is related to the user's ability to handle food and swallowing safety, the present invention determines the number of mouth openings based on the mouth opening amplitude corresponding to each video frame in the video frame set by comparing with a preset threshold, so as to quantify the number of times the user chews in a specific time period (i.e., between two swallows), thereby quantifying the user's eating speed. The eating speed feature, as a quantitative indicator, can more objectively reflect the user's eating speed and help identify abnormal eating behaviors, such as eating too fast or too slow, or identify whether the user chews sufficiently between two swallows. Considering that the risk of dysphagia is not only related to a single swallowing action, but also closely related to the behavioral pattern during the entire eating process, by analyzing the number of mouth openings between two adjacent swallowing time points as the eating speed feature and combining other features to comprehensively determine the risk of dysphagia, early signs of dysphagia can be more sensitively detected.
[0082] S4, extracting neck motion features according to neck area images in a plurality of video frames.
[0083] Considering that swallowing action involves coordinated movement of the neck and throat, for example, during swallowing, the neck muscles will be involved in pushing the food bolus, while the throat muscles are responsible for closing the throat passage to prevent food or liquid from entering the trachea. Video images can capture subtle movements of the neck muscles during swallowing. The present invention analyzes the neck area image and extracts neck movement features to analyze the swallowing action performed by the user during the shooting time of the video image.
[0084] This method can help identify situations where a single swallow appears normal but the overall eating behavior is abnormal, thereby improving the sensitivity of risk identification.
[0085] Neck motion features refer to characteristics or attributes that describe and quantify the movement changes of the neck in continuous time or space. For example, neck motion features may include neck shape change data (such as elongation, shortening, etc.), neck texture change data, neck angle change data, etc. in several video frames.
[0086] The processor can extract neck motion features based on the neck area images in several video frames through the following methods or other various feasible methods: use the Canny edge detection algorithm to detect the edge of the neck area image; use a contour search algorithm (such as OpenCV's findContours) to extract the complete contour line of the neck from the edge of the neck area image; calculate shape features based on the complete contour line, such as the perimeter, area, convex hull (if any), center of mass, etc. of the contour line, to obtain the shape features of the neck area image; apply the Local Binary Patterns (LBP) algorithm in the neck area image to extract the texture features of the neck area image; repeat the above steps for each video frame in several video frames to obtain the shape features and texture features of the neck area image in each video frame; obtain the neck motion features by comparing the changes in shape features and texture features between adjacent video frames.
[0087] In some embodiments, step S4 includes:
[0088] S41, determining neck texture dynamic features NT and neck contour dynamic features NC according to neck region images in a plurality of video frames.
[0089] The dynamic features of neck texture refer to the pattern of changes in the texture of the neck region image over time, which can describe the changes and movements of the neck skin or muscles, including changes, movement and deformation of the texture. Based on image processing techniques such as local binary pattern (LBP) and Gabor filter, the neck texture features corresponding to the neck region image of each video frame can be extracted, and the dynamic features of neck texture can be obtained based on several neck texture features corresponding to several video frames.
[0090] In some embodiments, step S41 includes:
[0091] S411, determining a gray level co-occurrence matrix corresponding to the neck region image according to the neck region image of each frame in a plurality of video frames.
[0092] Specifically, the neck region image is converted from color to grayscale to reduce the complexity of subsequent calculations; the grayscale range of the grayscale image (usually 0-255) is divided into several levels, such as 16 or 32 levels; the direction (such as 0 degrees, 45 degrees, 90 degrees, 135 degrees, etc.) and distance (such as 1 pixel, 2 pixels, etc.) for calculating the grayscale co-occurrence matrix are selected; each pixel in the grayscale image is traversed, and for each pixel, the grayscale combination of neighboring pixels in the specified direction and distance is counted, and the count is increased at the corresponding position of the grayscale co-occurrence matrix to obtain the initial grayscale co-occurrence matrix; the initial grayscale co-occurrence matrix is normalized, for example, each element is divided by the sum of all elements to obtain the final grayscale co-occurrence matrix.
[0093] S412, extracting texture features corresponding to the neck region image according to the gray level co-occurrence matrix corresponding to the neck region image.
[0094] S413, obtaining a neck texture dynamic feature NT according to a plurality of texture features corresponding to a plurality of video frames.
[0095] The processor can arrange several texture features in chronological order to construct a texture feature sequence, which contains the dynamic information of neck texture changes over time; the texture feature sequence is encoded by encoding methods such as vector quantization, sparse coding, and deep learning to obtain the dynamic features of neck texture. The dynamic features of neck texture can be expressed as , where E, H, and C represent the values of texture features such as energy, entropy, and contrast extracted from the gray-level co-occurrence matrix corresponding to the neck area image of the t-th frame, t represents the t-th frame, and t∈[1,T], [1,T] represents the 1st to the Tth frames in a number of video frames.
[0096] The dynamic features of the neck contour refer to the pattern of changes in the contour of the neck area image over time, which can describe the changes, movements and deformations of the neck shape and contour lines.
[0097] The processor can combine image processing technology and computer vision algorithms or any other feasible methods to determine the dynamic features of the neck contour based on the neck area images in continuous frames, specifically including: converting the neck area image from color to grayscale; detecting the edges of the neck area image and extracting the contour line; tracking the movement trajectory of the contour line by comparing the contour lines in different video frames; using a contour matching algorithm (such as shape-based matching) to identify the contour lines belonging to the same neck in different video frames; calculating the shape features of the contour lines in each video frame, such as the circumference, area or convex hull (such as blood vessels or Adam's apple protrusions, etc.), concave hull, and quantifying the shape features of the contour lines in each video frame with shape descriptors; arranging the shape features of the contour lines in each video frame in chronological order, constructing a contour feature sequence, and obtaining the dynamic features of the neck contour.
[0098] The present invention calculates the grayscale co-occurrence matrix of the neck area image and extracts texture features therefrom, thereby more accurately describing the texture information of the neck area, including the direction, contrast, roughness, etc. of the texture; the dynamic features of the neck texture reflect the continuous changes in the texture of the neck during movement. Through the texture features extracted based on the grayscale co-occurrence matrix, this dynamic change can be more accurately captured, thereby improving the accuracy of neck movement feature recognition.
[0099] In some embodiments, step S41 includes:
[0100] The dynamic feature NC of the neck contour is determined according to the difference in curvature of the contour line of the neck region image between adjacent video frames in a plurality of video frames.
[0101] After obtaining the contour line of the neck area image by the above method, the curvature at each point in the contour line can be calculated by mathematical methods, such as difference method, polynomial fitting, etc.; for the contour lines of two adjacent video frames, the corresponding points in the contour lines of the two video frames are found by the contour matching algorithm, and the curvature difference at the two points is compared by absolute difference, relative difference, etc.; the curvature differences of all corresponding points between the two adjacent video frames are arranged in a predefined sorting method to form a curvature difference sequence; for several curvature difference sequences determined according to several video frames, the several curvature difference sequences are sorted according to the time order of the video frames to obtain the dynamic characteristics of the neck contour.
[0102] Alternatively, after calculating the curvature of each point of the contour line of the neck area image in a certain video frame by mathematical methods, the average curvature of the contour line is calculated as the contour feature corresponding to the video frame; for a number of contour features determined according to a number of video frames, the contour features are sorted according to the time sequence of the video frames to obtain the dynamic feature of the neck contour, which is recorded as Represents the 1st to the Tth frames in a number of video frames.
[0103] By calculating the difference in contour curvature of neck area images between adjacent video frames, the present invention can accurately capture subtle changes in neck contour, and can more deeply understand the contour changes of the neck during movement, including muscle contraction, extension and possible abnormal movement; the introduction of the dynamic feature NC of the neck contour makes the description of neck movement more comprehensive and accurate, and can provide more dimensional information combined with the contour feature, thereby improving the accuracy of overall motion feature recognition; the calculation of the contour curvature difference has good robustness to factors such as illumination changes and noise interference, and can still stably extract the dynamic features of the neck contour in complex environments, providing reliable data support for subsequent analysis.
[0104] S42, determining neck movement features according to the neck texture dynamic features and the neck contour dynamic features.
[0105] The processor can concatenate the neck texture dynamic feature NT and the neck contour dynamic feature NC to form a longer feature vector, or fuse the neck texture dynamic feature NT and the neck contour dynamic feature NC through weighted fusion, fusion based on a machine learning model, etc. to obtain the neck motion feature.
[0106] Taking into account that the activity of the neck muscles during swallowing will cause changes in the neck texture and contour, the present invention can more accurately capture and quantify the texture changes and contour changes of the neck during movement by analyzing the dynamic features of the neck texture and the dynamic features of the neck contour in the neck area image. It can provide a deeper understanding of the activity of the neck muscles during swallowing, including muscle contraction and stretching, and thus more accurately assess whether there is a risk of swallowing disorders.
[0107] S5, determining the risk level of swallowing disorder for the user based on the mouth shape characteristics, eating speed characteristics and neck movement characteristics.
[0108] The processor can determine the risk level of swallowing disorders for the user based on the mouth shape features, eating speed features and neck movement features through various feasible methods, such as a preset correspondence table. The preset correspondence table includes the correspondence between various values of mouth shape features, eating speed features and neck movement features and the corresponding risk levels of swallowing disorders.
[0109] In some embodiments, the risk level includes the risk probability. Step S5 includes:
[0110] According to the mouth shape features, eating speed features and neck movement features, the risk probability of the user having swallowing difficulties is determined through a risk assessment model. The risk assessment model is used to weight the input mouth shape features, eating speed features and neck movement features, and process the weighted results through a Sigmoid function to obtain the risk probability.
[0111] Specifically, the input mouth shape features, eating speed features, and neck movement features can be normalized using a normalization formula to ensure that each feature contributes evenly. The normalization formula is expressed as shown in the following formula 1: (1)
[0112] in, represents the i-th feature among the mouth shape feature OI, the eating speed feature JC and the neck movement feature (including the neck texture dynamic feature NT and the neck contour dynamic feature NC), Representation characteristics Features after normalization.
[0113] The risk assessment model is a logistic regression model, which is a probability model. The risk assessment model can weight the input mouth shape feature OI, eating speed feature JC, neck movement features including neck texture dynamic feature NT and neck contour dynamic feature NC and process the weighted results through the following formula 2: (2)
[0114] in, The feature vector representing the input is the combination of the mouth shape feature OI, the eating speed feature JC, the neck movement feature including the neck texture dynamic feature NT and the neck contour dynamic feature NC. Indicates that given a feature vector Under the condition of A value of 0 indicates that the user has no swallowing disorder. are the bias term and the weight of each feature, and are the model parameters of the risk assessment model.
[0115] The model parameters of the risk assessment model can be determined by the maximum likelihood estimation method, including:
[0116] A large number of manually annotated reference video images of known swallowing states are obtained, including reference video images annotated with normal swallowing and dysphagia (for example, 0 represents normal swallowing and 1 represents dysphagia).
[0117] The mouth shape feature OI, eating speed feature JC, neck texture dynamic feature NT and neck contour dynamic feature NC are extracted from the reference video image and combined into a reference feature vector.
[0118] According to the definition of the model (Formula 2) and the reference feature vector, the likelihood function is established , expressed as the following formula 3: (3)
[0119] in, i is the number of samples in the reference video image set, At a given parameter and the reference eigenvector Next, i observed response variable The probability that the value is 1.
[0120] Solve the likelihood function The parameter to maximize (i.e. a group of ). Through iterative optimization algorithms (such as gradient descent, stochastic gradient descent, etc.), the parameter value that maximizes the log-likelihood function of the likelihood function is determined to obtain the model parameters of the risk assessment model.
[0121] In the risk assessment model of the present invention, the model parameters are determined by the maximum likelihood estimation method, and the reference video image set with known annotations can be fully utilized, so that the model parameters are more consistent with the distribution of actual data, and the accuracy of the assessment is improved. After the model parameters are determined, the risk assessment model can learn the relationship between the input features and the output variables, and give the prediction results in the form of probability, so that the assessment results are more accurate and reliable. It can also automatically process and analyze the input feature data, and quickly output the risk assessment results, which improves the assessment efficiency, reduces the errors caused by human factors, and improves the accuracy of decision-making. The present invention uses a logistic regression model to implement a risk assessment model, and the assessment results are presented in the form of probability, which is easy to understand and explain. At the same time, the model parameters (i.e., the weights of each feature) also reflect the degree of influence of each feature on the response variable, making the assessment results more interpretable. In addition, it is relatively simple to implement and more flexible and maintainable in practical applications.
[0122] The present invention obtains video images of user dining scenes, and selects video frames therefrom in real time for analysis using machine vision methods, thereby making the identification of dysphagia more real-time and convenient; by extracting specific features related to dysphagia identification, including mouth shape features, eating speed features and neck movement features, the user's swallowing situation can be more accurately reflected; the risk level of dysphagia is determined based on mouth shape features, eating speed features and neck movement features, and this quantitative risk assessment can provide more specific reference information; by analyzing video images of users dining to identify the risk of dysphagia, the user does not need to perform specific actions or cooperation, thereby improving the user experience; it can also be applied to a variety of dining scenes, and is not limited to a specific detection environment, thereby enhancing the applicability of the method.
[0123] Example 2
[0124] Figure 4 A schematic diagram of the connection structure of a dysphagia risk identification device 40 based on machine vision provided in an embodiment of the present invention is shown.
[0125] like Figure 4 As shown, the dysphagia risk identification device 40 based on machine vision includes:
[0126] The acquisition module 41 is used to acquire a video image including a user's dining scene and select a number of video frames from the video image.
[0127] The recognition module 42 is used to obtain a facial region image and a neck region image of the user in each video frame according to a plurality of video frames.
[0128] The first extraction module 43 is used to extract mouth shape features based on facial area images in a number of video frames.
[0129] The second extraction module 44 is used to extract eating speed features based on facial area images in a number of video frames.
[0130] The third extraction module 45 is used to extract neck movement features based on neck area images in a number of video frames.
[0131] The determination module 46 is used to determine the degree of risk of dysphagia of the user based on the mouth shape characteristics, eating speed characteristics and neck movement characteristics.
[0132] For more information about each module, please refer to the relevant description in Example 1.
[0133] Example 3
[0134] In addition, this specification also provides an electronic device. Figure 5 A schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention is shown.
[0135] The electronic device may include a processor and a memory storing computer program instructions.
[0136] Specifically, the processor may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.
[0137] The memory may include a large capacity memory for data or instructions. By way of example and not limitation, the memory may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory may include a removable or non-removable (or fixed) medium. Where appropriate, the memory may be inside or outside the data processing device. In a particular embodiment, the memory is a non-volatile solid-state memory. In a particular embodiment, the memory includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.
[0138] The processor implements any one of the machine vision-based swallowing disorder risk identification methods in the above-mentioned embodiments by reading and executing computer program instructions stored in the memory.
[0139] In one example, the electronic device may further include a communication interface and a bus, wherein the processor, the memory, and the communication interface are connected through the bus I / O and communicate with each other.
[0140] The communication interface is mainly used to implement communication between the modules, devices, units and / or equipment in the embodiments of the present invention.
[0141] The bus includes hardware, software or both, and the components of the electronic device are coupled to each other. For example, but not limitation, the bus may include an accelerated graphics port (AGP) or other graphics bus, an enhanced industrial standard architecture (EISA) bus, a front-side bus (FSB), a hypertransport (HT) interconnection, an industrial standard architecture (ISA) bus, an infinite bandwidth interconnection, a low pin count (LPC) bus, a memory bus, a microchannel architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standard association local (VLB) bus or other suitable bus or a combination of two or more of these. In appropriate cases, the bus may include one or more buses. Although the embodiments of the present invention describe and illustrate specific buses, the present invention contemplates any suitable bus or interconnection.
[0142] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0143] The functional blocks shown in the structural block diagram described above can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier. "Machine-readable medium" may include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memories, erasable ROMs (EROMs), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0144] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.
[0145] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.
Claims
1. A method for identifying swallowing disorders based on machine vision, characterized in that: The method comprises: Acquire a video image including a user's dining scene, and select a number of video frames from the video image, which specifically includes: Acquire video images through a camera device; Converting the video image into a plurality of video frames; According to the video frame, determining whether the user belongs to the target user through a user recognition model; Outputting catering supplies information through a catering supplies recognition model according to the video frame; When the user is a target user, determining whether the dining supplies information meets a preset condition, and if so, using the video image as the video image including the user's dining scene; According to the plurality of video frames, acquiring a facial region image and a neck region image of the user in each video frame; Extracting mouth shape features according to the facial region images in the plurality of video frames; Extracting eating speed features according to the facial region images in the plurality of video frames; Extracting neck movement features according to the neck area images in the plurality of video frames specifically includes: Determining dynamic features of neck texture according to the neck region images in the plurality of video frames; Determining the dynamic features of the neck contour according to the neck area images in the plurality of video frames specifically includes: Extracting a contour line of the neck region image according to the neck region image of each frame in the plurality of video frames; determining the curvature at a plurality of points in the contour line; Determining the curvature difference of the plurality of points on the contour line in two adjacent video frames; Arranging the curvature differences of the plurality of points on the contour line in two adjacent video frames in a predefined sorting manner to form a curvature difference sequence; Obtaining the dynamic features of the neck contour according to the plurality of curvature difference sequences determined from the plurality of video frames; Determining the neck movement feature according to the neck texture dynamic feature and the neck contour dynamic feature; The degree to which the user has a risk of dysphagia is determined based on the mouth shape features, the eating speed features, and the neck movement features.
2. The method according to claim 1, characterized in that: The extracting mouth shape features according to the facial region images in the plurality of video frames comprises: Determining a mouth opening amplitude corresponding to each video frame according to a mouth region image included in the facial region image in each video frame; According to the multiple mouth opening amplitudes corresponding to the multiple video frames, the largest mouth opening amplitude is determined as the mouth shape feature.
3. The method according to claim 2, characterized in that The step of extracting eating speed features according to the facial region images in the plurality of video frames includes: Determine a set of video frames between two adjacent swallowing time points according to the plurality of video frames; Determine the number of mouth openings corresponding to the video frame set by comparing the mouth opening amplitude corresponding to each video frame in the video frame set with a preset threshold; The eating speed feature is determined according to the number of mouth openings corresponding to the video frame set.
4. The method according to claim 1, characterized in that: The step of determining the dynamic features of neck texture according to the neck area images in the plurality of video frames includes: Determine a gray level co-occurrence matrix corresponding to the neck region image according to the neck region image of each frame in the plurality of video frames; Extracting texture features corresponding to the neck region image according to a gray level co-occurrence matrix corresponding to the neck region image; The dynamic features of the neck texture are obtained according to the multiple texture features corresponding to the multiple video frames.
5. The method according to any one of claims 1 to 4, characterized in that: The degree of dysphagia risk includes risk probability; determining the degree of dysphagia risk of the user according to the mouth shape feature, the eating speed feature and the neck movement feature includes: Based on the mouth shape features, the eating speed features and the neck movement features, a risk assessment model is used to determine the risk probability that the user has swallowing difficulties, wherein the risk assessment model is used to weight the input mouth shape features, the eating speed features and the neck movement features, and process the weighted results through a Sigmoid function to obtain the risk probability.
6. A device for identifying swallowing disorders based on machine vision, characterized in that: The device comprises: The acquisition module is used to acquire a video image including a user's dining scene and select a number of video frames from the video image, which specifically includes: Acquire video images through a camera device; Converting the video image into a plurality of video frames; According to the video frame, determining whether the user belongs to the target user through a user recognition model; Outputting catering supplies information through a catering supplies recognition model according to the video frame; When the user is a target user, determining whether the dining supplies information meets a preset condition, and if so, using the video image as the video image including the user's dining scene; A recognition module, configured to obtain a facial region image and a neck region image of the user in each video frame according to the plurality of video frames; A first extraction module, configured to extract mouth shape features based on the facial region images in the plurality of video frames; A second extraction module, configured to extract eating speed features based on the facial region images in the plurality of video frames; The third extraction module is used to extract neck movement features according to the neck area images in the plurality of video frames, which specifically includes: Determining dynamic features of neck texture according to the neck region images in the plurality of video frames; Determining the dynamic features of the neck contour according to the neck area images in the plurality of video frames specifically includes: Extracting a contour line of the neck region image according to the neck region image of each frame in the plurality of video frames; determining the curvature at a plurality of points in the contour line; Determining the curvature difference of the plurality of points on the contour line in two adjacent video frames; Arranging the curvature differences of the plurality of points on the contour line in two adjacent video frames in a predefined sorting manner to form a curvature difference sequence; Obtaining the dynamic features of the neck contour according to the plurality of curvature difference sequences determined from the plurality of video frames; Determining the neck movement feature according to the neck texture dynamic feature and the neck contour dynamic feature; A determination module is used to determine the degree of risk of dysphagia of the user based on the mouth shape characteristics, eating speed characteristics and neck movement characteristics.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Method and system for screening dysphagia based on computer vision
CN117274878A
Nursing supervision system and method for swallowing behaviors of disabled and dementia old people
CN117133458A
Nasopharyngeal carcinoma radiotherapy patient swallowing nursing method and system based on image recognition
CN117726606A
