MEC edge cloud-based intelligent mirror implementation method and implementation system thereof
Through smart mirrors based on MEC edge cloud, image recognition and AI analysis are used to correct the exercise posture of fitness mirror users in real time, solving the problem that existing fitness mirrors cannot accurately capture and correct movements, and improving exercise efficiency and safety.
Patent Information
- Application Number
- CN202411013030.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-09-24
AI Technical Summary
Existing fitness mirrors cannot accurately capture large-scale movements during exercise, and cannot efficiently correct the user's incorrect exercise posture in real time.
The smart mirror implementation method based on MEC edge cloud is used to obtain images of user actions and sports postures, identify action categories and postures, upload them to MEC edge cloud for analysis and processing, display error correction instructions and AI judgment scores, and prompt the user through voice Make corrections until your body is in standard shape.
It significantly improves the speed of correcting the user's incorrect movement posture, improves the range and accuracy of motion capture, protects the user's health, and avoids physical injuries caused by incorrect movements.
Smart Images

Figure CN118692152A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart home, and in particular to a method and system for realizing a smart mirror based on MEC edge cloud. Background Art
[0002] In recent years, hot topics about "fitness" have emerged one after another, and going to the gym to exercise has once become a hobby for young people. In today's post-epidemic era, "home fitness" has a trend of gradually replacing "gym fitness" and becoming the mainstream fitness development direction in the future. Some startups and well-known Internet companies have also launched related smart fitness equipment, such as smart fitness mirrors. The fitness mirrors on the market either have no camera and are just a mirror that can play fitness course videos, or the AI processors they are equipped with have low computing power and cannot efficiently and in real time correct the user's movements. Therefore, how to enable the fitness mirror to accurately capture large movements during exercise and quickly correct the user's incorrect exercise posture is a problem that needs to be solved in the current fitness mirror market. Summary of the invention
[0003] The purpose of the present invention is to address the shortcomings of existing fitness mirrors, such as the inability to accurately capture movements during exercise and the inability to capture erroneous movements. To address this shortcoming, a smart mirror implementation method based on MEC edge cloud and its implementation system are proposed.
[0004] In order to achieve the above object, the present invention adopts the following technical solution: A method for implementing a smart mirror based on MEC edge cloud includes the following steps: S1: Obtain images of the current user's actions and motion postures; S2: Identify the current user action category and user posture, and upload them to the MEC edge cloud for analysis and processing; S3: The display screen shows the error correction instructions and AI evaluation scores sent by the MEC edge cloud, and prompts the user through voice whether the current action and exercise posture are standard; S4, used to correct the user's posture according to the error correction instruction and the score judged by AI, repeat S1-S3 until the user's posture reaches the standard, and then continue to exercise; S5: Record and store each error correction instruction, and give corresponding prompts through a display screen or voice when the user performs the same exercise next time.
[0005] As a further preferred embodiment of the present invention, the identification of the current user action and movement posture, and uploading to the MEC edge cloud for analysis and processing, includes the following steps: S21: obtaining a video containing human body movements and postures, and resampling and preprocessing the video frames; Resampling generates new intermediate frames through interpolation algorithms to reduce information loss and processing errors caused by inconsistent frame rates; The preprocessing includes denoising, image enhancement and background separation; S22: Divide the key parts of human body movements and postures into regions, and extract image features of video frames through convolutional neural networks; The key parts include: head, shoulders, elbows, wrists, hips, knees, and ankles; The human body movements include: running, jumping, dancing, yoga, martial arts, aerobic exercise, strength training, stretching exercise, ball games, rehabilitation training, daily movements and facial expression correction; The image feature information includes: the position and angle information of each joint of the human body, and the movement trajectory of the joint; S23: After obtaining the corresponding human body part features, obtaining a human body joint point sequence corresponding to the video frame based on the human skeleton information; S24: Inputting the image features and the human joint point sequence into a graph convolutional neural network to obtain action categories and user postures; S25: Send the acquired action category and user posture to the MEC edge cloud platform.
[0006] As a further preferred embodiment of the present invention, the display screen displays the error correction instructions and AI evaluation scores transmitted from the MEC edge cloud, and prompts the user through voice whether the current action and movement posture of the user are standard, including the following steps: S31, the MEC edge cloud platform classifies the obtained action categories; S32, extracting standard actions in the category where the action category belongs; S33, comparing the obtained user posture with the standard actions in the classification, and determining whether the user posture is standard by performing posture matching and dynamic comparison; S34. When the score is higher than and including 90 points, it is regarded as the user's body posture standard, and the training continues; S35, when the score is between 70 and 89, it is regarded as the basic standard of the user's posture and needs to be fine-tuned. At this time, an error correction instruction is generated; S36: When the score is lower than or including 69 points, it is considered that the user's posture is not standard and needs to be adjusted. At this time, error correction instructions and motion analysis instructions are generated; S37, MEC edge cloud platform transmits error correction instructions and action analysis instructions to the display screen, and prompts the user through voice.
[0007] As a further preferred embodiment of the present invention, the error correction instructions include a comparison chart of the current user's posture and the correct posture, a highlighted display of the part that needs correction, and an animated representation of the part that needs correction from incorrect action to correct action; the action analysis instructions include complex action decomposition, slow motion of actions, causes of incorrect actions, and analysis of correct actions.
[0008] A smart mirror implementation system based on MEC edge cloud, including a display and control module, a recognition module, a MEC edge cloud platform and a storage module; The display and control module is used to obtain images of the current user's movements and body postures and to prompt the user to correct errors through voice; The recognition module includes one or more high-performance computing modules with a neural network processor, which is used to extract features from the collected human action images, obtain the action categories and movement postures of the user for various trainings, and send the processed image data results to the MEC edge cloud platform; The MEC edge cloud platform is used to receive the processing result from the identification module and send instructions to the display and control module; The storage module is used to store information such as the user's corrected movements and movement postures and the coach's movements and movement postures collected by the user.
[0009] As a further preferred embodiment of the present invention, the display and control module includes a display unit, an image acquisition unit and a voice control unit; Wherein, the display and control unit is used to display the movements and movement postures of the coach in the sports course; The image acquisition unit is used to detect image information of the user's movements and body movements; The voice control unit is used to identify the voice control commands issued by the user during the training process, and through voice interaction, prompt the user whether the movements and exercise postures are correct and correct them in time.
[0010] As a further preferred embodiment of the present invention, the display unit further comprises a vertical IPS high-definition screen for displaying the user's movements and sports postures and the coach's movements and sports postures during the course; The image acquisition unit includes a high-definition wireless transmission camera for capturing user actions and movement postures in real time.
[0011] As a further preferred embodiment of the present invention, the high-definition wireless transmission camera includes a camera module and a wireless transmission module, and the camera module is connected to the wireless transmission module via a serial port.
[0012] As a further preferred embodiment of the present invention, the MEC edge cloud platform includes a classification module, a recognizable action library, an analysis module and an AI processor module; Wherein, the classification module is used to classify the user action categories and movement postures uploaded by the recognition module; The recognizable motion library is used to store standard motion postures under various user motion categories, and supports downloading and storing new user motion categories and their corresponding standard motion postures; The analysis module is used to compare and analyze the uploaded user action category and movement posture with the standard movement posture corresponding to the action category in the identifiable action library, and send the analysis result to the AI processor module; The AI processor module is used to calculate the scores and error correction instructions corresponding to the action and posture, and transmit them to the display control unit.
[0013] The smart mirror implementation method and implementation system based on MEC edge cloud proposed in the present invention have the following beneficial effects compared with the prior art: 1. The present invention utilizes the low latency advantage of the MEC edge cloud to significantly improve the speed of correcting the user's incorrect motion posture. At the same time, the localization characteristics of the edge cloud are also conducive to protecting the privacy of the user's motion data; 2. The intelligent recognition of the recognition module of the present invention can accurately capture large movements during exercise, thereby improving the range and accuracy of motion capture of the smart mirror; 3. The present invention analyzes user movements and corrects them, allowing users to perform standard and correct postures, thereby improving exercise efficiency while protecting the user's health and avoiding physical injuries caused by incorrect movements. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 This is a block diagram of the system structure of a smart mirror based on MEC edge cloud proposed by the present invention; Figure 2 It is a flow chart of a method for realizing a smart mirror based on MEC edge cloud proposed in the present invention. DETAILED DESCRIPTION
[0015] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0016] The present invention relates to a method for implementing a smart mirror based on MEC edge cloud and a system for implementing the smart mirror, which can be applied to a variety of scenarios, including but not limited to: 1. Home exercise: Help users exercise and train at home, correct exercise posture through smart mirrors, ensure standard movements, and avoid sports injuries; 2. Gym: In a gym environment, smart mirrors can provide users with real-time movement feedback and correction guidance to improve training effectiveness and safety; 3. Dance room: used for dance practice, the smart mirror can correct dance movements and help dancers improve their dance skills and performance; 4. Rehabilitation training: In rehabilitation centers or home rehabilitation, patients can be guided to conduct rehabilitation training through smart mirrors to ensure the standard and effectiveness of rehabilitation movements and accelerate the rehabilitation process; 5. Sports: Suitable for various sports training, such as basketball, football, badminton, etc., through the smart mirror to correct sports posture and improve the technical level and competitive performance of athletes; 6. Office Fitness: In an office environment, smart mirrors can help office workers do simple fitness exercises, correct postures, and relieve physical fatigue caused by long hours of work; 7. Teaching and training: used for physical education teaching and training, providing students with real-time feedback and movement correction through smart mirrors to improve teaching effectiveness; 8. Performing Arts: In performing arts such as drama, speech, and recitation, smart mirrors can help performers correct their movements and expressions to improve performances; By correcting the exercise posture during exercise through the smart mirror, users can exercise with the correct and standard posture, thereby protecting their physical health, avoiding sports injuries and improving training effects.
[0017] Embodiment 1: Combination Figure 2 , a method for implementing a smart mirror based on MEC edge cloud, comprising the following steps: S1: Obtain images of the current user's actions and movement postures.
[0018] S2: Identify the current user action category and user posture, and upload them to the MEC edge cloud for analysis and processing.
[0019] The specific steps include: S21: Obtain a video containing human body movements and postures, and resample and preprocess the video frames.
[0020] Resampling refers to generating new intermediate frames through interpolation algorithms (such as linear interpolation or spline interpolation) to reduce information loss and processing errors caused by inconsistent frame rates. The frame rate of the original video is unified to a standard value, such as 60 frames per second (FPS), to ensure stability and consistency of subsequent processing.
[0021] Preprocessing refers to the preliminary processing of video data to improve image quality and the accuracy of subsequent feature extraction. The preprocessing steps include: 1. Denoising: Apply filters (such as Gaussian filters, median filters) to remove noise from the image; 2. Image enhancement: Enhance image details by adjusting contrast, brightness, etc. to make important features more obvious; 3. Background separation: Use background subtraction or segmentation algorithms (such as GrabCut algorithm) to separate the foreground user from the background and highlight the user's movements and posture.
[0022] S22: The key parts of human body movements and postures are divided into regions, and the image features of the video frames are extracted through a convolutional neural network.
[0023] The key parts include: head, shoulders, elbows, wrists, hips, knees, and ankles. The human body is divided into the following categories according to key parts: 1. Head area: including head and neck; 2. Upper limb area: including shoulder, upper arm, elbow and forearm; 3. Trunk area: including chest, abdomen and back; 4. Lower limb area: including hips, thighs, knees, calves and ankles.
[0024] Human body movements are divided into types, and the specific classification is as follows: 1. Running: jogging, sprinting, short-distance running, long-distance running, etc.
[0025] 2. Jumping: vertical jump, long jump, long jump, high jump, etc.
[0026] 3. Dancing: modern dance, Latin dance, street dance, ballet, ballroom dance, etc.
[0027] 4. Yoga: Warrior pose, Tree pose, Camel pose, Cobra pose, Wheel pose, etc.
[0028] 5. Martial arts: Tai Chi, Ba Duan Jin, boxing, taekwondo, karate, judo, etc.
[0029] 6. Aerobic exercise: aerobics, HIIT exercises, spinning, stepper training, etc.
[0030] 7. Strength training: squats, push-ups, sit-ups, barbell training, etc.
[0031] 8. Stretching exercises: forward bending, side bending, twisting, hamstring stretching, etc.
[0032] 9. Ball sports: basketball shooting, football shooting, badminton serving, tennis swinging, etc.
[0033] 10. Rehabilitation training: shoulder rehabilitation, knee rehabilitation, waist and back rehabilitation, wrist rehabilitation, etc.
[0034] 11. Other sports: mountain climbing, swimming, rope skipping, balance training, etc.
[0035] 12. Daily movements: bending over to pick up things, going up and down stairs, carrying heavy objects, sitting down and standing up, etc.
[0036] 13. Facial expression correction: facial expressions during dancing, facial expressions during recitation, etc.
[0037] Image features include color features, texture features, shape features, etc., which are extracted through convolutional neural networks; specifically: 1. Color features: Use color histogram or color space transformation (such as HSV, YCbCr) to extract color information of different areas of the human body; 2. Texture features: Extract the texture information of the image through local binary pattern (LBP) or gray level co-occurrence matrix (GLCM); 3. Shape features: Use edge detection (such as Canny edge detection) and contour extraction (such as Hough transform) to obtain human body contour and shape information; The image feature information includes: the position and angle information of each joint of the human body, and the movement trajectory of the joint.
[0038] S23: After obtaining the corresponding human body part features, a human body joint point sequence corresponding to the video frame is obtained based on the human skeleton information.
[0039] Human body part features refer to the position and angle information of each joint of the human body extracted from image features. This information is usually extracted based on the human skeleton model. Specifically, human body part features include the following: 1. Joint point coordinates: The 2D or 3D coordinates of each joint point in the image. For example, the position of joint points such as shoulders, elbows, and knees.
[0040] 2. Joint angle: the angle between joints, such as the bending angle of the elbow, the bending degree of the knee, etc.
[0041] 3. Joint point motion trajectory: The motion trajectory of the joint points in continuous frames is used to describe dynamic action characteristics.
[0042] The specific steps for extracting human body part features are as follows: 1. Pose estimation: Use pose estimation algorithms (such as OpenPose, PoseNet, etc.) to identify and locate key joints of the human body.
[0043] 2. Calculate the angle of joint points: Calculate the angle between joint points based on the joint point coordinates.
[0044] 3. Joint point motion trajectory: Track the joint point positions in continuous frames to obtain the joint point motion trajectory.
[0045] S24: Input the image features and the human joint point sequence into a graph convolutional neural network to obtain action categories and user postures.
[0046] S25: Send the acquired action category and user posture to the MEC edge cloud platform.
[0047] S3: The display screen shows the error correction instructions and AI evaluation scores from the MEC edge cloud, and prompts through voice whether the current user's movements and exercise posture are standard.
[0048] The specific steps include: S31, the MEC edge cloud platform classifies the obtained action categories; S32, extracting standard actions in the category where the action category belongs; S33, comparing the obtained user posture with the standard actions in the classification, and determining whether the user posture is standard by performing posture matching and dynamic comparison; S34. When the score is higher than and including 90 points, it is regarded as the user's body posture standard, and the training continues; S35, when the score is between 70 and 89, it is regarded as the basic standard of the user's posture and needs to be fine-tuned. At this time, an error correction instruction is generated; 80-89 points: The action is standard, but there is room for slight improvement. For example, the angles of some joints are slightly off, and the AI will suggest adjusting the positions of these joints to achieve better results.
[0049] 70-79 points: The action basically meets the standard, but there is obvious room for improvement. For example, the overall action is not smooth enough or some key postures are inaccurate. AI will provide detailed improvement suggestions.
[0050] S36. When the score is lower than and including 69 points, it is considered that the user's posture is not standard and needs to be adjusted. At this time, error correction instructions and motion analysis instructions are generated.
[0051] 50-69 points: The movements are not standard and need significant improvement. For example, the positions and angles of multiple joints have large deviations, and the AI will give specific correction instructions.
[0052] Below 50 points: The action is unsatisfactory and needs to be improved comprehensively. For example, if the overall action is wrong or does not meet the standards, AI will highlight the error and give a detailed correction plan.
[0053] The error correction instructions include a comparison chart of the current user's posture and the correct posture, a highlighted display of the part that needs correction, and an animated representation of the part that needs correction from incorrect action to correct action; the action analysis instructions include complex action decomposition, slow motion of actions, reasons for incorrect actions, and analysis of correct actions.
[0054] S37, MEC edge cloud platform transmits error correction instructions and action analysis instructions to the display screen, and prompts the user through voice.
[0055] S4 is used to correct the user's posture according to the error correction instructions and the scores judged by the AI, and repeat S1-S3 until the user's posture reaches the standard, and then continue exercising.
[0056] S5: Record and store each error correction instruction, and give corresponding prompts through a display screen or voice when the user performs the same exercise next time.
[0057] Embodiment 2: Combination Figure 1 , a smart mirror implementation system based on MEC edge cloud, including a display and control module, an identification module, a MEC edge cloud platform and a storage module; the display and control module is used to obtain images of current user actions and motion postures and prompt the user to correct errors through voice; the identification module includes one or more high-performance computing modules with neural network processors, which are used to extract features from the collected human action images, obtain the action categories and motion postures of the user for various trainings, and send the processed image data results to the MEC edge cloud platform; the MEC edge cloud platform is used to receive the processing results from the identification module and send instructions to the display and control module; the storage module is used to store information such as the user's corrected actions and motion postures and the actions and motion postures of the coaches collected by the user.
[0058] The display and control module includes a display unit, an image acquisition unit and a voice control unit; wherein the display and control unit is used to display the coach's movements and movement postures in the sports course; the image acquisition unit is used to detect the image information of the user's movements and movement postures; the voice control unit is used to recognize the voice control commands issued by the user during the training process, and through voice interaction, prompt the user whether the movements and movement postures are correct and correct them in time.
[0059] The display unit also includes a vertical IPS high-definition screen for displaying user movements and body movements and coach movements and body movements in courses; the image acquisition unit includes a high-definition wireless transmission camera for capturing user movements and body movements in real time. The high-definition wireless transmission camera includes a camera module and a wireless transmission module, and the camera module is connected to the wireless transmission module via a serial port.
[0060] The MEC edge cloud platform includes a classification module, a recognizable action library, an analysis module and an AI processor module; wherein the classification module is used to classify and process the user action categories and motion postures uploaded by the recognition module; the recognizable action library is used to store the standard motion postures under each user action category, and supports downloading and storing new user action categories and their corresponding standard motion postures; the analysis module is used to compare and analyze the uploaded user action categories and motion postures with the standard motion postures corresponding to the action categories in the recognizable action library, and send the analysis results to the AI processor module; the AI processor module is used to calculate the corresponding scores and error correction instructions for the action and posture, and transmit them to the display and control unit.
[0061] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the above embodiments do not limit the present invention in any form, and any technical solution obtained by equivalent replacement or equivalent transformation falls within the protection scope of the present invention.
Claims
1. A method for implementing a smart mirror based on MEC edge cloud, characterized in that: The following steps are involved: S1: Obtain images of the current user's actions and motion postures; S2: Identify the current user action category and user posture, and upload them to the MEC edge cloud for analysis and processing; S3: The display screen displays the error correction instructions and AI evaluation scores sent by the MEC edge cloud, and prompts the user through voice whether the current action and exercise posture are standard; S4, used to correct the user's posture according to the error correction instruction and the score judged by AI, repeat S1-S3 until the user's posture reaches the standard, and then continue to exercise; S5: Record and store each error correction instruction, and give corresponding prompts through a display screen or voice when the user performs the same exercise next time.
2. According to claim 1, a method for realizing a smart mirror based on MEC edge cloud is characterized in that: The identification of the current user action and movement posture, and uploading to the MEC edge cloud for analysis and processing, includes the following steps: S21: obtaining a video containing human body movements and postures, and resampling and preprocessing the video frames; Resampling generates new intermediate frames through interpolation algorithms to reduce information loss and processing errors caused by inconsistent frame rates; The preprocessing includes denoising, image enhancement and background separation; S22: Divide the key parts of human body movements and postures into regions, and extract image features of video frames through convolutional neural networks; The key parts include: head, shoulders, elbows, wrists, hips, knees, and ankles; The human body movements include: running, jumping, dancing, yoga, martial arts, aerobic exercise, strength training, stretching exercise, ball games, rehabilitation training, daily movements and facial expression correction; The image feature information includes: the position and angle information of each joint of the human body, and the movement trajectory of the joint; S23: After obtaining the corresponding human body part features, obtaining a human body joint point sequence corresponding to the video frame based on the human skeleton information; S24: Inputting the image features and the human joint point sequence into a graph convolutional neural network to obtain action categories and user postures; S25: Send the acquired action category and user posture to the MEC edge cloud platform.
3. According to the method for realizing a smart mirror based on MEC edge cloud according to claim 1, it is characterized in that: The display screen displays the error correction instructions and AI evaluation scores transmitted from the MEC edge cloud, and prompts the user through voice whether the current action and exercise posture are standard, including the following steps; S31, the MEC edge cloud platform classifies the obtained action categories; S32, extracting standard actions in the category where the action category belongs; S33, comparing the obtained user posture with the standard actions in the classification, and determining whether the user posture is standard by performing posture matching and dynamic comparison; S34. When the score is higher than and including 90 points, it is regarded as the user's body posture standard, and the training continues; S35, when the score is between 70 and 89, it is regarded as the basic standard of the user's posture and needs to be fine-tuned. At this time, an error correction instruction is generated; S36: When the score is lower than or including 69 points, it is considered that the user's posture is not standard and needs to be adjusted. At this time, error correction instructions and motion analysis instructions are generated; S37, MEC edge cloud platform transmits error correction instructions and action analysis instructions to the display screen, and prompts the user through voice.
4. The method for realizing a smart mirror based on MEC edge cloud according to claim 1, characterized in that: The error correction instructions include a comparison chart of the current user's posture and the correct posture, a highlighted display of the part that needs correction, and an animated representation of the part that needs correction from incorrect action to correct action; the action analysis instructions include complex action decomposition, slow motion of actions, reasons for incorrect actions, and analysis of correct actions.
5. A smart mirror implementation system based on MEC edge cloud, characterized in that: Including display and control module, identification module, MEC edge cloud platform and storage module; The display and control module is used to obtain images of the current user's movements and body postures and to prompt the user to correct errors through voice; The recognition module includes one or more high-performance computing modules with a neural network processor, which is used to extract features from the collected human action images, obtain the action categories and movement postures of the user for various trainings, and send the processed image data results to the MEC edge cloud platform; The MEC edge cloud platform is used to receive the processing result from the identification module and send instructions to the display and control module; The storage module is used to store information such as the user's corrected movements and movement postures and the coach's movements and movement postures collected by the user.
6. The smart mirror implementation system based on MEC edge cloud according to claim 5 is characterized in that: The display and control module includes a display unit, an image acquisition unit and a voice control unit; Wherein, the display and control unit is used to display the movements and movement postures of the coach in the sports course; The image acquisition unit is used to detect image information of the user's movements and body movements; The voice control unit is used to identify the voice control commands issued by the user during the training process, and through voice interaction, prompt the user whether the movements and exercise postures are correct and correct them in time.
7. The smart mirror implementation system based on MEC edge cloud according to claim 6 is characterized in that: The display unit also includes a vertical IPS high-definition screen for displaying the user's movements and sports postures and the coach's movements and sports postures during the course; The image acquisition unit includes a high-definition wireless transmission camera for capturing user actions and movement postures in real time.
8. The smart mirror implementation system based on MEC edge cloud according to claim 7 is characterized in that: The high-definition wireless transmission camera comprises a camera module and a wireless transmission module, and the camera module is connected to the wireless transmission module via a serial port.
9. The smart mirror implementation system based on MEC edge cloud according to claim 5, characterized in that: The MEC edge cloud platform includes a classification module, a recognizable action library, an analysis module and an AI processor module; Wherein, the classification module is used to classify the user action categories and movement postures uploaded by the recognition module; The recognizable motion library is used to store standard motion postures under various user motion categories, and supports downloading and storing new user motion categories and their corresponding standard motion postures; The analysis module is used to compare and analyze the uploaded user action category and movement posture with the standard movement posture corresponding to the action category in the identifiable action library, and send the analysis result to the AI processor module; The AI processor module is used to calculate the scores and error correction instructions corresponding to the action and posture, and transmit them to the display control unit.
