Cataract surgery simulation training method and system
Through the combination of convolutional neural network and random forest algorithm, personalized dynamic adjustment in cataract surgery simulation training is achieved, solving the static problems of individual differences and training difficulty in traditional methods, and improving training efficiency and learning effect.
Patent Information
- Application Number
- CN202410883510.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-03
AI Technical Summary
Traditional cataract surgery simulation training methods cannot effectively consider individual differences and dynamic adjustment of training difficulty, resulting in low training efficiency and reduced learning motivation, lack of pertinence and immediate feedback, and insufficient resource utilization.
Using convolutional neural networks and random forest algorithms, through real-time processing and analysis of surgical video streams, it identifies key operation frames, generates dynamic sequence sets, simulates complication scenarios, adjusts the training environment and feedback parameters, dynamically adjusts training difficulty, and provides targeted training plan.
It improves the adaptability and pertinence of training, speeds up the skill mastering process, reduces learners’ frustration, and improves training efficiency and learning effectiveness.
Smart Images

Figure CN118430355B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of simulation training, and in particular to a cataract surgery simulation training method and system. Background Art
[0002] The field of simulation training technology is a field that uses computer technology to simulate real surgical environments and surgical procedures. This field aims to provide doctors and medical students with a risk-free learning platform to practice and perfect surgical skills in a simulated surgical environment. By simulating real surgical procedures, learners can better understand surgical steps, operating techniques and various situations that may be encountered, thereby improving surgical skills and reducing errors in surgery.
[0003] Among them, the cataract surgery simulation training method is a simulated surgical environment created by computer simulation technology, which is used to simulate all or part of the cataract surgery process. Its purpose is to provide a safe and controllable learning platform through the simulation environment, so that doctors and medical students can practice surgical skills without patient risks. This method aims to improve the proficiency and accuracy of surgical operations through repeated practice and simulation of different surgical scenarios, and to achieve the effect of improving the success rate of surgery and patient safety.
[0004] Traditional methods are insufficient in considering individual differences and dynamically adjusting training difficulty. This static and generalized training method ignores individual differences in learning speed and skill mastery, and cannot provide learners with targeted training plans. The lack of an effective feedback and evaluation mechanism makes it difficult for learners to receive timely guidance on skill improvement, resulting in low training efficiency and decreased learning motivation. This limitation is that it is impossible to ensure that all trainees can improve their surgical skills in the best way, resulting in insufficient resource utilization and unsatisfactory learning results. Summary of the invention
[0005] The purpose of the present invention is to solve the shortcomings of the prior art and to propose a cataract surgery simulation training method and system.
[0006] In order to achieve the above object, the present invention adopts the following technical solution: a cataract surgery simulation training method, comprising the following steps:
[0007] S1: Collect the original video data of the surgical process, perform resolution scanning, refine the interaction boundary between the instrument and the eyeball tissue, adjust the image brightness and contrast parameters, optimize the visual effect, and obtain refined visual simulation data;
[0008] S2: Based on the refined visual simulation data, a convolutional neural network is used to perform real-time processing and analysis of the surgical video stream, identify key operation frames, perform dynamic blur processing, optimize motion blur, and generate a surgical dynamic sequence set by continuously splicing key frames;
[0009] S3: Selecting target stage images from the surgical dynamic sequence set, performing color enhancement processing on the key surgical area at the target time point, and using sequence frame reorganization to simulate the passage of time during the surgical process to generate time-sensitive scene data;
[0010] S4: Based on the time-sensitive scene data, a probability analysis is performed to simulate potential complication scenarios, the change speed and complication frequency in the image sequence are adjusted, the surgical risk is simulated, and a complication simulation sequence is obtained;
[0011] S5: According to the complication simulation sequence and in combination with the refined visual simulation data, the visual and dynamic parameters in the simulation environment are adjusted to match the sensory experience of the surgical environment, thereby constructing a surgical simulation environment;
[0012] S6: Based on the surgical simulation environment, using the data of the surgical dynamic sequence set, by adjusting feedback delay and operation parameters, simulating instant feedback during surgical operation, optimizing the training effect of surgical skills, and establishing an instant feedback training module;
[0013] S7: Based on the instant feedback training module, combined with statistical analysis and machine learning algorithms, the user operation data is integrated to set multiple training difficulty levels, including operation speed and accuracy requirements. By analyzing the operation results and feedback effects, the training content and difficulty are adjusted to obtain a targeted training plan.
[0014] The improvements of the present invention are that the refined visual simulation data includes images of the interaction between instruments and eyeball tissues, adjusted image brightness values and contrast levels, the surgical dynamic sequence set includes key operation frames for removing motion blur, surgical action transitions, and surgical process displays, the time-sensitive scene data includes color-enhanced images determined by time points, displays of key surgical areas, and time flow changes displayed by sequence frame reorganization, the complication simulation sequence includes visual manifestations of complications of different types, image sequences with adjusted change speeds, and complication frequency settings, the surgical simulation environment includes visual effect adjustment and dynamic environment parameter settings, and the instant feedback training module includes operation feedback delay adjustment, surgical operation accuracy parameter settings, and training effect optimization strategies.
[0015] The present invention has the following improvements: collecting the original video data of the surgical process, performing resolution scanning, refining the interaction boundary between the instrument and the eyeball tissue, adjusting the image brightness and contrast parameters, optimizing the visual effect, and obtaining the refined visual simulation data:
[0016] S101: Collecting the original video data of the surgical process, dividing the video into frames, scanning frame by frame to extract the details in each frame, optimizing the image quality by adjusting the color saturation and light and dark contrast, and obtaining the surgical scene frame set;
[0017] S102: Based on the surgical scene frame set, mark the contact interface between the instrument and the eyeball tissue, perform interactive boundary refinement through edge detection, comparison and adjustment of edge quality, and generate an edge refinement atlas;
[0018] S103: Using the edge refinement atlas, adjusting the brightness and contrast parameters in the image, adjusting and optimizing the color range, optimizing the visual effect by enhancing the visualization of image details, and obtaining refined visual simulation data.
[0019] The present invention has the following improvements: based on the refined visual simulation data, a convolutional neural network is used to perform real-time processing and analysis of the surgical video stream, identify key operation frames, perform dynamic blur processing, optimize motion blur, and generate a surgical dynamic sequence set by continuously splicing key frames. Specifically, the steps are as follows:
[0020] S201: Based on the refined visual simulation data, a convolutional neural network is used to decompose the video content by frames, perform video frame processing, assign a unique timestamp to each frame image, and calculate the display time point of each frame according to the duration and frame rate of the video stream to obtain a time-stamped frame set;
[0021] S202: According to the time-stamped frame set, a differential image algorithm is used to perform key frame screening on the frame timestamp data, and a dynamic threshold is set to compare the movement range of the feature object in each frame. If the movement exceeds a preset value, it is marked as a key frame, and a screened key frame set is generated;
[0022] Using the differential image algorithm, according to the formula:
[0023] ;
[0024] Calculate the pixel difference between consecutive frames ,in, is the image data of the current frame, is the image data of the previous frame, represents the spatial variation weight based on the image, is the spatial position variation parameter, is the spatially varying weight coefficient, Represents the amount of change in the color histogram, is the color change parameter, is the weight coefficient of color change, Used to measure the area change of moving objects in an image. is the area change parameter of the moving object, is the weight coefficient of area change.
[0025] S203: Based on the selected key frame set, motion blur adjustment is performed by comparing the visual differences between consecutive key frames, and during the adjustment process, the visual continuity of the previous and next frames is evaluated, the transition between each frame is optimized, and a surgical dynamic sequence set is generated.
[0026] The improvement of the present invention is that the target stage image is selected from the surgical dynamic sequence set, the key surgical area is subjected to color enhancement processing at the target time point, and the time lapse during the surgical process is simulated by reassembling the sequence frames. The steps of generating time-sensitive scene data are specifically as follows:
[0027] S301: Filtering image sequences of a target surgical stage from the surgical dynamic sequence set, selecting images according to a key time of the surgical process, and verifying whether the selected images meet the key operation stage of the surgery, to obtain a key stage image sequence;
[0028] S302: performing color enhancement processing on key areas of surgery for each frame of the image in the key stage image sequence, highlighting the key areas of surgery by adjusting saturation and contrast, and generating a color enhanced image sequence;
[0029] S303: Based on the color enhanced image sequence, by adjusting the display interval of the images in the sequence, simulating the passage of time during the operation, establishing a visual effect of time changes during the operation, and generating time-sensitive scene data.
[0030] The present invention is improved in that, based on the time-sensitive scene data, probability analysis is performed to simulate potential complication scenarios, the change speed and complication frequency in the image sequence are adjusted to simulate surgical risks, and the steps of obtaining the complication simulation sequence are specifically as follows:
[0031] S401: Based on the time-sensitive scene data, define a probability model of differential complication scenarios, assign occurrence frequency and change speed to each potential complication, and adjust the visual presentation of the complication in the image sequence according to the parameters to generate a preliminary complication probability model;
[0032] S402: Based on the preliminary complication probability model, the simulated complication scenario is matched with the real surgery by adjusting the playback speed of the image sequence and the interval time of the complication occurrence, so as to obtain adjusted complication simulation parameters;
[0033] S403: Based on the adjusted complication simulation parameters, insert a simulated complication scenario into the time-sensitive scene data, and verify whether the visual representation of the complication is coordinated with the time lapse of the surgical process to obtain a complication simulation sequence.
[0034] The present invention has been improved in that, according to the complication simulation sequence, combined with the refined visual simulation data, the visual and dynamic parameters in the simulation environment are adjusted to match the sensory experience of the surgical environment. The specific steps of constructing the surgical simulation environment are:
[0035] S501: selecting images of key stages of surgery according to the complication simulation sequence, adjusting visual parameters of the images, including optimizing brightness and contrast, simulating lighting conditions in a surgical environment, and obtaining images with optimized visual parameters;
[0036] S502: optimizing the image using the visual parameters, and adjusting the dynamic elements in the image in combination with the refined visual simulation data, including simulating shadow changes and light reflections caused by the movement of instruments during surgery, optimizing the dynamics of the simulated environment, and obtaining a dynamic enhanced image;
[0037] S503: Based on the dynamic enhanced image, a simulation environment is created that reflects the visual and dynamic changes of the real surgical process, and the consistency of the environment with the surgical scene in terms of visual effects and dynamic response is verified to construct a surgical simulation environment.
[0038] The present invention is improved in that, based on the surgical simulation environment, using the data of the surgical dynamic sequence set, by adjusting the feedback delay and operation parameters, the instant feedback during surgical operation is simulated to optimize the training effect of surgical skills. The specific steps of establishing an instant feedback training module are:
[0039] S601: Based on the surgical simulation environment, the surgical dynamic sequence set is analyzed to identify key surgical operations that require immediate feedback, and parameters are set for the operations, including feedback delay time and operation requirements, to create an immediate feedback parameter configuration;
[0040] S602: According to the instant feedback parameter configuration, the feedback delay and operation feedback in the training simulation are adjusted to simulate the feedback situation in the surgery, optimize the surgery training effect, and generate training optimization measures;
[0041] S603: According to the training optimization measures, based on the trainee's performance in the simulated surgery, provide targeted instant feedback, including operation correctness, speed and accuracy, and establish an instant feedback training module.
[0042] The present invention is improved in that, based on the instant feedback training module, combined with statistical analysis and machine learning algorithms, user operation data is integrated to set multiple training difficulty levels, including operation speed and accuracy requirements, and the training content and difficulty are adjusted by analyzing the operation results and feedback effects. The steps of obtaining a targeted training plan are specifically as follows:
[0043] S701: Based on the instant feedback training module, collect the user's operation data in the simulated surgery, including operation speed, accuracy and feedback response time, evaluate the data through statistical analysis methods, identify patterns and deviations in the operation, and obtain user operation analysis information;
[0044] S702: Based on the user operation analysis information, apply a random forest algorithm to analyze the data, identify the user's skill level and learning progress, set multiple training difficulty levels according to the analysis results, including operation speed and accuracy requirements, and create training difficulty grading;
[0045] Using the random forest algorithm, according to the formula:
[0046] ;
[0047] Calculate the model accuracy, where Accuracy is the model accuracy, Number of correct predictions is the number of samples correctly predicted by the model, and Total predictions is the total number of samples predicted by the model. is the adjustment factor, is the feature importance threshold, MSS is the minimum number of sample splits, is the sample weight adjustment coefficient, Voting weight coefficient for decision tree.
[0048] S703: According to the training difficulty classification, combined with the operation results and feedback effects, the training content and difficulty are adjusted to match the personal learning curve and needs, the pertinence and effectiveness of the training plan are determined, and a pertinent training plan is obtained.
[0049] A cataract surgery simulation training system, the system comprising a video processing module, a key frame generation module, an image selection and color enhancement module, a time-sensitive scene generation module, a complication simulation module, and a training and feedback module;
[0050] The video processing module scans frame by frame based on the original video data of the surgical process, adjusts the brightness and contrast of each frame of the image, refines the interactive interface between the instrument and the eyeball tissue, optimizes the detail quality of the visual data, and obtains refined visual data;
[0051] The key frame generation module analyzes the dynamic changes between frames based on the refined visual data, identifies the motion blurred frames and adjusts them, and generates a surgical dynamic sequence set by continuously splicing the key frames;
[0052] The image selection and color enhancement module selects images representing key stages of surgery from the surgical dynamic sequence set, and adjusts the color saturation of the images to optimize the visual prominence of the surgical area, thereby generating a color-enhanced image sequence;
[0053] The time-sensitive scene generation module generates a time flow scene based on a color-enhanced image sequence by adjusting the image display interval to simulate the passage of time during surgery and reflect the visual scene of surgical time sensitivity;
[0054] The complication simulation module adjusts the image sequence playback speed and the frequency of complication image insertion based on the time flow scenario, simulates different surgical complication scenarios, and obtains a complication simulation sequence;
[0055] The training and feedback module adjusts the feedback delay and operation parameters of the surgical simulation environment according to the complication simulation sequence and the collected user operation data, formulates training plans with different difficulty levels for users, and obtains targeted training plans.
[0056] Compared with the prior art, the advantages and positive effects of the present invention are:
[0057] In the present invention, by adopting convolutional neural network and random forest algorithm, real-time processing and analysis of surgical video streams and in-depth analysis of user operation data are realized. The training difficulty is dynamically adjusted according to the real-time performance of the operation data, which improves the adaptability and targeting level of the training. By automatically adjusting the training content, learners are ensured to be in the most suitable environment for their skill improvement. This dynamic adjustment mechanism not only speeds up the process of skill mastery, but also effectively reduces the learners' sense of frustration and improves the targeting and efficiency of training. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 A flow chart of a cataract surgery simulation training method proposed by the present invention;
[0059] Figure 2 A detailed flow chart of step S1 in the cataract surgery simulation training method proposed by the present invention;
[0060] Figure 3 The present invention provides a detailed flow chart of step S2 in the cataract surgery simulation training method;
[0061] Figure 4 The present invention provides a detailed flow chart of step S3 in the cataract surgery simulation training method;
[0062] Figure 5 The present invention provides a detailed flow chart of step S4 in the cataract surgery simulation training method;
[0063] Figure 6The present invention provides a detailed flow chart of step S5 in the cataract surgery simulation training method;
[0064] Figure 7 The present invention provides a detailed flow chart of step S6 in the cataract surgery simulation training method;
[0065] Figure 8 The present invention provides a detailed flow chart of step S7 in the cataract surgery simulation training method;
[0066] Fig. 9 A module diagram of a cataract surgery simulation training system is proposed for the present invention. DETAILED DESCRIPTION
[0067] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0068] In the description of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating positions or positional relationships, are based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, in the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0069] Example: See Figure 1 The present invention provides a technical solution: a cataract surgery simulation training method, comprising the following steps:
[0070] S1: Collect the original video data of the surgical process, perform resolution scanning, refine the interaction boundary between the instrument and the eyeball tissue, adjust the image brightness and contrast parameters, optimize the visual effect, and obtain refined visual simulation data;
[0071] S2: Based on the refined visual simulation data, a convolutional neural network is used to perform real-time processing and analysis of surgical video streams, identify key operation frames, perform dynamic blur processing, optimize motion blur, and generate a surgical dynamic sequence set by continuously splicing key frames;
[0072] S3: Select target stage images from the surgical dynamic sequence set, perform color enhancement processing on the key surgical area at the target time point, use sequence frame reorganization to simulate the passage of time during the surgical process, and generate time-sensitive scene data;
[0073] S4: Based on the time-sensitive scene data, probability analysis is performed to simulate potential complication scenarios, adjust the change speed and complication frequency in the image sequence, simulate surgical risks, and obtain complication simulation sequences;
[0074] S5: According to the complication simulation sequence, combined with the refined visual simulation data, the visual and dynamic parameters in the simulation environment are adjusted to match the sensory experience of the surgical environment and construct a surgical simulation environment;
[0075] S6: Based on the surgical simulation environment, using the data of the surgical dynamic sequence set, by adjusting the feedback delay and operation parameters, simulate the instant feedback during surgical operation, optimize the training effect of surgical skills, and establish an instant feedback training module;
[0076] S7: Based on the instant feedback training module, combined with statistical analysis and machine learning algorithms, the user operation data is integrated to set multiple training difficulty levels, including operation speed and accuracy requirements. By analyzing the operation results and feedback effects, the training content and difficulty are adjusted to obtain a targeted training plan.
[0077] The refined visual simulation data include images of the interaction between instruments and eye tissues, and adjusted image brightness values and contrast levels. The surgical dynamic sequence set includes key operation frames for removing motion blur, surgical action transitions, and surgical process displays. Time-sensitive scene data include color-enhanced images determined by time points, displays of key surgical areas, and time flow changes displayed by sequence frame reorganization. The complication simulation sequence includes the visual presentation of different types of complications, image sequences with adjusted change speeds, and complication frequency settings. The surgical simulation environment includes visual effect adjustment and dynamic environment parameter settings. The instant feedback training module includes operation feedback delay adjustment, surgical operation accuracy parameter settings, and training effect optimization strategies.
[0078] See also Figure 2 , collect the original video data of the surgical process, perform resolution scanning, refine the interaction boundary between the instrument and the eyeball tissue, adjust the image brightness and contrast parameters, optimize the visual effect, and obtain the detailed visual simulation data. The specific steps are:
[0079] S101: Collecting the original video data of the surgical process, dividing the video into frames, scanning frame by frame to extract the details in each frame, optimizing the image quality by adjusting the color saturation and light and dark contrast, and obtaining the surgical scene frame set;
[0080] S102: Based on the surgical scene frame set, mark the contact interface between the instrument and the eyeball tissue, perform interactive boundary refinement through edge detection, comparison and adjustment of edge quality, and generate an edge refinement atlas;
[0081] S103: Using the edge refinement atlas, adjusting the brightness and contrast parameters in the image, adjusting and optimizing the color range, optimizing the visual effect by enhancing the visualization of the image details, and obtaining refined visual simulation data.
[0082] S101: Decompose the video data into continuous frames according to the time axis, extract all the detail information in each frame image in turn, perform color analysis on each frame image, calculate the initial values of color saturation and brightness contrast, and evaluate the image quality by setting thresholds. For example, set the color saturation threshold to 0.5 and the brightness contrast threshold to 0.7. When it is detected that the color saturation or brightness contrast of any area in the frame exceeds the threshold, execute the corresponding image processing steps. When adjusting the color saturation, balance the colors of each area by increasing or decreasing the color value. For example, increase the pixel value with a color saturation between 0.3 and 0.6 to 0.8, and reduce the pixel value exceeding 0.8 to 0.6. When adjusting the brightness contrast, balance the overall image by adjusting the brightness parameter. For example, increase the brightness of the area below 0.4 to 0.5, and reduce the brightness of the area above 0.7 to 0.6, and obtain a surgical scene frame set.
[0083] S102: Use each frame image of the surgical scene frame set to first mark the contact area between the instrument and the eye tissue. During the marking process, a high-precision edge detection algorithm is required to identify the contact interface. When performing edge detection on each frame image, the position of the edge is determined by calculating the image gradient. The initial parameter of the edge detection can be set to a gradient threshold of 0.4. After the edge is detected, the edge is adjusted and optimized by comparing the position difference between the original edge and the detected edge to ensure that the edge is clear and coherent. When the interactive boundary is refined, the edge position is adjusted frame by frame, and the edge information of each frame is merged into the next frame image. The edge refinement effect is optimized through multiple iterations to generate an edge refinement atlas.
[0084] S103: Use each frame image in the edge refinement atlas to balance the overall brightness of the image, adjust the brightness value pixel by pixel, set the initial brightness balance parameter to 0.5, and when it is detected that the brightness value of a certain area is lower than 0.3 or higher than 0.7, make corresponding brightness adjustments, for example, increase the brightness value lower than 0.3 to 0.5, and reduce the brightness value higher than 0.7 to 0.6. When adjusting the contrast, set the contrast adjustment parameter to 1.2 by comparing the difference between bright and dark areas in each frame image. When the contrast difference is detected to be lower than 0.5, increase the contrast value, and when it is higher than 1.5, reduce the contrast value. When adjusting the color range, set the color optimization parameter to 0.8 by analyzing the color distribution in each frame image, optimize the area with color saturation lower than 0.5 to 0.7, and adjust the area with color saturation higher than 0.9 to 0.8, and obtain refined visual simulation data.
[0085] See also Figure 3,Based on the refined visual simulation data, a convolutional neural network is used to perform real-time processing and analysis of the surgical video stream, identify key operation frames, perform dynamic blur processing, optimize motion blur, and generate a surgical dynamic sequence set by continuously splicing key frames. The specific steps are as follows:
[0086] S201: Based on the refined visual simulation data, a convolutional neural network is used to decompose the video content by frames, perform video frame processing, assign a unique timestamp to each frame image, and calculate the display time point of each frame according to the duration and frame rate of the video stream to obtain a time-stamped frame set;
[0087] S202: According to the time-stamped frame set, a differential image algorithm is used to filter key frames of the frame time-stamped data, and a dynamic threshold is set to compare the movement range of the feature object in each frame. If the movement exceeds a preset value, it is marked as a key frame, and a filtered key frame set is generated;
[0088] S203: Based on the selected key frame set, motion blur adjustment is performed by comparing the visual differences between consecutive key frames. During the adjustment process, the visual continuity of the previous and next frames is evaluated, the transition between each frame is optimized, and a surgical dynamic sequence set is generated.
[0089] S201: When processing the refined visual simulation data, the video content is first imported into the convolutional neural network for frame decomposition, which involves video frame processing technology. In this process, each frame image will be assigned a unique timestamp based on the start time of the video. Then, according to the total length and frame rate of the video stream, the display time point of each frame image is calculated. The time point helps to determine the specific playback moment of each frame in the video. In this way, it can be ensured that in subsequent processing, each frame can be accurately matched to its time to form a complete time-stamped frame set. The time-stamped frame set is crucial for subsequent video analysis and processing.
[0090] S202: According to the time-stamped frame set, the frame timestamp data is filtered for key frames. A method based on image change analysis is adopted. By setting a dynamic threshold, a differential image algorithm is used to compare the pixel differences between consecutive frames. The Python script and the cv2.absdiff function in the OpenCV library are used. The parameter settings include the current frame and the previous frame image data. If the movement exceeds the preset threshold, it is marked as a key frame to generate a filtered key frame set.
[0091] Using the differential image algorithm, according to the formula:
[0092] ;
[0093] Calculate the pixel difference between consecutive frames , generate a set of filtered key frames;
[0094] in, is the image data of the current frame, is the image data of the previous frame, represents the image-based spatial variation weight, where is the spatial position variation parameter, is the spatially varying weight coefficient, Represents the color histogram change, where is the color change parameter, is the weight coefficient of color change, It is used to measure the area change of moving objects in an image, where: is the area change parameter of the moving object, is the weight coefficient of area change.
[0095] Execution process:
[0096] S1: Calculate pixel differences between consecutive frames ;
[0097] S2: Calculate spatial position changes , color change , and the area change of the moving object ;
[0098] S3: Determine the weight coefficient , and The specific value of is usually obtained by analyzing a set of training data in advance and using an optimization algorithm (such as gradient descent) to adjust the weights to maximize the recognition accuracy of the key frames.
[0099] S4: Multiply the parameter and its corresponding weight coefficient and sum them to get the final pixel difference value ,if Exceeding the preset threshold , the current frame is marked as a key frame.
[0100] S203: After obtaining the filtered key frame set, further analyze and process the visual differences between consecutive key frames, pay special attention to the adjustment of motion blur, evaluate the visual continuity between consecutive key frames by comparing them, and try to identify and adjust the blur caused by rapid motion. During the adjustment process, use image processing technology to optimize the transition between each frame, so that the video can be played more smoothly and with clearer details. Through the steps, the generated surgical dynamic sequence set not only maintains the real dynamics of the surgical process, but also greatly improves the image quality and viewing experience. This sequence set can be used as an important resource for medical training, surgical analysis or telemedicine.
[0101] See also Figure 4, select the target stage image from the surgical dynamic sequence set, perform color enhancement processing on the key surgical area at the target time point, and use sequence frame reorganization to simulate the time lapse during the surgical process. The specific steps for generating time-sensitive scene data are as follows:
[0102] S301: Filtering image sequences of a target surgical stage from a surgical dynamic sequence set, selecting images according to a key time of the surgical process, and verifying whether the selected images meet the key operation stage of the surgery, thereby obtaining a key stage image sequence;
[0103] S302: performing color enhancement processing on key areas of surgery for each frame of the image in the key stage image sequence, highlighting the key areas of surgery by adjusting saturation and contrast, and generating a color enhanced image sequence;
[0104] S303: Based on the color enhanced image sequence, by adjusting the display interval of the images in the sequence, simulating the passage of time during the operation, establishing a visual effect of time changes during the operation, and generating time-sensitive scene data.
[0105] S301: Screening the image sequence of the target surgical stage from the surgical dynamic sequence set First, it is necessary to carefully analyze the timeline of the entire surgical video and identify the key time nodes in the surgical process. Usually, it depends on the surgical records and the feedback of the surgeon to determine which moments are the key operation stages in the surgery. After working closely with the medical team to determine the key time points, use the timestamps in the time-stamped frame set for precise selection. Then, verify the image sequence to ensure that the selected image sequence completely covers the key operation stages of the surgery, so as to obtain an image sequence that accurately reflects the key stages of the surgery. This key stage image sequence is very important for subsequent analysis and training models, ensuring that every decisive moment of the surgery is captured and recorded.
[0106] S302: The step of color enhancing each frame of the key stage image sequence includes first identifying the key surgical area, which usually involves the contact point between the surgical instrument and the important surgical tissue, and using image processing software to adjust the saturation and contrast of the key area to highlight the part. The purpose of color enhancement is to make the key surgical area more visually obvious, thereby helping doctors and learners to better understand each step of the operation. Through this method, the generated color enhanced image sequence is not only more visually eye-catching, but also more effective in teaching and demonstration, providing important visual materials for surgical training.
[0107] S303: After obtaining the color-enhanced image sequence, the passage of time during the operation is further simulated by adjusting the display interval of the images in the sequence. This step is implemented through software tools, allowing the operator to adjust the playback interval between images according to the actual progress of the operation. Such adjustments help simulate the real rhythm of the operation and reflect the passage of time and the speed of the operation. Finally, the adjustment generates a time-sensitive scene dataset, which not only reflects the temporal dynamics of the operation process, but also increases the sense of reality and urgency of viewing. This time-sensitive visual effect is very valuable for surgical training and preparation, and can help medical personnel better grasp the timing and rhythm of the operation.
[0108] See also Figure 5 ,Based on the time-sensitive scene data, a probability analysis is performed to simulate potential complication scenarios, adjust the change speed and complication frequency in the image sequence, simulate the surgical risks, and obtain the complication simulation sequence in the following steps:
[0109] S401: Based on the time-sensitive scene data, define a probability model of differential complication scenarios, assign occurrence frequency and change speed to each potential complication, and adjust the visual presentation of complications in the image sequence according to the parameters to generate a preliminary complication probability model;
[0110] S402: Based on the preliminary complication probability model, the simulated complication scenario is matched with the real surgery by adjusting the playback speed of the image sequence and the interval time of the complication occurrence, so as to obtain adjusted complication simulation parameters;
[0111] S403: Based on the adjusted complication simulation parameters, a simulated complication scenario is inserted into the time-sensitive scenario data, and it is verified whether the visual representation of the complication is coordinated with the time lapse of the surgical process, so as to obtain a complication simulation sequence.
[0112] S401: Based on time-sensitive scene data, a probability model of differential complication scenarios is established, which involves defining the frequency of occurrence and the speed of change of each potential complication. The parameters are set based on historical surgical data and complication statistics. For example, for cardiac surgery, different frequencies of occurrence can be set for complications such as arrhythmias and bleeding. Subsequently, the frequency and speed parameters are used to adjust the visual presentation of complications in the image sequence to ensure that the visual presentation matches the actual complications, including simulating the severity and development speed of complications by adjusting the color, brightness or contrast of the image, and generating a preliminary complication probability model.
[0113] S402: Based on the preliminary complication probability model, the model is further optimized by adjusting the playback speed of the image sequence and the interval time of the occurrence of complications. The adjustment is to ensure that the simulated complication scenario matches the real surgical scene. The playback speed is adjusted according to the speed of the surgical progress and the speed of complication development, while the interval time is set according to the expected frequency of complications. This dynamic adjustment helps the simulation scene to more realistically reflect the sudden medical situation during the operation, thereby obtaining the adjusted complication simulation parameters.
[0114] S403: Based on the adjusted complication simulation parameters, simulated complication scenarios are inserted into the time-sensitive scenario data. This step includes accurately integrating the complication scenarios with adjusted parameters into the corresponding time points of the surgical process to ensure that the visual presentation of the complications is coordinated with the time passage of the surgical process. The final verification is performed through software tools to ensure that the visual effects of the complications are perfectly matched with the dynamic process of the surgery in terms of vision and time. The generated complication simulation sequence not only provides visualization of potential risks, but also enhances the surgical team's ability to respond to emergencies.
[0115] See also Figure 6 According to the complication simulation sequence, combined with the refined visual simulation data, the visual and dynamic parameters in the simulation environment are adjusted to match the sensory experience of the surgical environment. The specific steps for constructing the surgical simulation environment are as follows:
[0116] S501: Select images of key surgical stages according to the complication simulation sequence, and adjust visual parameters of the images, including optimizing brightness and contrast, simulating lighting conditions in the surgical environment, and obtaining images with optimized visual parameters;
[0117] S502: optimizing the image using visual parameters, and adjusting the dynamic elements in the image in combination with the refined visual simulation data, including simulating the shadow changes and light reflections caused by the movement of instruments during the operation, optimizing the dynamics of the simulation environment, and obtaining a dynamic enhanced image;
[0118] S503: Based on the dynamic enhanced image, a simulation environment is created that reflects the visual and dynamic changes of the real surgical process, and the consistency of the environment with the surgical scene in terms of visual effects and dynamic response is verified to construct a surgical simulation environment.
[0119] S501: It is important to select images of key surgical stages from the complication simulation sequence as the starting point for processing. It is critical to adjust the visual parameters of the selected images, including the optimization of brightness and contrast. The goal of the optimization is to simulate the actual lighting conditions in the operating room to ensure that the image reflects a real visual experience. By using advanced image processing software, the brightness and contrast parameters are adjusted to make the image closer to the lighting environment during surgery, which not only improves the visual quality of the image, but also enhances the realism of the image.
[0120] S502: Using the image after visual parameter optimization, further combining with the refined visual simulation data, the dynamic elements in the image are adjusted, including simulating the shadow changes and light reflections caused by the movement of the instrument during the operation. By accurately simulating the dynamic changes, the dynamics of the simulated environment can be optimized. During the operation, special attention is paid to the trajectory of the instrument's movement during the operation and its impact on the surrounding light. The shadow and reflection effects are adjusted using dynamic image processing technology to achieve a more accurate and realistic visual simulation and obtain a dynamically enhanced image.
[0121] S503: Based on dynamic enhanced images, create a simulation environment that reflects the visual and dynamic changes of the real surgical process. This environment needs to comprehensively consider various visual and dynamic factors in the surgical process, such as light changes, instrument movement and visual contact with the surgical area. Through software tools, make final adjustments and optimizations to the environment to ensure that the simulation environment is highly consistent with the actual surgical scene in terms of visual effects and dynamic responses. Perform rigorous verification work to test whether the visual and dynamic responses in the simulation environment can truly reflect the actual situation of the surgery. Through the process, the constructed surgical simulation environment not only provides an effective surgical training tool.
[0122] See also Figure 7 Based on the surgical simulation environment, using the data of the surgical dynamic sequence set, by adjusting the feedback delay and operation parameters, the instant feedback during surgical operation is simulated to optimize the training effect of surgical skills. The specific steps for establishing the instant feedback training module are as follows:
[0123] S601: Based on the surgical simulation environment, analyze the surgical dynamic sequence set, identify the key surgical operations that require immediate feedback, set parameters for the operations, including feedback delay time and operation requirements, and create an immediate feedback parameter configuration;
[0124] S602: According to the instant feedback parameter configuration, the feedback delay and operation feedback in the training simulation are adjusted to simulate the feedback situation in the surgery, optimize the surgical training effect, and generate training optimization measures;
[0125] S603: Based on the training optimization measures, provide targeted instant feedback according to the trainee's performance in the simulated surgery, including correctness, speed and accuracy of the operation, and establish an instant feedback training module.
[0126] S601: Based on the surgical simulation environment, a detailed analysis of the surgical dynamic sequence set is conducted, with special attention paid to key operations that require immediate feedback during the operation. The analysis includes identifying key decision points and operating skills during the operation, which are moments that have a decisive impact on the outcome of the operation. Specific parameters are set for the operation, such as the feedback delay time and specific operating requirements. The parameters are designed to simulate the immediate decision-making and response in real surgery. By setting the parameters, an immediate feedback parameter configuration is created, which will be used in training simulations to ensure that doctors can respond to various situations in surgery accurately and quickly in clinical practice.
[0127] S602: Based on the set instant feedback parameter configuration, further fine-tune the feedback delay and operation feedback in the training simulation to simulate the actual feedback situation in the operation. For example, adjust the feedback delay time to simulate the communication delay or decision-making time in the actual operation. At the same time, optimize the operation feedback to ensure that each operation in the training can obtain feedback that matches its importance. Whether through visual prompts, sound warnings or tactile feedback, the adjustment helps optimize the surgical training effect and makes the training closer to the pressure and decision-making environment of the actual operation, thereby generating training optimization measures.
[0128] S603: Based on the training optimization measures, further provide targeted instant feedback based on the trainee's performance in the simulated surgery, including evaluating the correctness, speed and accuracy of the operation, to ensure that the trainee can obtain real-time and valuable feedback from each simulated training. Through advanced analysis tools and feedback algorithms, establish an instant feedback training module that can automatically adjust the type and intensity of feedback based on the operator's performance. This instant feedback mechanism not only enhances the interactivity of the training, but also improves the educational effect of the training, enabling the trainee to master the necessary surgical skills more quickly.
[0129] See also Figure 8 Based on the instant feedback training module, combined with statistical analysis and machine learning algorithms, the user operation data is integrated to set multiple training difficulty levels, including operation speed and accuracy requirements. By analyzing the operation results and feedback effects, the training content and difficulty are adjusted. The specific steps for obtaining a targeted training plan are as follows:
[0130] S701: Based on the instant feedback training module, collect the user's operation data in the simulated surgery, including operation speed, accuracy and feedback response time, evaluate the data through statistical analysis methods, identify patterns and deviations in the operation, and obtain user operation analysis information;
[0131] S702: Based on the user operation analysis information, apply the random forest algorithm to analyze the data, identify the user's skill level and learning progress, set multiple training difficulty levels according to the analysis results, including operation speed and accuracy requirements, and create training difficulty grading;
[0132] S703: According to the training difficulty classification, combined with the operation results and feedback effects, the training content and difficulty are adjusted to match the individual learning curve and needs, the pertinence and effectiveness of the training plan are determined, and a pertinent training plan is obtained.
[0133] S701: Based on the instant feedback training module, the user's operation data in the simulated surgery will be automatically collected, including key indicators such as operation speed, accuracy, and feedback response time. Statistical analysis methods such as descriptive statistics and trend analysis will be applied to the data to evaluate and identify patterns and deviations in the operation. This analysis process helps to reveal the user's strengths and weaknesses in surgical operations, thereby providing data support for training. For example, by analyzing the relationship between operation speed and accuracy, skill areas that need further strengthening can be identified. Through detailed user operation analysis information, teaching strategies can be adjusted more accurately.
[0134] In sub-step S702, based on the user operation analysis information, the random forest algorithm is applied to analyze the data. The random forest model is implemented using the Python programming language and the Scikit-learn library. The parameters are set, including the number of trees is 100 and the maximum depth is 10, which are used to identify the user's skill level and learning progress. According to the analysis results, multiple training difficulty levels are set, including operation speed and accuracy requirements, to create training difficulty levels.
[0135] Using the random forest algorithm, according to the formula:
[0136] ;
[0137] Calculate the model accuracy and generate an assessment of the user's skill level;
[0138] Among them, Accuracy is the accuracy of the model, Number of correct predictions is the number of samples correctly predicted by the model, and Total predictions is the total number of samples predicted by the model. It is an adjustment coefficient used to balance the original accuracy calculation and the impact of the introduced parameters. is the feature importance threshold, which determines which features are considered key features in the model, and MSS is the minimum number of sample splits, which controls the growth of the tree to avoid overfitting. is the sample weight adjustment coefficient, which is adjusted according to the importance or difficulty of the sample. Voting weight coefficients for decision trees adjust the weight of each tree in the final model decision according to its performance, thus optimizing the overall prediction ability of the model.
[0139] Execution process:
[0140] S1: Use the random forest model to make predictions and calculate the basic accuracy;
[0141] S2: Set reasonable initial values for each newly added parameter;
[0142] S3: Adjustment The value can be optimized through cross-validation to ensure that the contribution of the new parameters to the model accuracy is properly balanced;
[0143] S4: Calculate the final accuracy, including the adjustment of feature importance, sample splitting, sample weight adjustment and decision tree voting weight.
[0144] S703: According to the training difficulty level, the training content and difficulty will be adjusted in combination with the user's operation results and feedback effects, aiming to match the individual learning curve and needs, ensure the pertinence and effectiveness of the training plan, and dynamically adjust the training difficulty and content to provide each user with a tailored training plan. The plan will be optimized based on the user's real-time performance and progress. For example, if the user performs well at a certain difficulty level, the difficulty will be automatically increased to continuously challenge and develop the user's skills. Conversely, if the user encounters difficulties in a specific task, the difficulty will be appropriately reduced or additional guidance and feedback will be provided. Ultimately, this training method not only improves the effectiveness of learning, but also enhances the pertinence of training.
[0145] See also Fig. 9 ,Cataract surgery simulation training system, the system includes video processing module, key frame generation module, image selection and color enhancement module, time-sensitive scene generation module, complication simulation module, training and feedback module;
[0146] The video processing module scans the original video data of the surgical process frame by frame, adjusts the brightness and contrast of each frame, refines the interactive interface between the instrument and the eyeball tissue, optimizes the detail quality of the visual data, and obtains refined visual data;
[0147] The key frame generation module analyzes the dynamic changes between frames based on the refined visual data, identifies the frames with motion blur and makes adjustments, and generates a surgical dynamic sequence set through the continuous splicing of key frames;
[0148] The image selection and color enhancement module selects images representing key stages of surgery from the surgical dynamic sequence, adjusts the color saturation of the images, optimizes the visual prominence of the surgical area, and generates a color-enhanced image sequence;
[0149] The time-sensitive scene generation module is based on the color-enhanced image sequence. By adjusting the image display interval, it simulates the passage of time during surgery, reflects the visual scene of surgical time sensitivity, and generates a time flow scene.
[0150] The complication simulation module adjusts the image sequence playback speed and the frequency of complication image insertion based on the time flow scenario, simulates different surgical complication scenarios, and obtains the complication simulation sequence;
[0151] The training and feedback module adjusts the feedback delay and operation parameters of the surgical simulation environment based on the complication simulation sequence and the collected user operation data, formulates training plans with different difficulty levels for users, and obtains targeted training plans.
[0152] The above are only preferred embodiments of the present invention and are not intended to limit the present invention in other forms. Any technician familiar with the profession may use the technical contents disclosed above to change or modify them into equivalent embodiments with equivalent changes and apply them to other fields. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.
Claims
1. A cataract surgery simulation training method, characterized in that: The following steps are involved: Collect the original video data of the surgical process, perform resolution scanning, refine the interaction boundary between the instrument and the eyeball tissue, adjust the image brightness and contrast parameters, optimize the visual effect, and obtain refined visual simulation data; Based on the refined visual simulation data, a convolutional neural network is used to perform real-time processing and analysis of the surgical video stream, identify key operation frames, perform dynamic blur processing, optimize motion blur, and generate a surgical dynamic sequence set by continuously splicing key frames; Selecting target stage images from the surgical dynamic sequence set, performing color enhancement processing on key surgical areas at target time points, and using sequence frame reassembly to simulate the passage of time during the surgical process to generate time-sensitive scene data; Based on the time-sensitive scene data, probability analysis is performed to simulate potential complication scenarios, adjust the change speed and complication frequency in the image sequence, simulate surgical risks, and obtain a complication simulation sequence; According to the complication simulation sequence and in combination with the refined visual simulation data, the visual and dynamic parameters in the simulation environment are adjusted to match the sensory experience of the surgical environment, thereby constructing a surgical simulation environment; Based on the surgical simulation environment, using the data of the surgical dynamic sequence set, by adjusting feedback delay and operation parameters, simulating instant feedback during surgical operation, optimizing the training effect of surgical skills, and establishing an instant feedback training module; Based on the instant feedback training module, combined with statistical analysis and machine learning algorithms, the user operation data is integrated to set multiple training difficulty levels, including operation speed and accuracy requirements. By analyzing the operation results and feedback effects, the training content and difficulty are adjusted to obtain a targeted training plan; Based on the refined visual simulation data, a convolutional neural network is used to perform real-time processing and analysis of the surgical video stream, identify key operation frames, perform dynamic blur processing, optimize motion blur, and generate a surgical dynamic sequence set by continuously splicing key frames. The specific steps are as follows: Based on the refined visual simulation data, a convolutional neural network is used to decompose the video content by frames, perform video frame processing, assign a unique timestamp to each frame image, and calculate the display time point of each frame according to the duration and frame rate of the video stream to obtain a time-stamped frame set; According to the time-stamped frame set, a differential image algorithm is used to filter key frames of the frame timestamp data, and a dynamic threshold is set to compare the movement range of the feature object in each frame. If the movement exceeds a preset value, it is marked as a key frame to generate a filtered key frame set; Using the differential image algorithm, according to the formula: ; Calculate the pixel difference between consecutive frames ,in, is the image data of the current frame, is the image data of the previous frame, represents the spatial variation weight based on the image, is the spatial position variation parameter, is the spatially varying weight coefficient, Represents the amount of change in the color histogram, is the color change parameter, is the weight coefficient of color change, Used to measure the area change of moving objects in an image. is the area change parameter of the moving object, is the weight coefficient of area change; Based on the screened key frame set, motion blur adjustment is performed by comparing the visual differences between consecutive key frames. During the adjustment process, the visual continuity of the previous and next frames is evaluated, the transition between each frame is optimized, and a surgical dynamic sequence set is generated.
2. The cataract surgery simulation training method according to claim 1, characterized in that: The refined visual simulation data includes images of the interaction between instruments and eye tissues, adjusted image brightness values and contrast levels; the surgical dynamic sequence set includes key operation frames for removing motion blur, surgical action transitions, and surgical process displays; the time-sensitive scene data includes color-enhanced images determined by time points, displays of key surgical areas, and time flow changes displayed by sequence frame reorganization; the complication simulation sequence includes visual manifestations of complications of different types, image sequences with adjusted change speeds, and complication frequency settings; the surgical simulation environment includes visual effect adjustment and dynamic environment parameter settings; the instant feedback training module includes operation feedback delay adjustment, surgical operation accuracy parameter settings, and training effect optimization strategies.
3. The cataract surgery simulation training method according to claim 1, characterized in that: The steps of collecting the original video data of the surgical process, performing resolution scanning, refining the interaction boundary between the instrument and the eyeball tissue, adjusting the image brightness and contrast parameters, optimizing the visual effect, and obtaining the refined visual simulation data are as follows: Collect the original video data of the surgical process, process the video by frame, scan frame by frame to extract the details in each frame, optimize the image quality by adjusting the color saturation and brightness contrast, and obtain the surgical scene frame set; Based on the surgical scene frame set, marking the contact interface between the instrument and the eyeball tissue, performing interactive boundary refinement through edge detection, comparison and adjustment of edge quality, and generating an edge refinement atlas; The edge refinement atlas is used to adjust the brightness and contrast parameters in the image, adjust and optimize the color range, and optimize the visual effect by enhancing the visualization of image details to obtain refined visual simulation data.
4. The cataract surgery simulation training method according to claim 1, characterized in that: The steps of selecting target stage images from the surgical dynamic sequence set, performing color enhancement processing on the key surgical area at the target time point, and reorganizing the sequence frames to simulate the time lapse during the surgical process to generate time-sensitive scene data are specifically as follows: Screening the image sequence of the target surgical stage from the surgical dynamic sequence set, selecting the image sequence according to the key time of the surgical process, and verifying whether the selected image meets the key operation stage of the surgery, to obtain the key stage image sequence; For each frame of the image in the key stage image sequence, color enhancement processing is performed in the key area of the surgery, and the key parts of the surgery are highlighted by adjusting the saturation and contrast to generate a color enhanced image sequence; Based on the color enhanced image sequence, by adjusting the display interval of the images in the sequence, the passage of time during the operation is simulated, the visual effect of time changes during the operation is established, and time-sensitive scene data is generated.
5. The cataract surgery simulation training method according to claim 1, characterized in that: Based on the time-sensitive scene data, probability analysis is performed to simulate potential complication scenarios, the change speed and complication frequency in the image sequence are adjusted, and the surgical risk is simulated. The specific steps of obtaining the complication simulation sequence are as follows: Based on the time-sensitive scene data, a probability model of differential complication scenarios is defined, a frequency of occurrence and a rate of change are assigned to each potential complication, and a visual presentation of complications in an image sequence is adjusted according to parameters to generate a preliminary complication probability model; Based on the preliminary complication probability model, the simulated complication scenario is matched with the real surgery by adjusting the playback speed of the image sequence and the interval time of the complication occurrence, so as to obtain adjusted complication simulation parameters; Based on the adjusted complication simulation parameters, a simulated complication scenario is inserted into the time-sensitive scene data, and it is verified whether the visual representation of the complication is coordinated with the time lapse of the surgical process to obtain a complication simulation sequence.
6. The cataract surgery simulation training method according to claim 1, characterized in that: According to the complication simulation sequence, combined with the refined visual simulation data, the visual and dynamic parameters in the simulation environment are adjusted to match the sensory experience of the surgical environment. The steps of constructing the surgical simulation environment are specifically as follows: According to the complication simulation sequence, images of key stages of surgery are selected, and visual parameters are adjusted for the images, including optimizing brightness and contrast, simulating lighting conditions in a surgical environment, and obtaining images with optimized visual parameters; Optimizing the image using the visual parameters, adjusting the dynamic elements in the image in combination with the refined visual simulation data, including simulating shadow changes and light reflections caused by the movement of instruments during surgery, optimizing the dynamics of the simulated environment, and obtaining a dynamic enhanced image; Based on the dynamic enhanced images, a simulation environment is created that reflects the visual and dynamic changes of the actual surgical process, and the consistency of the environment with the surgical scene in terms of visual effects and dynamic responses is verified to construct a surgical simulation environment.
7. The cataract surgery simulation training method according to claim 1, characterized in that: Based on the surgical simulation environment, using the data of the surgical dynamic sequence set, by adjusting the feedback delay and operation parameters, simulating the instant feedback during surgical operation, optimizing the training effect of surgical skills, the steps of establishing an instant feedback training module are specifically as follows: Based on the surgical simulation environment, the surgical dynamic sequence set is analyzed to identify key surgical operations that require immediate feedback, parameters are set for the operations, including feedback delay time and operation requirements, and an immediate feedback parameter configuration is created; According to the instant feedback parameter configuration, feedback delay and operation feedback in the training simulation are adjusted to simulate the feedback situation during surgery, optimize the surgical training effect, and generate training optimization measures; According to the training optimization measures, targeted instant feedback is provided according to the trainee's performance in the simulated surgery, including correctness, speed and accuracy of the operation, and an instant feedback training module is established.
8. The cataract surgery simulation training method according to claim 1, characterized in that: Based on the instant feedback training module, combined with statistical analysis and machine learning algorithms, the user operation data is integrated to set multiple training difficulty levels, including operation speed and accuracy requirements. By analyzing the operation results and feedback effects, the training content and difficulty are adjusted to obtain the targeted training plan. Specifically, the steps are as follows: Based on the instant feedback training module, the user's operation data in the simulated surgery is collected, including operation speed, accuracy and feedback response time, and the data is evaluated by statistical analysis methods to identify patterns and deviations in the operation to obtain user operation analysis information; Based on the user operation analysis information, a random forest algorithm is applied to analyze the data to identify the user's skill level and learning progress, and multiple training difficulty levels are set according to the analysis results, including operation speed and accuracy requirements, to create a training difficulty classification; Using the random forest algorithm, according to the formula: ; Calculate the model accuracy, where Accuracy is the model accuracy, Number of correct predictions is the number of samples correctly predicted by the model, and Total predictions is the total number of samples predicted by the model. is the adjustment factor, is the feature importance threshold, MSS is the minimum number of sample splits, is the sample weight adjustment coefficient, Voting weight coefficient for decision tree; According to the training difficulty classification, combined with the operation results and feedback effects, the training content and difficulty are adjusted to match the individual learning curve and needs, the relevance and effectiveness of the training plan are determined, and a targeted training plan is obtained.
9. Cataract surgery simulation training system, characterized in that: The cataract surgery simulation training method according to any one of claims 1 to 8 is implemented, wherein the system comprises a video processing module, a key frame generation module, an image selection and color enhancement module, a time-sensitive scene generation module, a complication simulation module, and a training and feedback module; The video processing module scans frame by frame based on the original video data of the surgical process, adjusts the brightness and contrast of each frame of the image, refines the interactive interface between the instrument and the eyeball tissue, optimizes the detail quality of the visual data, and obtains refined visual data; The key frame generation module analyzes the dynamic changes between frames based on the refined visual data, identifies the motion blurred frames and adjusts them, and generates a surgical dynamic sequence set by continuously splicing the key frames; The image selection and color enhancement module selects images representing key stages of surgery from the surgical dynamic sequence set, and adjusts the color saturation of the images to optimize the visual prominence of the surgical area, thereby generating a color-enhanced image sequence; The time-sensitive scene generation module generates a time flow scene based on a color-enhanced image sequence by adjusting the image display interval to simulate the passage of time during surgery and reflect the visual scene of surgical time sensitivity; The complication simulation module adjusts the image sequence playback speed and the frequency of complication image insertion based on the time flow scenario, simulates different surgical complication scenarios, and obtains a complication simulation sequence; The training and feedback module adjusts the feedback delay and operation parameters of the surgical simulation environment according to the complication simulation sequence and the collected user operation data, formulates training plans with different difficulty levels for users, and obtains targeted training plans.
