An AI dance mirror
AI Dance Mirror solves the problem that traditional tools cannot quantify and analyze dance movements in real time by using high-precision sensors and image acquisition, recognition, and comparison feedback systems. It enables real-time quantitative analysis and correction of dance movements, improving learning efficiency and dance level.
Patent Information
- Application Number
- CN202610445551.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-04-07
- Publication Date
- 2026-11-27
AI Technical Summary
Traditional dance learning aids cannot quantify and analyze the position, posture, speed, and trajectory of human body features in dance movements in real time. They also cannot compare learners' movements with standard movements and provide accurate guidance on movement deviations, resulting in low learning efficiency and difficulty in quickly improving dance skills.
Employing an AI dance mirror, it analyzes dancers' movements in real time using high-precision sensor technology and provides feedback. It has a wealth of built-in dance course content and combines image acquisition, recognition, and comparison feedback systems to achieve real-time quantitative analysis and correction of dance movements. This includes the collaborative work of human-computer interface, image acquisition, analysis, comparison, correction, and data storage units.
It enables real-time quantitative analysis and precise guidance of dance movements, helping learners to promptly identify and correct movement deviations, improve practice efficiency and dance level, and adapt to the learning needs of different ages and dance levels.
Smart Images

Figure CN123182285A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of artificial intelligence, and more particularly to an AI dance mirror. Background Technology
[0002] In the field of dance learning, training, and performance, various auxiliary tools are often used to help learners observe and adjust their own dance movements. Traditional dance learning auxiliary tools are mainly ordinary mirrors and video recording equipment. These tools enable learners to observe their own dance movements directly, and also record and review the dance movements. They are basic movement reference tools in dance learning, meeting the basic needs of basic recording and visual viewing of movements in dance learning.
[0003] However, traditional dance learning aids can only provide a visual presentation and recording of movements. They cannot perform real-time quantitative analysis of the position, posture, speed, and trajectory of human body features in dance movements, nor can they compare learners' movements with standard movements and provide precise guidance on movement deviations. Learners find it difficult to quickly identify their own movement deviations and correct them in a timely manner, and cannot form a complete dance movement analysis and correction loop. This results in low efficiency in dance learning and fails to meet learners' needs for accurate learning of dance movements and rapid improvement of their dance level. Summary of the Invention
[0004] To overcome the above shortcomings, this invention provides an AI dance mirror, which aims to improve the existing dance learning aids that cannot perform real-time quantitative analysis of the position, posture, speed, and trajectory of human body feature points in dance movements, nor can they compare learners' movements with standard movements and provide accurate guidance on movement deviations. This makes it difficult to form a complete closed loop for dance movement analysis and correction, resulting in learners being unable to promptly identify and correct their own movement deviations.
[0005] An AI dance mirror enables AI-powered dance instruction, utilizing a powerful image acquisition, recognition, and comparison feedback system. Through high-precision sensor technology, it analyzes dancers' movements in real time and provides immediate feedback. This instant feedback mechanism is crucial for dance learners, helping them quickly identify and correct errors, thus improving practice efficiency and dance level. In addition to the image acquisition, recognition, comparison, and feedback system, the AI dance mirror also features a rich collection of dance courses, ranging from street dance and yoga to aerobics. These courses are meticulously crafted by a team of professional dance instructors to meet the needs of learners of different ages and skill levels. Dancers can choose courses tailored to their interests and goals for personalized learning.
[0006] This invention provides the following technical solution: an AI dance mirror, comprising:
[0007] The human-machine interface unit is used to receive user operation commands and / or input information;
[0008] The image acquisition unit is used to capture real-time video of the user's dance movements;
[0009] The image analysis unit, connected to the image acquisition unit, is used to receive dance movement videos and analyze the image frames in the video to extract and output the feature values of the user's human body feature points in real time.
[0010] Data storage unit, used to store standard dance videos and their corresponding standard feature point feature values;
[0011] The image comparison unit is connected to the image parsing unit and the data storage unit respectively. It is used to receive the feature values of the user's human body feature points and retrieve the feature values of the standard feature points from the data storage unit. The two are compared in real time to generate comparison result data.
[0012] The image correction unit, connected to the image comparison unit, is used to receive comparison result data and correct the feature values of the user's human body feature points in real time according to the preset correction algorithm, and generate corrected feature point feature values.
[0013] The status prompt unit, connected to the image correction unit, is used to receive the feature values of the corrected feature points or the comparison result data, and to generate and output prompt information to guide the user to adjust the action;
[0014] The data output unit is connected to the image parsing unit, the image comparison unit, and the image correction unit respectively, and is used to output the user's human body feature point feature values, comparison result data, and / or corrected feature point feature values;
[0015] The central processor is connected to the human-machine interface unit, image acquisition unit, image analysis unit, data storage unit, image comparison unit, image correction unit, status prompt unit, and data output unit, respectively, and is used to coordinate and control the work of each unit.
[0016] The communication unit, connected to the central processor, is used to enable data transmission with external networks or devices.
[0017] Preferably, the image parsing unit is specifically used to: parse the image frames in the video, and sequentially extract and output the position feature values, posture feature values, velocity feature values and trajectory feature values of human feature points.
[0018] Preferably, the image comparison unit is specifically used to: sequentially compare the position feature value, posture feature value, velocity feature value and trajectory feature value of the parsed user human body feature points with the standard feature point feature value retrieved from the data storage unit in real time, and generate corresponding position comparison results, posture comparison results, velocity comparison results and trajectory comparison results.
[0019] Preferably, the image correction unit is specifically used to: correct the user's position feature value, attitude feature value, velocity feature value and trajectory feature value in real time according to the position comparison result, attitude comparison result, velocity comparison result and trajectory comparison result, respectively, and generate the corrected position feature value, corrected attitude feature value, corrected velocity feature value and corrected trajectory feature value accordingly.
[0020] Preferably, the status prompting unit is specifically used to: generate and output at least one of position error prompting information, attitude error prompting information, velocity error prompting information, and trajectory error prompting information based on the comparison result data or the corrected feature point feature values; wherein, the trajectory error prompting information is the overall trajectory error value calculated by accumulating the feature point position errors of each time frame.
[0021] Preferably, the data storage unit is further configured to: store the user's dance video captured by the image acquisition unit, and the corresponding human body feature point feature values extracted by the image analysis unit; and the image correction unit is also connected to the data storage unit to send the corrected feature point feature values to the data storage unit for storage; the data output unit is also connected to the data storage unit to retrieve data from the data storage unit and output it.
[0022] Preferably, the human-machine interface unit includes a touch screen and / or a voice recognition module, used to receive user operation commands through touch operation and / or voice commands.
[0023] Preferably, the communication unit includes a wireless communication module for connecting to a wireless network; the central processor is further configured to: control the AI dance mirror to enter a network working mode when a successful connection between the communication unit and the wireless network is detected; and control the AI dance mirror to enter a stand-alone working mode when a connection failure or disconnection is detected.
[0024] Preferably, in the stand-alone working mode, the central processor controls the image comparison unit to call the pre-stored standard feature point feature values in the data storage unit for comparison.
[0025] Preferably, the data output unit includes a display interface and / or a data interface for outputting a video image with feature point feature value comparison information, and / or outputting a data stream containing feature point feature values for analysis by external devices.
[0026] The present invention has the following beneficial effects:
[0027] 1. In this invention, through the collaborative work of ten functional units, after the image acquisition unit acquires the dance movement video, the image analysis unit can extract the position, posture, speed, and trajectory feature values of human body feature points. After the image comparison unit compares with the standard feature values and the image correction unit corrects in real time, the status prompt unit outputs multi-dimensional error information. The trajectory error is generated by cumulative calculation, forming a complete action analysis closed loop, realizing real-time quantitative analysis and precise guidance of dance movements, allowing learners to discover and correct their own movement deviations in a timely manner.
[0028] 2. In this invention, the data storage unit can achieve dual storage of standard and user dance videos and corresponding feature values. The image correction unit will also transmit the corrected feature values to this unit for storage. The data output unit can also retrieve data from this unit. The perfect unit connection relationship realizes the full retention of dance-related data, and at the same time allows the data to flow in an orderly manner in the correction, storage and output stages, effectively ensuring the reuse of dance data and the needs of subsequent analysis.
[0029] 3. In this invention, the communication unit is equipped with a wireless communication module to achieve wireless network connection. The central processor can automatically control the device to switch between network working mode and stand-alone working mode according to the network connection status. In stand-alone mode, the device can directly call the standard feature values pre-stored in the data storage unit to complete the motion comparison, so that the device can adapt to different network environments and can realize the core dance motion analysis function without relying on an external network.
[0030] 4. In this invention, the human-machine interface unit integrates a touch screen and a voice recognition module, supporting both touch operation and voice commands to receive user operation instructions. This enriches the forms of human-machine interaction, lowers the operating threshold of the device, and allows different users to easily complete device operation. At the same time, the diverse command input methods also improve the timeliness and flexibility of device operation, adapting to various operational needs in dance learning.
[0031] 5. In this invention, the data output unit is set with a dual interface of display interface and data interface. It can output video screen with feature point feature value comparison information to intuitively show the deviation of dance movements. It can also output data stream containing feature point feature values to provide data support for data analysis of external devices. It realizes multi-form output of dance movement data, which not only meets the real-time viewing needs of learners, but also expands the data application scenarios of the device. Attached Figure Description
[0032] Figure 1 This is a frame diagram of an AI dance mirror proposed in this invention;
[0033] Figure 2 This is a flowchart illustrating the workflow of an AI dance mirror proposed in this invention. Detailed Implementation
[0034] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0035] Example 1: In an embodiment of the present invention, the present invention provides an AI dance mirror, comprising:
[0036] The human-machine interface unit is used to receive user operation commands and / or input information;
[0037] Furthermore, the human-machine interface unit includes a touch screen and / or a voice recognition module, used to receive user operation commands through touch operations and / or voice commands.
[0038] Specifically, the human-machine interface unit can realize the system settings and human-machine interaction operation of the AI dance mirror through touch screen and voice, including the following functions: Function 1, touch screen information and command input; Function 2, voice information and command input; Function 3, support for system parameter settings, which can complete the configuration of information such as the name and password of the Wi-Fi to be connected.
[0039] The image acquisition unit is used to capture real-time video of the user's dance movements;
[0040] Specifically, the image acquisition unit uses a built-in high-definition camera and advanced image processing and machine learning algorithms to capture the dancer's body movements in real time.
[0041] The image analysis unit, connected to the image acquisition unit, is used to receive dance movement videos and analyze the image frames in the video to extract and output the feature values of the user's human body feature points in real time.
[0042] Furthermore, the image parsing unit is specifically used to: parse the image frames in the video, and sequentially extract and output the position feature values, posture feature values, velocity feature values and trajectory feature values of human feature points.
[0043] Specifically, the image analysis unit includes the following functions: Function 1: Real-time analysis of the feature values of human feature points, enabling real-time capture and analysis of the spatial coordinates of human feature points, including the positional data of joints, limb extremities, and other important landmarks. Function 2: Real-time analysis of the feature values of human feature point posture, including the tilt angle, rotation angle, and relative posture configuration of the feature points. This function aims to evaluate the posture changes of each feature point in three-dimensional space during dance or movement, thereby providing a basis for motion analysis and posture correction. Function 3: Real-time analysis of the feature values of human feature point velocity, enabling real-time measurement of the movement velocity of human feature points within a certain time interval and calculation of the instantaneous velocity vector of each feature point. This function allows the system to analyze the acceleration and deceleration characteristics during movement, thereby achieving a deeper understanding and evaluation of dynamic behavior. Function 4: Real-time analysis of the feature values of human feature point trajectory, enabling real-time recording of the movement trajectory of human feature points in space, including straight-line trajectories, curved trajectories, and their change patterns. By comparing the continuity and consistency of feature point trajectories in different time periods, the system can identify and analyze patterns, repetitions, and abnormal behaviors during movement. The dance image analysis algorithm is as follows:
[0044] 1. Model Description: The human body can be modeled as a graph G=(V,E), where: V is the joint node, such as the shoulder, elbow, knee, etc.; E is the connection between joints (e.g., bones).
[0045] 2. Feature Extraction: In this algorithm, the feature representation of a node is updated through information transfer from neighboring nodes. The initial features of each node Vi are set as follows: The node features can be updated through the following iterative process.
[0046]
[0047] in: Let be the weight matrix of the k-th layer. Let N(i) be the set of neighbors of node i. Let σ be the activation function.
[0048] 3. Training Graph Neural Networks: To train a GNN model, supervised learning can be used. The loss function is usually cross-entropy loss or mean squared error loss, with the following specific forms:
[0049] ;
[0050] Among them, y i It's a real label. It is the output predicted by the model.
[0051] Data storage unit, used to store standard dance videos and their corresponding standard feature point feature values;
[0052] Furthermore, the data storage unit is also used to: store the user's dance video captured by the image acquisition unit, and the corresponding human body feature point feature values extracted by the image analysis unit; and the image correction unit is also connected to the data storage unit to send the corrected feature point feature values to the data storage unit for storage; the data output unit is also connected to the data storage unit to retrieve data from the data storage unit and output it.
[0053] Furthermore, the data output unit includes a display interface and / or a data interface for outputting video images with feature point feature value comparison information, and / or outputting a data stream containing feature point feature values for analysis by external devices.
[0054] Specifically, the data storage unit has the following functions: Function 1: Storing standard dance videos and feature point value information extracted from the standard dance videos. Function 2: Storing students' dance videos and feature point value information extracted from the students' dance videos.
[0055] The image comparison unit is connected to the image parsing unit and the data storage unit respectively. It is used to receive the feature values of the user's human body feature points and retrieve the feature values of the standard feature points from the data storage unit. The two are compared in real time to generate comparison result data.
[0056] Furthermore, the image comparison unit is specifically used to: sequentially compare the position feature value, posture feature value, velocity feature value and trajectory feature value of the parsed user human body feature points with the standard feature point feature values retrieved from the data storage unit in real time, and generate corresponding position comparison results, posture comparison results, velocity comparison results and trajectory comparison results.
[0057] Specifically, the image comparison unit has the following functions: Function 1: Real-time comparison of the feature values of human body feature points, quantification through a coordinate system, and comparison with reference positions to assess the consistency of relative position changes of an individual during movement. The algorithm for comparing the position of human body feature points in dance is as follows:
[0058] 1. Feature point extraction: First, extract key human feature points, such as joint positions, and represent them as a set of points: , where each point p i It is represented by its coordinates.
[0059] 2. Shape context description: For each feature point p i It calculates the shape context relative to other points. The shape context can be defined as a histogram that describes the distribution of other points around the feature point.
[0060] 2.1 Calculate the relative position: For each point p iCalculate all other points p j (j≠i) relative to p i The positional relationships. The position of each point can be described using polar coordinates: the distance is: ;angle: ;
[0061] 2.2 Histogram Construction: ... and r ij Divide into multiple bins and construct a shape histogram H. i , indicating at feature point p i The distribution of other nearby points.
[0062] 3. Shape matching: For human feature point sets P at different time points A and P B Matching can be performed through the following steps:
[0063] Calculate the shape of each feature point: for each feature point p i Calculate its shape histogram H i Then, for the entire feature point set P A and P B This operation is performed on each feature point in the matrix to obtain HA={HA1,HA2,..,HA2}. n} and H B ={HB1,HB2,..,HB n}
[0064] Calculating the distance between histograms: To compare two shape histograms, a distance metric is typically used, as shown in the following formula:
[0065] ;
[0066] Among them, H Aik and H Bik These are the values of the two histograms in the k-th bin.
[0067] Function 2: Real-time comparison of the feature values of human body feature points in posture, including the angles and relative configurations of the feature points, such as the bending angles of joints, the tilt angles of limbs, and the rotation angles. This comparative analysis can reveal the characteristics of posture changes during movement. The algorithm for comparing the posture of human body feature points in dance is as follows:
[0068] 1. Feature Point Extraction: First, extract key feature points from the dancer's image, such as joint positions. Assume we have extracted the following set of feature points:
[0069] Posture A:P A ={P A1 ,P A2 ,…,P An};
[0070] Posture B: A:P B ={P B1 ,P B2 ,…,P Bm};
[0071] Where, p Ai and p Bj These are coordinates in two-dimensional or three-dimensional space, such as P. Ai =(T Ai ,Y Ai Z Ai );
[0072] 2. Centering Feature Points: To eliminate the influence of location, the center of the feature points is calculated.
[0073] ;
[0074] ;
[0075] Then, the feature points are centered:
[0076] ;
[0077] ;
[0078] 3. Calculate the rotation matrix: To compare two poses, the rotation matrix from the rigid body transformation is used to align feature points. First, calculate the covariance matrix H:
[0079] ;
[0080] Next, using singular values, we will introduce how to calculate the rotation matrix from the covariance matrix H, and finally realize the pose comparison of the feature points of the dancing human body.
[0081] Function 3: Real-time comparison of the velocity characteristics of human body feature points. Specifically, by comparing the displacement and time interval of each feature point in consecutive frames of images, the instantaneous velocity and its rate of change of each feature point are calculated. This function helps to analyze acceleration, deceleration, and movement patterns during motion, providing data support for the evaluation of athletic performance. The algorithm for comparing the velocity of human body feature points in dance is as follows:
[0082] 1. Data Collection: Before comparing speeds, the position of each keypoint in different time frames needs to be recorded. Assume we have extracted the two-dimensional coordinates (x, y, z) of each keypoint. i y i ), where i represents a feature point and t represents a time frame.
[0083] 2. Velocity Calculation: Velocity can be calculated using the relationship between displacement and time. For each keypoint i, the velocity v between time frames t and t+1 is... i (t) can be calculated using the following formula:
[0084] ;
[0085] Where: v i (t) is the velocity of key point i at time t; x i (t) and y i (t) is the coordinate of key point i in time frame t; Δt is the time interval between time frames, which can be taken as 1 / frame rate if it is a video.
[0086] 3. Speed Comparison: To compare the speeds between multiple key points, the average speed V of each key point throughout the entire dance movement can be calculated. i :
[0087] ;
[0088] Where N is the total number of time frames.
[0089] 4. Speed Difference Analysis: The characteristics of a movement can be analyzed by calculating the speed differences between key points. For example, to further analyze the speed differences between two key points and the overall movement characteristics, the following steps can be used:
[0090] Suppose we have two key points i and j, we can calculate their velocity difference at time t using the following formula:
[0091] ;
[0092] This represents the absolute difference in velocity between keypoints i and j at time frame t. Furthermore, we can calculate the average velocity difference throughout the entire dance movement:
[0093] ;
[0094] Function 4: Real-time comparison of human feature point trajectories, specifically including tracking and analysis of straight and curved trajectories. By comparing the motion trajectories of feature points, the system can identify regularities and abnormal behaviors during movement. The algorithm for comparing dance human feature point trajectories is as follows:
[0095] 1. Data collection:
[0096] Feature point representation: Assume there are N feature points, and the coordinates of each feature point at time t are (x, y, t). i (t),y i (t)), where i represents the index of the feature point and t represents the time frame.
[0097] 2. Trajectory Representation: For each feature point i, its trajectory can be defined as the set of all coordinates in the time series: Ti = {(z...} i (1),y i (1)),(x i (2),y i (2)),...,(x i (N),y i (N))};
[0098] 3. Trajectory Calculation
[0099] 3.1 Distance Calculation: To compare the trajectories of different feature points, Euclidean distance can be used to calculate the displacement between adjacent time frames:
[0100] ;
[0101] 3.2 Trajectory Length: The total length of the feature point trajectory can be calculated to assess the complexity of its motion.
[0102] ;
[0103] 4. Trajectory Comparison Algorithm
[0104] 4.1 Dynamic Time Warping: Dynamic time warping is an effective algorithm for comparing two time series, even if they differ in length, by finding the best matching path through non-linear alignment of the time series.
[0105] The basic steps of dynamic time warping are as follows:
[0106] S1. Constructing the Dynamic Time Warped Distance Matrix: First, it is necessary to calculate the distance between the two trajectories and construct a dynamic time warped distance matrix D. Assume there are two feature points on the trajectory T. a and T b Their lengths are M and N, respectively.
[0107] D(i,j)=d a (i,j)+min(D(i-1,j),D(i,j-1),D(i-1,j-1));
[0108] Where: d a (i,j) is the distance between feature points a and b at times i and j.
[0109] S2, Boundary conditions: Initialize the boundary conditions D(0,0)=0, and set D(i,0) and D(0,j) to infinity, representing impossible paths.
[0110] S3, Path Backtracking: Once the dynamic time warp matrix is filled, find the path backtracking from D(M,N) to D(0,0) to obtain the best alignment.
[0111] S4, DTW distance: Ultimately, the DTW distance is DTW(T a T b The distance is defined as D(M, N), which can be used to quantify the similarity between two trajectories. The smaller the distance, the more similar the two trajectories are.
[0112] S4.2 Trajectory Feature Extraction
[0113] After comparing trajectories using the DTW algorithm, some key features can be further extracted to better understand the dancer's movements:
[0114] (1) Average speed: Average speed V i The speed of a dancer's movement in a specific action can be calculated using the total length of the trajectory and the time taken.
[0115] ;
[0116] Where L i is the trajectory length of the i-th feature point, and T is the number of time frames.
[0117] (2) Maximum displacement: D max The maximum displacement reflects the maximum range of movement of the feature point during the action, and can be obtained by calculating the displacement across all time frames:
[0118] ;
[0119] (3) Trajectory Curvature: The curvature of the K(t) trajectory can be used to understand a dancer's movement style, such as fluidity or urgency. The curvature can be obtained by calculating the angular change between adjacent points:
[0120] ;
[0121] Here, K(t) represents the curvature at time t, reflecting the changing trend of the trajectory.
[0122] Changes in motion direction: Changes in motion direction can be obtained by calculating the motion vector of each time frame and the change in the angle between adjacent frames.
[0123] ;
[0124] ;
[0125] in It reflects the change in the direction of motion.
[0126] The image correction unit, connected to the image comparison unit, is used to receive comparison result data and correct the feature values of the user's human body feature points in real time according to the preset correction algorithm, and generate corrected feature point feature values.
[0127] Furthermore, the image correction unit is specifically used to: correct the user's position feature value, attitude feature value, velocity feature value and trajectory feature value in real time according to the position comparison result, attitude comparison result, velocity comparison result and trajectory comparison result, respectively, and generate the corrected position feature value, corrected attitude feature value, corrected velocity feature value and corrected trajectory feature value accordingly.
[0128] Specifically, the image correction unit has the following functions: Function 1: Real-time correction of the feature values of human body feature points to improve the accuracy of feature point positions. The algorithm for correcting the position of human body feature points in dance is as follows:
[0129] 1. Feature Point Definition and Data Collection: First, define the feature points of the human body, such as shoulders, elbows, and knees, and use a pose estimation model to extract the positions of these feature points. Suppose we have a set of feature points at the positions of time frame t as follows:
[0130] ;
[0131] 2. Location Error Modeling: Errors may occur during feature point extraction. Let's assume the error is defined as E. i (t) represents the position error of the i-th feature point at time t:
[0132] ;
[0133] in, and It is a measured value, and and This is a reference value.
[0134] 3. Position Correction Algorithm: This algorithm can be divided into the following steps:
[0135] 3.1 Mean Filter: A mean filter is used to smooth the trajectory of feature points and reduce the impact of noise on their positions. For each feature point in each frame, the mean of its surrounding K frames is calculated:
[0136] ;
[0137] 3.2 Position Correction: The position of each feature point is corrected using the mean position. We can calculate the corrected feature point positions. :
[0138] ;
[0139] here, The smoothed position is calculated using a mean filter, and Ei(t) is the corresponding error.
[0140] 3.3 Constraint Optimization: In some cases, we may need to consider geometric constraints between joints; for example, the distance between the elbow and shoulder should be within a reasonable range. We can use optimization methods to ensure these constraints are satisfied. Suppose we have a set of constraints C, which can be expressed as:
[0141] ;
[0142] Where c i (P) represents the expression for the i-th constraint. The goal is to minimize the constraint function C(P) to ensure that the relative positions between feature points meet expectations. The optimization objective can be expressed as:
[0143] ;
[0144] Here, λ is a balancing factor that controls the weight between the correction and constraint of the feature point position.
[0145] 4. Smoothing and interpolation of action sequences
[0146] When processing dance sequences, interpolation between feature points may be necessary to ensure the continuity and smoothness of the motion. This can be achieved using spline interpolation or linear interpolation methods.
[0147] Assuming we are performing interpolation between time frames t and t+1, we can use the following linear interpolation formula:
[0148] ;
[0149] Here, δ is a parameter between 0 and 1, used in the interpolation process to control the progress of interpolation at the required time points.
[0150] When processing dance motion sequences, interpolation not only smooths the motion between feature points but also generates more keyframes for use in subsequent analysis or animation production. Here are some commonly used interpolation methods:
[0151] 4.1 Linear Interpolation: The basic formula for linear interpolation has been given. For each feature point P... i Interpolation between time t and t+1 can generate a new feature point location:
[0152] ;
[0153] The value of δ is in the range of [0,1].
[0154] 4.2 Spline Interpolation: For more complex and fluid motion, spline interpolation, such as cubic spline interpolation, can be used. Cubic spline interpolation takes into account the velocity and acceleration of feature points, making the motion more natural. If P i (t) represents the position of the i-th feature point at time t. Then, the cubic spline interpolation can be expressed as:
[0155] ;
[0156] Among them, a i b i c i d i These are interpolation coefficients calculated using known keyframes.
[0157] Function 2: Real-time correction of human body feature point posture eigenvalues. By analyzing the angle, orientation, and relative position of feature points, the posture feature values can be automatically adjusted to accurately reflect the real posture changes under human movement. The dance human body feature point posture correction algorithm is as follows:
[0158] 1. Feature Point Definition and Data Collection: First, define the feature points of the human body, such as shoulders, elbows, knees, and ankles, and use a pose estimation model to extract the positions of these feature points. Suppose we have a set of feature points at the positions of time frame t as follows:
[0159] ;
[0160] 2. Definition of Target Posture: Define an ideal target posture T, which can be a set of feature points of a standard dance posture, represented as:
[0161] ;
[0162] 3. Attitude error calculation: For each feature point, calculate the error E between the current position and the target position. i (t):
[0163] ;
[0164] 4. Attitude Correction Algorithm
[0165] 4.1 Mean Filtering: To reduce noise, mean filtering can be applied to the feature point locations. For each feature point, the mean value of the preceding and following k frames is calculated:
[0166] ;
[0167] 4.2 Position Correction: The position of each feature point is corrected using the mean position. The corrected feature point position can be represented as:
[0168] ;
[0169] Here, λ is a learning rate hyperparameter used to control the magnitude of the correction. By adjusting λ, a balance can be achieved between accuracy and stability.
[0170] Function 3: Real-time correction of the velocity eigenvalues of human feature points. By analyzing continuous frame images, the displacement of feature points in the time dimension is calculated, thereby updating their velocity eigenvalues in real time. The velocity correction algorithm for dance human feature points is as follows:
[0171] 1. Feature Point Definition and Data Collection: First, define the dancer's feature points of interest, such as hands, feet, and head, and use pose estimation techniques to extract the position data of these feature points. Assume the feature point positions obtained at time frame t are:
[0172] ;
[0173] 2. Velocity Calculation: Calculate the velocity V of each feature point. i (t):
[0174] ;
[0175] Where Δt is the sampling time interval.
[0176] 3. Target Speed Definition: To ensure the standardization of dance movements, a target speed can be defined. :
[0177] ;
[0178] 4. Velocity Error Calculation: For each feature point, calculate the error E between the current velocity and the target velocity. i (t):
[0179] ;
[0180] 5. Speed Correction Algorithm
[0181] 5.1 Smoothing: Speed can be smoothed to reduce the impact of noise. This can be achieved using a moving average method.
[0182] ;
[0183] 5.2 Velocity Correction: The smoothed velocity is used to correct the velocity of each feature point. The corrected velocity can be expressed as:
[0184] ;
[0185] Here, λ is an adjustment factor used to control the magnitude of the correction. By adjusting λ, a balance can be achieved between accuracy and stability.
[0186] 6. Update feature point positions: Update the positions of feature points based on the corrected velocity. The new positions of feature points can be calculated using the following formula:
[0187] ;
[0188] Function 4: Real-time correction of feature values of human body feature points. By analyzing the positional changes of feature points in continuous image frames, a motion trajectory model of the feature points is constructed, and dynamic adjustments are made according to the motion law. The algorithm for correcting the trajectory of human body feature points in dance is as follows:
[0189] 1. Feature point definition and data collection
[0190] First, key feature points of the dancer are defined, such as hands, feet, and head, and 2D or 3D position data of these feature points are extracted using pose estimation techniques. Assume the feature point positions collected at time frame t are:
[0191] ;
[0192] 2. Trajectory Representation: The trajectory of each feature point can be represented as time series data:
[0193] ;
[0194] Among them, T i This represents the trajectory of feature point i over k time frames.
[0195] 3. Trajectory Smoothing: To reduce noise and irregularities, the trajectory is first smoothed. Moving averages or Gaussian filtering can be used to smooth the trajectory.
[0196] Moving average method:
[0197] ;
[0198] Gaussian filtering:
[0199] ;
[0200] Where G(j) is the Gaussian weight function and m is the size of the filter window.
[0201] 4. Trajectory Correction Algorithm
[0202] 4.1 Calculate Trajectory Error: Calculate the error between the current trajectory and the target trajectory. Assume the target trajectory is... The error can be calculated using the following formula:
[0203] ;
[0204] 4.2 Trajectory Correction: After calculating the error between the current trajectory and the target trajectory, the error can be used for trajectory correction. The corrected trajectory can be represented as:
[0205] ;
[0206] Here, λ is an adjustment factor that controls the magnitude of the correction. By adjusting λ, a balance can be achieved between the correction effect and trajectory stability.
[0207] The status prompt unit, connected to the image correction unit, is used to receive the feature values of the corrected feature points or the comparison result data, and to generate and output prompt information to guide the user to adjust the action;
[0208] Furthermore, the status prompting unit is specifically used to: generate and output at least one of position error prompting information, attitude error prompting information, velocity error prompting information, and trajectory error prompting information based on the comparison result data or the corrected feature point feature values; wherein, the trajectory error prompting information is the overall trajectory error value calculated by accumulating the feature point position errors of each time frame.
[0209] Specifically, the status prompt unit has the following functions: Function 1: Dancer Human Feature Point Position Error Prompt: Real-time monitoring and calculation of the deviation between the actual position of each feature point in 3D space and the predetermined target position. By comparing the distance between the current feature point and the desired position, the position error value is output to facilitate user adjustment of its position; Function 2: Dancer Human Feature Point Posture Error Prompt: This unit is also responsible for evaluating the posture of the feature points, specifically by calculating the angular relationship between the feature point and other feature points. The calculation method is to obtain the difference between the current posture angle and the target posture angle, and output the posture error value, thereby providing users with guidance for posture adjustment; Function 3: Dancer Human Feature Point Speed Error Prompt: Further monitoring the movement speed of the feature points, by comparing the difference between the current speed and the preset target speed, the speed error value is calculated and output so that users can make corresponding adjustments to the movement speed; Function 4: Dancer Human Feature Point Trajectory Error Prompt: This unit comprehensively analyzes the movement trajectory of the feature points, by calculating the difference between the trajectory of the feature point during the movement process and the predetermined trajectory, and outputs the overall trajectory error. This error is calculated by accumulating the position error of each feature point in different time frames, providing users with specific suggestions on trajectory adjustment.
[0210] The data output unit is connected to the image parsing unit, the image comparison unit, and the image correction unit respectively, and is used to output the user's human body feature point feature values, comparison result data, and / or corrected feature point feature values;
[0211] Specifically, the data output unit has the following functions: Function 1: Output the feature value information of the extracted feature points; Function 2: Output the information with feature value comparison; Function 3: Generate the information with feature value correction.
[0212] The central processor is connected to the human-machine interface unit, image acquisition unit, image analysis unit, data storage unit, image comparison unit, image correction unit, status prompt unit, and data output unit, respectively, and is used to coordinate and control the work of each unit.
[0213] Specifically, the central processor has the following functions: Function 1: coordinating the various processing units; Function 2: core operations.
[0214] The communication unit, connected to the central processor, is used to enable data transmission with external networks or devices.
[0215] Furthermore, the communication unit includes a wireless communication module for connecting to a wireless network; the central processor is also configured to: control the AI dance mirror to enter a network working mode when a successful connection between the communication unit and the wireless network is detected; and control the AI dance mirror to enter a stand-alone working mode when a connection failure or disconnection is detected.
[0216] Furthermore, in the stand-alone working mode, the central processor controls the image comparison unit to call the pre-stored standard feature point feature values in the data storage unit for comparison.
[0217] Specifically, the communication unit transmits the feature value data of the dancer's feature points to the destination, and simultaneously transmits real-time video data for playback or comparison.
[0218] Example 2: The specific implementation of the technical solution of the present invention is as follows Figure 2 As shown:
[0219] S1. After powering on
[901] , enter the setup connection
[902] .
[0220] S2. At
[902] , if the connection is successful, enter
[905] ; if the connection is unsuccessful, enter single-player mode
[904] .
[0221] S3. After entering
[905] , if a setting instruction is received, enter the setting mode
[903] ; if the set Wi-Fi is not connected or the connection is lost, enter the stand-alone working mode
[904] ; if the power button is pressed, enter the power off mode
[912] ; when connected normally, if there are no other instructions, enter the real-time stereoscopic image data acquisition mode by default
[906] .
[0222] S4. After the default real-time stereoscopic image data acquisition
[906] , the human body shape, posture, speed, and trajectory are analyzed in real time, and the feature values of feature points are extracted, such as the bending force of the hand, the angles in the three-axis direction (roll angle, pitch angle, yaw angle); the position and speed in the three-axis direction and the rotation speed. The feature value data of the feature points are compared
[907] .
[0223] S5. After comparing the feature value data of the feature points
[907] , the feature values of the human body shape, posture, speed, and trajectory feature points are corrected in real time
[908] . After correcting the feature values of the feature points
[908] , data is stored
[909] , storing the standard dance video and the feature value information of the feature points extracted from the standard dance video, as well as the student's dance video and the feature value information of the feature points extracted from the student's dance video.
[0224] S6. After data storage
[909] , data output
[910] is performed, that is, the feature value information of the extracted feature points is output; information with feature point feature value comparison is output and information with feature point feature value correction is generated.
[0225] S7. After data output
[910] , a status prompt
[911] is given, indicating the error value of the feature point's feature value, specifically indicating the error values of the feature point's position, attitude, velocity, and trajectory.
[0226] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. An AI dance mirror, characterized in that, include: The human-machine interface unit is used to receive user operation commands and / or input information; The image acquisition unit is used to capture real-time video of the user's dance movements; The image analysis unit, connected to the image acquisition unit, is used to receive dance movement videos and analyze the image frames in the video to extract and output the feature values of the user's human body feature points in real time. Data storage unit, used to store standard dance videos and their corresponding standard feature point feature values; The image comparison unit is connected to the image parsing unit and the data storage unit respectively. It is used to receive the feature values of the user's human body feature points and retrieve the feature values of the standard feature points from the data storage unit. The two are compared in real time to generate comparison result data. The image correction unit, connected to the image comparison unit, is used to receive comparison result data and correct the feature values of the user's human body feature points in real time according to the preset correction algorithm, and generate corrected feature point feature values. The status prompt unit, connected to the image correction unit, is used to receive the feature values of the corrected feature points or the comparison result data, and to generate and output prompt information to guide the user to adjust the action; The data output unit is connected to the image parsing unit, the image comparison unit, and the image correction unit respectively, and is used to output the user's human body feature point feature values, comparison result data, and / or corrected feature point feature values; The central processor is connected to the human-machine interface unit, image acquisition unit, image analysis unit, data storage unit, image comparison unit, image correction unit, status prompt unit, and data output unit, respectively, and is used to coordinate and control the work of each unit. The communication unit, connected to the central processor, is used to enable data transmission with external networks or devices.
2. The AI dance mirror according to claim 1, characterized in that, The image parsing unit is specifically used to: parse the image frames in the video, and sequentially extract and output the position feature values, posture feature values, velocity feature values and trajectory feature values of human feature points.
3. The AI dance mirror according to claim 2, characterized in that, The image comparison unit is specifically used to: compare the position feature value, posture feature value, velocity feature value and trajectory feature value of the parsed user human body feature points with the standard feature point feature value retrieved from the data storage unit in real time, and generate position comparison result, posture comparison result, velocity comparison result and trajectory comparison result accordingly.
4. The AI dance mirror according to claim 1, characterized in that, The image correction unit is specifically used to: correct the user's position feature value, attitude feature value, velocity feature value and trajectory feature value in real time according to the position comparison result, attitude comparison result, velocity comparison result and trajectory comparison result, respectively, and generate the corrected position feature value, corrected attitude feature value, corrected velocity feature value and corrected trajectory feature value accordingly.
5. The AI dance mirror according to claim 4, characterized in that, The status prompting unit is specifically used to: generate and output at least one of position error prompting information, attitude error prompting information, velocity error prompting information, and trajectory error prompting information based on the comparison result data or the corrected feature point feature values; wherein, the trajectory error prompting information is the overall trajectory error value calculated by accumulating the feature point position errors of each time frame.
6. The AI dance mirror according to claim 1, characterized in that, The data storage unit is also used to: store the user's dance video captured by the image acquisition unit, and the corresponding human body feature point feature values extracted by the image analysis unit; and the image correction unit is also connected to the data storage unit to send the corrected feature point feature values to the data storage unit for storage; the data output unit is also connected to the data storage unit to retrieve data from the data storage unit and output it.
7. The AI dance mirror according to claim 1, characterized in that, The human-machine interface unit includes a touch screen and / or a voice recognition module, used to receive user operation commands through touch operations and / or voice commands.
8. The AI dance mirror according to claim 1, characterized in that, The communication unit includes a wireless communication module for connecting to a wireless network; the central processor is also used to: control the AI dance mirror to enter a network working mode when the communication unit is successfully connected to the wireless network; and control the AI dance mirror to enter a stand-alone working mode when the connection fails or is disconnected.
9. An AI dance mirror according to claim 8, characterized in that, In the stand-alone working mode, the central processor controls the image comparison unit to call the pre-stored standard feature point feature values in the data storage unit for comparison.
10. An AI dance mirror according to claim 1, characterized in that, The data output unit includes a display interface and / or a data interface, used to output video images with feature point feature value comparison information, and / or output a data stream containing feature point feature values for analysis by external devices.
