CN111750917A - Method and device for identifying inter-floor movement mode and intelligent equipment - Google Patents

Method and device for identifying inter-floor movement mode and intelligent equipment Download PDF

Info

Publication number
CN111750917A
CN111750917A CN201910787041.2A CN201910787041A CN111750917A CN 111750917 A CN111750917 A CN 111750917A CN 201910787041 A CN201910787041 A CN 201910787041A CN 111750917 A CN111750917 A CN 111750917A
Authority
CN
China
Prior art keywords
air pressure
floor
inter
pressure change
change rate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910787041.2A
Other languages
Chinese (zh)
Inventor
王梦岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201910787041.2A priority Critical patent/CN111750917A/en
Publication of CN111750917A publication Critical patent/CN111750917A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01LMEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
    • G01L11/00Measuring steady or quasi-steady pressure of a fluid or a fluent solid material by means not provided for in group G01L7/00 or G01L9/00
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01LMEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
    • G01L7/00Measuring the steady or quasi-steady pressure of a fluid or a fluent solid material by mechanical or fluid pressure-sensitive elements
    • G01L7/18Measuring the steady or quasi-steady pressure of a fluid or a fluent solid material by mechanical or fluid pressure-sensitive elements using liquid as the pressure-sensitive medium, e.g. liquid-column gauges
    • G01L7/20Measuring the steady or quasi-steady pressure of a fluid or a fluent solid material by mechanical or fluid pressure-sensitive elements using liquid as the pressure-sensitive medium, e.g. liquid-column gauges involving a closed chamber above the liquid level, the chamber being exhausted or housing low-pressure gas; Liquid barometers

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

The embodiment of the invention discloses a method and a device for identifying a moving mode between floors and intelligent equipment. The method comprises the following steps: controlling a time sliding window to slide on a time axis corresponding to the air pressure data by a preset step length, and sequentially acquiring partial air pressure data in the time sliding window in the air pressure data to obtain a plurality of partial air pressure data; the air pressure data are acquired by the intelligent equipment in the moving process between floors, and the size of the time sliding window is a preset unit time length which is not less than a preset step length; calculating to obtain the standard deviation of the air pressure change rate in the moving process of the floors according to the air pressure change rate of part of the air pressure data; identifying a target moving mode of the intelligent equipment in the moving process between floors according to the air pressure change rate and the standard deviation of the air pressure change rate; the target moving mode comprises climbing stairs, riding an escalator or riding a straight ladder. By implementing the embodiment of the invention, the identification of the moving mode between floors can be realized, and more accurate motion detection is further provided.

Description

Method and device for identifying inter-floor movement mode and intelligent equipment
Technical Field
The invention relates to the technical field of positioning, in particular to a method and a device for identifying a moving mode between floors and intelligent equipment.
Background
Nowadays, smart devices on the market basically have a Positioning function, and the Positioning function is more and more perfect, and not only can realize outdoor Positioning based on a Global Positioning System (GPS) System, but also can realize indoor Positioning based on wireless network signals such as bluetooth or Wi-Fi. In terms of indoor positioning, the motion state of the smart device in a room can also be generally recognized, for example, the motion state of the smart device in a certain floor, going upstairs or downstairs, and the like is recognized.
However, in the prior art, identification of motion states such as going upstairs or downstairs is usually only performed to determine the motion states of going upstairs or downstairs, but it is not possible to accurately identify which way to go upstairs or downstairs, and thus the requirement of a user on motion detection cannot be met. Therefore, in the prior art, the identification of the moving mode between floors cannot be realized, and more accurate motion detection cannot be provided.
Disclosure of Invention
Aiming at the defects, the embodiment of the invention discloses a method and a device for identifying a floor movement mode and intelligent equipment, which can identify the floor movement mode and further provide more accurate motion detection.
The first aspect of the embodiment of the invention discloses a method for identifying a moving mode between floors, which comprises the following steps:
controlling a time sliding window to slide on a time axis corresponding to the air pressure data by a preset step length, and sequentially acquiring partial air pressure data in the time sliding window in the air pressure data to obtain a plurality of partial air pressure data; the air pressure data are acquired by the intelligent equipment in the moving process between floors, the size of the time sliding window is preset unit duration, and the preset unit duration is not less than the preset step length;
calculating to obtain the standard deviation of the air pressure change rate in the moving process between floors according to the air pressure change rate of the partial air pressure data;
identifying a target moving mode of the intelligent equipment in the moving process between floors according to the air pressure change rate and the standard deviation of the air pressure change rate; the target moving mode comprises climbing stairs, taking an escalator or taking a straight ladder.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the identifying, according to the air pressure change rate and the standard deviation of the air pressure change rate, a target movement manner of the smart device during the movement process between the floors includes:
acquiring the number of target air pressure change rates smaller than a first preset threshold in the air pressure change rates;
if the number reaches a specified number and the standard deviation of the air pressure change rate reaches a second preset threshold value, identifying that the target moving mode of the intelligent equipment in the moving process between floors is stair climbing;
if the number does not reach the specified number and the standard deviation of the air pressure change rate does not reach the second preset threshold, judging whether the standard deviation of the air pressure change rate reaches a third preset threshold or not;
if the third preset threshold value is not reached, identifying that the target moving mode is to take an escalator;
and if the third preset threshold is reached, identifying that the target moving mode is a vertical ladder taking mode.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, before the controlling the time sliding window to slide by a preset step length on the time axis corresponding to the air pressure data, the method further includes:
when the intelligent equipment is detected to enter the indoor environment from the outdoor environment, starting an air pressure sensing device of the intelligent equipment to detect the air pressure value around the intelligent equipment in real time;
judging whether the intelligent equipment has floor movement behavior according to the air pressure value;
and if the inter-floor movement behavior occurs, taking a target air pressure value detected by the air pressure sensing device between the starting time and the ending time of the inter-floor movement behavior as the air pressure data acquired in the inter-floor movement process.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the method further includes:
if the inter-floor movement behavior occurs, determining a building where the intelligent device is located and a floor where the intelligent device is located in the building;
if the floor is the top floor of the building, judging that the inter-floor movement behavior is a downstairs behavior;
and if the floor is the bottom floor of the building, judging that the inter-floor movement behavior is an upstairs-going behavior.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the smart device is a wearable device; the method further comprises the following steps:
receiving a query time period sent by a management and control terminal of the wearable device;
acquiring a plurality of inquiry inter-floor movement processes of the wearable equipment in the inquiry time period;
and arranging the query moving modes corresponding to the moving process between the query floors according to the time sequence, and sending the arrangement result to the control terminal.
The second aspect of the embodiment of the present invention discloses an apparatus for identifying a moving mode between floors, including:
the control unit is used for controlling the time sliding window to slide on a time axis corresponding to the air pressure data by a preset step length; the air pressure data are acquired by the intelligent equipment in the moving process between floors, the size of the time sliding window is preset unit duration, and the preset unit duration is not less than the preset step length;
the acquisition unit is used for sequentially acquiring partial air pressure data in the time sliding window in the air pressure data to obtain a plurality of partial air pressure data;
the calculation unit is used for calculating and obtaining the standard deviation of the air pressure change rate in the moving process between the floors according to the air pressure change rate of the partial air pressure data;
the identification unit is used for identifying a target moving mode of the intelligent equipment in the moving process between floors according to the air pressure change rate and the standard deviation of the air pressure change rate; the target moving mode comprises climbing stairs, taking an escalator or taking a straight ladder.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the identification unit includes:
the acquiring subunit is used for acquiring the number of target air pressure change rates smaller than a first preset threshold in the air pressure change rates;
the first identification subunit is used for identifying that the target moving mode of the intelligent equipment in the moving process between the floors is stair climbing when the number reaches a specified number and the standard deviation of the air pressure change rate reaches a second preset threshold;
the judging subunit is configured to judge whether the standard deviation of the air pressure change rate reaches a third preset threshold value when the quantity does not reach the specified quantity and the standard deviation of the air pressure change rate does not reach the second preset threshold value;
the second identification subunit is used for identifying that the target moving mode is an escalator when the judgment result of the judgment subunit is negative; and recognizing that the target moving mode is a straight riding ladder when the judgment result of the judging subunit is yes.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the method further includes:
the starting unit is used for starting the air pressure sensing device of the intelligent equipment to detect the air pressure value around the intelligent equipment in real time if the intelligent equipment is detected to enter the indoor environment from the outdoor environment before the time sliding window is controlled by the control unit to slide on the time axis corresponding to the air pressure data by the preset step length;
the judging unit is used for judging whether the intelligent equipment has floor movement behavior according to the air pressure value;
the acquiring unit is further configured to, when the judging unit judges that the intelligent device has the inter-floor movement behavior, use a target air pressure value detected by the air pressure sensing device between the start time and the end time of the inter-floor movement behavior as the air pressure data acquired during the inter-floor movement.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the method further includes:
the determining unit is used for determining a building where the intelligent device is located and a floor where the intelligent device is located when the judging unit judges that the intelligent device has the inter-floor movement behavior;
the judging unit is used for judging that the inter-floor movement behavior is a downstairs behavior when the floor is a top floor of the building; and when the floor is the bottom floor of the building, judging that the inter-floor movement behavior is an upstairs behavior.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the smart device is a wearable device; the device further comprises:
the receiving unit is used for receiving the query time period sent by the management and control terminal of the wearable device;
the query unit is used for acquiring a plurality of query floor movement processes of the wearable equipment in the query time period;
and the sending unit is used for arranging the query moving modes corresponding to the moving process between the query floors according to the time sequence and sending the arrangement result to the control terminal.
A third aspect of an embodiment of the present invention discloses an intelligent device, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the method for identifying the inter-floor movement mode disclosed by the first aspect of the embodiment of the invention.
A fourth aspect of the embodiments of the present invention discloses a computer-readable storage medium storing a computer program, where the computer program causes a computer to execute the method for identifying an inter-floor movement pattern disclosed in the first aspect of the embodiments of the present invention. The computer readable storage medium includes a ROM/RAM, a magnetic or optical disk, or the like.
A fifth aspect of embodiments of the present invention discloses a computer program product, which, when run on a computer, causes the computer to perform some or all of the steps of any one of the methods of the first aspect.
A sixth aspect of the present embodiment discloses an application publishing platform, where the application publishing platform is configured to publish a computer program product, where the computer program product is configured to, when running on a computer, cause the computer to perform part or all of the steps of any one of the methods in the first aspect.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, a time sliding window with the size of a preset unit time length is controlled to slide on a time axis corresponding to air pressure data in a preset step length, the air pressure data is acquired by intelligent equipment in the inter-floor moving process, partial air pressure data in the time sliding window in the air pressure data is sequentially acquired to obtain a plurality of partial air pressure data, then, the standard deviation of the air pressure change rate in the inter-floor moving process is calculated according to the air pressure change rate of the partial air pressure data, and finally, the target moving mode of the intelligent equipment in the inter-floor moving process is identified according to the air pressure change rate and the standard deviation of the air pressure change rate, wherein the target moving mode comprises stair climbing, staircase taking or straight staircase taking. Therefore, by implementing the embodiment of the invention, the identification of the moving mode between floors can be realized based on the air pressure change in the moving process between floors, so that more accurate motion detection is provided and better user experience is obtained; in addition, the time sliding window is arranged to slide by the preset step length which is less than or equal to the preset unit time length (namely the size of the time sliding window), and a certain part of air pressure data in the air pressure data is obtained by sliding each time, so that the utilization rate of the air pressure data can be improved, the information quantity loss in the air pressure data is reduced, the accuracy of the standard deviation of the air pressure change rate and the air pressure change rate is improved, and the identification accuracy of the moving mode between floors is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for identifying an inter-floor movement mode according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating another method for identifying a moving pattern between floors according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an identification device for an inter-floor movement mode according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another identification device for an inter-floor movement mode according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an intelligent device disclosed in the embodiment of the present invention;
FIG. 6 is an exemplary diagram of the change of air pressure when a vertical ladder is taken according to an embodiment of the present invention;
FIG. 7 is an illustration showing the change of air pressure when the escalator is used;
fig. 8 is an exemplary diagram of the change of air pressure when climbing stairs, according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first", "second", "third", and the like in the description and the claims of the present invention are used for distinguishing different objects, and are not used for describing a specific order. The terms "comprises," "comprising," and any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the embodiments of the present invention, the terms "upper", "lower", "front", "rear", "top", "bottom", "inner", "outer", "middle", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings. These terms are used primarily to better describe the invention and its embodiments and are not intended to limit the indicated devices, elements or components to a particular orientation or to be constructed and operated in a particular orientation. Moreover, some of the above terms may be used to indicate other meanings besides the orientation or positional relationship, for example, the term "on" may also be used to indicate some kind of attachment or connection relationship in some cases. The specific meanings of these terms in the present invention can be understood by those skilled in the art as appropriate.
Furthermore, the terms "mounted," "disposed," "installed," "connected," and "connected" are to be construed broadly. For example, it may be a fixed connection, a removable connection, or a unitary construction; can be a mechanical connection, or an electrical connection; may be directly connected, or indirectly connected through intervening media, or may be in internal communication between two devices, elements or components. The specific meanings of the above terms in the present invention can be understood by those of ordinary skill in the art according to specific situations.
The embodiment of the invention discloses a method and a device for identifying a floor movement mode and intelligent equipment, which can identify the floor movement mode and further provide more accurate motion detection.
The execution main body of the touch anti-shaking method provided by the embodiment of the invention can be an identification device of an inter-floor movement mode, and can also be an intelligent device such as a mobile terminal, a wearable device or a tablet computer, and the embodiment of the invention is not limited. The operating system of the intelligent device includes, but is not limited to, an Android operating system, an IOS operating system, a Symbian operating system, a Black Berry operating system, a Windows Phone8 operating system, and the like. The following embodiments are provided by taking an identification device (hereinafter, simply referred to as "identification device") whose execution subject is an inter-floor movement method as an example, and the identification method of the inter-floor movement method according to the embodiments of the present invention is described by way of example with reference to the accompanying drawings, which should not be construed as limiting the invention in any way.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a method for identifying an inter-floor movement manner according to an embodiment of the present invention. As shown in fig. 1, the method for identifying the inter-floor movement pattern may include the following steps:
101. and the identification device controls the time sliding window to slide on a time axis corresponding to the air pressure data by a preset step length.
The air pressure data are acquired by the intelligent equipment in the moving process between floors, the moving process between floors can comprise an upstairs moving process or a downstairs moving process, the size of the time sliding window is preset unit duration, and the preset unit duration is not less than a preset step length. The smart device may be a mobile terminal, a wearable device, or a tablet computer, which is not limited in the embodiments of the present invention.
Alternatively, the air pressure data may specifically be an air pressure value in the ambient air at a position of the smart device itself during movement between floors, and the air pressure value may be detected by an air pressure sensing device (e.g., a liquid-free barometer) provided in the smart device itself, or may be read by an air pressure measuring device (e.g., a mercury barometer hung on a wall, a wall of a staircase, a wall of an escalator, or a wall of a vertical ladder) near the position of the smart device. Further optionally, the smart device may acquire the air pressure value corresponding to the position where the smart device is located in a preset acquisition period, where the acquisition period may be 0.1s, 0.5s, or 1 s.
It can be understood that the air pressure values in the air of different altitudes are different, the higher the altitude is, the smaller the local air pressure value is, and the change of the floor can occur in the inter-floor moving process, and the altitude can also change, so that the motion detection of the intelligent device in the inter-floor moving process can be realized by monitoring the change of the air pressure value.
In the embodiment of the invention, the time sliding window is a tool which can frame a time sequence according to the specified unit length so as to calculate the statistical index in the frame, and is equivalent to that a slide block with the specified length slides on a graduated scale, and the data in the slide block can be updated every time the slide block slides one unit. Therefore, the preset unit duration is the specified size of the time sliding window (also called window length or window size), one preset step length is a unit of the time sliding window sliding, and both the preset unit duration and the preset step length can be adjusted by developers according to the actual application scenario.
As an optional implementation manner, before performing step 101, the identifying device may determine whether the intelligent device is in an outdoor environment, and if the intelligent device is not in the outdoor environment, perform step 101; through the embodiment, the identification of the inter-floor moving mode can be carried out when the intelligent equipment is judged not to be in the outdoor environment, and the identification accuracy of the inter-floor moving mode can be improved.
Further optionally, if the smart device is in an outdoor environment and the user of the smart device is in an exercise state, the identification device may determine the exercise direction and the exercise speed of the current exercise according to the change magnitude and the change time of the barometric pressure value corresponding to the location of the smart device, determine the current exercise type according to the exercise direction and the exercise speed, and obtain calorie data consumed by the user of the smart device in the current exercise type based on the preset corresponding relationship between each exercise type and calorie consumption.
Exemplarily, when the change magnitude of the air pressure value is within a first preset range, determining that the current motion type is walking motion; when the change of the air pressure value periodically rises and then falls, and the difference value of rising and falling every time is in a second preset range, determining that the current exercise type is running or jumping exercise; and when the change of the atmospheric pressure value continuously rises, determining that the current motion type is climbing or mountain climbing motion.
Through the embodiment, the calorie can be accurately calculated through the air pressure value so as to truly reflect calorie data consumed by a user of the intelligent device.
Further optionally, the manner of determining whether the intelligent device is in the outdoor environment by the identification device may specifically be to obtain an ultraviolet intensity value and a light brightness value of the environment where the intelligent device is located, then determine whether the ultraviolet intensity value reaches a preset intensity value and whether the light brightness value reaches a preset brightness value, and determine that the intelligent device is in the outdoor environment if the ultraviolet intensity value reaches the preset intensity value and the light brightness value reaches the preset brightness value; otherwise, the intelligent device is judged to be in the indoor environment. So, through the detection that combines ultraviolet ray and light, compare ultraviolet intensity value and preset intensity value to and compare light brightness value and preset brightness value, can improve and be in the judgement rate of accuracy of indoor outer environment to smart machine.
102. The identification device sequentially obtains partial air pressure data in a time sliding window in the air pressure data to obtain a plurality of partial air pressure data.
It is understood that the partial pressure data may specifically be partial pressure values, each time sliding window may correspond to a partial pressure value, and a pressure change rate corresponding to the time sliding window may be calculated according to the partial pressure value.
103. And the recognition device calculates the standard deviation of the air pressure change rate in the moving process between floors according to the air pressure change rate of part of the air pressure data.
In the embodiment of the present invention, the air pressure change rate may be a ratio of a change amount of a partial air pressure value to a time taken for the change amount to occur, and if different inter-floor movement modes are adopted, the ratio may be different, that is, the change amount of the air pressure value in unit time is different in the different inter-floor movement modes, so that the different inter-floor movement modes can be identified by the air pressure change rate.
Referring to fig. 6 to 8, fig. 6 is an exemplary diagram illustrating a change in air pressure when a user takes a vertical ladder according to an embodiment of the present invention; FIG. 7 is an illustration showing the change of air pressure when the escalator is used; fig. 8 is an exemplary diagram of the change of air pressure when climbing stairs, according to an embodiment of the present invention. In fig. 6 to 8, the abscissa represents time, the ordinate represents air pressure value, and the slope of the slope represents the air pressure change rate.
Generally, the movement speed is fast when the user takes the vertical ladder, and the change of the air pressure value is also fast, so that the air pressure change rate is large when the user takes the vertical ladder, and the slope of the slope part in fig. 6 is large; when the escalator is taken, the moving speed is slower than that when the escalator is taken, so that the air pressure change rate is smaller than that when the escalator is taken, and the slope of the inclined line part in the figure 7 is smaller than that of the inclined line part in the figure 6; compared with the vertical stairs and the escalator, the moving speed is slower when climbing stairs, and the change of the air pressure value is also slower, so that the air pressure change rate is minimum when climbing stairs, and the slope of the inclined line part in fig. 8 is smaller than that of the inclined line part in fig. 7.
In summary, in a normal situation, the air pressure change rate when the escalator is taken is greater than the air pressure change rate when the escalator is taken, and the air pressure change rate when the escalator is taken is greater than the air pressure change rate when the escalator is taken. Therefore, the inter-floor movement pattern can be identified from the air pressure change rate.
However, on the basis of identifying the inter-floor movement modes according to the air pressure change rate, the air pressure change rates under the two inter-floor movement modes are close to each other and can be judged mistakenly, so that the standard deviation of the air pressure change rate in the whole inter-floor movement process can be calculated, and then the inter-floor movement modes are identified according to the air pressure change rate and the standard deviation of the air pressure change rate, so that the identification accuracy of the inter-floor movement modes is improved.
The standard deviation is the sum of the squares of all numbers in a certain set of data minus the mean, and the result is divided by the number of the set of numbers (or the number is minus one, i.e. the variance), and the obtained value is set to be the number of the root sign. The standard deviation of the air pressure change rate is obtained by subtracting the sum of squares of the average values of the air pressure change rates from the air pressure change rate corresponding to each partial air pressure value, dividing the result by the number of the air pressure change rates (or subtracting one from the number), and dividing the obtained value by the number of the air pressure change rates. It will be appreciated that the standard deviation is used to characterize the variance of the set of data, and that the smaller the standard deviation (i.e., the closer to 0), the more concentrated the set of data.
104. And the identification device identifies the target moving mode of the intelligent equipment in the moving process between floors according to the air pressure change rate and the standard deviation of the air pressure change rate.
The target moving mode comprises climbing stairs, riding an escalator or riding a straight ladder.
It can be understood that when riding the escalator, the escalator can be regarded as moving at a constant speed, and the air pressure change rate is basically unchanged, so that the standard deviation of the air pressure change rate is smaller and close to 0 when riding the escalator; when the escalator is used, the moving speed changes in a small range, so the air pressure change rate also changes in a small range, and the standard deviation of the air pressure change rate is larger when the escalator is used. Compare and take the staircase and take the vertical ladder, because the smart machine user is difficult to keep the uniform velocity removal when climbing the staircase, atmospheric pressure change rate is very unstable, so atmospheric pressure change rate standard deviation is the biggest when climbing the staircase.
In summary, in a normal situation, the standard deviation of the air pressure change rate when climbing stairs is larger than the standard deviation of the air pressure change rate when taking a straight stair, and the standard deviation of the air pressure change rate when taking the straight stair is larger than the standard deviation of the air pressure change rate when taking an escalator.
As an optional implementation manner, step 104 may specifically include steps 1041 to 1046:
1041. the identification device judges whether the standard deviation of the air pressure change rate meets a preset condition of approximately equal to zero or not;
1042. if the standard deviation of the air pressure change rate meets the preset condition of being approximately equal to zero, the identification device judges whether the air pressure change rates belong to a third preset range, and if so, identifies that the target moving mode of the intelligent equipment in the moving process between floors is to take an escalator; the third preset range consists of a lower threshold value and an upper threshold value, and the lower threshold value is smaller than the upper threshold value;
1043. if the standard deviation of the air pressure change rate does not meet the preset condition of being approximately equal to zero, the identification device acquires a first number of first air pressure change rates smaller than a lower limit threshold value in the air pressure change rate and acquires a second number of second air pressure change rates larger than an upper limit threshold value in the air pressure change rate;
1044. the identification device judges whether the first number is larger than the second number;
1045. if the first number is larger than the second number, the identification device identifies that the target moving mode of the intelligent equipment in the moving process between floors is stair climbing;
1046. if the first quantity is not larger than the second quantity, the identification device identifies that the target moving mode of the intelligent equipment in the moving process between floors is a taking vertical ladder.
This embodiment is implemented by determining whether the standard deviation of the rate of change of air pressure is approximately equal to zero; on one hand, if the air pressure change rate is equal to zero, the air pressure change rate can be regarded as uniform movement, whether the air pressure change rate belongs to a third preset range is further judged, and if the air pressure change rate belongs to the third preset range, the inter-floor movement mode is identified as taking an escalator; on the other hand, if the air pressure change rate is not equal to zero, the upper limit door value and the lower limit door value of a third preset range are utilized to further determine whether the air pressure change rate is smaller than the lower limit door value or larger than the upper limit door value, so that whether the inter-floor movement mode is stair climbing or straight stair riding is identified; therefore, the stair climbing, the escalator taking or the straight ladder taking can be accurately identified, and the identification accuracy of the inter-floor moving mode is further improved.
Therefore, by implementing the method described in fig. 1, the inter-floor movement mode can be identified based on the air pressure change in the inter-floor movement process, so that more accurate motion detection is provided and better user experience is obtained; in addition, the time sliding window is arranged to slide by the preset step length which is less than or equal to the preset unit time length (namely the size of the time sliding window), and a certain part of air pressure data in the air pressure data is obtained by sliding each time, so that the utilization rate of the air pressure data can be improved, the information quantity loss in the air pressure data is reduced, the accuracy of the standard deviation of the air pressure change rate and the air pressure change rate is improved, and the identification accuracy of the moving mode between floors is improved.
Example two
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating another method for identifying an inter-floor movement manner according to an embodiment of the present invention. As shown in fig. 2, the method for identifying the inter-floor movement pattern may include the steps of:
201 to 203. For the descriptions of steps 201 to 203, please refer to the detailed descriptions of steps 101 to 103 in the first embodiment, which is not repeated herein.
Alternatively, before performing step 201, the following steps S1 to S3 may also be performed:
and S1, when the intelligent equipment is detected to enter the indoor environment from the outdoor environment, the recognition device starts the air pressure sensing device of the intelligent equipment to detect the air pressure value around the intelligent equipment in real time.
The air pressure value around the intelligent device may specifically be the atmospheric pressure in the ambient air at the position where the intelligent device is located, and the air pressure sensing device may be a barometer which is arranged on the intelligent device and used for measuring the atmospheric pressure, and the barometer may be a mercury barometer or a liquid-free barometer.
And S2, judging whether the intelligent equipment has the inter-floor movement behavior according to the air pressure value by the identification device.
Further optionally, before executing step S2, the method may further include receiving network signal strengths of the plurality of wireless access points received by the intelligent device in the indoor environment, determining a distribution condition of the plurality of wireless access points according to the network signal strengths, and determining whether the indoor environment where the intelligent device is located is a flat-floor environment according to the distribution condition, where the flat-floor environment is specifically a flat-floor room with only one floor; if the indoor environment where the intelligent device is located is judged not to be the flat-bed environment, the step S2 is executed, so that the step of judging whether the intelligent device has the inter-floor movement behavior according to the air pressure value can be executed when the indoor environment where the intelligent device is located is judged not to be the flat-bed environment, and the power consumption and the calculation amount of the device can be reduced.
Alternatively, step S2 may include: the identification device monitors whether the air pressure value is within a preset stable range in real time, and if the air pressure value is not within the preset stable range, the time length reaches the specified time length, the intelligent device is judged to have floor movement.
And S3, if the inter-floor movement behavior occurs, the recognition device takes the target air pressure value detected by the air pressure sensing device between the starting time and the ending time of the inter-floor movement behavior as the air pressure data acquired in the inter-floor movement process.
And S1-S3 are implemented, the inter-floor movement behavior of the intelligent equipment is detected, the process between the starting time and the ending time of the inter-floor movement behavior is regarded as the inter-floor movement process, and the air pressure value detected between the two times is used as air pressure data, so that the movement mode of the inter-floor movement process is identified, more accurate motion detection can be further provided, and better user experience is obtained.
Further optionally, if the intelligent device is judged to have the inter-floor movement behavior, the building where the intelligent device is located and the floor where the intelligent device is located in the building can be determined; then judging whether the floor is a top floor or a bottom floor of the building; if the floor is the top of the building, judging that the inter-floor movement behavior is a downstairs behavior; and if the floor is the bottom building of the building, judging that the inter-floor movement behavior is the upstairs going behavior.
Through the embodiment, the building and the floor where the intelligent device is located are further determined after the intelligent device sends the inter-floor movement behavior, so that whether the inter-floor movement behavior is the down-floor behavior or the up-floor behavior is judged, the motion detection result can meet the requirements of users, and the viscosity of the users is increased.
204. The identification device acquires the number of target air pressure change rates smaller than a first preset threshold in the air pressure change rate.
205. The identification device judges whether the number of the target air pressure change rates reaches a specified number and the standard deviation of the air pressure change rates reaches a second preset threshold value. If not, go to step 206; if yes, go to step 209.
206. The identification device judges whether the standard deviation of the air pressure change rate reaches a third preset threshold value. If yes, go to step 207; otherwise, step 208 is performed.
In the embodiment of the invention, the first preset threshold, the second preset threshold and the third preset threshold can be set by developers through a large number of experimental test results.
207. The identification device identifies the target moving mode of the intelligent equipment in the moving process between floors as taking a vertical ladder.
208. The identification device identifies the target moving mode of the intelligent equipment in the moving process between floors as taking the escalator.
209. The identification device identifies the target moving mode of the intelligent equipment in the moving process between floors as stair climbing.
It can be understood that if the number of the target air pressure change rates smaller than the first preset threshold reaches a specified number, most of the air pressure change rates are considered to be small, and the standard deviation of the air pressure change rates reaches the second preset threshold, and the standard deviation of the air pressure change rates is considered to be large, so that the stair climbing is determined; otherwise, distinguishing and identifying the straight elevator and the escalator by a set third preset threshold, and judging as the straight elevator when the standard deviation of the air pressure change rate reaches (i.e. is equal to or greater than) the third preset threshold; and when the standard deviation of the air pressure change rate does not reach (namely is smaller than) a third preset threshold value, judging that the escalator is taken.
As an alternative embodiment, the smart device may be embodied as a wearable device, which may be worn directly on the user or a portable electronic device integrated into the user's clothing or accessory. Wearable equipment is not only a hardware equipment, can realize powerful intelligent function through software support and data interaction, high in the clouds interaction more, for example: the system has the functions of calculation, positioning and alarming, and can be connected with various terminals. Wearable devices may include, but are not limited to, smart watches or smart bracelets supported on wrists, smart rings supported on fingers, smart shoes or smart socks supported on feet, smart glasses supported on heads, smart helmets or smart headbands, and the like, as well as various non-mainstream products such as smart clothing, bags, crutches, accessories, and the like.
Based on this, the recognition apparatus may also perform the following steps S4 to S6:
s4, receiving the inquiry time period sent by the management and control terminal of the wearable device.
In the embodiment of the invention, the control terminal and the wearable device can be provided with a connection or binding relationship in advance through the background server, and the control terminal can be a mobile phone, a tablet computer or a wearable device and the like, so that a user of the control terminal can inquire the motion detection condition of the user of the wearable device through the control terminal. The query time period may be several minutes, several hours, several days, several weeks, etc., which is not specifically limited in this embodiment of the present invention.
And S5, acquiring a plurality of inquiry inter-floor movement processes of the wearable device in the inquiry time period.
Optionally, after the identifying device performs step 207, step 208, or step 209 and before performing step S5, the identifying device may associate the target moving mode of the intelligent device in the moving process between floors, which is identified in step 207, step 208, or step 209, with the moving process between floors, and store the target moving mode in the moving process between floors into a motion detection database, where several historical moving modes between floors and a historical moving mode corresponding to each historical moving process between floors are stored in the motion detection database.
Accordingly, step S5 may specifically include: and inquiring a plurality of inquiry inter-floor movement processes of the wearable equipment matched with the inquiry time period and an inquiry movement mode corresponding to each inquiry inter-floor movement process from the motion detection database.
And S6, arranging the query moving modes corresponding to the moving process between each query floor according to the time sequence, and sending the arrangement result to the control terminal.
The implementation steps S4 to S6 are that the motion detection condition of the wearable device can be fed back to the management and control terminal of the wearable device by receiving the query time period sent by the management and control terminal of the wearable device, and arranging the query movement modes corresponding to the movement process between each query floor in the query time period and then sending the query movement modes to the management and control terminal, so that the user of the management and control terminal can query the motion detection condition of the user of the wearable device at any time.
It can be seen that, compared with the implementation of the method described in fig. 1, the implementation of the method described in fig. 2 can also accurately identify three inter-floor movement modes, namely, climbing stairs, taking an escalator or taking a straight stair, according to the set first preset threshold, the set second preset threshold and the set third preset threshold, thereby further improving the identification accuracy of the inter-floor movement modes.
In addition, the inter-floor movement behavior of the intelligent device can be detected, the process between the starting time and the ending time of the inter-floor movement behavior is regarded as the inter-floor movement process, and the air pressure value detected between the two times is used as air pressure data, so that the movement mode of the inter-floor movement process is identified, more accurate motion detection can be further provided, and better user experience is obtained. And after the intelligent device sends the inter-floor movement behavior is judged, the building and the floor where the intelligent device is located are further determined so as to judge whether the inter-floor movement behavior is a downstair behavior or an upstairs behavior, so that the motion detection result can meet the requirements of the user and the viscosity of the user is increased.
In addition, the motion detection condition of the wearable device can be fed back to the management and control terminal of the wearable device, so that the user of the management and control terminal can inquire the motion detection condition of the user of the wearable device at any time.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic structural diagram of an identification apparatus for an inter-floor movement mode according to an embodiment of the present invention. As shown in fig. 3, the device for identifying the moving pattern between floors may include:
the control unit 301 is configured to control a time sliding window to slide on a time axis corresponding to the air pressure data by a preset step length; the air pressure data are acquired during the moving process of the intelligent equipment between floors, the size of the time sliding window is preset unit duration, and the preset unit duration is not less than a preset step length.
The obtaining unit 302 is configured to sequentially obtain partial air pressure data within a time sliding window in the air pressure data to obtain a plurality of partial air pressure data.
And the calculating unit 303 is configured to calculate a standard deviation of the air pressure change rate in the inter-floor movement process according to the air pressure change rate of the partial air pressure data.
The identification unit 304 is used for identifying a target moving mode of the intelligent equipment in the moving process between floors according to the air pressure change rate and the standard deviation of the air pressure change rate; the target moving mode comprises climbing stairs, riding an escalator or riding a straight ladder.
As an optional implementation manner, the device for identifying an inter-floor movement manner shown in fig. 3 may further include an indoor/outdoor determining unit, not shown, for determining whether the smart device is in an outdoor environment before the control unit 301 controls the time sliding window to slide on the time axis corresponding to the air pressure data by a preset step length; correspondingly, the control unit 301 is specifically configured to control the time sliding window to slide on the time axis corresponding to the air pressure data by a preset step length when the indoor and outdoor determining unit determines that the intelligent device is not located in the outdoor environment. Through the embodiment, the identification of the inter-floor moving mode can be carried out when the intelligent equipment is judged not to be in the outdoor environment, and the identification accuracy of the inter-floor moving mode can be improved.
Further optionally, the device for identifying an inter-floor movement manner shown in fig. 3 may further include a motion monitoring unit, not shown, configured to determine, when the indoor and outdoor determining unit determines that the smart device is in an outdoor environment and the smart device user is in a motion state, a motion direction and a motion speed of a current motion according to a change size and a change time of an air pressure value corresponding to a position of the smart device, determine a current motion type according to the motion direction and the motion speed, and obtain calorie data consumed by the smart device user in the current motion type based on a preset corresponding relationship between each motion type and calorie consumption. Exemplarily, when the change magnitude of the air pressure value is within a first preset range, determining that the current motion type is walking motion; when the change of the air pressure value periodically rises and then falls, and the difference value of rising and falling every time is in a second preset range, determining that the current exercise type is running or jumping exercise; and when the change of the atmospheric pressure value continuously rises, determining that the current motion type is climbing or mountain climbing motion.
Through the embodiment, the calorie can be accurately calculated through the air pressure value so as to truly reflect calorie data consumed by a user of the intelligent device.
Further optionally, the indoor and outdoor determining unit is specifically configured to obtain an ultraviolet intensity value and a light brightness value of an environment where the intelligent device is located, then determine whether the ultraviolet intensity value reaches a preset intensity value and whether the light brightness value reaches a preset brightness value, and determine that the intelligent device is located in the outdoor environment if the ultraviolet intensity value reaches the preset intensity value and the light brightness value reaches the preset brightness value; otherwise, the intelligent device is judged to be in the indoor environment. So, through the detection that combines ultraviolet ray and light, compare ultraviolet intensity value and preset intensity value to and compare light brightness value and preset brightness value, can improve and be in the judgement rate of accuracy of indoor outer environment to smart machine.
As an alternative embodiment, in the identification apparatus for an inter-floor movement pattern shown in fig. 3, the identification unit 304 may include the following sub-units, not shown:
the first judgment subunit is used for judging whether the standard deviation of the air pressure change rate meets a preset condition of approximately equal to zero or not;
the second judgment subunit is used for judging whether the air pressure change rates all belong to a third preset range when the first judgment subunit judges that the standard deviation of the air pressure change rate meets a preset condition approximately equal to zero;
the first identification subunit is used for identifying that the target moving mode of the intelligent equipment in the moving process between floors is to take the escalator when the second judgment subunit judges that the air pressure change rates are all within the third preset range; the third preset range consists of a lower threshold value and an upper threshold value, and the lower threshold value is smaller than the upper threshold value;
the acquiring subunit is used for acquiring a first quantity of first air pressure change rates smaller than a lower limit value in the air pressure change rates and acquiring a second quantity of second air pressure change rates larger than an upper limit value in the air pressure change rates when the first judging subunit judges that the standard deviation of the air pressure change rates does not meet a preset condition approximately equal to zero;
a third judging subunit, configured to judge whether the first number is greater than the second number;
the second identification subunit is used for identifying that the target moving mode of the intelligent equipment in the moving process between floors is stair climbing when the third judgment subunit judges that the first number is larger than the second number;
and the third identification subunit is used for identifying that the target movement mode of the intelligent equipment in the movement process between the floors is the riding vertical ladder when the third judgment subunit judges that the first number is not more than the second number.
This embodiment is implemented by determining whether the standard deviation of the rate of change of air pressure is approximately equal to zero; on one hand, if the air pressure change rate is equal to zero, the air pressure change rate can be regarded as uniform movement, whether the air pressure change rate belongs to a third preset range is further judged, and if the air pressure change rate belongs to the third preset range, the inter-floor movement mode is identified as taking an escalator; on the other hand, if the air pressure change rate is not equal to zero, the upper limit door value and the lower limit door value of a third preset range are utilized to further determine whether the air pressure change rate is smaller than the lower limit door value or larger than the upper limit door value, so that whether the inter-floor movement mode is stair climbing or straight stair riding is identified; therefore, the stair climbing, the escalator taking or the straight ladder taking can be accurately identified, and the identification accuracy of the inter-floor moving mode is further improved.
Therefore, the identification device for the inter-floor movement mode shown in fig. 3 can identify the inter-floor movement mode based on the air pressure change in the inter-floor movement process, so as to provide more accurate motion detection and obtain better user experience; in addition, the time sliding window is arranged to slide by the preset step length which is less than or equal to the preset unit time length (namely the size of the time sliding window), and a certain part of air pressure data in the air pressure data is obtained by sliding each time, so that the utilization rate of the air pressure data can be improved, the information quantity loss in the air pressure data is reduced, the accuracy of the standard deviation of the air pressure change rate and the air pressure change rate is improved, and the identification accuracy of the moving mode between floors is improved.
Example four
Referring to fig. 4, fig. 4 is a schematic structural diagram of another identification apparatus for an inter-floor movement manner according to an embodiment of the present invention. The inter-floor movement pattern recognition apparatus shown in fig. 4 is optimized by the inter-floor movement pattern recognition apparatus shown in fig. 3, and compared with fig. 3, the inter-floor movement pattern recognition apparatus shown in fig. 4 may further include:
a starting unit 305, configured to start the air pressure sensing device of the smart device to detect an air pressure value around the smart device in real time if it is detected that the smart device enters an indoor environment from an outdoor environment before the control unit 301 controls the time sliding window to slide on a time axis corresponding to the air pressure data by a preset step length.
And the judging unit 306 is configured to judge whether the intelligent device has an inter-floor movement behavior according to the air pressure value.
The obtaining unit 302 is further configured to, when the determining unit 306 determines that the intelligent device has an inter-floor movement behavior, use a target air pressure value detected by the air pressure sensing device between the start time and the end time of the inter-floor movement behavior as air pressure data acquired during the inter-floor movement.
Further optionally, the determining unit 306 is specifically configured to receive network signal strengths of a plurality of wireless access points received by the intelligent device in an indoor environment, determine a distribution situation of the plurality of wireless access points according to the network signal strengths, and determine whether the indoor environment where the intelligent device is located is a flat-layer environment according to the distribution situation, where the flat-layer environment is specifically a flat house with only one layer; if the indoor environment where the intelligent equipment is located is judged to be not the flat-bed environment, whether the intelligent equipment has the inter-floor movement behavior is judged according to the air pressure value, so that the step of judging whether the intelligent equipment has the inter-floor movement behavior according to the air pressure value can be executed when the indoor environment where the intelligent equipment is located is judged to be the non-flat-bed environment, and the power consumption and the calculation amount of the equipment can be reduced.
Optionally, the device for identifying the moving manner between floors shown in fig. 4 may further include:
the determining unit 307 is configured to determine the building where the intelligent device is located and the floor where the intelligent device is located when the determining unit 306 determines that the intelligent device has the inter-floor movement behavior.
The determination unit 308 is configured to determine that the inter-floor movement behavior is a downstairs behavior when the floor is a top floor of the building; and when the floor is the bottom floor of the building, judging that the inter-floor movement behavior is the upstairs going behavior.
Further optionally, the smart device may be embodied as a wearable device; the identification means for the inter-floor movement pattern shown in fig. 4 may further include:
the receiving unit 309 is configured to receive an inquiry time period sent by a management and control terminal of the wearable device.
The query unit 310 is configured to obtain a plurality of query floor movement processes of the wearable device in a query time period.
And the sending unit 311 is configured to arrange the query movement modes corresponding to the movement process between each query floor according to the time sequence, and send the arrangement result to the management and control terminal.
As an alternative implementation, the above-mentioned identification unit 304 may include the following sub-units:
the obtaining subunit 3041 is configured to obtain the number of target air pressure change rates smaller than a first preset threshold in the air pressure change rate.
The first identifying subunit 3042 is configured to identify, when the number reaches the specified number and the standard deviation of the air pressure change rate reaches a second preset threshold, that the target moving mode of the intelligent device in the inter-floor moving process is stair climbing.
The determining subunit 3043 is configured to determine whether the standard deviation of the air pressure change rate reaches a third preset threshold value when the number does not reach the specified number and the standard deviation of the air pressure change rate does not reach the second preset threshold value.
A second identification subunit 3044 configured to identify that the target movement mode is an escalator when the determination result of the determination subunit 3043 is negative; and, when the determination result of the determination subunit 3043 is yes, recognize that the target movement manner is the riding vertical ladder.
As can be seen, compared to the identification device for identifying the inter-floor movement pattern shown in fig. 3, the identification device for identifying the inter-floor movement pattern shown in fig. 4 can accurately identify three inter-floor movement patterns, i.e., stair climbing, staircase riding, and vertical stair riding, according to the set first preset threshold, second preset threshold, and third preset threshold, thereby further improving the accuracy of identifying the inter-floor movement pattern.
In addition, the inter-floor movement behavior of the intelligent device can be detected, the process between the starting time and the ending time of the inter-floor movement behavior is regarded as the inter-floor movement process, and the air pressure value detected between the two times is used as air pressure data, so that the movement mode of the inter-floor movement process is identified, more accurate motion detection can be further provided, and better user experience is obtained. And after the intelligent device sends the inter-floor movement behavior is judged, the building and the floor where the intelligent device is located are further determined so as to judge whether the inter-floor movement behavior is a downstair behavior or an upstairs behavior, so that the motion detection result can meet the requirements of the user and the viscosity of the user is increased.
In addition, the motion detection condition of the wearable device can be fed back to the management and control terminal of the wearable device, so that the user of the management and control terminal can inquire the motion detection condition of the user of the wearable device at any time.
EXAMPLE five
Referring to fig. 5, fig. 5 is a schematic structural diagram of an intelligent device according to an embodiment of the present invention. As shown in fig. 5, the smart device may include:
a memory 501 in which executable program code is stored;
a processor 502 coupled to a memory 501;
the processor 502 calls the executable program code stored in the memory 501 to execute the method for identifying the inter-floor movement pattern of any one of fig. 1 to 2.
It should be noted that the intelligent device shown in fig. 5 may further include components, which are not shown, such as a power supply, an input key, a speaker, a microphone, a screen, an RF circuit, a Wi-Fi module, a bluetooth module, and a sensor, which are not described in detail in this embodiment.
The embodiment of the invention discloses a computer readable storage medium which stores a computer program, wherein the computer program enables a computer to execute the identification method of the moving mode between floors in any one of figures 1-2.
Embodiments of the present invention also disclose a computer program product, wherein, when the computer program product is run on a computer, the computer is caused to execute part or all of the steps of the method as in the above method embodiments.
The embodiment of the present invention also discloses an application publishing platform, wherein the application publishing platform is used for publishing a computer program product, and when the computer program product runs on a computer, the computer is caused to execute part or all of the steps of the method in the above method embodiments.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Those skilled in the art should also appreciate that the embodiments described in this specification are exemplary and alternative embodiments, and that the acts and modules illustrated are not required in order to practice the invention.
In various embodiments of the present invention, it should be understood that the sequence numbers of the above-mentioned processes do not imply an inevitable order of execution, and the execution order of the processes should be determined by their functions and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated units, if implemented as software functional units and sold or used as a stand-alone product, may be stored in a computer accessible memory. Based on such understanding, the technical solution of the present invention, which is a part of or contributes to the prior art in essence, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for causing a computer device (which may be a personal computer, a server, a network device, or the like, and may specifically be a processor in the computer device) to execute part or all of the steps of the above-described method of each embodiment of the present invention.
In the embodiments provided herein, it should be understood that "B corresponding to a" means that B is associated with a from which B can be determined. It should also be understood, however, that determining B from a does not mean determining B from a alone, but may also be determined from a and/or other information.
Those skilled in the art will appreciate that some or all of the steps in the methods of the above embodiments may be implemented by a program instructing associated hardware, and the program may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), compact disc-Read Only Memory (CD-ROM), or other Memory, magnetic disk, magnetic tape, or magnetic tape, Or any other medium which can be used to carry or store data and which can be read by a computer.
The method, the device and the intelligent device for identifying the inter-floor movement mode disclosed by the embodiment of the invention are described in detail, a specific example is applied in the text to explain the principle and the embodiment of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (12)

