CN111818133A - Method for acquiring non-intentional data of mobile phone sensor - Google Patents
Method for acquiring non-intentional data of mobile phone sensor Download PDFInfo
- Publication number
- CN111818133A CN111818133A CN202010568532.0A CN202010568532A CN111818133A CN 111818133 A CN111818133 A CN 111818133A CN 202010568532 A CN202010568532 A CN 202010568532A CN 111818133 A CN111818133 A CN 111818133A
- Authority
- CN
- China
- Prior art keywords
- mobile phone
- data
- connection
- control end
- acquisition
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 20
- 230000006399 behavior Effects 0.000 claims abstract description 17
- 230000001133 acceleration Effects 0.000 claims description 7
- 238000004891 communication Methods 0.000 claims description 7
- 230000004044 response Effects 0.000 claims description 3
- 238000013480 data collection Methods 0.000 description 5
- 230000004075 alteration Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000005358 geomagnetic field Effects 0.000 description 1
- 238000002372 labelling Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention relates to a method for acquiring non-intentional data of a mobile phone sensor, which comprises the following steps: A. the collected person starts the mobile phone, the mobile phone automatically establishes WebSocket connection with the control end of the background, and a connection ID is generated; B. the control personnel select a connection ID at the control end, identify the expansion information collected this time and send an instruction for starting collection to the mobile phone; C. the mobile phone starts to acquire data through a sensor in the mobile phone through a sensor monitor in the mobile phone according to the received instruction, and transmits the acquired data to the control end in real time; D. the control end sends an instruction for stopping collecting to the mobile phone which is collecting data through connecting ID; E. and the mobile phone receiving the acquisition stopping instruction terminates the acquisition of the data. The invention can simultaneously acquire data of a plurality of mobile phones through one control end, and can acquire data of normal behaviors under the condition that an acquired person does not know the start and stop of acquisition, thereby effectively reducing dirty data during acquisition.
Description
Technical Field
The invention relates to a data acquisition method, in particular to a method for acquiring non-intentional data of a mobile phone sensor.
Background
Various sensors are usually provided on the mobile phone, including an acceleration sensor, a magnetic field sensor, a direction sensor, and the like. The sensors can acquire data such as acceleration of the mobile phone along the three-axis direction, angular velocity of rotation along the three-axis direction, geomagnetic field intensity vector and the like in real time. Meanwhile, the behavior of the mobile phone holder can be analyzed through the data. A part of data labeling companies provide behavior data acquisition services based on mobile phone sensors, and the conventional method used in the acquisition process is as follows:
the conventional behavior data collection method is a buried point, and a collection code is added in a certain process of behavior data needing to be collected, and certain events are used as marks of the beginning and the end of the process. Such as from entering an account number to clicking on the login end, from taking a picture to uploading the picture to the end, etc. The acquisition code is executed when the acquired person triggers an event marked as start and ends when the acquired person triggers an event marked as end. The start and end of the acquisition are actively triggered by the person being acquired to control the start event and the end event.
The drawbacks of this data acquisition approach include:
1. the person being acquired is required to actively trigger the start and end of the acquisition, which may result in some dirty data being collected. For example, when behavior data corresponding to walking is collected, a person to be collected clicks a start button to put down the mobile phone and starts walking, and during the period, sensor data of the step of putting down the mobile phone is collected.
2. When the person to be collected knows that the person is being collected, some deliberate actions may be performed, so that errors exist between the collected data and the actual scene.
Disclosure of Invention
The invention provides a method for acquiring non-intentional data of a mobile phone sensor, which aims to realize the structure of one control end and multiple acquisition ends, and enables an acquired person to acquire data of normal behaviors without controlling the start and stop of acquisition by himself or herself.
The invention relates to a method for acquiring non-intentional data of a mobile phone sensor, which comprises the following steps:
A. the collected person starts a mobile phone, the mobile phone and a control end of the background automatically establish WebSocket connection through a communication channel, and a connection ID is generated;
B. a control person selects a corresponding connection ID at a control end, at least identifies expansion information containing the scene and the behavior collected at this time, clicks a key for starting collection, and sends a command for starting collection to the mobile phone through WebSocket connection;
C. the mobile phone starts to acquire data through a sensor monitor in the mobile phone according to a received instruction, wherein the sensor comprises a mobile phone acceleration sensor, a magnetic field sensor and/or a direction sensor, and transmits the acquired data to a control end through WebSocket connection in real time;
D. the control end sends an instruction for stopping collecting to the mobile phone which is collecting data through connecting ID;
E. and the mobile phone receiving the acquisition stopping instruction terminates the acquisition of the data.
The collected person knows that the mobile phone data can be collected in advance, so that after the mobile phone is started, the mobile phone can automatically establish WebSocket connection with the control end of the background through a communication channel, and generate a corresponding connection ID. The mobile phone data mainly refers to the direction or spatial data of the mobile phone, such as real-time acceleration, magnetic field strength, orientation and/or rotation of the mobile phone. Because the collected person does not know when and where the data collection is carried out, when the control person carries out the data collection on the mobile phone, the behavior of the control person has no deliberate behavior, and redundant data in the period from the time of the control collection of the collected person to the time of the normal collection of the collected person can be avoided. The objectivity and the accuracy of the data are achieved, a control person can control a plurality of collected mobile phones at the control end at the same time, and the collection mode of one control end and a plurality of collected ends is achieved.
Specifically, the step a comprises:
A1. the mobile phone automatically sends a WebSocket connection request to a control end of the background through a communication channel;
A2. the control end establishes connection according to the received WebSocket connection request, and sends the generated UUID (universal Unique Identifier) as the current connection ID to the mobile phone;
A3. the control end marks that the state of the mobile phone corresponding to the current connection is not collected, and establishes a key-value pair by taking the current connection ID as a key and the state of the mobile phone as a value, and stores the key-value pair into a database (such as a Redis database);
A4. and the mobile phone feeds back the connection ID to the control end as a response of the established connection.
Specifically, the step B includes:
B1. and the control personnel acquires a list containing all the connection IDs through the control end, selects at least one connection ID, at least identifies the scene containing the acquisition, the acquired behavior and the expansion information of the acquisition personnel, and then clicks a key for starting the acquisition. According to the acquisition requirement, the extension information of the identifier can also comprise acquisition time, the time is timed through a timer in the control terminal after the acquisition is started, the control terminal automatically executes the step D after the acquisition time is reached, and an instruction for stopping the acquisition is sent to the mobile phone.
B2. Inquiring data corresponding to the connection ID in a database by taking the selected connection ID as an inquiry condition, adding the expansion information as the value of the data, and modifying the state of the mobile phone in the data in the database to be collected;
B3. and sending the command for starting to collect to the mobile phone corresponding to the connection ID through the WebSocket connection.
Specifically, the step D includes:
D1. a control person selects a connection ID through a control end or the control end sends an acquisition stopping instruction to the mobile phone which is acquiring data according to acquisition duration correspondingly set by the connection ID;
D2. and inquiring data corresponding to the connection ID in a database by taking the selected connection ID as an inquiry condition, and modifying the state of the mobile phone in the data to stop acquisition.
Specifically, the step E includes: and the mobile phone receiving the acquisition stopping instruction terminates the acquisition of data and cancels the sensor monitor in the mobile phone.
The method for acquiring the non-intentional data of the mobile phone sensor can acquire the data of a plurality of mobile phones simultaneously through one control end, can acquire the data of normal behaviors under the condition that an acquired person does not know the start and stop of acquisition, and effectively reduces dirty data during acquisition. And the control end and the collected mobile phone can be communicated in a two-way mode, and the control end can control the collection state of the mobile phone in real time.
The present invention will be described in further detail with reference to the following examples. This should not be understood as limiting the scope of the above-described subject matter of the present invention to the following examples. Various substitutions and alterations according to the general knowledge and conventional practice in the art are intended to be included within the scope of the present invention without departing from the technical spirit of the present invention as described above.
Drawings
Fig. 1 is a flow chart of a method for collecting non-intentional data of a mobile phone sensor according to the present invention.
Detailed Description
As shown in fig. 1, the method for collecting non-intentional data of a mobile phone sensor of the present invention includes the steps of:
A. establishing a connection, comprising the steps of:
A1. the collected person starts the mobile phone, and the mobile phone automatically sends a WebSocket connection request to the control end of the background through the communication channel;
A2. the control end establishes connection according to the received WebSocket connection request, and sends the generated UUID (universal Unique Identifier) as the current connection ID to the mobile phone;
A3. the control end marks that the state of the mobile phone corresponding to the current connection is not collected, and establishes a key-value pair by taking the current connection ID as a key and the state of the mobile phone as a value, and stores the key-value pair into a Redis database;
A4. and the mobile phone feeds back the connection ID to the control end as a response of the established connection.
B. Sending a data acquisition instruction:
B1. and the control personnel acquires a list containing all the connection IDs through the control end, selects at least one connection ID, at least identifies the scene containing the acquisition, the acquired behavior and the expansion information of the acquisition personnel, and then clicks a key for starting the acquisition. According to the acquisition requirement, the extension information of the identifier can also comprise acquisition time, the time is timed through a timer in the control terminal after the acquisition is started, the control terminal automatically executes the step D after the acquisition time is reached, and an instruction for stopping the acquisition is sent to the mobile phone.
B2. Querying data corresponding to the connection ID in a Redis database by taking the selected connection ID as a query condition, adding the expansion information as a value of the data, and modifying the state of the mobile phone in the data to be collected in the Redis database;
B3. and sending the command for starting to collect to the mobile phone corresponding to the connection ID through the WebSocket connection.
C. Starting to collect data: the mobile phone starts to collect data through a sensor monitor in the mobile phone according to a received instruction, wherein the sensor comprises a mobile phone acceleration sensor, a magnetic field sensor and/or a direction sensor, and sends the collected data to a control end through WebSocket connection in real time.
D. Sending a data acquisition stopping instruction:
D1. a control person selects a connection ID through a control end or the control end sends an acquisition stopping instruction to the mobile phone which is acquiring data according to acquisition duration correspondingly set by the connection ID;
D2. and inquiring data corresponding to the connection ID in a Redis database by taking the selected connection ID as an inquiry condition, and modifying the state of the mobile phone in the data to stop acquisition.
E. Stopping collecting data: and the mobile phone receiving the acquisition stopping instruction terminates the acquisition of data and cancels the sensor monitor in the mobile phone.
The collected person knows that the mobile phone data can be collected in advance, so that after the mobile phone is started, the mobile phone can automatically establish WebSocket connection with the control end of the background through a communication channel, and generate a corresponding connection ID. The mobile phone data mainly refers to the direction or spatial data of the mobile phone, such as real-time acceleration, magnetic field strength, orientation and/or rotation of the mobile phone. Because the collected person does not know when and where the data collection is carried out, when the control person carries out the data collection on the mobile phone, the behavior of the control person has no deliberate behavior, and redundant data in the period from the time of the control collection of the collected person to the time of the normal collection of the collected person can be avoided. The objectivity and the accuracy of the data are realized, and dirty data in the acquisition process are avoided.
Claims (5)
1. The method for acquiring the non-intentional data of the mobile phone sensor is characterized by comprising the following steps of:
A. the collected person starts a mobile phone, the mobile phone and a control end of the background automatically establish WebSocket connection through a communication channel, and a connection ID is generated;
B. a control person selects a corresponding connection ID at a control end, at least identifies expansion information containing the scene and the behavior collected at this time, clicks a key for starting collection, and sends a command for starting collection to the mobile phone through WebSocket connection;
C. the mobile phone starts to acquire data through a sensor monitor in the mobile phone according to a received instruction, wherein the sensor comprises a mobile phone acceleration sensor, a magnetic field sensor and/or a direction sensor, and transmits the acquired data to a control end through WebSocket connection in real time;
D. the control end sends an instruction for stopping collecting to the mobile phone which is collecting data through connecting ID;
E. and the mobile phone receiving the acquisition stopping instruction terminates the acquisition of the data.
2. The method of claim 1 for collecting non-intentional data for a handset sensor, characterized by: the step A comprises the following steps:
A1. the mobile phone automatically sends a WebSocket connection request to a control end of the background through a communication channel;
A2. the control end establishes connection according to the received WebSocket connection request, and sends the generated UUID as the current connection ID to the mobile phone;
A3. the control end marks that the state of the mobile phone corresponding to the current connection is not collected, and establishes a key-value pair by taking the current connection ID as a key and the state of the mobile phone as a value, and stores the key-value pair into a database;
A4. and the mobile phone feeds back the connection ID to the control end as a response of the established connection.
3. The method of claim 1 for collecting non-intentional data for a handset sensor, characterized by: the step B comprises the following steps:
B1. a control person obtains a list containing all connection IDs through a control end, selects at least one connection ID, at least identifies a scene containing the current collection, collected behaviors and expansion information of a collection person, and then clicks a key for starting collection;
B2. inquiring data corresponding to the connection ID in a database by taking the selected connection ID as an inquiry condition, adding the expansion information as the value of the data, and modifying the state of the mobile phone in the data in the database to be collected;
B3. and sending the command for starting to collect to the mobile phone corresponding to the connection ID through the WebSocket connection.
4. The method of claim 1 for collecting non-intentional data for a handset sensor, characterized by: the step D comprises the following steps:
D1. a control person selects a connection ID through a control end or the control end sends an acquisition stopping instruction to the mobile phone which is acquiring data according to acquisition duration correspondingly set by the connection ID;
D2. and inquiring data corresponding to the connection ID in a database by taking the selected connection ID as an inquiry condition, and modifying the state of the mobile phone in the data to stop acquisition.
5. The method of claim 1 for collecting non-intentional data for a handset sensor, characterized by: the step E comprises the following steps: and the mobile phone receiving the acquisition stopping instruction terminates the acquisition of data and cancels the sensor monitor in the mobile phone.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010568532.0A CN111818133B (en) | 2020-06-19 | 2020-06-19 | Method for acquiring non-intentional data of mobile phone sensor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010568532.0A CN111818133B (en) | 2020-06-19 | 2020-06-19 | Method for acquiring non-intentional data of mobile phone sensor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111818133A true CN111818133A (en) | 2020-10-23 |
| CN111818133B CN111818133B (en) | 2022-11-04 |
Family
ID=72846328
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010568532.0A Active CN111818133B (en) | 2020-06-19 | 2020-06-19 | Method for acquiring non-intentional data of mobile phone sensor |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111818133B (en) |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101867791A (en) * | 2010-04-30 | 2010-10-20 | 东北大学 | Smartphone-based video surveillance system and its monitoring method |
| CN102480749A (en) * | 2010-11-25 | 2012-05-30 | 中国移动通信集团浙江有限公司 | Method, device and system for remotely collecting host process information |
| WO2016015565A1 (en) * | 2014-07-29 | 2016-02-04 | 胡琨 | Method, device and system for wirelessly receiving upload data by smart mobile terminal |
| CN106933472A (en) * | 2017-05-20 | 2017-07-07 | 南京西桥科技有限公司 | A kind of user behavior data acquisition system and its control method based on mobile phone A PP |
| CN107396438A (en) * | 2017-08-25 | 2017-11-24 | 哈尔滨工业大学 | Communication channel construction method, time synchronization method and structural health monitoring method based on smart phone wireless local area network |
| CN108668306A (en) * | 2017-03-28 | 2018-10-16 | 江苏北弓智能科技有限公司 | A kind of data collecting system built in Mobile operating system |
| CN109948077A (en) * | 2018-08-20 | 2019-06-28 | 平安普惠企业管理有限公司 | User behavior data acquisition method, device, equipment and computer storage medium |
-
2020
- 2020-06-19 CN CN202010568532.0A patent/CN111818133B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101867791A (en) * | 2010-04-30 | 2010-10-20 | 东北大学 | Smartphone-based video surveillance system and its monitoring method |
| CN102480749A (en) * | 2010-11-25 | 2012-05-30 | 中国移动通信集团浙江有限公司 | Method, device and system for remotely collecting host process information |
| WO2016015565A1 (en) * | 2014-07-29 | 2016-02-04 | 胡琨 | Method, device and system for wirelessly receiving upload data by smart mobile terminal |
| CN108668306A (en) * | 2017-03-28 | 2018-10-16 | 江苏北弓智能科技有限公司 | A kind of data collecting system built in Mobile operating system |
| CN106933472A (en) * | 2017-05-20 | 2017-07-07 | 南京西桥科技有限公司 | A kind of user behavior data acquisition system and its control method based on mobile phone A PP |
| CN107396438A (en) * | 2017-08-25 | 2017-11-24 | 哈尔滨工业大学 | Communication channel construction method, time synchronization method and structural health monitoring method based on smart phone wireless local area network |
| CN109948077A (en) * | 2018-08-20 | 2019-06-28 | 平安普惠企业管理有限公司 | User behavior data acquisition method, device, equipment and computer storage medium |
Non-Patent Citations (1)
| Title |
|---|
| 董启宏: "《基于智能手机传感器的用户隐私安全研究》", 《中国优秀硕士学位论文全文数据库——信息科技辑》 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111818133B (en) | 2022-11-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3593459B2 (en) | Moving object monitoring method and system | |
| US7099921B1 (en) | Method and apparatus for people to simply communicate their location and activity information | |
| RU2005113233A (en) | SECURING INFORMATION RELATING TO THE MOBILE STATION | |
| US9509950B2 (en) | Information processing system, information processing method, information processing apparatus, and control method and control program of information processing apparatus | |
| CN113064683B (en) | Display method and system for control interface of electric control equipment, terminal and electric control equipment | |
| CN113064642B (en) | Work flow starting method and system of electric control equipment, terminal and electric control equipment | |
| JP2008148281A (en) | Server device for home mobile robot cleaning and home monitoring reservation service and service method thereof | |
| CN103313347A (en) | Method for establishing connection for mobile terminals, mobile terminals and server | |
| CN111273573A (en) | Environmental data monitoring method and device | |
| JP2016036123A (en) | Watching system, watching method, portable terminal, management device, and control method and control program for the same | |
| WO2022194165A1 (en) | Method and system for starting preset platform of electric control device, and terminal and electric control device | |
| CN112882845A (en) | Information transmission method, system and readable storage medium | |
| JP2011091723A (en) | Video recording device and external terminal | |
| CN111818133B (en) | Method for acquiring non-intentional data of mobile phone sensor | |
| JP5454992B2 (en) | Video network system | |
| JP2003162429A (en) | Apparatus, system and method for failure analysis by image information transmission, and program | |
| CN111935627A (en) | One-key roll-call method based on GIS service and storage medium | |
| CN105472101A (en) | Remote help seeking method, main control mobile intelligent terminal and controlled mobile intelligent terminal | |
| JP2006101028A (en) | Monitoring system | |
| JP2018194517A (en) | Management device, location information collection system, and location information collection method | |
| CN114089935B (en) | Screen projection processing method, device, equipment and storage medium | |
| CN113921036A (en) | Monitoring method, monitoring device and storage medium | |
| CN213424166U (en) | Tourist group prevents that visitor loses early warning system | |
| JP2020009081A (en) | Notification apparatus and program | |
| CN114202375A (en) | Information recommendation method and device, electronic equipment and 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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |