Electric stapler micro switch detection method and system
The micro switch detection method uses a stepper motor to drive a trapezoidal detection block to construct a multi-dimensional test characterization matrix and anomaly index. Combined with the imbalance evaluation model, it solves the problem of insufficient accuracy in micro switch detection in the existing technology and achieves a more accurate And comprehensive surgical environment adaptability testing ensures the safety and reliability of the electric stapler.
Patent Information
- Application Number
- CN202411061750.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-08-05
AI Technical Summary
Existing microswitch detection methods are difficult to fully evaluate the dynamic performance of microswitches in actual surgical environments, especially the response capabilities under complex operating conditions, resulting in inaccurate detection results.
A stepper motor is used to drive the screw nut pair to drive the trapezoidal detection block. By setting multiple micro-switch test feature vectors, a test characterization matrix is constructed, an abnormality index is extracted, and a pre-built imbalance evaluation model is input based on the imbalance feature set for comprehensive analysis. To determine whether the micro switch is qualified.
The accuracy and comprehensiveness of microswitch detection are improved, potential problems can be discovered earlier and more carefully, ensuring the safety and reliability of the electric stapler during surgery, and reducing the subjectivity and errors of human judgment.
Smart Images

Figure CN118566716B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of micro switch detection, and in particular to a micro switch detection method and system for an electric stapler. Background Art
[0002] In the field of medical device manufacturing, the electric stapler is a key device used for tissue cutting and suturing during surgery. One of its core components is the microswitch, which is responsible for transmitting operating instructions and monitoring the device status. The performance of the microswitch directly affects the working reliability of the stapler and the safety of the operation; therefore, accurate and efficient detection of the microswitch is crucial.
[0003] The existing micro switch detection method mainly relies on a simple mechanical detection device to collect a single test parameter of the micro switch at a fixed detection frequency, and performs a simple threshold judgment based on the single test parameter to determine whether the micro switch is qualified; the fixed detection frequency and single test parameter in the existing method make it difficult to comprehensively evaluate the dynamic performance of the micro switch in the actual surgical environment, especially the response capability under complex operating conditions, resulting in inaccurate detection results of the micro switch. Summary of the invention
[0004] In order to solve the above technical problems, the present invention provides an electric stapler microswitch detection method and system which can improve the accuracy, comprehensiveness and practicality of microswitch detection, thereby ensuring the safety and reliability of the electric stapler during surgery.
[0005] In a first aspect, the present invention provides a method for detecting a micro switch of an electric stapler, the method being applied to a micro switch detection device of an electric stapler, the micro switch detection device of the electric stapler driving a lead screw nut pair to drive a trapezoidal detection block to move by a stepping motor, and using the trapezoidal detection block to perform a switch test on a micro switch to be detected, the method comprising:
[0006] According to the micro switch specifications, multiple micro switch test feature vectors are set;
[0007] For each micro-switch test characteristic vector, the electric stapler micro-switch detection device is controlled to test the micro-switch to obtain a micro-switch test characterization matrix;
[0008] Extract features from the micro switch test characterization matrix to obtain a micro switch abnormality index, wherein the micro switch abnormality index corresponds one-to-one to a micro switch test feature vector;
[0009] The micro switch abnormality indexes of multiple micro switch test feature vectors are combined to obtain a micro switch imbalance feature set;
[0010] Inputting the micro switch imbalance feature set into a pre-built micro switch imbalance evaluation model to obtain an imbalance evaluation result of the micro switch;
[0011] Based on the preset imbalance evaluation threshold, the imbalance evaluation results of the micro switch are classified to determine whether the micro switch is qualified.
[0012] Furthermore, the micro switch test characterization matrix is:
[0013] ;
[0014] in M 1 m Indicates m The vibration frequency measurement value under the test, M 2 m Indicates m The measured value of the switch travel under the test, M 3 m Indicates m The measured value of the closed resistance under the test, M 4 m Indicates m The measurement of response time under each test;
[0015] In the micro switch test characterization matrix, each row represents a plurality of micro switch characterization parameters collected after a movement test of the trapezoidal detection block; and each column represents the value of the same micro switch characterization parameter in different test orders.
[0016] Furthermore, the micro switch characterization parameters include vibration frequency, switch stroke, closed resistance and response time.
[0017] Furthermore, the method for obtaining the micro switch abnormality index includes:
[0018] Standardize the parameters in the test characterization matrix, identify and process the abnormal values of the parameters in the test characterization matrix;
[0019] Analyze the distribution of various parameters in the test characterization matrix to understand its normal working range and distribution form;
[0020] Analyze the correlation between the parameters in the test characterization matrix to identify whether there are factors that affect each other;
[0021] For each micro switch characterization parameter, the degree of deviation from the theoretical expected value is calculated to obtain the abnormal index of each feature.
[0022] Furthermore, the method for acquiring the micro switch imbalance feature set includes:
[0023] Organize the anomaly indices according to their corresponding eigenvectors;
[0024] According to the performance requirements of the micro switch and the importance of various parameters in practical applications, a weight is assigned to each abnormal index of the characterization parameter;
[0025] Perform weighted summation on the abnormal index corresponding to each micro switch test feature vector to form a comprehensive imbalance feature vector;
[0026] The weighted imbalance feature vectors calculated for different test feature vectors are integrated to form a micro switch imbalance feature set.
[0027] Furthermore, the mathematical formula of the micro switch imbalance evaluation model is:
[0028] ;
[0029] f ( X ) represents the unbalanced feature set of a given micro switch X When , the imbalance evaluation result of the micro switch; X =( X 1, X 2,..., Xn ) represents the feature vector, X 1 to Xn They represent different characteristics respectively; β 0 represents the intercept term of the model, which plays a role in adjusting the overall level of predicted probability in the mathematical model; β 1, β 2,..., βn Represents the weight coefficient of the model, each coefficient corresponds to a feature in the feature vector; e represents the base of natural logarithms; −( β 0+ β 1 X 1+ β 2 X 2+...+ βnXn ) represents the linear combination part of the model, which calculates the weighted sum of the features and then takes the negative value for conversion to a probability value through an exponential function.
[0030] Furthermore, the preset imbalance evaluation threshold is set based on micro switch specification standards, historical data analysis, clinical application requirements, failure mode analysis and risk assessment.
[0031] Furthermore, the micro switch test feature vector includes a moving speed of the trapezoidal detection block and a number of tests.
[0032] Furthermore, the micro switch specification information includes electrical parameters, mechanical parameters, environmental adaptability, physical dimensions and installation methods.
[0033] On the other hand, the present application also provides an electric stapler microswitch detection system, the system comprising:
[0034] A test feature setting module, used to set a plurality of micro switch test feature vectors according to the micro switch specifications, wherein the micro switch test feature vectors include the moving speed of the trapezoidal detection block and the number of tests;
[0035] A micro switch test characterization matrix construction module controls the electric stapler micro switch detection device to test the micro switch for each micro switch test characteristic vector, and obtains a micro switch test characterization matrix;
[0036] A feature extraction module performs feature extraction on a micro switch test characterization matrix to obtain a micro switch abnormality index, wherein the micro switch abnormality index corresponds one-to-one to a micro switch test feature vector;
[0037] An imbalance feature set generation module combines micro switch abnormality indexes of multiple micro switch test feature vectors to obtain a micro switch imbalance feature set;
[0038] A micro switch imbalance evaluation module, which inputs the micro switch imbalance feature set into a pre-built micro switch imbalance evaluation model to obtain an imbalance evaluation result of the micro switch;
[0039] The result classification and judgment module classifies the imbalance evaluation results of the micro switch based on the preset imbalance evaluation threshold and judges whether the micro switch is qualified.
[0040] Compared with the prior art, the present invention has the following beneficial effects: the method comprehensively examines the performance of the micro switch from multiple dimensions by setting multiple test feature vectors including the moving speed of the trapezoidal detection block and the number of tests, which helps to more accurately simulate the complex operating conditions in surgery;
[0041] Construct a micro switch test characterization matrix to collect multiple characterization parameters including vibration frequency, switch travel, closing resistance and response time, which can capture the dynamic response characteristics of the micro switch under different test conditions and improve the accuracy of the evaluation of various situations that the micro switch may encounter in actual applications;
[0042] Through the feature extraction process, the micro switch abnormality index is obtained, which can quantify the abnormality of the characteristic parameters of a single micro switch. Compared with the traditional single threshold judgment, this method can detect the problems of the micro switch earlier and more carefully.
[0043] The abnormal indexes under different test feature vectors are integrated into a micro switch imbalance feature set, and a comprehensive analysis is performed through a preset evaluation model, which can comprehensively evaluate the overall condition of the micro switch and avoid ignoring the overall performance deficiency due to single point failure;
[0044] Using the imbalance evaluation threshold for classification judgment makes the qualification judgment process of the micro switch more objective and standardized, reduces the subjectivity and error of human judgment, and improves the reliability and consistency of the detection system;
[0045] In summary, this method can improve the accuracy, comprehensiveness and practicality of microswitch detection through multi-dimensional testing, dynamic performance evaluation, refined abnormality detection and comprehensive intelligent analysis, thereby ensuring the safety and reliability of the electric stapler during surgery. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 is a flow chart of the present invention;
[0047] Figure 2 It is a structural schematic diagram of a micro switch detection device;
[0048] Figure 3 It is a structural diagram of the micro switch detection system of the electric stapler;
[0049] Markings in the attached figure: 1. micro switch; 2. stepping motor; 3. screw nut pair; 4. trapezoidal detection block. DETAILED DESCRIPTION
[0050] In the description of this application, those skilled in the art should know that this application can be implemented as a method, an apparatus, an electronic device, and a computer-readable storage medium. Therefore, this application can be specifically implemented in the following forms: complete hardware, complete software (including firmware, resident software, microcode, etc.), a combination of hardware and software. In addition, in some embodiments, this application can also be implemented in the form of a computer program product in one or more computer-readable storage media, and the computer-readable storage medium contains computer program code.
[0051] The above-mentioned computer-readable storage medium may adopt any combination of one or more computer-readable storage media. Computer-readable storage media include: electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media include: portable computer disks, hard disks, random access memories, read-only memories, erasable programmable read-only memories, flash memories, optical fibers, optical disc read-only memories, optical storage devices, magnetic storage devices, or any combination of the above. In the present application, computer-readable storage media can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or device.
[0052] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws.
[0053] The present application describes the provided methods, devices, and electronic devices through flowcharts and / or block diagrams.
[0054] It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions. These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine, and these computer-readable program instructions are executed by a computer or other programmable data processing device to produce a device that implements the functions / operations specified by the boxes in the flowchart and / or block diagram.
[0055] These computer-readable program instructions may also be stored in a computer-readable storage medium that enables a computer or other programmable data processing device to work in a specific manner. In this way, the instructions stored in the computer-readable storage medium produce an instruction device product including functions / operations specified in the blocks in the flowchart and / or block diagram.
[0056] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device, so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby enabling the instructions executed on the computer or other programmable data processing apparatus to provide a process for implementing the functions / operations specified in the blocks in the flowchart and / or block diagram.
[0057] The present application is described below in conjunction with the drawings in the present application.
[0058] Embodiment 1: Figure 1 and Figure 2As shown, the electric stapler micro switch detection method of the present invention is applied to the electric stapler micro switch detection device. The electric stapler micro switch detection device drives the lead screw nut pair to drive the trapezoidal detection block to move through a stepping motor, and uses the trapezoidal detection block to perform a switch test on the micro switch to be detected, which specifically includes the following steps:
[0059] S1. According to the micro switch specifications, multiple micro switch test feature vectors are set, wherein the micro switch test feature vectors include the moving speed of the trapezoidal detection block and the number of tests;
[0060] The trapezoidal detection block is a key component for triggering the micro switch in simulated surgical operations. Its moving speed is directly related to the degree of simulation of the actual situation of the detection. Setting different moving speeds of the trapezoidal detection block can cover various operating speeds encountered by the micro switch in surgery, from slow and delicate operations to fast and continuous operation scenarios.
[0061] Set up multiple tests to simulate the performance changes of the micro switch during long-term use. Record data after each test to analyze indicators such as the wear of the micro switch and the change in response time as the number of uses increases.
[0062] The micro switch specification information includes:
[0063] Electrical parameters: are the basis for evaluating the electrical performance of the micro switch, including rated voltage, rated current, contact resistance, insulation resistance and maximum switching power; these parameters define the electrical load capacity of the micro switch under normal working conditions;
[0064] Mechanical parameters: covering the switch operating force, switch travel, contact pressure, mechanical life and operating speed; these parameters affect the mechanical stability and durability of the micro switch;
[0065] Environmental adaptability: including operating temperature range, humidity, dust and water resistance, and corrosion resistance; these parameters ensure that the micro switch can work reliably in various medical environments;
[0066] Physical size and installation method: The size, shape and pin arrangement of the micro switch determine whether it can fit into the internal space structure of the electric stapler, as well as the convenience and firmness of installation.
[0067] In this step, by setting the microswitch test feature vector including the moving speed of the trapezoidal detection block and the number of tests, the working state of the microswitch in the actual surgical operation can be more comprehensively simulated; the tests at different speeds cover various operation scenarios from fine to fast, ensuring the wide applicability and authenticity of the test results; the design of multiple tests not only takes into account the instantaneous performance of the microswitch, but also deeply analyzes its performance changes with the increase in the number of uses, improves the accuracy of the detection, and helps to discover potential performance degradation trends at an early stage; comprehensively considering the electrical, mechanical, environmental adaptability and physical dimensions of the microswitch and other specifications, it ensures that the detection scheme can be customized for the specific design characteristics of the microswitch, thereby improving the pertinence and effectiveness of the detection; through a comprehensive detection strategy, the reliability and durability of the microswitch under various working conditions can be more accurately evaluated, reducing the surgical risks caused by microswitch performance problems, and improving the safety of medical devices and the success rate of surgery; this step effectively solves the limitations of traditional detection methods through refined and integrated detection design.
[0068] S2. For each micro-switch test feature vector, the electric stapler micro-switch detection device is controlled to test the micro-switch to obtain a micro-switch test characterization matrix; in the micro-switch test characterization matrix, each row represents a plurality of micro-switch characterization parameters collected after a single movement test of the trapezoidal detection block, and the micro-switch characterization parameters include vibration frequency, switch stroke, closing resistance and response time; each column represents a specific value of the same micro-switch characterization parameter in different test orders;
[0069] For each micro switch test feature vector, set the trapezoidal detection block to move at different speeds and perform different times of testing;
[0070] During the test, each movement of the trapezoidal detection block triggers the micro switch and records a variety of micro switch characterization parameters;
[0071] The obtained micro switch characterization parameters are collected and organized into a micro switch test characterization matrix;
[0072] The micro switch test characterization matrix is:
[0073] ;
[0074] in M 1 m Indicates m The vibration frequency measurement value under the test, M 2 m Indicates m The measured value of the switch travel under the test, M 3 m Indicatesm The measured value of the closed resistance under the test, M 4 m Indicates m The measurement of response time under each test;
[0075] Vibration frequency: reflects the dynamic stability of the micro switch during operation. Too high or too low frequency is abnormal.
[0076] Switch stroke: measures the displacement distance of the contact from opening to closing, which is a key indicator to ensure reliable contact;
[0077] Closed resistance: directly affects the transmission quality of electrical signals. Too high resistance means poor contact.
[0078] Response time: The time required from triggering to full closure reflects the response speed of the micro switch.
[0079] In this step, by testing different microswitch feature vectors, the microswitch is comprehensively and carefully tested, which can more realistically simulate various operating conditions in surgery and improve the comprehensiveness and pertinence of the detection. Since each test includes the situation where the trapezoidal detection block moves at different speeds, it is helpful to evaluate the response ability of the microswitch at different speeds and can better reflect the dynamic performance and stability of the microswitch. The collected microswitch characterization parameters include vibration frequency, switch stroke, closing resistance and response time, which provide a rich information basis for the performance evaluation of the microswitch, avoid the limitations of single parameter judgment, and improve the accuracy and depth of detection. By constructing a microswitch test characterization matrix, the test data is organized in an orderly manner, each row represents a complete test result, and each column shows the change of the same parameter under different tests, which is convenient for subsequent data analysis and abnormality identification. Combining the above points, this step is conducive to manufacturers to optimize their products, and also provides a reliable detection basis for regulatory agencies and medical institutions, which promotes the improvement of medical device quality standards.
[0080] S3, extracting features from the micro switch test characterization matrix to obtain a micro switch abnormality index, wherein the micro switch abnormality index corresponds one-to-one to the micro switch test feature vector;
[0081] The method for obtaining the micro switch abnormality index includes:
[0082] Standardize the parameters in the test characterization matrix to ensure comparability between different parameters; the standardization method includes converting the original data into a distribution with a mean of 0 and a standard deviation of 1 to eliminate the dimension effect;
[0083] Identify and process outliers of various parameters in the test characterization matrix to ensure the accuracy of subsequent analysis;
[0084] Analyze the distribution of various parameters in the test characterization matrix to understand its normal working range and distribution form;
[0085] Analyze the correlation between the parameters in the test characterization matrix to identify whether there are factors that affect each other;
[0086] For each micro switch characterization parameter, calculate the degree of deviation from the theoretical expected value and calculate the abnormal index of each feature;
[0087] Combine the abnormality index of each feature to construct a comprehensive micro switch abnormality index;
[0088] The micro switch abnormality index indicates the abnormality degree of each micro switch characterization parameter in the micro switch test characterization matrix.
[0089] In this step, by standardizing the parameters in the test characterization matrix, it is ensured that different parameters can be directly compared, the influence of dimensional differences is eliminated, and the analysis results are more fair and easy to interpret; by identifying and processing outliers, the deviation caused by individual extreme cases is effectively eliminated, so that the subsequent analysis is based on more reliable data, and the overall detection accuracy is improved; by analyzing the distribution form and normal working range of various parameters, the working state of the micro switch under different conditions can be more deeply understood, providing an intuitive reference standard for performance evaluation; through parameter correlation analysis, the key factors affecting the performance of the micro switch and their interactions are identified, providing a direction for subsequent fault diagnosis and performance optimization; for each characteristic parameter, the deviation from the theoretical expected value is calculated, and a comprehensive abnormality index is constructed, which can not only capture the abnormality of a single parameter, but also comprehensively reflect the overall working state of the micro switch, improving the comprehensiveness and sensitivity of abnormality identification; the construction of the comprehensive micro switch abnormality index provides a unified and quantitative indicator for the performance evaluation of the micro switch, which is convenient for quickly judging whether the micro switch meets the working requirements, and helps to find problems in time and take measures, thereby ensuring the safety of surgical instruments and the smooth progress of surgical operations.
[0090] S4, combining the micro switch abnormality indexes of multiple micro switch test feature vectors to obtain a micro switch imbalance feature set;
[0091] The method for obtaining the micro switch imbalance feature set includes:
[0092] The abnormal indexes are organized according to their corresponding eigenvectors to ensure that the abnormal indexes related to each eigenvector are accurately collected; the abnormal indexes respectively reflect the degree to which the various characteristic parameters of the micro switch deviate from the normal range under specific test conditions;
[0093] In order to ensure the reasonable weight of each abnormal index in the comprehensive evaluation, a corresponding weight is assigned to each abnormal index of the characterization parameter according to the performance requirements of the micro switch and the importance of each parameter in practical applications;
[0094] The anomaly index corresponding to each micro switch test feature vector is weighted and summed to form a comprehensive imbalance feature vector, ensuring that the anomalies found under different test conditions can be considered in a comprehensive and weighted balanced manner;
[0095] The weighted imbalance feature vectors calculated for different test feature vectors are integrated to form a complete micro switch imbalance feature set; the micro switch imbalance feature set includes the comprehensive abnormal performance of the micro switch under various test conditions, and can comprehensively reflect its performance deviation under different working conditions.
[0096] This step breaks the limitation of single parameters or conditions by integrating the abnormal index of micro switches under different test conditions, and provides a comprehensive evaluation basis for the overall performance of micro switches. It helps to more truly reflect the response and stability of micro switches in various complex situations that may be encountered during surgical operations. By assigning weights to the abnormal indexes of different characterization parameters, it ensures that the impact of key performance indicators is appropriately amplified in the comprehensive evaluation, avoids excessive interference from non-critical factors, and improves the pertinence and accuracy of the evaluation. The imbalance feature set covers the abnormal performance of micro switches under various test conditions, ensures comprehensive identification of potential problems from multiple angles and multiple working conditions, reduces detection blind spots, and improves the comprehensiveness of detection. The formed imbalance feature set provides a solid data foundation for subsequent model evaluation and quality judgment, making the process of judging whether the micro switch is qualified more scientific and objective, and helping to improve the product quality control level and surgical safety. This method can adapt to the performance changes of micro switches at different speeds and different usage frequencies, ensures the flexibility and adaptability of the detection method, and enables it to better serve the needs of the actual surgical environment; it improves the systematicness and accuracy of micro switch detection.
[0097] S5, inputting the micro switch imbalance feature set into a pre-built micro switch imbalance evaluation model to obtain an imbalance evaluation result of the micro switch;
[0098] The imbalance evaluation model is constructed based on historical data and known micro switch failure cases; the construction method of the micro switch imbalance evaluation model includes:
[0099] Collect a large amount of test data from various test environments of micro switches, covering the performance of micro switches under different conditions, including different movement speeds, test times and various characterization parameters;
[0100] Remove invalid and erroneous data records, handle missing values, and ensure data quality; standardize data to ensure comparability between different features; select the features that are most indicative of the imbalance state of the micro switch based on statistical methods and domain knowledge, reduce dimensions, and improve model efficiency;
[0101] Choose appropriate machine learning models as infrastructure based on the nature of the problem and data characteristics, including logistic regression, support vector machine, random forest, and neural network;
[0102] The dataset was divided into training set, validation set, and test set with a ratio of 70%, 15%, and 15% to avoid overfitting and evaluate the generalization ability of the model;
[0103] Use the training set to train the selected model, optimize the model parameters, and minimize the loss function through optimization algorithms such as gradient descent;
[0104] Cross-validation method was applied to further optimize model parameters and evaluate model stability;
[0105] The validation set and test set are used to evaluate the model performance. The evaluation indicators include accuracy, precision, recall and F1 score.
[0106] Adjust model parameters based on evaluation results to improve model performance;
[0107] Apply the trained model to the actual micro switch detection system;
[0108] The mathematical formula of the micro switch imbalance evaluation model is:
[0109] ;
[0110] f ( X ) represents the unbalanced feature set of a given micro switch X The probability that the micro switch is considered to have an unbalance problem when X =( X 1, X 2,..., Xn ) represents the feature vector, X 1 to Xn They represent different characteristics respectively; β 0 represents the intercept term of the model, which plays a role in adjusting the overall level of predicted probability in the mathematical model; β 1, β 2,...,βn Represents the weight coefficient of the model, each coefficient corresponds to a feature in the feature vector; e represents the base of the natural logarithm, which is a constant used in this formula to calculate the exponential function; −( β 0+ β 1 X 1+ β 2 X 2+...+ βnXn ) represents the linear combination part of the model, which calculates the weighted sum of the features and then takes the negative value for conversion to a probability value through an exponential function.
[0111] In this step, the high quality of the data used for model training is ensured through data cleaning and standardization, laying a solid foundation for the accuracy of the model; key features are selected based on statistical analysis and domain knowledge to reduce the complexity of the model, improve prediction efficiency and accuracy, and ensure that the model can focus on the most valuable information; according to data characteristics and problem requirements, the appropriate machine learning model is flexibly selected, whether it is logistic regression, support vector machine, random forest or neural network, it can adapt to the complex needs of micro switch imbalance evaluation, and improve the generalization ability and prediction accuracy of the model; through the reasonable division of data sets, cross-validation strategy, and parameter tuning, the overfitting problem of the model is effectively avoided, ensuring the stable performance of the model on unseen data, and through the continuous improvement of performance indicators Continuous monitoring and adjustment are carried out to continuously improve the accuracy, precision, recall rate and F1 score of the model, thereby ensuring the reliability of the detection results; the mathematical formulas of models such as logistic regression are applied to convert the feature vector into the imbalance probability, which provides a quantitative evaluation method for the health status of the micro switch, facilitates intuitive understanding of the imbalance risk of the micro switch, and makes decisions accordingly; the constructed model not only has a rigorous mathematical foundation in theory, but also has been rigorously tested by the verification set and the test set in practice, ensuring its effective application in the actual micro switch detection system, and improving the safety of medical devices and the success rate of surgical operations; the implementation of this step has greatly improved the scientificity and accuracy of micro switch detection, and provided strong technical support for the quality control of medical devices such as electric staplers and the safety of surgery.
[0112] S6. Classifying the imbalance evaluation results of the micro switch based on a preset imbalance evaluation threshold value to determine whether the micro switch is qualified;
[0113] The preset imbalance evaluation threshold is used to determine whether the micro switch has an imbalance problem. The setting basis of the preset imbalance evaluation threshold includes:
[0114] Micro switch specification standards: refer to the design specifications, industry standards and technical requirements of the manufacturer of the micro switch; specify the performance parameter range of the micro switch under normal working conditions, providing a basic basis for setting the threshold;
[0115] Historical data analysis: Analyze the test data of previous micro switches to help determine the normal distribution range of various parameters, define the boundary between normal working state and abnormal state, and thus set reasonable thresholds;
[0116] Clinical application requirements: Considering the key role of micro switches in the surgical process, their performance must meet the high safety and reliability requirements of surgical operations; the threshold setting must be combined with the usage experience in clinical practice to ensure that the micro switches can work reliably in various possible surgical scenarios;
[0117] Failure mode analysis: By analyzing the possible failure modes of micro switches and their potential impact on equipment and surgical safety, the most sensitive and critical performance parameters are identified to prevent possible risks;
[0118] Risk assessment: Based on the risk assessment method, identify surgical risks and patient safety issues caused by poor microswitch performance, adjust the threshold setting according to the severity and probability of risk, and ensure that the detection system can promptly identify microswitch anomalies that may lead to serious consequences.
[0119] In this step, by comprehensively considering multiple dimensions of the micro switch to set the threshold, the comprehensiveness and rationality of the evaluation criteria are ensured, and the accuracy and scientificity of the detection are improved; the clinical safety requirements are integrated into the threshold setting to ensure the reliable working performance of the micro switch in a complex surgical environment, which is directly related to the safety of surgical operations, reduces surgical risks, and protects patient safety; through failure mode analysis and risk assessment, the setting of the threshold can identify potential failures and risks in advance, provide a basis for preventive maintenance of the micro switch, help extend the service life of the equipment, and reduce surgical interruptions and maintenance costs; the dynamic adjustment of the threshold based on historical data and clinical feedback not only meets the needs of technological progress and product iteration, but also promotes the continuous optimization of production and quality control processes, and improves the quality management level of the entire industrial chain; the threshold is set based on industry standards and manufacturer technical requirements, which promotes the standardization and normalization of micro switch detection methods, provides a common language for exchanges and cooperation within and outside the industry, and promotes technological progress and the improvement of the overall level of the industry; Step S6 not only improves the accuracy and efficiency of micro switch detection through scientific and reasonable threshold setting, but also fundamentally strengthens the safety assurance system of medical devices.
[0120] Embodiment 2: Figure 3 As shown, the electric stapler micro switch detection system of the present invention specifically includes the following modules:
[0121] A test feature setting module, used to set a plurality of micro switch test feature vectors according to the micro switch specifications, wherein the micro switch test feature vectors include the moving speed of the trapezoidal detection block and the number of tests;
[0122] A micro switch test characterization matrix construction module controls the electric stapler micro switch detection device to test the micro switch for each micro switch test characteristic vector, and obtains a micro switch test characterization matrix;
[0123] A feature extraction module performs feature extraction on a micro switch test characterization matrix to obtain a micro switch abnormality index, wherein the micro switch abnormality index corresponds one-to-one to a micro switch test feature vector;
[0124] An imbalance feature set generation module combines micro switch abnormality indexes of multiple micro switch test feature vectors to obtain a micro switch imbalance feature set;
[0125] A micro switch imbalance evaluation module, which inputs the micro switch imbalance feature set into a pre-built micro switch imbalance evaluation model to obtain an imbalance evaluation result of the micro switch;
[0126] The result classification and judgment module classifies the imbalance evaluation results of the micro switch based on the preset imbalance evaluation threshold and judges whether the micro switch is qualified.
[0127] By setting multiple test feature vectors including the moving speed of the trapezoidal detection block and the number of tests, the system can more comprehensively simulate various working conditions that the micro switch may encounter during surgery, covering a wider dynamic performance range and overcoming the limitation of relying on a single test parameter in the past;
[0128] The construction of the microswitch test characterization matrix allows comprehensive recording of multiple parameters for each test, which helps to deeply analyze the responsiveness and stability of the microswitch under different conditions and improves the accuracy of the dynamic performance evaluation of the microswitch;
[0129] The feature extraction module not only collects data, but also identifies abnormal performance of the micro switch through algorithm analysis. The introduction of abnormal index makes the detection more refined, which can detect potential problems early and improve the accuracy of problem location.
[0130] The combination of the imbalance feature set generation module and the micro switch imbalance evaluation module constructs a multi-dimensional evaluation system. Through the integrated analysis of the abnormal index, the system can give a comprehensive evaluation of the overall working status of the micro switch, rather than a simple judgment based on a single parameter, which improves the scientificity and accuracy of the judgment.
[0131] With the help of preset imbalance evaluation threshold and intelligent result classification and judgment module, the system can automatically complete the qualification judgment of micro switches, reduce the risk of misjudgment caused by human factors, and improve the detection efficiency and consistency of quality control;
[0132] In summary, the system achieves comprehensiveness, accuracy and efficiency of microswitch detection through a highly integrated and intelligent detection process, significantly improves the safety and reliability of the core components of the electric stapler, and provides strong technical support for ensuring surgical safety.
[0133] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for detecting a micro switch of an electric stapler, characterized in that: The method is applied to a micro switch detection device for an electric stapler, wherein the micro switch detection device for an electric stapler drives a lead screw nut pair to move a trapezoidal detection block through a stepping motor, and uses the trapezoidal detection block to perform a switch test on a micro switch to be detected. The method comprises: According to the micro switch specifications, multiple micro switch test feature vectors are set; For each micro-switch test characteristic vector, the electric stapler micro-switch detection device is controlled to test the micro-switch to obtain a micro-switch test characterization matrix; Extract features from the micro switch test characterization matrix to obtain a micro switch abnormality index, wherein the micro switch abnormality index corresponds one-to-one to a micro switch test feature vector; The micro switch abnormality indexes of multiple micro switch test feature vectors are combined to obtain a micro switch imbalance feature set; Inputting the micro switch imbalance feature set into a pre-built micro switch imbalance evaluation model to obtain an imbalance evaluation result of the micro switch; Based on the preset imbalance evaluation threshold, the imbalance evaluation results of the micro switch are classified to determine whether the micro switch is qualified; The micro switch test characterization matrix is: in M 1 m Indicates m The vibration frequency measurement value under the test, M 2 m Indicates m The measured value of the switch travel under the test, M 3 m Indicates m The measured value of the closed resistance under the test, M 4 m Indicates m The measurement of response time under each test; In the micro switch test characterization matrix, each row represents a plurality of micro switch characterization parameters collected after a movement test of the trapezoidal detection block; each column represents the value of the same micro switch characterization parameter in different test orders; The method for obtaining the micro switch imbalance feature set includes: Organize the anomaly indices according to their corresponding eigenvectors; According to the performance requirements of the micro switch and the importance of various parameters in practical applications, a weight is assigned to each abnormal index of the characterization parameter; Perform weighted summation on the abnormal index corresponding to each micro switch test feature vector to form a comprehensive imbalance feature vector; Integrate the weighted imbalance feature vectors calculated for different test feature vectors to form a micro switch imbalance feature set; The mathematical formula of the micro switch imbalance evaluation model is: f ( X ) represents the unbalanced feature set of a given micro switch X When , the imbalance evaluation result of the micro switch; X =( X 1, X 2,..., Xn ) represents the feature vector, X 1 to Xn They represent different characteristics respectively; β 0 represents the intercept term of the model, which plays a role in adjusting the overall level of predicted probability in the mathematical model; β 1, β 2,..., βn Represents the weight coefficient of the model, each coefficient corresponds to a feature in the feature vector; e represents the base of natural logarithms; −( β 0+ β 1 X 1+ β 2 X 2+...+ βnXn ) represents the linear combination part of the model, which calculates the weighted sum of the features and then takes the negative value for conversion to a probability value through an exponential function.
2. The electric stapler microswitch detection method according to claim 1, characterized in that: The micro switch characterization parameters include vibration frequency, switch stroke, closed resistance and response time.
3. The electric stapler microswitch detection method according to claim 1, characterized in that: The method for obtaining the micro switch abnormality index includes: Standardize the parameters in the test characterization matrix, identify and process the abnormal values of the parameters in the test characterization matrix; Analyze the distribution of various parameters in the test characterization matrix to understand its normal working range and distribution form; Analyze the correlation between the parameters in the test characterization matrix to identify whether there are factors that affect each other; For each micro switch characterization parameter, the degree of deviation from the theoretical expected value is calculated to obtain the abnormal index of each feature.
4. The electric stapler microswitch detection method according to claim 1, characterized in that: The preset imbalance evaluation threshold is set based on micro switch specification standards, historical data analysis, clinical application requirements, failure mode analysis and risk assessment.
5. The electric stapler microswitch detection method according to claim 1, characterized in that: The micro switch test feature vector includes the moving speed of the trapezoidal detection block and the number of tests.
6. The electric stapler microswitch detection method according to claim 1, characterized in that: The specifications of micro switches include electrical parameters, mechanical parameters, environmental adaptability, physical dimensions and installation methods.
7. An electric stapler micro switch detection system, characterized in that: The system comprises: A test feature setting module, used to set a plurality of micro switch test feature vectors according to the micro switch specifications, wherein the micro switch test feature vectors include the moving speed of the trapezoidal detection block and the number of tests; A micro switch test characterization matrix construction module controls the electric stapler micro switch detection device to test the micro switch for each micro switch test characteristic vector, and obtains a micro switch test characterization matrix; A feature extraction module performs feature extraction on a micro switch test characterization matrix to obtain a micro switch abnormality index, wherein the micro switch abnormality index corresponds one-to-one to a micro switch test feature vector; An imbalance feature set generation module combines micro switch anomaly indexes of multiple micro switch test feature vectors to obtain a micro switch imbalance feature set; A micro switch imbalance evaluation module, which inputs the micro switch imbalance feature set into a pre-built micro switch imbalance evaluation model to obtain an imbalance evaluation result of the micro switch; A result classification and judgment module, which classifies the imbalance evaluation results of the micro switch based on a preset imbalance evaluation threshold and judges whether the micro switch is qualified; The micro switch test characterization matrix is: in M 1 m Indicates m The vibration frequency measurement value under the test, M 2 m Indicates m The measured value of the switch travel under the test, M 3 m Indicates m The measured value of the closed resistance under the test, M 4 m Indicates m The measurement of response time under each test; In the micro switch test characterization matrix, each row represents a plurality of micro switch characterization parameters collected after a movement test of the trapezoidal detection block; each column represents the value of the same micro switch characterization parameter in different test orders; The method for obtaining the micro switch imbalance feature set includes: Organize the anomaly indices according to their corresponding eigenvectors; According to the performance requirements of the micro switch and the importance of various parameters in practical applications, a weight is assigned to each abnormal index of the characterization parameter; Perform weighted summation on the abnormal index corresponding to each micro switch test feature vector to form a comprehensive imbalance feature vector; Integrate the weighted imbalance feature vectors calculated for different test feature vectors to form a micro switch imbalance feature set; The mathematical formula of the micro switch imbalance evaluation model is: f ( X ) represents the unbalanced feature set of a given micro switch X When , the imbalance evaluation result of the micro switch; X =( X 1, X 2,..., Xn ) represents the feature vector, X 1 to Xn They represent different characteristics respectively; β 0 represents the intercept term of the model, which plays a role in adjusting the overall level of predicted probability in the mathematical model; β 1, β 2,..., βn Represents the weight coefficient of the model, each coefficient corresponds to a feature in the feature vector; e represents the base of natural logarithms; −( β 0+ β 1 X 1+ β 2 X 2+...+ βnXn ) represents the linear combination part of the model, which calculates the weighted sum of the features and then takes the negative value for conversion to a probability value through an exponential function.
