Method, device and equipment for intelligently assisting in sleep in vehicle and computer storage medium
By obtaining vehicle camping mode and sleep monitoring data, and automatically adjusting the music and environment settings in the car, the problem of low intelligence in the existing technology is solved and the user's driving experience is improved.
Patent Information
- Application Number
- CN202411998129.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-08
AI Technical Summary
The prior art is less intelligent in the assisted sleep environment in the car, and users need to manually adjust the lighting, sound and temperature factors, resulting in a poor user experience.
By obtaining the vehicle's camping mode, using location and parameter information to play the adapted music in the non-sleep mode, the user's sleep state is determined through the sleep monitoring data and the target sleep monitoring model in the sleep mode and the corresponding music is played.
It realizes automatic adjustment of the music and environment settings in the car according to the camping mode and sleep state, improving the intelligence of the vehicle's sleep assistance, thereby improving the user's driving experience.
Smart Images

Figure CN119773663A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of vehicle technology, and in particular, relates to a method, device, equipment and computer storage medium for intelligent in-vehicle sleep assistance. Background Art
[0002] With the development of science and technology, modern cars have surpassed the traditional means of transportation and evolved into a mobile platform that integrates multiple intelligent functions, providing users with a more convenient and comfortable driving experience. For example, some models have innovative designs that allow the second and third rows of seats to be laid flat and mattresses to be laid, thus transforming the interior space into a sleeping and resting environment for users, meeting the needs of users for outdoor camping.
[0003] When existing technologies assist in improving the sleeping environment, they often improve the physical space, which may include the design of head space, leg space and lateral space, the installation of sunshades to increase privacy protection, or the adjustment of lighting and sound based on physical switches. In other words, the physical layout of the car is often used to provide a resting space. When users adjust the lighting, sound, temperature and other factors of the sleeping environment, they often need to adjust and control them manually, which has a low degree of intelligence, thereby reducing the user's driving experience. Summary of the invention
[0004] The embodiments of the present application provide a method, device, equipment and computer storage medium for intelligent in-vehicle sleep assistance to solve the problem that existing sleep assistance methods require manual adjustment and have a low degree of intelligence, resulting in a poor user experience.
[0005] In a first aspect, an embodiment of the present application provides a method for intelligent assistance for sleeping in a vehicle, the method comprising:
[0006] Obtain the camping mode of the vehicle in a camping environment, where the camping mode includes a non-sleep mode and a sleep mode;
[0007] When the vehicle is in a non-sleep mode, obtaining the position of the vehicle and parameter information related to the position, and playing first target music corresponding to the position and parameter information;
[0008] When the vehicle is in sleep mode, the user's sleep monitoring data is obtained, the sleep monitoring data is input into a target sleep monitoring model, and the user's sleep state corresponding to the sleep monitoring data is determined based on the relationship between the monitoring data and the sleep state in the target sleep monitoring model, and second target music corresponding to the user's sleep state is played, where the second target music is the user's habitual music played when the user is in the sleep state.
[0009] In a second aspect, an embodiment of the present application provides a method for intelligent assistance for sleeping in a vehicle, the device comprising:
[0010] An acquisition module is used to acquire a camping mode of a vehicle in a camping environment, where the camping mode includes a non-sleep mode and a sleep mode;
[0011] A playing module, used for obtaining the position of the vehicle and parameter information related to the position when the vehicle is in a non-sleep mode, and playing the first target music corresponding to the position and parameter information;
[0012] The playback module is also used to obtain the user's sleep monitoring data when the vehicle is in sleep mode, input the sleep monitoring data into the target sleep monitoring model, and determine the user's sleep state corresponding to the sleep monitoring data based on the relationship between the monitoring data and the sleep state in the target sleep monitoring model, and play the second target music corresponding to the user's sleep state, where the second target music is the habitual music played by the user when the user is in the sleep state.
[0013] In a third aspect, an embodiment of the present application provides a terminal device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the method for intelligent in-vehicle sleep assistance as in the first aspect is implemented.
[0014] In a fourth aspect, an embodiment of the present application provides a computer storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the method for intelligent in-vehicle sleep assistance as in the first aspect is implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the method for intelligent in-vehicle sleep assistance as in the first aspect.
[0016] In a sixth aspect, an embodiment of the present application provides a vehicle, the vehicle comprising at least one of the following:
[0017] The device for intelligent in-vehicle sleep assistance as in any one of the embodiments of the second aspect;
[0018] An electronic device as in any one of the embodiments of the third aspect;
[0019] A computer-readable storage medium as in any embodiment of the fourth aspect;
[0020] A computer program product as in any embodiment of the fifth aspect.
[0021] The embodiments of the present application provide a method, device, equipment and computer storage medium for intelligent in-vehicle sleep assistance. The method first obtains the camping mode and classifies the vehicle according to the camping mode, which helps the vehicle better meet the needs of the user during the camping process. When the vehicle is in a non-sleep mode, the first target music corresponding to the vehicle position and parameter information is played; adapted music can be played according to changes in the external environment to enhance the user's immersion in camping. When the vehicle is in a sleep mode, sleep monitoring data is obtained to determine the user's sleep state through a target sleep monitoring model, and the corresponding second target music is played. The user's sleep state can be automatically judged through the sleep monitoring data and the music can be automatically adjusted to improve the user's sleep experience when camping. The embodiments of the present application can automatically adjust the playback of in-vehicle music according to the sleep state, thereby improving the intelligence level of vehicle sleep assistance and thus improving the user's driving experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0023] Figure 1 is a flow chart of a method for intelligent assistance of in-vehicle sleep provided by an embodiment of the present application;
[0024] Figure 2 It is a flowchart of an implementation method for obtaining a camping mode provided in an embodiment of the present application;
[0025] Figure 3 This is a flowchart of an implementation method for adjusting environmental data in a non-sleep mode provided in an embodiment of the present application;
[0026] Figure 4 It is a flowchart of an implementation method for adjusting environmental data in sleep mode provided in an embodiment of the present application;
[0027] Figure 5 It is a flowchart of an implementation method of adjusting the second preset environment data provided in an embodiment of the present application;
[0028] Figure 6 is a structural schematic diagram of an in-vehicle intelligent sleep assistance device provided by an embodiment of the present application;
[0029] Figure 7 It is a schematic diagram of the structure of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0031] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0032] The cars of the prior art are no longer just a simple means of transportation, but have evolved into a mobile platform that integrates a variety of intelligent functions, providing users with a more convenient and comfortable driving experience. For example, some models can lay down the second and third rows of seats and lay mattresses through innovative design, thereby transforming the interior space of the car into an environment for users to sleep and rest, providing a simple sleeping place for users when camping or needing to rest in the car. However, when users sleep in the car, they need to adjust the sleeping environment in the car, such as lighting, sound, temperature and other factors, by manually operating the buttons on the center console or steering wheel. When the sleeping environment in the car changes during sleep and is different from the habitual environment required by the user, it is necessary to get up frequently and repeatedly adjust the sleeping environment, which will affect the user's sleep quality. The vehicle's low level of intelligence in sleep assistance makes the user's driving experience poor.
[0033] In order to solve the problems of the prior art, the embodiments of the present application provide a method, device, equipment and computer storage medium for intelligent in-vehicle sleep assistance. The method first obtains the camping mode and classifies the vehicle according to the camping mode, which helps the vehicle to better meet the needs of the user during the camping process. When the vehicle is in a non-sleep mode, the first target music corresponding to the vehicle position and parameter information is played; adapted music can be played according to changes in the external environment to enhance the user's immersion in camping. When the vehicle is in a sleep mode, sleep monitoring data is obtained to determine the user's sleep state through a target sleep monitoring model, and the corresponding second target music is played. The user's sleep state can be automatically judged through the sleep monitoring data and the music can be automatically adjusted to improve the user's sleep experience when camping. The embodiments of the present application can automatically adjust the playback of in-vehicle music according to the sleep state, thereby improving the intelligence level of vehicle sleep assistance and thus improving the user's driving experience.
[0034] The following first introduces the method of intelligent in-vehicle sleep assistance provided by the embodiments of the present application in conjunction with the accompanying drawings.
[0035] Figure 1 A method for intelligent in-vehicle sleep assistance provided by an embodiment of the present application is shown, which may include: S101 to S103.
[0036] S101, obtaining a camping mode of a vehicle in a camping environment, where the camping mode includes a non-sleep mode and a sleep mode.
[0037] The camping environment is an outdoor location suitable for camping where the vehicle is parked, such as a camping site in the suburbs, an open area in the mountains, a lakeside, a seaside, etc. The non-sleep mode corresponds to a mode in which the user is awake and engaged in various leisure, entertainment or life activities while camping. The sleep mode corresponds to a mode in which the user rests and falls asleep in the vehicle.
[0038] S102, when the vehicle is in a non-sleep mode, obtaining the position of the vehicle and parameter information related to the position, and playing first target music corresponding to the position and parameter information.
[0039] Among them, the vehicle position is the geographical location information of the vehicle, which is obtained through the vehicle positioning system, and the parameter information related to the position is other information associated with the vehicle position, and the parameter information includes at least one of the time of obtaining the location and the weather at the current location.
[0040] The first preset music is music content set according to the vehicle position and parameter information.
[0041] In one example, when the vehicle is located at the seaside, the location is acquired at night, and the weather is clear, the sound of night waves can be played as the first preset music.
[0042] Combined with the vehicle's location and related information, users can be provided with a music experience that is more in line with the scene, that is, music that matches the current environment, creating an atmosphere that matches the current environment and increasing the sense of immersion in the environment.
[0043] S103, when the vehicle is in sleep mode, obtain the user's sleep monitoring data, input the sleep monitoring data into the target sleep monitoring model, and determine the user's sleep state corresponding to the sleep monitoring data according to the relationship between the monitoring data and the sleep state in the target sleep monitoring model, and play the second target music corresponding to the user's sleep state, where the second target music is the habitual music played by the user when the user is in the sleep state.
[0044] Among them, sleep monitoring data is various types of information used to reflect the user's sleep status, and environmental data is various parameter information related to the internal environment of the vehicle. Sleep monitoring data and environmental data are collected and obtained through various related sensors installed in the vehicle.
[0045] In some embodiments, the sleep detection data includes at least one of image data, audio data, and body temperature data. For example, it may include image data of the user's sleeping posture collected by the camera inside the vehicle, which is used to analyze whether the user turns over, makes limb movements, etc.; audio data such as the user's breathing sounds and snoring sounds during sleep collected by a microphone; and body temperature data of the user measured by an infrared sensor.
[0046] By acquiring data from various aspects, the user's sleep state can be judged by combining different types of data, thereby improving the accuracy of sleep state judgment.
[0047] Among them, the target sleep monitoring model is a pre-trained algorithm model that can determine the user's sleep state based on the input sleep monitoring data.
[0048] Through model analysis, sleep status can be automatically monitored without manual intervention by the user. The user's sleep stage can be identified more accurately. Compared with the traditional method of judging sleep status based on the user's subjective feelings, it is more accurate and objective, and improves the detection accuracy and intelligence level.
[0049] In some embodiments, the relationship between the detection data and the sleep state in the target sleep detection model can be a mapping relationship obtained through neural network training, or a corresponding relationship obtained by statistical analysis of sample data. For example, in the light sleep stage, the user may have relatively frequent turning movements, slightly heavier and irregular breathing, and slightly fluctuating body temperature; when entering the deep sleep stage, the turning movements decrease, the breathing becomes deep and even, and the body temperature tends to be stable.
[0050] By acquiring sleep monitoring data in real time, the accuracy and timeliness of the data are ensured, and timely feedback and operations can be provided; by using the sleep monitoring model, automatic monitoring of the user's sleep status is achieved, which improves the intelligence of sleep assistance; finally, the environmental data is adjusted to the preset music corresponding to the user's sleep status to provide the best sleep experience, thereby improving the intelligence of vehicle sleep assistance and thus improving the user's driving experience.
[0051] Among them, the second preset music is music content pre-set for users in different sleep states. It is usually music selected according to the user's daily habits or preferences, natural sound effects, or music used to assist users in sleeping, etc. Users can choose local music or music from online music platforms as preset music.
[0052] Using music to help users fall asleep or improve their sleeping state is in line with user habits and enhances the comfort and personalization of the sleeping experience.
[0053] In one example, if the user is accustomed to listening to soft piano music to help him sleep before going to bed, when the user's movements decrease and his breathing becomes stable and he enters the early stage of light sleep, the preset soft piano music is played.
[0054] In one example, when the user transitions from light sleep to deep sleep, the music volume is gradually lowered until it reaches silence; if the user shows signs of restlessness during sleep, such as frequent tossing and turning and rapid breathing, the user can be switched to more soothing natural sounds, such as the sound of waves or rain, to help the user calm down.
[0055] First, the camping mode is obtained, and the classification according to the camping mode helps the vehicle better meet the needs of the user during the camping process. When the vehicle is in non-sleep mode, the first target music corresponding to the vehicle position and parameter information is played; adapted music can be played according to changes in the external environment to enhance the user's immersion in camping. When the vehicle is in sleep mode, sleep monitoring data is obtained to determine the user's sleep state through the target sleep monitoring model, and the corresponding second target music is played. The user's sleep state can be automatically judged through the sleep monitoring data and the music can be automatically adjusted to improve the user's sleep experience when camping. The embodiment of the present application can automatically adjust the playback of in-car music according to the sleep state, thereby improving the intelligence level of vehicle sleep assistance, thereby improving the user's driving experience.
[0056] In some embodiments, when the relationship between the detection data and the sleep state in the target sleep detection model is a mapping relationship obtained through neural network training, the pre-trained neural network in the target sleep detection model is used to extract sleep detection data features, and the sleep detection data features are forward propagated to obtain the user's sleep state.
[0057] Before inputting the sleep detection data into the target sleep detection model, the model needs to be trained to obtain the relationship between the detection data and the sleep state in the target sleep detection model, which may include:
[0058] Obtain the user's training sleep detection data and corresponding training sleep status;
[0059] Inputting the training sleep monitoring data into the sleep monitoring model, extracting features of the training sleep monitoring data using a preset neural network and first model parameters, and forward propagating the features of the training sleep monitoring data according to preset second model parameters to obtain a predicted sleep state of the user;
[0060] Determine a loss function value according to the predicted sleep state and the training sleep state;
[0061] When the loss function value is greater than the set threshold, the first model parameters and the second model parameters are updated according to the loss function value and the sleep monitoring model is updated until the loss function value does not exceed the set threshold, thereby obtaining the target first model parameters, the target second model parameters and the corresponding target sleep monitoring model.
[0062] In some embodiments, when the relationship between the sleep detection data and the sleep state in the target sleep detection model is a corresponding relationship obtained by statistics of sample data, the sleep state corresponding to most samples of the sleep detection data is determined by the statistical relationship between the sleep detection data and the sleep state.
[0063] Before inputting the sleep detection data into the target sleep detection model, the sample data needs to be statistically analyzed to obtain the relationship between the sleep detection data and the sleep state, which may include:
[0064] Obtain the user's training sleep detection data and training sleep status;
[0065] The most training sleep state corresponding to the same sleep detection data of the user is taken as the training sleep state corresponding to the sleep detection data.
[0066] In some embodiments, the user's training sleep detection data and training sleep state may include the user's sleeping habit data in the vehicle, and may also include the user's daily routine habit data.
[0067] By combining the user's daily routine, the vehicle can more accurately determine whether the user's current sleep state is normal. For example, if a user who usually goes to bed early and gets up early goes to bed late in the car and his sleep state is unstable, the system can adjust the environment more specifically.
[0068] In some embodiments, the method may further include:
[0069] When the set time is reached, the preset third target music is played.
[0070] Among them, the set time is a specific time point or a specific time period set in advance by the user, and the preset third target music is the music content associated with the preset time, which is used to remind the user to arrive at the preset time or create a specific atmosphere at the preset time. It can calculate and prompt the user's sleep time to avoid excessive sleep and ensure a healthy sleep cycle.
[0071] In some embodiments, users are supported to set multiple different preset times and corresponding target music to meet the needs of different scenarios. For example, during a long journey, users can set reminder music for the end of a break and warm reminder music before going to bed at night. At the same time, the music playback method can be dynamically adjusted according to the user's sleep state and the proximity of the preset time. For example, when it is close to the time to get up, the music volume is set to gradually increase and the rhythm is gradually accelerated to simulate the natural wake-up process.
[0072] In some embodiments, when the target music is played at the preset time, it can be combined with the vehicle's environmental equipment. For example, while playing the wake-up music, the windows can be automatically opened for ventilation and the brightness of the light in the car can be adjusted, allowing the user to adapt to the external environment faster.
[0073] In some embodiments, Figure 2 As shown, obtaining the camping mode of the vehicle in the camping environment may include: S201 and S202.
[0074] S201, obtaining a camping mode selection instruction from a user, where the camping mode selection instruction includes a non-sleep mode and a sleep mode;
[0075] S202, adjusting the camping mode of the vehicle to the camping mode corresponding to the camping mode selection instruction.
[0076] Different users have different preferences and habits when camping. By obtaining the camping mode selection instructions actively issued by users, the needs of different users can be accurately adapted.
[0077] In some embodiments, obtaining the camping mode of a vehicle in a camping environment may also include:
[0078] Obtaining user behavior data, where behavior data is data generated by the user and related to the user's activities;
[0079] The camping mode of the vehicle in the camping environment is determined based on the user's behavior data.
[0080] In one example, the camping mode of the vehicle is determined by obtaining information such as whether the user is sitting, standing, or lying down, etc., through a device such as an in-vehicle camera or a pressure sensor on a seat, to determine whether the user is engaging in leisure activities, resting, or preparing for sleep, etc.
[0081] In some embodiments, the camping mode of the vehicle can be determined simultaneously based on the camping mode selection instruction and the user's behavior data.
[0082] In one example, when the camping mode of the vehicle determined by the camping mode selection instruction and the user's behavior data is the same, the same camping mode is determined as the camping mode of the vehicle; otherwise, the corresponding camping mode of the vehicle is determined according to the priority of the camping mode selection instruction and the user's behavior data.
[0083] In one example, when the camping mode selection instruction is a non-sleep mode, it is possible that the user has entered a sleep state without setting the sleep mode. When the user's behavior data is a sleep state, the camping mode is switched to the sleep mode.
[0084] In some embodiments, Figure 3 As shown, the parameter information is weather information. When the vehicle is in a non-sleep mode, after obtaining the location of the vehicle and parameter information related to the location, the method may further include: S301 and S302.
[0085] S301, obtaining environmental data inside the vehicle;
[0086] S302: Adjust the environmental data to first preset environmental data corresponding to the weather information, where the first preset environmental data is the user's habitual environmental data under the weather information.
[0087] Among them, the environmental data may include the current in-car temperature value obtained by the in-car temperature sensor; the in-car light intensity measured by the light sensor; the in-car air humidity detected by the humidity sensor; the oxygen and carbon dioxide concentration data detected by the air quality sensor; the first preset environmental data is the environmental data set for different weather information based on the user's habits and preferences.
[0088] By adjusting environmental data to suit external weather, the impact of extreme weather on passenger health can be reduced. At the same time, by adjusting according to the user's habitual environmental data in different weather conditions, the user's comfort and satisfaction can be improved.
[0089] In some embodiments, Figure 4 As shown, when the vehicle is in sleep mode, after determining the user's sleep state corresponding to the sleep monitoring data according to the relationship between the monitoring data and the sleep state in the target sleep monitoring model, the method may further include: S401 and S402.
[0090] S401, obtaining environmental data inside the vehicle;
[0091] S402: Adjust the environmental data to second preset environmental data corresponding to the user's sleeping state, where the second preset environmental data is the user's habitual environmental data when the user is in the sleeping state.
[0092] The second preset environment data is environment data set for different sleeping states according to the user's habits and preferences.
[0093] It provides users with a personalized sleeping environment and can automatically adjust the in-car environment according to the user's sleeping state. Users can more easily enter deep sleep under familiar environmental parameters, which conforms to user habits and can improve sleep comfort and quality.
[0094] In one example, if the user is accustomed to lower temperatures, such as 22°C, darker light, such as setting the interior lights to the lowest brightness, and a quiet environment during deep sleep, such as closing the windows for sound insulation and lowering the air-conditioning speed, when the system determines that the user has entered a deep sleep state, it adjusts the interior temperature of the car to 22°C, dims the lights, and lowers the air-conditioning speed.
[0095] In some embodiments, after the environmental data is adjusted to the preset environmental data corresponding to the user's sleep state, it is automatically adjusted and optimized according to the user's feedback. For example, if the user feels that the temperature is slightly lower after a sleep, the system can automatically record it and appropriately increase the preset temperature during the next sleep. The preset environmental data can also be intelligently adjusted in combination with environmental changes. For example, in the hot summer, even if the preset temperature is 22°C, if the initial temperature in the car is too high, the system can first quickly cool down to a lower temperature, such as 20°C, and then slowly return to 22°C to prevent the user from being in an overheated environment for a long time.
[0096] In some embodiments, Figure 5 As shown, adjusting the environmental data to second preset environmental data corresponding to the user's sleeping state may include: S501 and S502.
[0097] S501, determining environmental equipment in the vehicle according to second preset environmental data corresponding to the user's sleeping state.
[0098] Among them, environmental equipment refers to various devices in the vehicle used to adjust environmental parameters, such as air conditioning, lighting systems, audio and air circulation systems.
[0099] In one example, when the user's sleep state is light sleep and the preset environment data is relatively quiet, warm, and soft light, the environment devices that need to be adjusted include the air conditioner for adjusting the temperature, the audio system for lowering the volume or turning off the volume to keep quiet, and the in-car lighting system for dimming the brightness. If only the temperature needs to be adjusted, other irrelevant devices will not be operated.
[0100] After determining the sleep state and preset environmental data, you can quickly and accurately find the corresponding device and precisely locate the device that needs to be adjusted, avoiding unnecessary device movements and improving system efficiency and energy saving.
[0101] S502, adjusting the environmental device data of the environmental device to second preset environmental data.
[0102] The environmental equipment data include various parameter values when the environmental equipment is in operation, such as the temperature setting value and wind speed of the air conditioner, the brightness value of the light, the volume of the audio system, and other data.
[0103] In one example, for air conditioning, the temperature setting value is adjusted from the current 28°C to the preset 25°C, and the wind speed is reduced from high to low; for lighting, the brightness value is reduced from 50% to 20%; for audio, the volume is reduced from the current 10 levels to 3 levels.
[0104] By determining the environmental equipment that needs to be adjusted through preset environmental parameters, only the environmental equipment data that needs to be adjusted is adjusted to the preset environmental data, so that the environmental data in the vehicle reaches the preset environmental data. Accurate environmental adjustment can be achieved to meet the user's personalized needs for the environment in different sleeping states and improve sleep comfort.
[0105] In some embodiments, when adjusting the environmental device data, smooth transition adjustment is performed to avoid interference to the user caused by sudden changes in environmental data. For example, when adjusting the light brightness, it does not jump directly to the lowest brightness, but gradually decreases at a certain gradient speed. At the same time, the adjustment strategy can be optimized according to the vehicle's energy situation to save energy as much as possible while ensuring a comfortable sleeping environment. For example, when the vehicle's battery power is low, a more energy-saving adjustment method is preferred, such as reducing the air conditioning power but appropriately extending the adjustment time.
[0106] In some embodiments, when setting the first target music, the second target music, and the third target music, parameters such as adjusting the volume and sound effect mode may also be included.
[0107] In some embodiments, when setting the first target music, the second target music, and the third target music, the settings can be made through setting tags.
[0108] In some embodiments, the first preset music is music including a location tag and / or a parameter information tag, the parameter information tag includes at least one of an event tag and a weather tag, and playing the first preset music corresponding to the location and / or parameter information may include:
[0109] Choose music that contains position tags and / or parameter information tags.
[0110] In some embodiments, the second target music is music containing a user sleep state tag, and playing the second preset music corresponding to the user sleep state may include:
[0111] Select music that contains a user sleep state label corresponding to the user sleep state.
[0112] In some embodiments, the third target music is music containing a time tag, and when the preset time is reached, playing the preset target music may include:
[0113] When the preset time is reached, the music containing the preset time tag is played.
[0114] Figure 6 An in-vehicle sleep intelligent assistance device 600 provided in an embodiment of the present application is shown, and the device may include:
[0115] An acquisition module 601 is used to acquire a camping mode of a vehicle in a camping environment, where the camping mode includes a non-sleep mode and a sleep mode;
[0116] The playing module 602 is used to obtain the position of the vehicle and parameter information related to the position when the vehicle is in a non-sleep mode, and play the first target music corresponding to the position and parameter information;
[0117] The playback module 602 is also used to obtain the user's sleep monitoring data when the vehicle is in sleep mode, input the sleep monitoring data into the target sleep monitoring model, and determine the user's sleep state corresponding to the sleep monitoring data based on the relationship between the monitoring data and the sleep state in the target sleep monitoring model, and play the second target music corresponding to the user's sleep state, where the second target music is the habitual audio played by the user when the user is in the sleep state.
[0118] In some embodiments, the playing module 602 is further used to play a preset third target music when a set time is reached.
[0119] In some embodiments, the in-vehicle sleep intelligent assistance device 600 may further include:
[0120] The acquisition module 601 is further used to acquire a camping mode selection instruction of a user, where the camping mode selection instruction includes a non-sleep mode and a sleep mode;
[0121] The adjustment module is used to adjust the camping mode of the vehicle to the camping mode corresponding to the camping mode selection instruction.
[0122] In some embodiments, the acquisition module 601 is further used to acquire the environmental data in the vehicle;
[0123] The adjustment module is also used to adjust the environmental data to first preset environmental data corresponding to the weather, and the first preset environmental data is the user's habitual environmental data under the weather.
[0124] In some embodiments, the acquisition module 601 is further used to acquire the environmental data in the vehicle;
[0125] The adjustment module is also used to adjust the environmental data to second preset environmental data corresponding to the user's sleeping state, and the second preset environmental data is the user's habitual environmental data when the user is in the sleeping state.
[0126] In some embodiments, the in-vehicle sleep intelligent assistance device 600 may further include:
[0127] A determination module, configured to determine an environmental device in the vehicle according to second preset environmental data corresponding to a user's sleeping state;
[0128] The adjustment module is also used to adjust the environmental equipment data of the environmental equipment to the second preset environmental data.
[0129] Figure 6 The various modules in the device shown can be implemented Figure 1 Each step in the above steps can achieve the corresponding technical effect, which will not be repeated here for the sake of brevity.
[0130] Figure 7 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application is shown.
[0131] The terminal device may include a processor 701 and a memory 702 storing computer program instructions.
[0132] Specifically, the processor 701 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0133] The memory 702 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 702 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In one example, the memory 702 may include a removable or non-removable (or fixed) medium, or the memory 702 is a non-volatile solid-state memory. The memory 702 may be inside or outside the integrated gateway disaster recovery device.
[0134] In one example, the memory 702 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method for in-vehicle sleep intelligent assistance according to the present disclosure.
[0135] The processor 701 reads and executes the computer program instructions stored in the memory 702 to implement Figure 1 The method for intelligent in-vehicle sleep assistance in the illustrated embodiment.
[0136] In one example, the terminal device may further include a communication interface 703 and a bus 704. Figure 7 As shown, the processor 701, the memory 702, and the communication interface 703 are connected via a bus 704 and communicate with each other.
[0137] The communication interface 703 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0138] Bus 704 includes hardware, software or both, and the parts of terminal equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (Accelerated Graphics Port, AGP) or other graphics bus, enhanced industry standard architecture (Extended Industry Standard Architecture, EISA) bus, front side bus (Front Side Bus, FSB), hypertransport (HyperTransport, HT) interconnection, industry standard architecture (Industry Standard Architecture, ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 704 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0139] In addition, in combination with the in-vehicle intelligent sleep assistance method in the above embodiments, the present application embodiment can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any of the in-vehicle intelligent sleep assistance methods in the above embodiments is implemented.
[0140] An embodiment of the present application also provides a computer program product, including a computer program, which, when processed and executed, implements any one of the methods for intelligent in-vehicle sleep assistance in the above embodiments.
[0141] In addition, an embodiment of the present application further provides a vehicle, which includes at least one of the following:
[0142] The device for intelligent in-vehicle sleep assistance as in any one of the embodiments of the second aspect;
[0143] An electronic device as in any one of the embodiments of the third aspect;
[0144] A computer-readable storage medium as in any embodiment of the fourth aspect;
[0145] Such as the computer program product in any embodiment of the fifth aspect. No further details will be given here.
[0146] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0147] The functional blocks shown in the structural block diagram described above can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present application are programs or text segments used to perform the required tasks. The program or text segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link via a data signal carried in a carrier. "Machine-readable medium" may include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (Read-Only Memory, ROM), flash memory, erasable read-only memory (Erasable Read Only Memory, EROM), floppy disks, compact discs (Compact Disc Read-Only Memory, CD-ROM), optical discs, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The text segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0148] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0149] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0150] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A method for intelligently assisting sleeping in a vehicle, characterized in that: include: Acquire a camping mode of the vehicle in a camping environment, where the camping mode includes a non-sleep mode and a sleep mode; When the vehicle is in a non-sleep mode, obtaining the position of the vehicle and parameter information related to the position, and playing first target music corresponding to the position and parameter information; When the vehicle is in sleep mode, sleep monitoring data of the user is obtained, the sleep monitoring data is input into a target sleep monitoring model, and the user's sleep state corresponding to the sleep monitoring data is determined according to the relationship between the monitoring data and the sleep state in the target sleep monitoring model, and second target music corresponding to the user's sleep state is played, where the second target music is the habitual music played by the user when the user is in the sleep state.
2. The method for intelligent in-vehicle sleep assistance according to claim 1, characterized in that: The method further comprises: When the set time is reached, the preset third target music is played.
3. The method for intelligent in-vehicle sleep assistance according to claim 1, characterized in that: The obtaining of the camping mode of the vehicle in the camping environment includes: Acquire a camping mode selection instruction of a user, where the camping mode selection instruction includes a non-sleep mode and a sleep mode; The camping mode of the vehicle is adjusted to the camping mode corresponding to the camping mode selection instruction.
4. The method for intelligent in-vehicle sleep assistance according to claim 1, characterized in that: The parameter information is weather information. When the vehicle is in a non-sleep mode, after obtaining the location of the vehicle and the parameter information related to the location, the method further includes: Obtain environmental data inside the vehicle; The environmental data is adjusted to first preset environmental data corresponding to the weather information, where the first preset environmental data is the user's habitual environmental data under the weather information.
5. The method for intelligent in-vehicle sleep assistance according to claim 1, characterized in that: When the vehicle is in the sleep mode, after determining the user sleep state corresponding to the sleep monitoring data according to the relationship between the monitoring data and the sleep state in the target sleep monitoring model, the method further includes: Obtain environmental data inside the vehicle; The environmental data is adjusted to second preset environmental data corresponding to the user's sleeping state, where the second preset environmental data is the user's habitual environmental data in the user's sleeping state.
6. The method for intelligent in-vehicle sleep assistance according to claim 5, characterized in that: The step of adjusting the environmental data to second preset environmental data corresponding to the user's sleep state includes: Determining environmental equipment in the vehicle according to second preset environmental data corresponding to the user's sleeping state; The environmental device data of the environmental device is adjusted to second preset environmental data.
7. An intelligent sleeping assistance device in a car, characterized in that: The device comprises: An acquisition module, used for acquiring a camping mode of a vehicle in a camping environment, wherein the camping mode includes a non-sleep mode and a sleep mode; A playing module, used for obtaining the position of the vehicle and parameter information related to the position when the vehicle is in a non-sleep mode, and playing a first target music corresponding to the position and parameter information; The playing module is also used to obtain the user's sleep monitoring data when the vehicle is in sleep mode, input the sleep monitoring data into a target sleep monitoring model, and determine the user's sleep state corresponding to the sleep monitoring data based on the relationship between the monitoring data and the sleep state in the target sleep monitoring model, and play the second target music corresponding to the user's sleep state, where the second target music is the habitual music played by the user when the user is in the sleep state.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for intelligent in-vehicle sleep assistance as described in any one of claims 1-6 is implemented.
9. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the method for intelligent in-vehicle sleep assistance as described in any one of claims 1-6.
10. A vehicle, characterized in that: Include at least one of the following: The in-vehicle intelligent sleep assistance device as claimed in claim 7; The computer readable storage medium of claim 8; A computer program product as claimed in claim 9.