1. A method for identifying an inter-floor movement mode is characterized by comprising the following steps:
controlling a time sliding window to slide on a time axis corresponding to the air pressure data by a preset step length, and sequentially acquiring partial air pressure data in the time sliding window in the air pressure data to obtain a plurality of partial air pressure data; the air pressure data are acquired by the intelligent equipment in the moving process between floors, the size of the time sliding window is preset unit duration, and the preset unit duration is not less than the preset step length;
calculating to obtain the standard deviation of the air pressure change rate in the moving process between floors according to the air pressure change rate of the partial air pressure data;
identifying a target moving mode of the intelligent equipment in the moving process between floors according to the air pressure change rate and the standard deviation of the air pressure change rate; the target moving mode comprises climbing stairs, taking an escalator or taking a straight ladder.
2. The method of claim 1, wherein identifying the target movement pattern of the smart device during movement between floors according to the barometric pressure change rate and the standard deviation of the barometric pressure change rate comprises:
acquiring the number of target air pressure change rates smaller than a first preset threshold in the air pressure change rates;
if the number reaches a specified number and the standard deviation of the air pressure change rate reaches a second preset threshold value, identifying that the target moving mode of the intelligent equipment in the moving process between floors is stair climbing;
if the number does not reach the specified number and the standard deviation of the air pressure change rate does not reach the second preset threshold, judging whether the standard deviation of the air pressure change rate reaches a third preset threshold or not;
if the third preset threshold value is not reached, identifying that the target moving mode is to take an escalator;
and if the third preset threshold is reached, identifying that the target moving mode is a vertical ladder taking mode.
3. The method of claim 1 or 2, wherein before the controlling the time sliding window to slide in a preset step on the time axis corresponding to the air pressure data, the method further comprises:
when the intelligent equipment is detected to enter the indoor environment from the outdoor environment, starting an air pressure sensing device of the intelligent equipment to detect the air pressure value around the intelligent equipment in real time;
judging whether the intelligent equipment has floor movement behavior according to the air pressure value;
and if the inter-floor movement behavior occurs, taking a target air pressure value detected by the air pressure sensing device between the starting time and the ending time of the inter-floor movement behavior as the air pressure data acquired in the inter-floor movement process.
4. The method of claim 3, further comprising:
if the inter-floor movement behavior occurs, determining a building where the intelligent device is located and a floor where the intelligent device is located in the building;
if the floor is the top floor of the building, judging that the inter-floor movement behavior is a downstairs behavior;
and if the floor is the bottom floor of the building, judging that the inter-floor movement behavior is an upstairs-going behavior.
5. The method of claim 4, wherein the smart device is a wearable device; the method further comprises the following steps:
receiving a query time period sent by a management and control terminal of the wearable device;
acquiring a plurality of inquiry inter-floor movement processes of the wearable equipment in the inquiry time period;
and arranging the query moving modes corresponding to the moving process between the query floors according to the time sequence, and sending the arrangement result to the control terminal.
6. An apparatus for recognizing a moving pattern between floors, comprising:
the control unit is used for controlling the time sliding window to slide on a time axis corresponding to the air pressure data by a preset step length; the air pressure data are acquired by the intelligent equipment in the moving process between floors, the size of the time sliding window is preset unit duration, and the preset unit duration is not less than the preset step length;
the acquisition unit is used for sequentially acquiring partial air pressure data in the time sliding window in the air pressure data to obtain a plurality of partial air pressure data;
the calculation unit is used for calculating and obtaining the standard deviation of the air pressure change rate in the moving process between the floors according to the air pressure change rate of the partial air pressure data;
the identification unit is used for identifying a target moving mode of the intelligent equipment in the moving process between floors according to the air pressure change rate and the standard deviation of the air pressure change rate; the target moving mode comprises climbing stairs, taking an escalator or taking a straight ladder.
7. The apparatus of claim 6, wherein the identification unit comprises:
the acquiring subunit is used for acquiring the number of target air pressure change rates smaller than a first preset threshold in the air pressure change rates;
the first identification subunit is used for identifying that the target moving mode of the intelligent equipment in the moving process between the floors is stair climbing when the number reaches a specified number and the standard deviation of the air pressure change rate reaches a second preset threshold;
the judging subunit is configured to judge whether the standard deviation of the air pressure change rate reaches a third preset threshold value when the quantity does not reach the specified quantity and the standard deviation of the air pressure change rate does not reach the second preset threshold value;
the second identification subunit is used for identifying that the target moving mode is an escalator when the judgment result of the judgment subunit is negative; and recognizing that the target moving mode is a straight riding ladder when the judgment result of the judging subunit is yes.
8. The apparatus of claim 6 or 7, further comprising:
the starting unit is used for starting the air pressure sensing device of the intelligent equipment to detect the air pressure value around the intelligent equipment in real time if the intelligent equipment is detected to enter the indoor environment from the outdoor environment before the time sliding window is controlled by the control unit to slide on the time axis corresponding to the air pressure data by the preset step length;
the judging unit is used for judging whether the intelligent equipment has floor movement behavior according to the air pressure value;
the acquiring unit is further configured to, when the judging unit judges that the intelligent device has the inter-floor movement behavior, use a target air pressure value detected by the air pressure sensing device between the start time and the end time of the inter-floor movement behavior as the air pressure data acquired during the inter-floor movement.
9. The apparatus of claim 8, further comprising:
the determining unit is used for determining a building where the intelligent device is located and a floor where the intelligent device is located when the judging unit judges that the intelligent device has the inter-floor movement behavior;
the judging unit is used for judging that the inter-floor movement behavior is a downstairs behavior when the floor is a top floor of the building; and when the floor is the bottom floor of the building, judging that the inter-floor movement behavior is an upstairs behavior.
10. The apparatus of claim 9, wherein the smart device is a wearable device; the device further comprises:
the receiving unit is used for receiving the query time period sent by the management and control terminal of the wearable device;
the query unit is used for acquiring a plurality of query floor movement processes of the wearable equipment in the query time period;
and the sending unit is used for arranging the query moving modes corresponding to the moving process between the query floors according to the time sequence and sending the arrangement result to the control terminal.
11. A smart device, comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory for executing a method of identifying an inter-floor movement pattern as claimed in any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, wherein the computer program causes a computer to execute a method of identifying an inter-floor movement pattern according to any one of claims 1 to 5.
CN201910787041.2A 2019-08-25 2019-08-25 Method and device for identifying inter-floor movement mode and intelligent equipment Pending CN111750917A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910787041.2A CN111750917A (en) 2019-08-25 2019-08-25 Method and device for identifying inter-floor movement mode and intelligent equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910787041.2A CN111750917A (en) 2019-08-25 2019-08-25 Method and device for identifying inter-floor movement mode and intelligent equipment

