Equipment testing method and device, computer equipment and storage medium
By performing collision detection of the motion data of electronic equipment, pre-trained models are used to remind production personnel to check scratches, solving the quality problems caused by collisions during the production process of electronic equipment and improving product quality.
Patent Information
- Application Number
- CN202310596574.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-24
- Publication Date
- 2024-11-26
AI Technical Summary
During the production process of electronic equipment, electronic equipment is prone to scratches due to unintentional collisions, and it is difficult for production personnel to discover in a timely manner, which affects product quality.
By obtaining the motion data of the electronic device during the production process, input it to the pre-trained collision detection model. If a collision is detected, a prompt message will be output to remind the production personnel to check whether there are scratches. The model is based on the motion data training of sample devices in different collision scenarios, including algorithms such as support vector machines and neural networks.
The collision detection and prompts of electronic equipment during the production process are realized, ensuring that production personnel detect and deal with scratches in a timely manner, and improving product quality.
Smart Images

Figure CN119025981A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic equipment, and more specifically, to a device testing method, apparatus, computer equipment and storage medium. Background Art
[0002] With the rapid advancement of technology and living standards, electronic devices (such as smart phones, tablets, etc.) have become one of the commonly used electronic products in people's lives. In the process of producing electronic devices, electronic devices will be tested at different stations. During this process, electronic devices are prone to inadvertent collisions, resulting in scratches on the surface, and it is difficult for production personnel to find scratches on the surface, which in turn affects the quality of the produced electronic devices. Summary of the invention
[0003] The present application proposes an equipment testing method, device, computer equipment and storage medium, which can realize collision detection and prompt of electronic equipment during the production process, thereby reminding production personnel to check whether the electronic equipment has scratches and ensure the quality of the produced electronic equipment.
[0004] In a first aspect, an embodiment of the present application provides a device testing method, which is applied to an electronic device, the method comprising: obtaining motion data of the electronic device during a production process; inputting the motion data into a pre-trained collision detection model to obtain a collision detection result of the electronic device, the collision detection model being trained based on motion data of a sample device in different collision scenarios; if the collision detection result indicates that a collision has occurred in the electronic device, outputting a first prompt message, the first prompt message being used to prompt that a collision has occurred in the electronic device during the production process.
[0005] In a second aspect, an embodiment of the present application provides a device testing method, which is applied to testing equipment, and the method includes: obtaining collision record information of an electronic device, the collision record information including first prompt information output by the electronic device during a production process and first time information when the first prompt information is output, the first prompt information being output by the electronic device when the obtained collision detection result indicates that a collision has occurred in the electronic device, and the collision detection result is obtained by inputting motion data of the electronic device during the production process into a pre-trained collision detection model; obtaining the pass-through information of each test station passed by the electronic device during the production process; associating the collision record information and the pass-through information with the device identification information of the electronic device and sending them to a server.
[0006] In a third aspect, an embodiment of the present application provides an equipment testing device, which is applied to an electronic device, and the device includes: a data acquisition module, a collision detection module and an information output module, wherein the data acquisition module is used to acquire motion data of the electronic device during a production process; the collision detection module is used to input the motion data into a pre-trained collision detection model to obtain a collision detection result of the electronic device, and the collision detection model is trained based on motion data of a sample device in different collision scenarios; the information output module is used to output a first prompt message if the collision detection result indicates that the electronic device has collided, and the first prompt message is used to prompt that the electronic device has collided during the production process.
[0007] In a fourth aspect, an embodiment of the present application provides an equipment testing device, which is applied to computer equipment, and the device includes: a first information acquisition module, a second information acquisition module and an information sending module, wherein the first information acquisition module is used to obtain collision record information of the electronic device, and the collision record information includes a first prompt information output by the electronic device during the production process and a first time information when the first prompt information is output, and the first prompt information is output by the electronic device when the obtained collision detection result indicates that the electronic device has a collision, and the collision detection result is obtained by inputting the motion data of the electronic device during the production process into a pre-trained collision detection model; the second information acquisition module is used to obtain the pass-through information of each test station passed by the electronic device during the production process; the information sending module is used to associate the collision record information and the pass-through information with the device identification information of the electronic device and send them to the server.
[0008] In a fifth aspect, an embodiment of the present application provides a computer device, comprising: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the device testing method provided in the first aspect above.
[0009] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the device testing method provided in the first aspect above.
[0010] The solution provided by the present application obtains the motion data of the electronic device during the production process; inputs the motion data into a pre-trained collision detection model to obtain the collision detection result of the electronic device, and the collision detection model is trained based on the motion data of the sample device in different collision scenarios; if the collision detection result indicates that the electronic device has collided, a first prompt message is output, and the first prompt message is used to prompt that the electronic device has collided during the production process. In this way, collision detection and prompting of the electronic device during the production process can be realized, so as to remind the production personnel to check whether the electronic device has scratches and ensure the quality of the output electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0012] Figure 1 A flow chart of a device testing method according to an embodiment of the present application is shown.
[0013] Figure 2 A flow chart of a device testing method according to another embodiment of the present application is shown.
[0014] Figure 3 A flow chart of a device testing method according to yet another embodiment of the present application is shown.
[0015] Figure 4 A flow chart of a device testing method according to another embodiment of the present application is shown.
[0016] Figure 5 A flow chart of a device testing method according to yet another embodiment of the present application is shown.
[0017] Figure 6 A block diagram of a device testing apparatus according to an embodiment of the present application is shown.
[0018] Figure 7 A block diagram of a device testing apparatus according to another embodiment of the present application is shown.
[0019] Figure 8 It is a block diagram of a computer device according to an embodiment of the present application for executing a device testing method according to an embodiment of the present application.
[0020] Fig. 9 It is a storage unit of an embodiment of the present application for storing or carrying program codes for implementing the device testing method according to an embodiment of the present application. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0022] In the process of producing electronic devices (such as smart phones, tablets, etc.), the electronic devices will pass through different workstations for testing and other processes. When the electronic devices pass through different workstations, collisions are prone to occur, and many of these collisions are unintentional collisions by production personnel. Therefore, it is difficult for production personnel to find scratches on the electronic devices caused by collisions, which in turn affects the quality of the electronic devices produced.
[0023] In response to the above problems, the inventors have proposed the equipment testing method, device, computer equipment and storage medium provided in the embodiments of the present application, which can detect and prompt the collision of electronic equipment during the production process, thereby reminding production personnel to check whether the electronic equipment is scratched, thereby ensuring the quality of the produced electronic equipment. The specific equipment testing method is described in detail in the subsequent embodiments.
[0024] The device testing method provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings.
[0025] See also Figure 1 , Figure 1 The flowchart of the device testing method provided by an embodiment of the present application is shown. In a specific embodiment, the device testing method is applied to an electronic device. Of course, it can be understood that the electronic device applied in this embodiment can be a smart phone, a tablet computer, a smart watch, an e-book, etc., which is not limited here. Figure 1 The process shown is described in detail, and the device testing method may specifically include the following steps:
[0026] Step S110: Acquire movement data of the electronic device during the production process.
[0027] In an embodiment of the present application, during the production process of the electronic device, the electronic device can obtain its motion data so as to determine whether the electronic device has collided based on the motion data of the electronic device during the production process. The motion data may be data such as angular acceleration and linear acceleration. It is understandable that when the electronic device encounters collision scenarios such as horizontal collision, collision caused by falling, collision with other objects, etc., its motion data such as angular acceleration and linear acceleration will change, and the motion data in these collision scenarios is different from the motion data when the electronic device has not collided. Therefore, it is possible to determine whether the electronic device has collided based on the motion data of the electronic device.
[0028] In some embodiments, an acceleration sensor is provided in the electronic device, and the linear acceleration of the electronic device can be obtained through the acceleration sensor. The acceleration of three mutually perpendicular axes can be obtained through the acceleration sensor, and the three axes can be the x-axis, the y-axis, and the z-axis. The plane formed by the x-axis and the y-axis is the plane where the screen is located, and the x-axis and the y-axis are perpendicular to each other, and the z-axis is perpendicular to the plane formed by the x-axis and the y-axis. The z-axis can take the vertical downward direction as the positive direction.
[0029] In some embodiments, angular acceleration can be detected by a gyroscope, which is also called an angular velocity sensor. Electronic devices are usually equipped with a three-axis gyroscope, which can track displacement changes in six directions and obtain the angular acceleration of the electronic device in the three directions of x, y, and z. It can measure the rotation and deflection of the electronic device very well, so as to perform corresponding operations on the electronic device. In electronic devices, applications that usually use gyroscopes include games, camera anti-shake, navigation, etc. Of course, the specific way in which the electronic device detects the above motion data is not limited. Since the above motion data includes motion data of multiple dimensions, it is possible to accurately determine whether the electronic device has collided based on the motion data.
[0030] In some embodiments, it is considered that during the production of electronic devices, collisions may only occur at certain stages, and the electronic device continuously detects the above motion data through relevant sensors, which will generate large power consumption, thereby making the battery power of the electronic device unable to support the complete production process during the production process, and if the battery of the electronic device is charged during the production process, it will affect the battery life of the electronic device after it is sold. Therefore, when the electronic device is in the target stage of the production process, the test device can send a monitoring instruction to the electronic device, such as an adb / MMI instruction; accordingly, after receiving the monitoring instruction sent by the test device, the electronic device can obtain the motion data of the electronic device during the production process and execute subsequent steps, that is, the electronic device executes the device testing method provided in the embodiment of the present application only when it receives the monitoring instruction.
[0031] In a possible implementation, the target stage may be a pre-set production stage that requires collision detection. The above monitoring instructions may be issued by the test device when it detects that the electronic device has arrived at the first designated station. That is, when the test device determines that the electronic device has arrived at the first designated station, it considers that the electronic device is beginning to be in the target stage. For example, when the electronic device arrives at the first designated station, the station equipment of the first designated station may feedback the device information of the electronic device to the test device. The test device may determine that the electronic device has arrived at the first designated station based on the device information fed back by the station equipment of the first designated station, and send a test instruction to the electronic device.
[0032] In addition, after the test device determines that the electronic device is in the target stage, when it determines that the electronic device has ended the target stage in the production process, it can send an end instruction to the electronic device; the electronic device can end the acquisition of motion data and subsequent steps according to the end instruction sent by the test device, that is, end the execution of the device testing method provided in the embodiment of the present application. Optionally, the test device can determine that the electronic device has ended the target stage in the production process when it determines that the electronic device has left the second designated station, and send an end instruction to the electronic device.
[0033] Step S120: inputting the motion data into a pre-trained collision detection model to obtain a collision detection result of the electronic device, wherein the collision detection model is trained based on motion data of sample devices in different collision scenarios.
[0034] In an embodiment of the present application, after acquiring the above motion data, the electronic device can input the motion data into a pre-trained collision detection model to obtain a collision detection result output by the collision detection model, and the collision detection result is used to indicate whether the electronic device has a collision. The collision detection model is trained based on the motion data of the sample device in different collision scenarios. The different collision scenarios can be collisions in the horizontal direction, collisions caused by falling, collisions with other objects, and other collision scenarios. Among them, the collision detection model can be a support vector machine (SVM), a neural network, a naive Bayes classifier, etc., and the specific model type of the collision detection model may not be limited.
[0035] In some embodiments, the collision detection result may be a classification result output by a collision detection model regarding whether a collision occurs in the electronic device, and the classification result includes two categories: collision occurs and no collision occurs. Therefore, the classification result may directly indicate whether a collision occurs in the electronic device. The collision detection result may also be a collision probability value characterizing a collision of the electronic device. The collision probability value is positively correlated with the possibility of a collision of the electronic device. That is, the larger the collision probability value, the greater the possibility of a collision of the electronic device, and the smaller the collision probability value, the smaller the possibility of a collision of the electronic device. Therefore, whether a collision occurs in the electronic device may also be determined based on the collision detection result.
[0036] Step S130: if the collision detection result indicates that the electronic device has collided, outputting first prompt information, wherein the first prompt information is used to prompt that the electronic device has collided during the production process.
[0037] In an embodiment of the present application, after the electronic device obtains the collision detection result output by the collision detection model, it can determine whether the collision detection result indicates that the electronic device has collided; if the collision detection result indicates that the electronic device has collided, then the electronic device may have a possibility of surface scratches, so the electronic device can output a first prompt message, and the first prompt message is used to prompt the electronic device that a collision has occurred during the production process, so that production personnel can know that the electronic device has collided according to the first prompt message, and promptly check whether the surface of the electronic device is scratched, and send it for repair if scratches are found; if the collision detection result indicates that the electronic device has not collided, the electronic device may not output the above first prompt message.
[0038] In some embodiments, the electronic device may display the first prompt information on a display interface so that production personnel can see the first prompt information and thereby know that the electronic device has collided and inspect its surface; of course, the electronic device may also output the first prompt information by voice prompting, and the specific manner in which the electronic device outputs the first prompt information may not be limited.
[0039] In some embodiments, a warning sign may be preset in the electronic device, and the warning sign includes a first warning sign and a second warning sign. The first warning sign is used to indicate that the electronic device has not collided, and the second warning sign is used to indicate that the electronic device has collided. For example, the first warning sign may be 1, and the second warning sign may be 0. If it is determined that the above collision detection result indicates that the electronic device has collided, the warning sign may be set to the second warning sign, and the first prompt information may be output based on the second warning sign.
[0040] In one possible implementation, the electronic device can also synchronize the warning sign to the workstation equipment at the test station in real time. When the warning sign obtained by the workstation equipment is the second warning sign, the workstation equipment can further output prompt information to prompt production personnel to check the electronic device, thereby achieving the effect of multiple prompts and effectively preventing the electronic device from being scratched and undetected.
[0041] Optionally, after the production personnel inspect the electronic device, if they find that the surface of the electronic device is not scratched, they can set the warning mark to the first warning mark through operation. Specifically, when the above warning mark of the electronic device is the second warning mark, the electronic device can also respond to the setting operation for the warning mark and set the current warning mark to the first warning mark.
[0042] In addition, when the electronic equipment enters each workstation equipment, the workstation equipment can obtain a warning sign from the electronic equipment. If the current warning sign is the first warning sign, a prompt message can be output to prompt the production personnel to check the electronic equipment, thereby effectively preventing the production personnel at the previous workstation from missing inspections.
[0043] The device testing method provided in the embodiment of the present application obtains the motion data of the electronic device during the production process, inputs the motion data into a pre-trained collision detection model, obtains the collision detection result of the electronic device, and outputs a first prompt message when the collision detection result indicates that the electronic device has collided, to prompt that the electronic device has collided during the production process. In this way, collision detection and prompts of the electronic device during the production process can be achieved, thereby reminding the production personnel to check whether the electronic device has scratches, and ensure the quality of the electronic device produced.
[0044] See also Figure 2 , Figure 2 A schematic diagram of a device testing method provided by another embodiment of the present application is shown. The device testing method is applied to the above-mentioned electronic device. Figure 2 The process shown is described in detail, and the device testing method may specifically include the following steps:
[0045] Step S210: Acquire first sample motion data of the sample device when a collision occurs in different collision scenarios and second sample motion data of the sample device when no collision occurs.
[0046] Regarding the collision detection model in the embodiment of the present application, the embodiment of the present application also includes a training method for the collision detection model. It is worth noting that the training of the collision detection model can be performed in advance based on the acquired sample data. Subsequently, each time a collision detection is required for the electronic device, the trained collision detection model can be used for the training, without the need to train the collision detection model each time a collision detection is performed.
[0047] In an embodiment of the present application, a sample data set for training a collision detection model includes first sample motion data of a sample device in different collision scenarios, and second sample motion data of the sample device when no collision occurs.
[0048] In some embodiments, the sample device can be subjected to collision in different collision scenarios, and the motion data detected by the sample device can be obtained, thereby obtaining first sample motion data when the sample device collides in different collision scenarios; in addition, the motion data detected by the sample device can be obtained when the sample device is in different usage scenarios and no collision occurs, thereby obtaining second sample motion data when the sample device does not collide.
[0049] In some embodiments, the above sample device may be a device of the same device model as the electronic device to be tested, so that a collision detection model subsequently trained based on the sample motion data corresponding to the sample device can accurately perform collision detection on the electronic device of that device model; the above sample device may be devices of multiple different device models, that is, the above first sample motion data and the second sample motion data may be sample motion data of devices of multiple different device models, and thus a collision detection model subsequently trained based on the sample motion data corresponding to the sample device has universality and can accurately perform collision detection on electronic devices of different device models.
[0050] Step S220: Based on the first sample motion data and the second sample motion data, an initial detection model is trained to obtain the collision detection model.
[0051] In an embodiment of the present application, when a collision detection model is obtained by training based on sample motion data in a sample data set, the sample motion data can be input into the initial detection model to obtain the detection result output by the collision detection model for the input sample data. Among them, the initial detection model can be a neural network, a Softmax logistic regression model, a support vector machine, etc., and the specific initial detection model may not be limited. After obtaining the detection result output by the above initial detection model for the input first sample motion data and the second sample motion data, the target loss value corresponding to the initial detection model can be determined based on the detection result and the label of whether the collision is sent marked by the sample motion data. Among them, the target loss value corresponding to the initial detection model can be determined based on the difference between the detection result and the label marked by the sample motion data.
[0052] In some embodiments, if the initial detection model outputs a probability value for characterizing a collision of an electronic device based on input sample motion data, a target loss value corresponding to the initial detection model is determined based on a label annotated with the sample motion data and the probability value output by the initial detection model.
[0053] In an embodiment of the present application, after determining the target loss value corresponding to the initial detection model, the initial detection model can be iteratively trained according to the loss value to obtain a final collision detection model.
[0054] In some embodiments, the model parameters of the initial detection model can be adjusted according to the calculated target loss value; the sample motion data is repeatedly input into the initial detection model to obtain the detection results output by the collision detection model for the input sample data; based on the detection results and the label of whether a collision is sent marked by the sample motion data, the target loss value corresponding to the initial detection model can be determined, and the model parameters of the initial detection model can be adjusted according to the target loss value until the training end conditions are met to obtain the trained compressed collision detection model.
[0055] Among them, after inputting each sample motion data into the initial detection model respectively, obtaining the detection result corresponding to each sample motion data, and then determining the total loss value according to the detection result corresponding to each sample motion data and the label marked by each sample motion data, and then adjusting the model parameters of the initial detection model according to the calculated target loss value, one epoch is completed; then returning to step S220 to complete the next epoch, and repeating in this way, multiple epochs can be completed. Among them, epoch refers to the number of times all sample motion data are used. In layman's terms, the value of epoch is the number of times the entire data set is rounded, and one epoch is equal to using all the sample motion data for training once.
[0056] In a possible implementation, the initial detection model can be iteratively trained using the Adam optimizer according to the total loss value until the loss value of the output result of the initial detection model converges, and the model at this time is saved to obtain a trained collision detection model. Among them, the Adam optimizer combines the advantages of the two optimization algorithms AdaGra (Adaptive Gradient) and RMSProp, comprehensively considers the first moment estimation (First Moment Estimation, i.e. the mean of the gradient) and the second moment estimation (Second Moment Estimation, i.e. the uncentered variance of the gradient), and calculates the update step size.
[0057] In some embodiments, the training end conditions of the iterative training may include: the number of iterative training reaches the target number; or the total loss value of the output result of the initial detection model meets the set conditions.
[0058] Optionally, the convergence condition is to make the total loss value as small as possible, use the initial learning rate 1e-3, the learning rate decays with the cosine of the step number, batch_size = 8, and after training for 16 epochs, it can be considered that convergence is complete. Among them, batch_size can be understood as a batch processing parameter, and its limit value is the total number of samples in the training set.
[0059] Optionally, the total loss value meeting the set condition may include: the total loss value is less than a set threshold. Of course, the specific set condition may not be used as a limitation.
[0060] Step S230: Acquire movement data of the electronic device during the production process.
[0061] Step S240: inputting the motion data into a pre-trained collision detection model to obtain a collision detection result of the electronic device.
[0062] Step S250: if the collision detection result indicates that the electronic device has collided, outputting first prompt information, wherein the first prompt information is used to prompt that the electronic device has collided during the production process.
[0063] In the embodiment of the present application, steps S230 to S250 may refer to the contents of other embodiments and will not be described in detail here.
[0064] In some embodiments, after the electronic device outputs the first prompt information, the production personnel check whether the electronic device has scratches based on the inspection result. If the inspection result is that a collision occurs, the electronic device is marked as a defective product; if the inspection result is that no collision occurs, the first prompt information can be eliminated according to the operation. In addition, when a collision is detected and the device is marked as a defective product, the motion data when the collision is detected can be considered as the motion data when the collision actually occurs, so the motion data can be used as the above first motion data, and the first motion data can be considered as the motion data when the collision actually occurs; when a collision is detected and the first prompt information is eliminated, the motion data when the collision is detected can be considered as the motion data when the collision detection model mistakenly detects the collision, so the motion data can be used as the above second motion data; then, based on the newly obtained first motion data and second motion data, the collision detection model is updated and trained, so that the collision detection model can be updated according to the actual motion data, the false detection rate of the collision detection model can be reduced, and the detection accuracy of the collision detection model can be improved.
[0065] The device testing method provided in the embodiment of the present application also provides a training process for the collision detection model. The initial detection model is trained through sample motion data of sample devices in the case of collision and no collision, so as to obtain a collision detection model that can perform collision detection based on the motion data of the electronic device actually obtained. When performing collision detection on an electronic device, a collision detection result can be obtained based on the collision detection model and the motion data of the electronic device during the production process, and a prompt message is output when the collision detection result indicates that the electronic device has collided, so as to prompt the electronic device to collide during the production process, thereby realizing collision detection and prompting of the electronic device during the production process, so as to remind the production personnel to check whether the electronic device has scratches, so as to ensure the quality of the electronic equipment produced.
[0066] See also Figure 3 , Figure 3 A schematic diagram of a device testing method according to another embodiment of the present application is shown. The device testing method is applied to the above-mentioned electronic device. Figure 3 The process shown is described in detail, and the device testing method may specifically include the following steps:
[0067] Step S310: receiving a collision threshold corresponding to the device model of the electronic device and sent by a test device.
[0068] In an embodiment of the present application, the collision detection result output by the collision detection model based on the motion data may be a collision probability value characterizing the occurrence of a collision of the electronic device, and the collision probability value is positively correlated with the possibility of a collision of the electronic device, that is, the larger the collision probability value, the greater the possibility of a collision of the electronic device, and the smaller the collision probability value, the smaller the possibility of a collision of the electronic device. When the electronic device determines whether a collision occurs based on the collision probability value output by the collision detection model, it may determine that the electronic device has collided when the collision probability value is greater than a collision threshold. The collision threshold may be issued by the test device, and the collision threshold corresponds to the device model of the electronic device.
[0069] It is understandable that when the same collision detection model is used to perform collision detection on electronic devices of different device models, the collision probability values for electronic devices of different device models may represent different possibilities of collision. Therefore, the collision thresholds corresponding to different device models can be obtained in advance through experiments, and when performing collision detection on electronic devices of different device models during the production process, the test device can send the collision threshold corresponding to the device model of the current electronic device to the electronic device, so that the electronic device can accurately determine whether a collision occurs based on the received collision threshold during the production process.
[0070] Step S320: Acquire movement data of the electronic device during the production process.
[0071] Step S330: Input the motion data into a pre-trained collision detection model to obtain a collision detection result of the electronic device, wherein the collision detection result includes a collision probability value for characterizing a collision of the electronic device, and the collision detection model is trained based on motion data of sample devices in different collision scenarios.
[0072] In the embodiment of the present application, step S320 and step S330 can refer to the contents of the aforementioned embodiment and will not be described again here.
[0073] Step S340: If the collision probability value is greater than the collision threshold corresponding to the electronic device, a first prompt message is output, where the first prompt message is used to prompt that the electronic device has collided during the production process.
[0074] In an embodiment of the present application, after the electronic device obtains the collision probability value output by the collision detection model, the collision probability value can be compared with the above collision threshold; according to the comparison result, if the collision probability value is greater than the above collision threshold, it can be determined that the electronic device has a collision, and therefore a first prompt message can be output, and the first prompt message is used to prompt the electronic device that a collision has occurred during the production process, so that production personnel can know that the electronic device has a collision according to the first prompt message, and promptly check whether the surface of the electronic device is scratched; if the collision probability value is less than or equal to the above collision threshold, it can be determined that the electronic device has not collided, and the electronic device may not output the above first prompt message.
[0075] The device testing method provided in the embodiment of the present application obtains the motion data of the electronic device during the production process, inputs the motion data into a pre-trained collision detection model, obtains the collision probability value of the electronic device, and outputs a first prompt message when the collision probability value is greater than the collision threshold value, to prompt the electronic device to collide during the production process. In this way, collision detection and prompting of the electronic device during the production process can be achieved, thereby reminding the production personnel to check whether the electronic device has scratches and ensure the quality of the electronic device produced; and the collision threshold used to determine whether the electronic device has a collision corresponds to the device model of the electronic device, so the electronic device can accurately determine whether a collision occurs based on the collision threshold value during the production process.
[0076] See also Figure 4 , Figure 4 A schematic diagram of a device testing method provided in another embodiment of the present application is shown. The device testing method is applied to the above electronic device. Figure 4The process shown is described in detail, and the device testing method may specifically include the following steps:
[0077] Step S410: Acquire a collision detection model corresponding to the device model of the electronic device from a test device.
[0078] In an embodiment of the present application, the collision detection result output by the collision detection model based on the motion data may be a first detection result for characterizing the occurrence of a collision or a second detection result for characterizing the absence of a collision. For a collision detection model that outputs this type of collision detection result, multiple collision detection models may be pre-trained for electronic devices of different device models, and the multiple collision detection models correspond one-to-one to the multiple device models. And when performing collision detection on electronic devices of different device models during the production process, the test device may send the collision detection model corresponding to the device model of the current electronic device to the electronic device, so that the electronic device may perform collision detection using the received collision detection model.
[0079] It is understandable that the motion data of electronic devices of different device models when generating the same collision in the same collision scenario may be different. Therefore, collision detection models are trained separately for electronic devices of different device models, and the obtained collision detection models can accurately identify whether a collision occurs.
[0080] Step S420: Acquire movement data of the electronic device during the production process.
[0081] Step S430: Input the motion data into a collision detection model corresponding to the device model of the electronic device to obtain the collision detection result, wherein the collision detection result is a first detection result used to characterize the occurrence of a collision or a second detection result used to characterize the absence of a collision. The collision detection model is trained based on the motion data of sample devices in different collision scenarios.
[0082] In the embodiment of the present application, step S420 and step S430 can refer to the contents of the aforementioned embodiment and will not be described again here.
[0083] Step S440: If the collision detection result is the first detection result, outputting first prompt information, where the first prompt information is used to prompt that the electronic device has collided during the production process.
[0084] In an embodiment of the present application, after the electronic device obtains the collision detection result output by the collision detection model, if the collision detection result is a first detection result used to characterize the occurrence of a collision, it can output a first prompt message, and the first prompt message is used to prompt the electronic device that a collision has occurred during the production process, so that production personnel can know that the electronic device has collided according to the first prompt message, and promptly check whether the surface of the electronic device is scratched; if the collision detection result is a second detection result used to characterize that no collision has occurred, the electronic device may not output the above first prompt message.
[0085] The device testing method provided in the embodiment of the present application obtains the motion data of the electronic device during the production process, inputs the motion data into a pre-trained collision detection model corresponding to the device model of the electronic device, obtains the collision detection result of the electronic device, and outputs a first prompt message when the collision detection result is a first detection result for characterizing the occurrence of a collision, so as to prompt the electronic device to collide during the production process. Thus, collision detection and prompting of the electronic device during the production process can be achieved, thereby reminding the production personnel to check whether the electronic device is scratched and ensure the quality of the electronic device produced; and the collision detection model corresponds to the device model of the electronic device, so the electronic device can accurately detect whether the electronic device has a collision during the production process by using the collision detection model.
[0086] See also Figure 5 , Figure 5 The schematic diagram of the flow chart of the device testing method provided by another embodiment of the present application is shown. The device testing method is applied to the test device. Figure 5 The process shown is described in detail, and the device testing method may specifically include the following steps:
[0087] Step S510: Acquire collision record information of the electronic device, the collision record information including first prompt information output by the electronic device during a production process and first time information when the first prompt information is output, the first prompt information is output by the electronic device when the obtained collision detection result indicates that a collision has occurred in the electronic device, and the collision detection result is obtained by inputting motion data of the electronic device during the production process into a pre-trained collision detection model.
[0088] In an embodiment of the present application, the electronic device can record the first prompt information generated during the production process and the first time information when the first prompt information is generated, obtain collision record information, and send the collision record information to the test device, so that the test device can obtain the collision record information of the electronic device so as to upload the collision record information, thereby facilitating tracing according to the collision record information. The specific method of the electronic device performing collision detection and outputting the first prompt information can refer to the content of the aforementioned embodiment, which will not be repeated here.
[0089] Step S520: Acquire the station passing information of each test station that the electronic device passes through during the production process.
[0090] In an embodiment of the present application, the test equipment can also obtain the station passing information of each test station passed by the electronic device during the production process, and the station passing information can be the second time information when the electronic device passes each test station. The test equipment can obtain the above station passing information from the station equipment of each test station.
[0091] Step S530: Associating the collision record information and the station passing information with the device identification information of the electronic device and sending them to the server.
[0092] In an embodiment of the present application, after obtaining the above collision record information and pass-station information, the test device can associate the above collision record information and pass-station information with the device identification information of the above electronic device and send it to the server, so that the server can store the collision record information and pass-station information associated with the device identification information of the above electronic device, and then can perform other processing operations such as query and tracing based on the stored collision record information and pass-station information.
[0093] In some embodiments, the server determines the target test station where the electronic device was located when the collision occurred based on the first time information in the collision record information and the second time information in the stop-by information, obtains the traceability result, and sends the traceability result to the test equipment; correspondingly, the test equipment can receive the traceability result and output the traceability result, such as displaying the traceability result on the screen, so as to facilitate the management personnel to know the test station where the electronic device was located when the collision occurred, so as to perform corresponding management operations.
[0094] In some embodiments, based on the collision record information corresponding to each electronic device uploaded by the test device, the server can regard these electronic devices that have generated collision record information as target devices that need to undergo final quality control (FQC), and then send the device information of the target devices to the test device; correspondingly, the test device can receive the device information and output the device information, such as displaying the device information on the screen, so as to facilitate production personnel to perform final quality control on the above target devices based on the device information.
[0095] The device testing method provided in the embodiment of the present application obtains the motion data of the electronic device during the production process, inputs the motion data into the pre-trained collision detection model corresponding to the device model of the electronic device, obtains the collision detection result of the electronic device, and outputs the first prompt information when the collision detection result is the first detection result used to characterize the generation of the collision, so as to prompt the electronic device to collide during the production process. In this way, the collision detection and prompt of the electronic device during the production process can be realized, so as to remind the production personnel to check whether the electronic device is scratched, so as to ensure the quality of the output electronic device; and the first prompt information output by the electronic device and the time information when the first prompt information is output can be sent to the testing device as the collision record information, and the testing device can also obtain the passing station information of each test station passed by the electronic device during the production process, and send the obtained collision record information and passing station information to the server, so that the server can store the collision record information and passing station information associated with the device identification information of the above electronic device, and then can perform other processing operations such as query and tracing according to the stored collision record information and passing station information.
[0096] See also Figure 6 , which shows a structural block diagram of a device testing device 600 provided by an embodiment of the present application. The device testing device 600 applies the above-mentioned electronic device, and the device testing device 600 includes: a data acquisition module 610, a collision detection module 620 and an information output module 630. Among them, the data acquisition module 610 is used to obtain the motion data of the electronic device during the production process; the collision detection module 620 is used to input the motion data into a pre-trained collision detection model to obtain the collision detection result of the electronic device, and the collision detection model is trained based on the motion data of the sample device in different collision scenarios; the information output module 630 is used to output a first prompt message if the collision detection result indicates that the electronic device has collided, and the first prompt message is used to prompt that the electronic device has collided during the production process.
[0097] In some embodiments, the collision detection result includes a collision probability value for characterizing that the electronic device has collided. The information output module 630 may be specifically configured to output a first prompt message if the collision probability value is greater than a collision threshold corresponding to the electronic device, wherein the first prompt message is configured to prompt that the electronic device has collided during the production process.
[0098] In a possible implementation, the device testing apparatus 600 may further include a threshold value acquisition module. The threshold value acquisition module may be used to output a first prompt message if the collision probability value is greater than a collision threshold value corresponding to the electronic device, wherein the first prompt message is used to prompt the electronic device to receive a collision threshold value corresponding to the device model of the electronic device sent by a test device before a collision occurs during the production process.
[0099] In some embodiments, the collision detection result is a first detection result for indicating that a collision has occurred or a second detection result for indicating that no collision has occurred. The collision detection module 620 may be specifically configured to input the motion data into a collision detection model corresponding to the device model of the electronic device to obtain the collision detection result.
[0100] In a possible implementation, the device testing apparatus 600 may further include a model acquisition module. The model acquisition module may be used to acquire a collision detection model corresponding to the device model of the electronic device from a testing device after inputting the motion data into the collision detection model corresponding to the device model of the electronic device.
[0101] In some embodiments, the device testing apparatus 600 may further include a model training module. The model training module may be used to obtain first sample motion data when the sample device collides in different collision scenarios and second sample motion data when no collision occurs; based on the first sample motion data and the second sample motion data, train an initial detection model to obtain the collision detection model.
[0102] See also Figure 7, which shows a structural block diagram of a device testing device 700 provided by another embodiment of the present application. The device testing device 700 applies a test device, and the device testing device 700 includes: a first information acquisition module 710, a second information acquisition module 720, and an information sending module 730. Among them, the first information acquisition module 710 is used to obtain the collision record information of the electronic device, and the collision record information includes the first prompt information output by the electronic device during the production process and the first time information when the first prompt information is output, and the first prompt information is output by the electronic device when the obtained collision detection result indicates that the electronic device has collided, and the collision detection result is obtained by inputting the motion data of the electronic device during the production process into a pre-trained collision detection model; the second information acquisition module 720 is used to obtain the passing station information of each test station passed by the electronic device during the production process; the information sending module 730 is used to associate the collision record information and the passing station information with the device identification information of the electronic device and send them to the server.
[0103] In some embodiments, the pass-station information includes second time information when the electronic device passes through the test station. The equipment testing device 700 may also include a traceability module. The traceability module may be used to receive the traceability result sent by the server after the collision record information and the pass-station information are associated with the equipment identification information of the electronic device and sent to the server, and output the traceability result. The traceability result includes the target test station where the electronic device was located when the collision occurred. The target test station is determined by the server based on the first time information in the collision record information and the second time information in the pass-station information.
[0104] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0105] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0106] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0107] In summary, the solution provided by the present application obtains the motion data of the electronic device during the production process; inputs the motion data into a pre-trained collision detection model to obtain the collision detection result of the electronic device, and the collision detection model is trained based on the motion data of the sample device in different collision scenarios; if the collision detection result indicates that the electronic device has collided, then a first prompt message is output, and the first prompt message is used to prompt that the electronic device has collided during the production process. In this way, collision detection and prompting of the electronic device during the production process can be realized, thereby reminding the production personnel to check whether the electronic device has scratches, and ensure the quality of the output electronic device.
[0108] Please refer to Figure 8 , which shows a structural block diagram of a computer device provided in an embodiment of the present application. The computer device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, wherein the one or more application programs may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more application programs are configured to execute the method described in the aforementioned method embodiment.
[0109] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire computer device 100, and executes various functions and processes data of the computer device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.
[0110] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the computer device 100 during use.
[0111] Please refer to Fig. 9 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 800 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0112] The computer readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 810 can be compressed, for example, in an appropriate form.
[0113] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A device testing method, characterized in that: Applied to electronic equipment, the method comprises: Acquiring movement data of the electronic device during the production process; Inputting the motion data into a pre-trained collision detection model to obtain a collision detection result of the electronic device, wherein the collision detection model is trained based on motion data of sample devices in different collision scenarios; If the collision detection result indicates that the electronic device has collided, a first prompt message is output, where the first prompt message is used to prompt that the electronic device has collided during the production process.
2. The method according to claim 1, characterized in that The collision detection result includes a collision probability value for indicating that the electronic device has collided. If the collision detection result indicates that the electronic device has collided, outputting first prompt information, wherein the first prompt information is used to prompt that the electronic device has collided during the production process, includes: If the collision probability value is greater than the collision threshold corresponding to the electronic device, a first prompt information is output, where the first prompt information is used to prompt that the electronic device has a collision during the production process.
3. The method according to claim 2, characterized in that If the collision probability value is greater than the collision threshold corresponding to the electronic device, outputting first prompt information, wherein the first prompt information is used to prompt the electronic device before a collision occurs during the production process, the method further includes: A collision threshold corresponding to the device model of the electronic device is received and sent by a test device.
4. The method according to claim 1, characterized in that: The collision detection result is a first detection result for indicating that a collision has occurred or a second detection result for indicating that no collision has occurred, and the motion data is input into a pre-trained collision detection model to obtain the collision detection result of the electronic device, including: The motion data is input into a collision detection model corresponding to the device model of the electronic device to obtain the collision detection result.
5. The method according to claim 4, characterized in that Before inputting the motion data into a collision detection model corresponding to the device model of the electronic device to obtain the collision detection result, the method further includes: A collision detection model corresponding to the device model of the electronic device is obtained from a test device.
6. The method according to any one of claims 1 to 5, characterized in that: The collision detection model is trained in the following way: Acquire first sample motion data of the sample device when a collision occurs in different collision scenarios and second sample motion data when no collision occurs; Based on the first sample motion data and the second sample motion data, an initial detection model is trained to obtain the collision detection model.
7. A device testing method, characterized in that: Applied to testing equipment, the method comprises: Acquiring collision record information of the electronic device, the collision record information including first prompt information output by the electronic device during a production process and first time information when the first prompt information is output, the first prompt information being output by the electronic device when an obtained collision detection result indicates that the electronic device has collided, the collision detection result being obtained by inputting motion data of the electronic device during a production process into a pre-trained collision detection model; Obtaining the passing station information of each test station passed by the electronic device during the production process; The collision record information and the station passing information are associated with the device identification information of the electronic device and then sent to the server.
8. The method according to claim 7, characterized in that The station passing information includes second time information of the electronic device passing through the test station. After associating the collision record information and the station passing information with the device identification information of the electronic device and sending them to the server, the method further includes: Receive the traceability result sent by the server and output the traceability result, wherein the traceability result includes the target test station where the electronic device was located when the collision occurred, and the target test station is determined by the server based on the first time information in the collision record information and the second time information in the stop-by information.
9. A device testing apparatus, characterized in that: Applied to electronic equipment, the device comprises: a data acquisition module, a collision detection module and an information output module, wherein: The data acquisition module is used to acquire the motion data of the electronic device during the production process; The collision detection module is used to input the motion data into a pre-trained collision detection model to obtain a collision detection result of the electronic device, wherein the collision detection model is trained based on motion data of sample devices in different collision scenarios; The information output module is used to output first prompt information if the collision detection result indicates that the electronic device has collided, and the first prompt information is used to prompt that the electronic device has collided during the production process.
10. A device testing apparatus, characterized in that: Applied to electronic equipment, the device comprises: a first information acquisition module, a second information acquisition module and an information sending module, wherein: The first information acquisition module is used to acquire collision record information of the electronic device, the collision record information includes first prompt information output by the electronic device during the production process and first time information when the first prompt information is output, the first prompt information is output by the electronic device when the obtained collision detection result indicates that the electronic device has collided, and the collision detection result is obtained by inputting motion data of the electronic device during the production process into a pre-trained collision detection model; The second information acquisition module is used to acquire the passing station information of each test station passed by the electronic device during the production process; The information sending module is used to associate the collision record information and the station passing information with the device identification information of the electronic device and then send them to the server.
11. A computer device, characterized in that: include: one or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 8.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 8.
