In-ear wearing detection method, in-ear wearing detection device, earphone equipment and computer readable storage medium
By adopting the in-ear wear detection method with double determination conditions in wireless headphones, the coordinated work of the wear detection sensor and gravity sensor is used to solve the problem of mist touch in the prior art, and the accuracy and battery life of detection are improved.
Patent Information
- Application Number
- CN202510313142.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-17
- Publication Date
- 2025-06-06
AI Technical Summary
The wear detection technology of existing wireless earphones has problems with errors in touch, which affects the accuracy and battery life of in-ear wear detection.
The in-ear wear detection method with double-determination conditions is adopted. Through the coordinated work of the wear detection sensor and the gravity sensor, multi-axis data is collected to determine the position information of the headphone device, and to determine whether it is the in-ear wear state based on the position information.
It greatly reduces the probability of accidentally touching, improves the reliability of wireless headphone wear detection, thereby extending the battery life of the headphones and improving the user experience.
Smart Images

Figure CN120111409A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of earphone technology, and in particular to an in-ear wearing detection method, an in-ear wearing detection device, an earphone device and a computer-readable storage medium. Background Art
[0002] As a very distinctive type of headphone, wireless headphones have won the favor of a large number of users with their intelligent design, simple style and unfettered use experience.
[0003] At present, with the widespread popularity of wireless headset technology, its battery life has become a focus of increasing concern for consumers. However, due to the small size of wireless headsets, it is difficult to significantly increase the battery capacity. Therefore, it is particularly important to explore effective means to enhance its battery life. In this context, introducing wearing detection technology to reduce the power consumption of wireless headsets has become a far-reaching technical initiative.
[0004] Specifically, wireless headphones usually have built-in wearing detection sensors to detect when the wireless headphones are close to or touching the human ear. When it is detected that the wireless headphones are close to or touching the human ear, it is determined that the user is wearing the wireless headphones, and then the low-power mode is exited and the normal functions of the headphones are started. On the contrary, when it is detected that the wireless headphones are not close to or touching the human ear, it is determined that the user has taken off the wireless headphones and enters a dormant state, thereby effectively reducing power consumption. Although this detection method is simple, there is a problem of false touch in practical applications. For example, when the user's hand accidentally touches the headset, the wearing detection sensor may mistakenly judge this behavior as the headset approaching or touching the human ear, and then mistakenly judge that the user is wearing the headset, which not only reduces the accuracy of in-ear wearing detection, but also may have an adverse effect on the battery life of the wireless headset.
[0005] In view of this, it has become an urgent task to innovate and optimize existing technologies to improve the accuracy and reliability of wireless headset wearing detection.
[0006] The above information is presented as background information only to assist with understanding the present disclosure and no determination or admission is made as to whether any of the above may be used as prior art with respect to the present disclosure. Summary of the invention
[0007] The present invention provides an in-ear wearing detection method, an in-ear wearing detection device, an earphone device and a computer-readable storage medium to solve the problems existing in the prior art.
[0008] To achieve the above object, the present invention provides the following technical solutions:
[0009] In a first aspect, the present invention provides an in-ear wearing detection method, the method being applied to an earphone device, the earphone device being provided with a wearing detection sensor and a gravity sensor, the method comprising:
[0010] When the wearing detection sensor detects that the earphone device is approached or touched, collecting multi-axis data of the gravity sensor, wherein the multi-axis data includes gravity acceleration components in at least three directions;
[0011] Determining the position and posture information of the headphone device according to the multi-axis data;
[0012] Determine whether the earphone device is currently in an in-ear wearing state according to the posture information.
[0013] Furthermore, in the in-ear wearing detection method, before the step of determining whether the headphone device is currently in an in-ear wearing state according to the posture information, the method further includes:
[0014] Monitoring continuous changes in the position and posture information to determine whether the position and posture information has changed significantly;
[0015] If yes, return to the step of monitoring the continuous change of the posture information and determining whether the posture information has changed significantly;
[0016] If not, determine whether the headphone device is currently in the in-ear wearing state according to the posture information.
[0017] Furthermore, in the in-ear wearing detection method, the step of determining whether the headphone device is currently in the in-ear wearing state according to the posture information includes:
[0018] The posture information is input into a preset posture recognition algorithm model to determine whether the headphone device is currently in an in-ear wearing state.
[0019] Furthermore, in the in-ear wearing detection method, the step of determining whether the headphone device is currently in the in-ear wearing state according to the posture information includes:
[0020] The posture information is compared with preset target posture information to determine whether the headphone device is currently in the in-ear wearing state; the target posture information is one or two or more.
[0021] Furthermore, in the in-ear wearing detection method, when the wearing detection sensor detects that the headphone device is approached or touched, the step of collecting multi-axis data of the gravity sensor, wherein the multi-axis data includes gravity acceleration components in at least three directions, comprises:
[0022] When the wearing detection sensor detects that the earphone device is approached or touched, controlling the gravity sensor to turn on, so as to trigger the gravity sensor to start detecting multi-axis data;
[0023] The multi-axis data detected by the gravity sensor is collected, where the multi-axis data includes gravity acceleration components in at least three directions.
[0024] Furthermore, in the in-ear wearing detection method, when the wearing detection sensor detects that the headphone device is approached or touched, the step of collecting multi-axis data of the gravity sensor, wherein the multi-axis data includes gravity acceleration components in at least three directions, comprises:
[0025] When the wearing detection sensor detects that the earphone device is approached or touched, detecting whether the duration for which the earphone device is approached or touched is greater than a preset threshold;
[0026] If yes, then collect multi-axis data of the gravity sensor, the multi-axis data including gravity acceleration components in at least three directions;
[0027] If not, return to the step of detecting whether the duration for which the headphone device is approached or touched is greater than a preset threshold when the wearing detection sensor detects that the headphone device is approached or touched.
[0028] Furthermore, in the in-ear wearing detection method, after the step of determining whether the headphone device is currently in an in-ear wearing state according to the posture information, the method further includes:
[0029] If the earphone device is currently in the in-ear wearing state, the low power consumption mode is exited; if the earphone device is currently not in the in-ear wearing state, the low power consumption mode is maintained.
[0030] In a second aspect, the present invention provides an in-ear wearing detection device, wherein the in-ear wearing detection device is deployed in an earphone device, wherein the earphone device is provided with a wearing detection sensor and a gravity sensor, and the device comprises:
[0031] A data acquisition module, configured to acquire multi-axis data of the gravity sensor when the wearing detection sensor detects that the earphone device is approached or touched, wherein the multi-axis data includes gravity acceleration components in at least three directions;
[0032] A posture determination module, used to determine the posture information of the headphone device according to the multi-axis data;
[0033] The wearing determination module is used to determine whether the headphone device is currently in an in-ear wearing state according to the posture information.
[0034] Furthermore, in the in-ear wearing detection device, the device also includes a change monitoring module, which is used to:
[0035] Before the step of determining whether the headphone device is currently in an in-ear wearing state according to the posture information, monitoring continuous changes of the posture information to determine whether the posture information changes significantly;
[0036] If yes, return to the step of monitoring the continuous change of the posture information and determining whether the posture information has changed significantly;
[0037] If not, determine whether the headphone device is currently in the in-ear wearing state according to the posture information.
[0038] Furthermore, in the in-ear wearing detection device, the wearing determination module is specifically used for:
[0039] The posture information is input into a preset posture recognition algorithm model to determine whether the headphone device is currently in an in-ear wearing state.
[0040] Furthermore, in the in-ear wearing detection device, the wearing determination module is specifically used for:
[0041] The posture information is compared with preset target posture information to determine whether the headphone device is currently in the in-ear wearing state; the target posture information is one or two or more.
[0042] Furthermore, in the in-ear wearing detection device, the data acquisition module is specifically used for:
[0043] When the wearing detection sensor detects that the earphone device is approached or touched, controlling the gravity sensor to turn on, so as to trigger the gravity sensor to start detecting multi-axis data;
[0044] The multi-axis data detected by the gravity sensor is collected, where the multi-axis data includes gravity acceleration components in at least three directions.
[0045] Furthermore, in the in-ear wearing detection device, the data acquisition module is specifically used for:
[0046] When the wearing detection sensor detects that the earphone device is approached or touched, detecting whether the duration for which the earphone device is approached or touched is greater than a preset threshold;
[0047] If yes, then collect multi-axis data of the gravity sensor, the multi-axis data including gravity acceleration components in at least three directions;
[0048] If not, return to the step of detecting whether the duration for which the headphone device is approached or touched is greater than a preset threshold when the wearing detection sensor detects that the headphone device is approached or touched.
[0049] Furthermore, in the in-ear wearing detection device, the device also includes a mode control module, which is used to:
[0050] After the step of determining whether the headphone device is currently in the in-ear wearing state according to the posture information, if the headphone device is currently in the in-ear wearing state, exit the low power consumption mode; if the headphone device is not currently in the in-ear wearing state, maintain the low power consumption mode.
[0051] In a third aspect, the present invention provides an earphone device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the in-ear wearing detection method provided in the first aspect is implemented.
[0052] In a fourth aspect, the present invention provides a computer-readable storage medium having computer-executable instructions stored thereon, wherein the computer-executable instructions are executed by a computer processor to implement the in-ear wearing detection method provided in the first aspect above.
[0053] Compared with the prior art, the present invention has the following beneficial effects:
[0054] The present invention provides an in-ear wearing detection method, an in-ear wearing detection device, an earphone device and a computer-readable storage medium. By designing a dual judgment condition, when the wearing detection sensor detects that the earphone device is approached or touched, it will not directly make a judgment result of in-ear wearing detection, but it is also necessary to first determine the posture information of the earphone device based on the multi-axis data collected by the gravity sensor, and then finally determine whether the earphone device is currently in the in-ear wearing state based on the posture information, thereby greatly reducing the probability of false touch and improving the reliability of wireless earphone wearing detection, thereby laying a solid foundation for extending the battery life of wireless earphones, which is beneficial to improving the user experience.
[0055] The present invention has other features and advantages, which will be apparent from or will be described in detail in the accompanying drawings and the following detailed description incorporated herein, which together serve to explain the specific principles of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0057] Figure 1 This is one of the flow charts of an in-ear wearing detection method provided in Embodiment 1 of the present invention;
[0058] Figure 2 This is a second flow chart of an in-ear wearing detection method provided in the first embodiment of the present invention;
[0059] Figure 3 This is a third flow chart of an in-ear wearing detection method provided in the first embodiment of the present invention;
[0060] Figure 4 This is a fourth flow chart of an in-ear wearing detection method provided in the first embodiment of the present invention;
[0061] Figure 5 This is a fifth flow chart of an in-ear wearing detection method provided in the first embodiment of the present invention;
[0062] Figure 6 This is a sixth flow chart of an in-ear wearing detection method provided in the first embodiment of the present invention;
[0063] Figure 7 This is a seventh flow chart of an in-ear wearing detection method provided in the first embodiment of the present invention;
[0064] Figure 8 is a structural schematic diagram of an in-ear wearing detection device provided in Embodiment 2 of the present invention;
[0065] Fig. 9 It is a structural schematic diagram of an earphone device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0066] In order to explain in detail the possible application scenarios, technical principles, specific schemes that can be implemented, and the purposes and effects that can be achieved, the following is a detailed description of the specific embodiments listed in conjunction with the accompanying drawings. The embodiments described herein are only used to more clearly illustrate the technical solutions of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.
[0067] Reference to "embodiment" herein means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The term "embodiment" appearing in various places in the specification does not necessarily refer to the same embodiment, nor does it particularly limit its independence or association with other embodiments. In principle, in the present application, as long as there is no technical contradiction or conflict, the various technical features mentioned in the embodiments can be combined in any way to form a corresponding implementable technical solution.
[0068] Unless otherwise defined, the technical terms used in this document have the same meanings as those generally understood by those skilled in the art to which this application belongs; the use of relevant terms in this document is only for describing specific embodiments and is not intended to limit this application.
[0069] In the description of this application, the term "and / or" is an expression used to describe the logical relationship between objects, indicating that three relationships may exist, for example, A and / or B, which means: A exists, B exists, and A and B exist at the same time. In addition, the character " / " in this article generally indicates that the objects before and after are in an "or" logical relationship.
[0070] In the present application, terms such as “first” and “second” are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship of quantity, priority or sequence between these entities or operations.
[0071] Without further limitations, in this application, the words "include", "comprises", "has" or other similar expressions used in the sentences are intended to cover non-exclusive inclusion. These expressions do not exclude the presence of additional elements in the process, method or product including the elements, so that the process, method or product including a series of elements may include not only those limited elements, but also other elements not explicitly listed, or also include elements inherent to such process, method or product.
[0072] In this application, expressions such as "greater than", "less than", "exceed" and the like are understood to exclude the number itself; expressions such as "above", "below", "within" and the like are understood to include the number itself. In addition, in the description of the embodiments of this application, "multiple" means more than two (including two), and similar expressions related to "multiple" are also understood in this way, such as "multiple groups", "multiple times", etc., unless otherwise clearly and specifically limited.
[0073] In the description of the embodiments of the present application, space-related expressions used, such as "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "vertical", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc., indicate the orientation or position relationship based on the orientation or position relationship shown in the specific embodiments or drawings, and are only for the convenience of describing the specific embodiments of the present application or facilitating the reader's understanding, and do not indicate or imply that the referred device or component must have a specific position, a specific orientation, or be constructed or operated in a specific orientation, and therefore cannot be understood as a limitation on the embodiments of the present application.
[0074] Unless otherwise expressly specified or limited, in the description of the embodiments of the present application, the terms such as "install", "connect", "connect", "fix", "set", etc. used should be understood in a broad sense. For example, the "connection" can be a fixed connection, a detachable connection, or an integrated setting; it can be a mechanical connection, an electrical connection, or a communication connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium; it can be the internal connection of two elements or the interaction relationship between two elements. For technicians in the technical field to which the present application belongs, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.
[0075] Embodiment 1
[0076] Please refer to Figure 1 , Figure 1 The present invention provides a flowchart of an in-ear wearing detection method provided in Embodiment 1 of the present invention. The method is applicable to a scenario where a user uses a wireless headset. The method is applied to a headset device, wherein a wearing detection sensor and a gravity sensor are provided in the headset device. The method specifically comprises the following steps:
[0077] S101. When the wearing detection sensor detects that the headphone device is approached or touched, collect multi-axis data of the gravity sensor, where the multi-axis data includes gravity acceleration components in at least three directions.
[0078] It should be noted that this step is initiated when the wearing detection sensor detects that the headphone device is approached or touched by an external object (such as the user's ear or hand). At this time, the gravity sensor begins to detect its acceleration caused by gravity in multiple directions, that is, the gravity acceleration component, and these data constitute the so-called "multi-axis data".
[0079] In practical applications, although you can choose a gravity sensor with three axes, six axes or more, a three-axis gravity sensor is usually sufficient to meet the needs. A three-axis gravity sensor can simultaneously measure the gravity acceleration components in the three directions of X, Y, and Z. These components together reflect the gravity acceleration state of the headset device in the current space, providing basic data for subsequent posture information determination.
[0080] S102: Determine the position and posture information of the headphone device according to the multi-axis data.
[0081] It should be noted that this step specifically uses relevant algorithm calculations to accurately analyze and determine the current spatial position and posture information of the headphone device, namely the so-called "posture information". Since this technology has been widely implemented in the prior art and is not the focus of this solution design, it will not be elaborated in depth here.
[0082] The pose information not only includes the position information of the headphone device in space, but also includes its orientation information relative to a reference coordinate system. This information is crucial for determining whether the headphone device is in the correct in-ear wearing state.
[0083] S103: Determine, based on the position information, whether the earphone device is currently in an in-ear wearing state.
[0084] It should be noted that this step is to further analyze and determine whether the headphone device is currently in the correct in-ear wearing state based on the posture information obtained in the previous step.
[0085] Specifically, the determination of the in-ear wearing state depends on the accuracy of the posture information. Posture information, as a comprehensive description of the position and posture of the headphone device in space, contains rich information. This information includes but is not limited to the position of the headset relative to the user's head, the tilt angle of the headset, and the specific orientation of the headset in three-dimensional space. When the headset is correctly worn on the user's ear, its posture information will present a specific pattern or range. For example, the position of the headset will coincide with the position of the user's ear, the tilt angle of the headset will match the natural tilt angle of the user's head, and the orientation of the headset will be consistent with the orientation of the user's head.
[0086] Through these posture information, it can be determined whether the earphone is currently in the correct in-ear wearing state. The accuracy of this step is crucial to the reliability of the entire in-ear wearing detection method. If the judgment of the posture information is biased, the final wearing state judgment result may also be affected. Therefore, in practical applications, it is necessary to continuously optimize the collection and processing algorithm of posture information to improve the accuracy and stability of this step.
[0087] In summary, determining whether the headphone device is currently in the in-ear wearing state based on the posture information is a key link added compared to the existing in-ear wearing detection method. It relies on accurate posture information collection and processing technology to ensure that the final wearing state judgment result is both accurate and reliable.
[0088] Please refer to Figure 2 In one implementation of this embodiment, Figure 1 Specifically, a pre-step is added before step S103, which is as follows:
[0089] S102.5. Monitor the continuous changes of the posture information to determine whether the posture information has changed significantly; if so, return to execute S102.5; if not, execute S103.
[0090] It should be noted that this step is to continuously monitor the posture information of the headphone device, aiming to accurately capture the characteristics of its dynamic changes. In this process, an in-depth analysis will be conducted to determine whether the posture information has changed significantly. If such a significant change is detected, it indicates that the headphone device may still be in an unstable or unpositioned state. At this time, the loop will return to step S102.5 to continue the monitoring task; on the contrary, if it is determined that the posture information has stabilized and no significant changes have occurred, it will proceed smoothly to the next step S103.
[0091] Here, it is necessary to make a special explanation: after the user wears the earphone device in the ear, its movement state is usually relatively stable, and may only be accompanied by a small movement of the head, and there will never be a large-scale, bottom-up movement trajectory such as when the user holds the earphone close to the ear. In view of this actual situation, in order to effectively avoid unnecessary consumption and waste of computing resources, this embodiment adopts this preprocessing strategy, that is, wait until the posture information is completely stable and no longer shows significant changes, and then accurately determine whether the earphone device is currently in the in-ear wearing state based on these stable posture information. The implementation of this strategy not only improves the efficiency of the entire determination process, but also significantly optimizes the efficiency of resource utilization.
[0092] In one implementation of this embodiment, Figure 1 Based on this, step S103 is further optimized. The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here, namely:
[0093] The posture information is input into a preset posture recognition algorithm model to determine whether the headphone device is currently in an in-ear wearing state.
[0094] Based on the above optimization, Figure 3As shown, the in-ear wearing detection method provided in this embodiment may specifically include the following steps:
[0095] S201. When the wearing detection sensor detects that the headphone device is approached or touched, collect multi-axis data of the gravity sensor, where the multi-axis data includes gravity acceleration components in at least three directions.
[0096] S202. Determine the position and posture information of the headphone device according to the multi-axis data.
[0097] S203: Input the posture information into a preset posture recognition algorithm model to determine whether the earphone device is currently in an in-ear wearing state.
[0098] It should be noted that in this step, advanced artificial intelligence technology, especially machine learning or deep learning algorithms, is used to build a high-precision posture recognition algorithm model. This model has been trained and optimized a lot and can accurately understand and analyze the posture information obtained from the gravity sensor.
[0099] By inputting the posture information into the preset posture recognition algorithm model, the model will use its internal complex algorithms and logic to conduct in-depth analysis and comparison of the input posture information. It will check every detail in the posture information, such as the specific position, tilt angle and orientation of the earphones, to determine whether they match the known in-ear wearing state characteristics.
[0100] If the input posture information is highly consistent with one or some in-ear wearing state features in the model, the model will output a positive judgment result, that is, the headphone device is currently in the in-ear wearing state. Conversely, if the input posture information does not match any known in-ear wearing state features, the model will output a negative judgment result, that is, the headphone device is not currently in the in-ear wearing state.
[0101] The implementation of this step depends on the accuracy and reliability of the pose recognition algorithm model. Therefore, when building and training the model, it is necessary to ensure that a sufficiently diverse and representative dataset is used, as well as sufficient validation and testing to ensure that the model can perform well in practical applications.
[0102] In summary, inputting posture information into a preset posture recognition algorithm model to determine whether the headphone device is currently in the in-ear wearing state is a core step in the in-ear wearing detection method. It relies on advanced machine learning and deep learning technologies, as well as a carefully constructed and trained posture recognition algorithm model to ensure that the final wearing state judgment result is both accurate and reliable.
[0103] It is understandable that, in addition to being based on Figure 1 In addition to the content provided, it can also be based on Figure 2 In other words, in another implementation, this embodiment may further include Figure 2 Content provided.
[0104] In another implementation of this embodiment, Figure 1 On the basis of, further optimization of step S103 can also be another solution. The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here, namely:
[0105] The posture information is compared with preset target posture information to determine whether the headphone device is currently in the in-ear wearing state; the target posture information is one or two or more.
[0106] Based on the above optimization, Figure 4 As shown, the in-ear wearing detection method provided in this embodiment may specifically include the following steps:
[0107] S301. When the wearing detection sensor detects that the headphone device is approached or touched, collect multi-axis data of the gravity sensor, where the multi-axis data includes gravity acceleration components in at least three directions.
[0108] S302: Determine the position and posture information of the headphone device according to the multi-axis data.
[0109] S303. Compare the posture information with preset target posture information to determine whether the headphone device is currently in an in-ear wearing state; the target posture information is one or two or more.
[0110] It should be noted that the target posture information is a set of one or more reference data that is set in advance based on the position and posture characteristics of the headphone device in the ideal in-ear wearing state. These reference data are usually obtained through a large amount of experimental data analysis and expert experience summary, and are highly representative and accurate. They represent the various possible postures that the headphone device should have when worn correctly, and provide a benchmark for subsequent comparative analysis with real-time posture information.
[0111] In actual applications, when the headset is worn by the user, its position information is collected in real time and compared with the preset target position information one by one. This comparison process usually involves analysis in multiple dimensions, including the matching degree of position coordinates, the deviation range of tilt angles, the degree of matching of rotation directions, etc.
[0112] If the real-time collected posture information shows a high degree of consistency or fit with one or more sets of target posture information in multiple dimensions, then it can be determined that the headphone device is currently in the in-ear wearing state. Conversely, if the real-time posture information has a large deviation or inconsistency with all the preset target posture information, then it is considered that the headphone device is not currently in the in-ear wearing state.
[0113] It is worth noting that the target posture information is not a fixed set of data, but can be flexibly adjusted and expanded according to actual needs. In actual applications, multiple different target posture information may be set based on individual differences of users (such as auricle shape, wearing habits, etc.), different models or design features of headphone devices, etc. The advantage of doing so is that it can further improve the accuracy and adaptability of detection, ensuring that no matter how the user wears the headphone device, the system can accurately determine its wearing status.
[0114] It is understandable that, in addition to being based on Figure 1 In addition to the content provided, it can also be based on Figure 2 In other words, in another implementation, this embodiment may further include Figure 2 Content provided.
[0115] In one implementation of this embodiment, Figure 1 On the basis of, step S101 is further optimized. In short, the core of the optimization is: when the wearing detection sensor keenly senses that the earphone device is approached or touched by an external object, the gravity sensor is started to work, thereby triggering it to start collecting multi-axis data to further reduce power consumption. The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here, namely:
[0116] When the wearing detection sensor detects that the earphone device is approached or touched, controlling the gravity sensor to turn on, so as to trigger the gravity sensor to start detecting multi-axis data;
[0117] The multi-axis data detected by the gravity sensor is collected, where the multi-axis data includes gravity acceleration components in at least three directions.
[0118] Based on the above optimization, Figure 5 As shown, the in-ear wearing detection method provided in this embodiment may specifically include the following steps:
[0119] S401. When the wearing detection sensor detects that the earphone device is approached or touched, control the gravity sensor to turn on to trigger the gravity sensor to start detecting multi-axis data.
[0120] It should be noted that power consumption management is a crucial consideration in the design and optimization of headphone devices. In order to ensure device performance and extend battery life as much as possible, this embodiment introduces a collaborative working mechanism between the wear detection sensor and the gravity sensor, which includes a key optimization point: the gravity sensor is activated for data collection only when necessary.
[0121] The wearing detection sensor is the "gatekeeper" in this optimization process. It is responsible for monitoring the changes in the environment around the headset device, especially whether the headset is approached or touched by external objects (such as the user's ears, hands, etc.). This sensor is highly sensitive and can respond quickly and capture these tiny changes in movement.
[0122] When the wearing detection sensor detects that the headset device is approached or touched, it sends a trigger signal to the system. This signal is the "key" to start the gravity sensor for data collection. Before this, the gravity sensor is in a low-power standby state and consumes almost no power.
[0123] This embodiment does not require the gravity sensor to continuously collect data, but instead starts "on demand" according to the signal of the wearing detection sensor. The benefits of this are obvious:
[0124] Reduce power consumption: The gravity sensor is activated only when necessary, avoiding unnecessary waste of power, thereby significantly reducing the overall power consumption of the device.
[0125] Extend battery life: Due to the reduction in power consumption, the battery life of the device is effectively extended. Users do not need to charge frequently, and the user experience is more convenient.
[0126] Improve response speed: When the wearing detection sensor detects that the headset is approached or touched, the gravity sensor can quickly start and collect data, ensuring that the system responds to the user's actions in a timely manner.
[0127] Reduce data redundancy: Collect data only when needed, avoiding the generation of a large amount of useless data and reducing the complexity and time cost of data processing.
[0128] In summary, this optimization step not only improves the power management efficiency of smart headphone devices, but also provides users with a smoother and more energy-efficient experience. Through the collaborative work of the wearing detection sensor and the gravity sensor, accurate monitoring and efficient management of the headphone device status are achieved.
[0129] S402: Collect multi-axis data detected by the gravity sensor, where the multi-axis data includes gravity acceleration components in at least three directions.
[0130] S403: Determine the position and posture information of the headphone device according to the multi-axis data.
[0131] S404: Input the posture information into a preset posture recognition algorithm model to determine whether the earphone device is currently in an in-ear wearing state.
[0132] It is understandable that, in addition to being based on Figure 1 In addition to the content provided, it can also be based on Figure 2 ,or Figure 3 ,or Figure 4 That is, in another implementation manner, this embodiment may further include Figure 2 ,or Figure 3 ,or Figure 4 etc.
[0133] In another implementation of this embodiment, Figure 1 On the basis of, step S101 is further optimized. In short, the core of the optimization is: while ensuring accurate detection of the earphone device in-ear wearing state, by introducing the judgment of the time dimension, the false alarm rate caused by false touch is greatly reduced, and computing resources are effectively saved and the power consumption of the device is reduced. The explanation of the terms that are the same or corresponding to the above embodiments will not be repeated here, namely:
[0134] When the wearing detection sensor detects that the earphone device is approached or touched, detecting whether the duration for which the earphone device is approached or touched is greater than a preset threshold;
[0135] If yes, then collect multi-axis data of the gravity sensor, the multi-axis data including gravity acceleration components in at least three directions;
[0136] If not, return to the step of detecting whether the duration for which the headphone device is approached or touched is greater than a preset threshold when the wearing detection sensor detects that the headphone device is approached or touched.
[0137] Based on the above optimization, Figure 6 As shown, the in-ear wearing detection method provided in this embodiment may specifically include the following steps:
[0138] S501. When the wearing detection sensor detects that the earphone device is approached or touched, detect whether the duration of the earphone device being approached or touched is greater than a preset threshold; if so, execute S502; if not, return to execute S501.
[0139] It should be noted that when the wearing detection sensor first captures the signal that the headphone device is approached or touched by an external object, the system will not immediately start the gravity sensor to collect data. Instead, it will first enter a duration judgment stage, that is, to detect whether the duration of this approach or touch exceeds the preset time threshold. The setting of this time threshold is based on in-depth analysis and research on the user's daily operating habits, and aims to effectively distinguish between intentional wearing and unintentional touching behavior patterns.
[0140] If the wearing detection sensor confirms that the duration of proximity or touch exceeds the preset threshold, this usually means that the user is wearing the headset, and the system will officially enter the data collection phase. The gravity sensor is then activated and begins to fully collect gravity acceleration component data in at least three directions (such as the X-axis, Y-axis, and Z-axis). These data are crucial for the subsequent determination of the spatial posture of the headset device.
[0141] However, if the duration of proximity or touch detected by the wearing detection sensor does not reach the preset threshold, the system will determine that the event is a false touch and return to the starting point of the duration judgment phase to continue waiting for the next valid proximity or touch signal. This cyclic detection mechanism ensures that the gravity sensor will only be activated when the user clearly intends to wear the headset, thereby greatly reducing unnecessary energy consumption and computing burden.
[0142] S502, collecting multi-axis data of the gravity sensor, where the multi-axis data includes gravity acceleration components in at least three directions;
[0143] S503: Determine the position and posture information of the headphone device according to the multi-axis data.
[0144] S504: Input the posture information into a preset posture recognition algorithm model to determine whether the earphone device is currently in an in-ear wearing state.
[0145] It is understandable that, in addition to being based on Figure 1 In addition to the content provided, it can also be based on Figure 2 ,or Figure 3 ,or Figure 4 ,or Figure 5 That is, in another implementation manner, this embodiment may further include Figure 2 ,or Figure 3 ,or Figure 4 ,or Figure 5 etc.
[0146] Please refer to Figure 7 In one implementation of this embodiment, Figure 1Specifically, after step S103, a post-step is added, and a post-step S104 is cleverly added, aiming to dynamically adjust the working mode of the headphone device according to the actual wearing state, so as to achieve a more intelligent and energy-saving effect. The details are as follows:
[0147] S104: If the earphone device is currently in the in-ear wearing state, exit the low power consumption mode; if the earphone device is currently not in the in-ear wearing state, maintain the low power consumption mode.
[0148] It should be noted that, based on step S103, the system has made a preliminary judgment on the wearing state of the earphone device. Then, in step S104, this judgment result is used as a key basis to determine the subsequent working mode of the earphone device.
[0149] If the judgment result of step S103 is "yes", that is, the headphone device is currently confirmed to be in the in-ear wearing state, then the system will immediately trigger a mode switching instruction to make the headphone device exit the current low-power mode and enter the normal working mode. This change is to ensure that the headphone device can quickly respond to various operation instructions when the user wears it, such as playing music, answering calls, etc., so as to provide a smooth and high-quality user experience.
[0150] On the contrary, if the judgment result of step S103 is "no", that is, the headphone device is not currently confirmed to be in the in-ear wearing state, then the system will maintain the operation state of the headphone device in the low power mode. The low power mode is an energy-saving mode that aims to extend the battery life of the headphone device by reducing unnecessary computing and communication activities. In this mode, the headphone device can still maintain continuous monitoring of the wearing state, but will limit the operation of other non-essential functions to achieve the purpose of energy saving.
[0151] In summary, the addition of step S104 not only enables the headphone device to intelligently switch working modes according to the actual wearing status of the user, but also further improves the energy-saving performance of the device. This optimization strategy undoubtedly provides a more flexible and efficient solution for the design and application of smart headphone devices, and also brings users a more convenient and lasting use experience.
[0152] It is understandable that, in addition to being based on Figure 1 In addition to the content provided, it can also be based on Figure 2 ,or Figure 3 ,or Figure 4 ,or Figure 5 ,or Figure 6 That is, in another implementation manner, this embodiment may further include Figure 2 ,or Figure 3,or Figure 4 ,or Figure 5 ,or Figure 6 etc.
[0153] Although the terms such as wearing detection sensor and gravity sensor are used more frequently in this application, the possibility of using other terms is not excluded. These terms are used only to more conveniently describe and explain the essence of the present invention; interpreting them as any additional restrictions is contrary to the spirit of the present invention.
[0154] An in-ear wearing detection method provided by an embodiment of the present invention designs a dual judgment condition, so that when the wearing detection sensor detects that the earphone device is approached or touched, it will not directly make a judgment result of in-ear wearing detection, but it is also necessary to first determine the posture information of the earphone device based on the multi-axis data collected by the gravity sensor, and then finally determine whether the earphone device is currently in the in-ear wearing state based on the posture information, thereby greatly reducing the probability of false touch and improving the reliability of wireless earphone wearing detection, thereby laying a solid foundation for extending the battery life of wireless earphones, which is beneficial to improving the user experience.
[0155] Embodiment 2
[0156] Figure 8 This is a schematic diagram of the structure of an in-ear wearing detection device provided in Embodiment 2 of the present invention. The in-ear wearing detection device is deployed in an earphone device. The earphone device is provided with a wearing detection sensor and a gravity sensor. The device includes:
[0157] A data acquisition module 601 is used to collect multi-axis data of the gravity sensor when the wearing detection sensor detects that the headphone device is approached or touched, and the multi-axis data includes gravity acceleration components in at least three directions;
[0158] A posture determination module 602, configured to determine the posture information of the headphone device according to the multi-axis data;
[0159] The wearing determination module 603 is used to determine whether the headphone device is currently in the in-ear wearing state according to the posture information.
[0160] Preferably, the device further comprises a change monitoring module, which is used to:
[0161] Before the step of determining whether the headphone device is currently in an in-ear wearing state according to the posture information, monitoring continuous changes of the posture information to determine whether the posture information changes significantly;
[0162] If yes, return to the step of monitoring the continuous change of the posture information and determining whether the posture information has changed significantly;
[0163] If not, determine whether the headphone device is currently in the in-ear wearing state according to the posture information.
[0164] Preferably, the wearing determination module 603 is specifically used for:
[0165] The posture information is input into a preset posture recognition algorithm model to determine whether the headphone device is currently in an in-ear wearing state.
[0166] Preferably, the wearing determination module 603 is specifically used for:
[0167] The posture information is compared with preset target posture information to determine whether the headphone device is currently in the in-ear wearing state; the target posture information is one or two or more.
[0168] Preferably, the data acquisition module 601 is specifically used for:
[0169] When the wearing detection sensor detects that the earphone device is approached or touched, controlling the gravity sensor to turn on, so as to trigger the gravity sensor to start detecting multi-axis data;
[0170] The multi-axis data detected by the gravity sensor is collected, where the multi-axis data includes gravity acceleration components in at least three directions.
[0171] Preferably, the data acquisition module 601 is specifically used for:
[0172] When the wearing detection sensor detects that the earphone device is approached or touched, detecting whether the duration for which the earphone device is approached or touched is greater than a preset threshold;
[0173] If yes, then collect multi-axis data of the gravity sensor, the multi-axis data including gravity acceleration components in at least three directions;
[0174] If not, return to the step of detecting whether the duration for which the headphone device is approached or touched is greater than a preset threshold when the wearing detection sensor detects that the headphone device is approached or touched.
[0175] Preferably, the device further comprises a mode control module, configured to:
[0176] After the step of determining whether the headphone device is currently in the in-ear wearing state according to the posture information, if the headphone device is currently in the in-ear wearing state, exit the low power consumption mode; if the headphone device is not currently in the in-ear wearing state, maintain the low power consumption mode.
[0177] The above-mentioned device can execute the method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0178] Embodiment 3
[0179] Fig. 9 This is a schematic diagram of the structure of an earphone device provided in Embodiment 3 of the present invention. Fig. 9 A block diagram of an exemplary headphone device 12 suitable for use in implementing embodiments of the present invention is shown. Fig. 9 The headphone device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0180] like Fig. 9 As shown, the headset device 12 is in the form of a general purpose computing device. The components of the headset device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 connecting various system components (including the system memory 28 and the processing unit 16).
[0181] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0182] The headset device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the headset device 12, including volatile and non-volatile media, removable and non-removable media.
[0183] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The headset device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Fig. 9 not shown, usually called a "hard drive"). Although Fig. 9Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0184] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0185] The headset device 12 may also communicate with one or more external devices 14 (e.g., a keyboard, a pointing device, a display 24, etc.), may also communicate with one or more devices that enable a user to interact with the headset device 12, and / or may communicate with any device that enables the headset device 12 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the headset device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the headset device 12 via a bus 18. It should be understood that although Fig. 9 Not shown, other hardware and / or software modules may be used in conjunction with the headset device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0186] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, such as implementing the in-ear wearing detection method provided in the embodiment of the present invention.
[0187] Embodiment 4
[0188] Embodiment 4 of the present invention provides a computer-readable storage medium on which computer-executable instructions are stored. When the instructions are executed by a processor, the in-ear wearing detection method provided in all the embodiments of the invention of this application is implemented.
[0189] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.
[0190] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0191] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0192] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0193] Finally, it should be noted that although the above embodiments have been described in the specification and drawings of this application, this does not limit the scope of patent protection of this application. All technical solutions generated by replacing or modifying equivalent structures or equivalent processes based on the essential concept of this application using the contents recorded in the specification and drawings of this application, as well as directly or indirectly implementing the technical solutions of the above embodiments in other related technical fields, are included in the scope of patent protection of this application.
Claims
1. A method for detecting in-ear wearing, characterized in that: The method is applied to an earphone device, wherein the earphone device is provided with a wearing detection sensor and a gravity sensor, and the method comprises: When the wearing detection sensor detects that the earphone device is approached or touched, collecting multi-axis data of the gravity sensor, wherein the multi-axis data includes gravity acceleration components in at least three directions; Determining the position and posture information of the headphone device according to the multi-axis data; Determine whether the earphone device is currently in an in-ear wearing state according to the posture information.
2. The in-ear wearing detection method according to claim 1, characterized in that: Before the step of determining whether the headphone device is currently in an in-ear wearing state according to the posture information, the method further includes: Monitoring continuous changes in the position and posture information to determine whether the position and posture information has changed significantly; If yes, return to the step of monitoring the continuous change of the posture information and determining whether the posture information has changed significantly; If not, determine whether the headphone device is currently in the in-ear wearing state according to the posture information.
3. The in-ear wearing detection method according to claim 1 or 2, characterized in that: The step of determining whether the headphone device is currently in an in-ear wearing state according to the posture information comprises: The posture information is input into a preset posture recognition algorithm model to determine whether the headphone device is currently in an in-ear wearing state.
4. The in-ear wearing detection method according to claim 1 or 2, characterized in that: The step of determining whether the headphone device is currently in an in-ear wearing state according to the posture information comprises: The posture information is compared with preset target posture information to determine whether the headphone device is currently in the in-ear wearing state; the target posture information is one or two or more.
5. The in-ear wearing detection method according to claim 1, characterized in that: The step of collecting multi-axis data of the gravity sensor when the wearing detection sensor detects that the earphone device is approached or touched, wherein the multi-axis data includes gravity acceleration components in at least three directions comprises: When the wearing detection sensor detects that the earphone device is approached or touched, controlling the gravity sensor to turn on, so as to trigger the gravity sensor to start detecting multi-axis data; The multi-axis data detected by the gravity sensor is collected, where the multi-axis data includes gravity acceleration components in at least three directions.
6. The in-ear wearing detection method according to claim 1, characterized in that: The step of collecting multi-axis data of the gravity sensor when the wearing detection sensor detects that the earphone device is approached or touched, wherein the multi-axis data includes gravity acceleration components in at least three directions comprises: When the wearing detection sensor detects that the earphone device is approached or touched, detecting whether the duration for which the earphone device is approached or touched is greater than a preset threshold; If yes, then collect multi-axis data of the gravity sensor, the multi-axis data including gravity acceleration components in at least three directions; If not, return to the step of detecting whether the duration for which the headphone device is approached or touched is greater than a preset threshold when the wearing detection sensor detects that the headphone device is approached or touched.
7. The in-ear wearing detection method according to claim 1, characterized in that: After the step of determining whether the headphone device is currently in an in-ear wearing state according to the posture information, the method further includes: If the earphone device is currently in the in-ear wearing state, the low power consumption mode is exited; if the earphone device is currently not in the in-ear wearing state, the low power consumption mode is maintained.
8. An in-ear wearing detection device, characterized in that: The in-ear wearing detection device is deployed in an earphone device, and a wearing detection sensor and a gravity sensor are provided in the earphone device. The device includes: A data acquisition module, configured to acquire multi-axis data of the gravity sensor when the wearing detection sensor detects that the earphone device is approached or touched, wherein the multi-axis data includes gravity acceleration components in at least three directions; A posture determination module, used to determine the posture information of the headphone device according to the multi-axis data; The wearing determination module is used to determine whether the headphone device is currently in an in-ear wearing state according to the posture information.
9. An earphone device, characterized in that: The headphone device includes a memory and a processor, the memory stores a computer program, and is characterized in that when the processor executes the computer program, the in-ear wearing detection method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having computer-executable instructions stored thereon, characterized in that: The computer executable instructions are executed by a computer processor to implement the in-ear wearing detection method according to any one of claims 1 to 7.