Publications (1)

Publication Number Publication Date
CN111750917A true CN111750917A (en) 2020-10-09

Family

ID=72672829

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910787041.2A Pending CN111750917A (en) 2019-08-25 2019-08-25 Method and device for identifying inter-floor movement mode and intelligent equipment

Country Status (1)

Country Link
CN (1) CN111750917A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101367478A (en) * 2007-08-17 2009-02-18 株式会社日立制作所 Elevator apparatus
CN101633466A (en) * 2009-05-22 2010-01-27 苏州新达电扶梯部件有限公司 Elevator system based on pressure sensor
JP2013227116A (en) * 2012-04-25 2013-11-07 Hitachi Ltd Elevator
CN104251690A (en) * 2013-06-27 2014-12-31 联想(北京)有限公司 Method and electronic device for acquiring relative height
CN106714102A (en) * 2016-11-15 2017-05-24 南京航空航天大学 Method of using intelligent mobile phone to assist indoor positioning
US20180201360A1 (en) * 2017-01-17 2018-07-19 Airbus Operations S.L. Lifting surface
CN109525935A (en) * 2018-11-23 2019-03-26 武汉大学 A kind of intelligent floor cognitive method and control system for pervasive indoor environment
CN109579846A (en) * 2018-12-13 2019-04-05 中国科学院计算技术研究所 Mixing floor location method based on the identification of floor switching behavior

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101367478A (en) * 2007-08-17 2009-02-18 株式会社日立制作所 Elevator apparatus
CN101633466A (en) * 2009-05-22 2010-01-27 苏州新达电扶梯部件有限公司 Elevator system based on pressure sensor
JP2013227116A (en) * 2012-04-25 2013-11-07 Hitachi Ltd Elevator
CN104251690A (en) * 2013-06-27 2014-12-31 联想(北京)有限公司 Method and electronic device for acquiring relative height
CN106714102A (en) * 2016-11-15 2017-05-24 南京航空航天大学 Method of using intelligent mobile phone to assist indoor positioning
US20180201360A1 (en) * 2017-01-17 2018-07-19 Airbus Operations S.L. Lifting surface
CN109525935A (en) * 2018-11-23 2019-03-26 武汉大学 A kind of intelligent floor cognitive method and control system for pervasive indoor environment
CN109579846A (en) * 2018-12-13 2019-04-05 中国科学院计算技术研究所 Mixing floor location method based on the identification of floor switching behavior

Similar Documents

Publication Publication Date Title
CN108076218B (en) Charging reminding method and mobile terminal
CN109874112B (en) Positioning method and terminal
CN108304758B (en) Face characteristic point tracking method and device
US11237272B2 (en) Method and computer processing apparatus for generating data relating to a vertical structure of a built environment and detecting a floor change
CN111336989A (en) Method and apparatus for positioning using normally open barometer
US9632107B2 (en) Movement amount estimation system, movement amount estimation method and mobile terminal
KR20170130190A (en) Smart terminal service system and smart terminal processing data
CN107995005B (en) Internet of things network card flow pool monitoring method and device and computer readable storage medium
CN107608855B (en) Reminding method and mobile terminal
CN108078561A (en) Method for obtaining heart rate and the electronic equipment for this method
US20200211410A1 (en) Method and apparatus for providing guide information associated with exercise intensity on basis of user activity information
US11059438B2 (en) Vehicle on-boarding recognition method and electronic device implementing same
US9619626B2 (en) Method and apparatus for identifying exercise information of user
CN110907981A (en) Positioning mode control method and device and electronic equipment
CN111757262B (en) Positioning reminding method and system based on electronic fence and wearable device
CN107784298B (en) Identification method and device
CN109141355B (en) Relative height measuring method based on multiple sensors and wearable equipment
CN108225369B (en) Information acquisition method and device and related medium product
US11326939B2 (en) Electronic device for measuring illuminance, and operating method therefor
CN112414370B (en) Building floor positioning method, electronic device and computer storage medium
CN107835304B (en) Method and device for controlling mobile terminal, mobile terminal and storage medium
CN111750917A (en) Method and device for identifying inter-floor movement mode and intelligent equipment
US20210038142A1 (en) Electronic device and method for providing personalized biometric information based on biometric signal using same
CN111366170B (en) State determination method and electronic equipment
CN112817423A (en) Low-power-consumption positioning method, system, mobile terminal and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination