WO2021051540A1 - Distance-based information sending method and apparatus, and computer device and storage medium - Google Patents

Distance-based information sending method and apparatus, and computer device and storage medium Download PDF

Info

Publication number
WO2021051540A1
WO2021051540A1 PCT/CN2019/117211 CN2019117211W WO2021051540A1 WO 2021051540 A1 WO2021051540 A1 WO 2021051540A1 CN 2019117211 W CN2019117211 W CN 2019117211W WO 2021051540 A1 WO2021051540 A1 WO 2021051540A1
Authority
WO
WIPO (PCT)
Prior art keywords
vector
distance
designated
information
preset
Prior art date
Application number
PCT/CN2019/117211
Other languages
French (fr)
Chinese (zh)
Inventor
乐志能
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021051540A1 publication Critical patent/WO2021051540A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal

Definitions

  • This application relates to the computer field, in particular to a distance-based information sending method, device, computer equipment and storage medium.
  • APP push message can deliver messages related to related activities, product recommendations, and user rights to users.
  • APP push messages use the Internet network for transmission, and the cost is low.
  • the cost of a push message is about one percent of the SMS. Therefore, it is generally chosen to use APP push messages to reach users, but APP push messages currently have a problem.
  • the delivery rate is low, only about 50%-60%, so if you need a message to the user with a high delivery rate, you usually choose to deliver it by SMS, but the cost is higher.
  • Both of these two message sending schemes have shortcomings, and the traditional technology cannot balance the delivery rate and cost, leading to technical problems such as inadequate and insufficient information delivery or too many short messages, and the cost is too high.
  • the main purpose of this application is to provide a distance-based information sending method, device, computer equipment, and storage medium, aiming to send information in a targeted manner, so as to reduce the cost of information sending while ensuring the delivery rate.
  • this application proposes a distance-based information sending method, which includes the following steps:
  • the target mobile phone number and acquiring the characteristic information of the user of the target mobile phone number, the characteristic information including at least the identity information of the user, the length of time the user uses the APP, and the push of the APP clicked by the user The proportion of messages to all APP push messages received;
  • the target mobile phone number is mapped to a designated vector in a high-dimensional virtual space using the feature information, wherein a plurality of standard high-dimensional vectors are preset in the high-dimensional virtual space , Multiple standard high-dimensional vectors are respectively associated with multiple preset information sending strategies;
  • first distance is the distance between the designated vector and the temporary vector
  • the designated information sending strategy corresponding to the first distance with the largest value is obtained, and according to all The specified information sending strategy sends information to the target mobile phone number.
  • the distance-based information sending method, device, computer equipment, and storage medium of the present application obtain the target mobile phone number and obtain the characteristic information of the user with the target mobile phone number; use the characteristic information to transfer the target mobile phone number Mapping into a designated vector in a high-dimensional virtual space; filtering out a plurality of temporary vectors from a plurality of standard high-dimensional vectors; calculating a plurality of first distances, where the first distance is the designated vector and the temporary vector Determine whether a plurality of said first distances are all less than a preset distance threshold; if a plurality of said first distances are not all less than a preset distance threshold, send according to the first distance-temporary vector-information
  • the corresponding relationship of the strategies is obtained, and the designated information sending strategy corresponding to the first distance with the largest value is obtained, and the information is sent to the target mobile phone number according to the designated information sending strategy. This achieves targeted sending of information, and reduces the cost of information sending under the premise of ensuring the delivery rate.
  • FIG. 1 is a schematic flowchart of a distance-based information sending method according to an embodiment of this application
  • FIG. 2 is a schematic block diagram of the structure of a distance-based information sending device according to an embodiment of the application
  • FIG. 3 is a schematic block diagram of the structure of a computer device according to an embodiment of the application.
  • an embodiment of the present application provides a distance-based information sending method, including the following steps:
  • the target mobile phone number and the characteristic information of the user who acquired the target mobile phone number includes at least the identity information of the user, the length of time the user uses the APP, and the user clicks The proportion of APP push messages to all APP push messages received;
  • a preset high-dimensional vector mapping algorithm use the feature information to map the target mobile phone number to a designated vector in a high-dimensional virtual space, wherein a plurality of standard heights are preset in the high-dimensional virtual space.
  • Dimensional vector, multiple standard high-dimensional vectors are respectively associated with multiple preset information sending strategies;
  • the target mobile phone number is acquired, and the characteristic information of the user who acquires the target mobile phone number.
  • the characteristic information includes at least the identity information of the user, the length of time the user uses the APP, and The proportion of APP push messages clicked by the user to all APP push messages received.
  • the characteristic information is used to subsequently determine whether the information should be sent to the target mobile phone number in the form of APP push messages or in the form of short messages.
  • the characteristic information includes identity information, where the identity information includes, for example, occupation, age, educational background, work background, etc.
  • the possibility of whether to click the APP to push information is Different, so you can use the characteristic information including the identity information of the user, the length of time the user uses the APP and the proportion of the APP push messages clicked by the user to all the received APP push messages to determine the What kind of information transmission strategy the user applies to.
  • the target mobile phone number is mapped to a designated vector in a high-dimensional virtual space, wherein the high-dimensional virtual space is preset
  • the high-dimensional virtual space is preset
  • the preset high-dimensional vector mapping algorithm uses the feature information to map the target mobile phone number to a specified vector in the high-dimensional virtual space, for example: assign different sub-information in the feature information to obtain the value
  • the multiple values of are respectively used as the values of the respective sub-vectors of the specified vector, so as to realize the mapping in the high-dimensional virtual space.
  • a plurality of standard high-dimensional vectors are preset in the high-dimensional virtual space, and the plurality of standard high-dimensional vectors are respectively associated with a plurality of preset information sending strategies. Therefore, it is only necessary to know the standard high-dimensional vector that is closest to the target mobile phone number, and then use the corresponding information transmission strategy to complete the information transmission.
  • the threshold selection rule selects multiple temporary vectors from the multiple length differences. In this way, a temporary vector closer to the specified vector is selected.
  • a plurality of first distances are calculated according to a preset distance calculation method, where the first distance is the distance between the designated vector and the temporary vector.
  • the way to calculate multiple first distances is, for example: according to the formula A plurality of first distances DIS are calculated, wherein the first distance DIS is the distance between the designated vector and the temporary vector, where C is the designated vector, and Ci is the i-th of the designated vector C Partial vector, the specified vector C has a total of m part vectors, D is a temporary vector, Di is the i-th part vector of the temporary vector D, and the temporary vector D has a total of m part vectors.
  • the maximum value of the first distance is 1, and the closer the value of the first distance is to 1, it indicates that the corresponding temporary vector is more similar to the specified vector.
  • step S5 it is determined whether a plurality of the first distances are all less than a preset distance threshold.
  • the first distance reflects the degree of similarity between the designated vector and the temporary vector, but if the values of multiple first distances are not large, even if the largest distance among the multiple first distances is found, its corresponding The similarity between the temporary vector and the specified vector is still low. Therefore, this application adopts a preset distance threshold method to eliminate the misjudgment caused when multiple values of the first distance are not large.
  • the specified value corresponding to the first distance with the largest value is obtained Information sending strategy, and sending information to the target mobile phone number according to the specified information sending strategy.
  • the first distance is related to the temporary vector (ie, the standard high-dimensional vector), and the standard high-dimensional vector is related to the information transmission strategy. Therefore, the corresponding designated information transmission strategy can be obtained according to the first distance with the largest value. Since the standard high-dimensional vector corresponding to the first distance with the largest value is most similar to the designated vector, it means that the designated information sending strategy is most suitable for the user. Accordingly, information is sent to the target mobile phone number according to the specified information sending strategy.
  • the specified information sending strategy is, for example, whether to use APP push message mode; whether to use short message sending mode; when to send information, etc.
  • the step S2 of mapping the target mobile phone number to a designated vector in a high-dimensional virtual space by using the characteristic information according to a preset high-dimensional vector mapping algorithm includes:
  • S202 Map the identity information and the other information into a first partial vector group A and a second partial vector group B, respectively, according to a preset correspondence between information and vectors;
  • S203 Obtain the influence parameter group k1-kn of the first partial vector group A on the second partial vector group B according to the preset influence relationship of the first vector group on the second vector group;
  • the target mobile phone number is mapped to the designated vector in the high-dimensional virtual space by using the characteristic information according to the preset high-dimensional vector mapping algorithm.
  • This application divides the characteristic information into identity information and other information other than the identity information. Due to the specificity of the population, different identities deal with APP push information in different ways, for example, the A-identity population They are more keen to click on the APP to push information, and the B-identity people hate APP push information, etc., so the identity information will have a potential impact on other information besides the identity information.
  • the influencing parameter group k1-kn can be pre-generated in any manner, for example, pre-generated by analyzing identity information for information other than the identity information, and can be based on a machine learning model and adopt a supervised learning method. To analyze to obtain the influence parameter group.
  • the step S3 of selecting multiple temporary vectors from multiple standard high-dimensional vectors according to a preset vector screening method includes:
  • length difference
  • multiple length differences between the designated vector and the multiple standard high-dimensional vectors are calculated respectively, and the length difference is less than a preset difference threshold value.
  • the selection rule is to select a plurality of temporary vectors from the plurality of length differences.
  • the preset vector screening method multiple temporary vectors are filtered from multiple standard high-dimensional vectors.
  • the step S4 of calculating a plurality of first distances according to a preset distance calculation method, wherein the first distance is the distance between the designated vector and the temporary vector includes:
  • a plurality of first distances DIS are calculated, wherein the first distance DIS is the distance between the designated vector and the temporary vector, where C is the designated vector, and Ci is the i-th of the designated vector C Partial vector, the specified vector C has a total of m part vectors, D is a temporary vector, Di is the i-th part vector of the temporary vector D, and the temporary vector D has a total of m part vectors.
  • the first distance DIS reflects the degree of similarity between the designated vector and the temporary vector.
  • This application uses the formula: The method of calculating the first distance can accurately know the degree of similarity between the designated vector and the temporary vector.
  • the way to calculate the first distance is to pay more attention to the angle difference between the vectors, while ignoring the numerical difference between the vectors.
  • the values between the vectors are actually The difference is filtered, and the obtained multiple temporary vectors are similar in value to the specified vector.
  • the multiple first distances calculated by this application are more accurate.
  • the plurality of temporary vectors include placeholder vectors and non-placeholder vectors, and part of the component vectors in the placeholder vectors are occupied by copy placeholders, and the copy placeholders are used for copying. And replacing the values of the sub-vectors of the same dimension in the designated vector, the plurality of first distances are calculated according to a preset distance calculation method, wherein the first distance is the difference between the designated vector and the temporary vector.
  • a plurality of first distances DIS is calculated, wherein the first distance DIS is the distance between the designated vector and the non-occupied vector, or the first distance DIS is the designated vector and the replacement
  • Di is the i-th component vector of the vector D
  • the vector D has a total of m component vectors.
  • the standard high-dimensional vector can be set as a special placeholder vector to adapt to a situation where some features are not considered.
  • the use of copy placeholders can eliminate or reduce the impact of irrelevant features, such as consumption habits and other features (these features have an impact on whether family members interact with each other). Does it frequently have no impact or does not have much impact), you can use copy placeholders to placeholders in the family vector to eliminate or reduce the impact. Then, multiple first distances DIS are calculated, so as to improve the accuracy of the first distance calculation.
  • the occupancy vector is a family vector
  • the value of the first distance corresponding to the family vector is the largest among the plurality of first distances
  • the first distance-temporary vector-information is sent according to the first distance
  • the corresponding relationship of the strategies, obtaining the designated information sending strategy corresponding to the first distance with the largest value, and sending information to the target mobile phone number according to the designated information sending strategy S6 includes:
  • S602. Determine whether any member of the family of the target mobile phone number user has received a complete short message or a pushed complete APP message
  • any member of the family of the user of the target mobile phone number has received a short message or a pushed APP message, send a short short message or push a short APP message to the target mobile number, where the short short message is the A part of the complete short message, and the abbreviated APP message is a part of the complete APP message.
  • the designated information sending strategy corresponding to the first distance with the largest value is obtained, and the designated information sending strategy is sent to the target mobile phone number.
  • the family vector refers to the vector corresponding to the user whose family members interact frequently.
  • this application adopts that if any member of the target mobile phone number user’s family has received a short message or a pushed APP message, then a short short message or push a short APP message will be sent to the target mobile number ,
  • the abbreviated short message is a part of the complete short message
  • the abbreviated APP message is a part of the complete APP message, which realizes the reminder of the information in the form of abbreviated information.
  • the brief information is only a part of the original information, it consumes less communication resources and costs.
  • the quality of information transmission will not be reduced.
  • the method includes:
  • S52 Determine whether the specified level is greater than a preset level threshold
  • a multi-process judgment method is adopted to reduce the cost on the premise of ensuring the information arrival rate.
  • a plurality of the first distances are all less than a preset distance threshold, it indicates that the user cannot correspond to the existing information transmission strategy, and therefore, it is necessary to formulate an information transmission strategy in real time.
  • the historical data of clicking APP push messages is, for example, the total number of times of clicking APP push messages, the total number of days, the time length of clicking and reading APP push messages, etc., and then dividing the terminal into designated levels based on this, where the higher the level , Indicating that the terminal is more likely to click on the APP to push messages.
  • the APP push message is used to send information to the target mobile phone number, so as to achieve a guaranteed information arrival rate.
  • the message is sent by means of short messages.
  • the distance-based information sending method of the present application obtains a target mobile phone number, and obtains characteristic information of a user with the target mobile phone number; using the characteristic information, the target mobile phone number is mapped into a high-dimensional virtual space Designated vector; filter out a plurality of temporary vectors from a plurality of standard high-dimensional vectors; calculate a plurality of first distances, wherein the first distance is the distance between the designated vector and the temporary vector; determine a plurality of Whether the first distances are all less than a preset distance threshold; if a plurality of the first distances are not uniformly less than the preset distance threshold, the maximum value is obtained according to the correspondence relationship of the first distance-temporary vector-information sending strategy
  • the designated information sending strategy corresponding to the first distance of, and sending information to the target mobile phone number according to the designated information sending strategy. This achieves targeted sending of information, and reduces the cost of information sending under the premise of ensuring the delivery rate.
  • an embodiment of the present application provides a distance-based information sending device, including:
  • the target mobile phone number acquiring unit 10 is configured to acquire the target mobile phone number and the characteristic information of the user who acquires the target mobile phone number.
  • the characteristic information includes at least the identity information of the user and the length of time the user uses the APP And the proportion of APP push messages clicked by the user to all APP push messages received;
  • the designated vector mapping unit 20 is configured to map the target mobile phone number to a designated vector in a high-dimensional virtual space according to a preset high-dimensional vector mapping algorithm and using the characteristic information, wherein the high-dimensional virtual space is preliminarily Multiple standard high-dimensional vectors are set, and multiple standard high-dimensional vectors are respectively associated with multiple preset information sending strategies;
  • the temporary vector obtaining unit 30 is configured to filter multiple temporary vectors from multiple standard high-dimensional vectors according to a preset vector screening method
  • the first distance calculation unit 40 is configured to calculate a plurality of first distances according to a preset distance calculation method, where the first distance is the distance between the designated vector and the temporary vector;
  • the first distance judging unit 50 is configured to judge whether a plurality of the first distances are all less than a preset distance threshold
  • the information sending unit 60 is configured to, if a plurality of the first distances are not uniformly smaller than a preset distance threshold, obtain the specified value corresponding to the first distance with the largest value according to the correspondence relationship of the first distance-temporary vector-information sending strategy Information sending strategy, and sending information to the target mobile phone number according to the specified information sending strategy.
  • the designated vector mapping unit 20 includes:
  • the information division subunit is used to divide the characteristic information into identity information and other information except the identity information;
  • the sub-vector group mapping subunit is configured to map the identity information and the other information into the first sub-vector group A and the second sub-vector group B according to the preset correspondence between the information and the vector;
  • the influence parameter group obtaining subunit is configured to obtain the influence parameter group k1-kn of the first partial vector group A on the second partial vector group B according to the preset influence relationship of the first vector group on the second vector group;
  • the temporary vector acquiring unit 30 includes:
  • the length Lc calculates the subunit, which is used according to formula
  • the length Lp calculation subunit is used according to the formula:
  • the selection rule of the difference threshold is set to select a plurality of temporary vectors from the plurality of length differences.
  • the first distance calculation unit 40 includes:
  • the first distance calculation subunit is used according to the formula:
  • a plurality of first distances DIS are calculated, wherein the first distance DIS is the distance between the designated vector and the temporary vector, where C is the designated vector, and Ci is the i-th of the designated vector C Partial vector, the specified vector C has a total of m part vectors, D is a temporary vector, Di is the i-th part vector of the temporary vector D, and the temporary vector D has a total of m part vectors.
  • the plurality of temporary vectors include placeholder vectors and non-placeholder vectors, and part of the component vectors in the placeholder vectors are occupied by copy placeholders, and the copy placeholders are used for copying.
  • the first distance calculation unit 40 includes:
  • the copy replacement subunit is used to perform a copy replacement operation on the placeholder vector to obtain a placeholder vector after the replacement operation, and the copy replacement operation is used to replace the copy placeholder in the placeholder vector with The numerical value of the component vector of the same dimension in the specified vector;
  • the first distance DIS calculation subunit is used according to the formula:
  • a plurality of first distances DIS is calculated, wherein the first distance DIS is the distance between the designated vector and the non-occupied vector, or the first distance DIS is the designated vector and the replacement
  • Di is the i-th component vector of the vector D
  • the vector D has a total of m component vectors.
  • the occupancy vector is a family vector
  • the value of the first distance corresponding to the family vector is the largest among the plurality of first distances
  • the information sending unit 60 includes:
  • the designated information sending strategy acquisition subunit is used to acquire the designated information sending strategy corresponding to the family vector, and the designated information sending strategy is to only send a complete short message or push a complete APP to one of the family members of the target mobile phone number user news;
  • the receiving judgment subunit is used to judge whether any member of the family of the target mobile phone number user has received a complete short message or a pushed complete APP message;
  • the information sending subunit is configured to send a short short message or push a short APP message to the target mobile phone number if any member in the family of the target mobile phone number user has received a short message or push a short APP message, wherein the
  • the abbreviated short message is a part of the complete short message
  • the abbreviated APP message is a part of the complete APP message.
  • the device includes:
  • the historical data acquiring unit is configured to, if the plurality of the first distances are all less than a preset distance threshold, acquire the historical data of the click APP push message of the terminal corresponding to the user, and compare the historical data according to the historical data
  • the terminal is divided into designated levels;
  • a designated level judging unit configured to judge whether the designated level is greater than a preset level threshold
  • An uninstallation judging unit configured to judge whether the terminal has uninstalled the APP if the specified level is greater than a preset level threshold
  • a long heartbeat connection judging unit configured to judge whether the terminal maintains a long heartbeat connection with the server corresponding to the APP if the terminal has not uninstalled the APP;
  • the message push unit is configured to send information to the target mobile phone number by means of APP push messages if the terminal maintains a long heartbeat connection with the server corresponding to the APP.
  • an embodiment of the present application also provides a computer device.
  • the computer device may be a server, and its internal structure may be as shown in the figure.
  • the computer equipment includes a processor, a memory, a network interface, and a database connected through a system bus. Among them, the processor designed by the computer is used to provide calculation and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system, a computer program, and a database.
  • the memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium.
  • the database of the computer equipment is used to store the data used in the distance-based information transmission method.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer program is executed by the processor to realize a distance-based information transmission method.
  • the above-mentioned processor executes the above-mentioned distance-based information sending method, wherein the steps included in the method respectively correspond to the steps of executing the distance-based information sending method of the foregoing embodiment, and will not be repeated here.
  • An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored.
  • a distance-based information transmission method is implemented, wherein the steps included in the method are respectively the same as those in the previous embodiments.
  • the steps of the distance-based information sending method correspond to each other, so I won’t repeat them here.
  • the computer-readable storage medium is, for example, a non-volatile computer-readable storage medium or a volatile computer-readable storage medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A distance-based information sending method and apparatus, and a computer device and a storage medium. The method comprises: acquiring a target mobile phone number, and acquiring feature information of a user of the target mobile phone number; mapping the target mobile phone number to a specified vector in a high-dimensional virtual space; screening a plurality of standard high-dimensional vectors to obtain a plurality of temporary vectors; calculating a plurality of first distances, wherein the first distances are the distance between the specified vector and each of the temporary vectors; and if not all of the plurality of first distances are less than a preset distance threshold value, acquiring, according to a first distance-temporary vector-information sending policy correlation, a specified information sending policy corresponding to the first distance with the maximum value, and sending information to the target mobile phone number according to the specified information sending policy. Therefore, targeted sending of information is realized, and information sending costs are reduced on the premise of ensuring the sending success rate.

Description

基于距离的信息发送方法、装置、计算机设备和存储介质Distance-based information sending method, device, computer equipment and storage medium
本申请要求于2019年9月19日提交中国专利局、申请号为201910887133.8,发明名称为“基于距离的信息发送方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on September 19, 2019, the application number is 201910887133.8, and the invention title is "distance-based information sending methods, devices, computer equipment and storage media", and its entire contents Incorporated in this application by reference.
技术领域Technical field
本申请涉及到计算机领域,特别是涉及到一种基于距离的信息发送方法、装置、计算机设备和存储介质。This application relates to the computer field, in particular to a distance-based information sending method, device, computer equipment and storage medium.
背景技术Background technique
信息发送至终端,一般有两种形式:APP推送消息和发送短信。其中,APP推送消息可以将相关活动、产品推荐、用户权益相关消息送达到用户。目前APP推送消息因为使用的是互联网网络进行传输,成本较低,一条推送消息的成本大约是短信的百分之一,因此一般选择使用APP推送消息送达到用户,但APP推送消息目前也有个问题,送达率较低,只有50%-60%左右,因此如果需要送达率高的到用户的消息,一般选择通过短信送达,但是成本较高。这两种消息发送的方案均存在不足而传统技术无法均衡送达率与成本,导致存在信息送达不及时不充分或者短信发送数量过多成本过高的技术问题。Information is sent to the terminal, generally in two forms: APP push message and send SMS. Among them, APP push messages can deliver messages related to related activities, product recommendations, and user rights to users. At present, APP push messages use the Internet network for transmission, and the cost is low. The cost of a push message is about one percent of the SMS. Therefore, it is generally chosen to use APP push messages to reach users, but APP push messages currently have a problem. , The delivery rate is low, only about 50%-60%, so if you need a message to the user with a high delivery rate, you usually choose to deliver it by SMS, but the cost is higher. Both of these two message sending schemes have shortcomings, and the traditional technology cannot balance the delivery rate and cost, leading to technical problems such as inadequate and insufficient information delivery or too many short messages, and the cost is too high.
技术问题technical problem
本申请的主要目的为提供一种基于距离的信息发送方法、装置、计算机设备和存储介质,旨在针对性地发送信息,从而在保证送达率的前提下降低信息发送成本。The main purpose of this application is to provide a distance-based information sending method, device, computer equipment, and storage medium, aiming to send information in a targeted manner, so as to reduce the cost of information sending while ensuring the delivery rate.
技术解决方案Technical solutions
为了实现上述发明目的,本申请提出一种基于距离的信息发送方法,包括以下步骤:In order to achieve the above-mentioned purpose of the invention, this application proposes a distance-based information sending method, which includes the following steps:
获取目标手机号,以及获取所述目标手机号的使用者的特征信息,所述特征信息至少包括所述使用者的身份信息、所述使用者使用APP的时长和所述使用者点击的APP推送消息占接收到的所有APP推送消息的比例;Obtaining the target mobile phone number, and acquiring the characteristic information of the user of the target mobile phone number, the characteristic information including at least the identity information of the user, the length of time the user uses the APP, and the push of the APP clicked by the user The proportion of messages to all APP push messages received;
根据预设的高维向量映射算法,利用所述特征信息,将所述目标手机号映射为高维虚拟空间中的指定向量,其中所述高维虚拟空间中预先设置有多个标准高维向量,多个标准高维向量分别关联预设的多个信息发送策略;According to a preset high-dimensional vector mapping algorithm, the target mobile phone number is mapped to a designated vector in a high-dimensional virtual space using the feature information, wherein a plurality of standard high-dimensional vectors are preset in the high-dimensional virtual space , Multiple standard high-dimensional vectors are respectively associated with multiple preset information sending strategies;
根据预设的向量筛选方法,从多个标准高维向量中筛选出多个暂时向量;Filter out multiple temporary vectors from multiple standard high-dimensional vectors according to the preset vector screening method;
根据预设的距离计算方法,计算得到多个第一距离,其中所述第一距离为所述指定向量与所述暂时向量之间的距离;According to a preset distance calculation method, multiple first distances are calculated, where the first distance is the distance between the designated vector and the temporary vector;
判断多个所述第一距离是否均小于预设的距离阈值;Judging whether a plurality of the first distances are all less than a preset distance threshold;
若多个所述第一距离不均小于预设的距离阈值,则根据第一距离-暂时向量-信息发送策略的对应关系,获取数值最大的第一距离对应的指定信息发送策略,并根据所述指定信息发送策略向所述目标手机 号发送信息。If the plurality of the first distances are not uniformly smaller than the preset distance threshold, then according to the corresponding relationship of the first distance-temporary vector-information sending strategy, the designated information sending strategy corresponding to the first distance with the largest value is obtained, and according to all The specified information sending strategy sends information to the target mobile phone number.
有益效果Beneficial effect
本申请的基于距离的信息发送方法、装置、计算机设备和存储介质,获取目标手机号,以及获取与所述目标手机号的使用者的特征信息;利用所述特征信息,将所述目标手机号映射为高维虚拟空间中的指定向量;从多个标准高维向量中筛选出多个暂时向量;计算得到多个第一距离,其中所述第一距离为所述指定向量与所述暂时向量之间的距离;判断多个所述第一距离是否均小于预设的距离阈值;若多个所述第一距离不均小于预设的距离阈值,则根据第一距离-暂时向量-信息发送策略的对应关系,获取数值最大的第一距离对应的指定信息发送策略,并根据所述指定信息发送策略向所述目标手机号发送信息。从而实现了针对性地发送信息,在保证送达率的前提下降低信息发送成本。The distance-based information sending method, device, computer equipment, and storage medium of the present application obtain the target mobile phone number and obtain the characteristic information of the user with the target mobile phone number; use the characteristic information to transfer the target mobile phone number Mapping into a designated vector in a high-dimensional virtual space; filtering out a plurality of temporary vectors from a plurality of standard high-dimensional vectors; calculating a plurality of first distances, where the first distance is the designated vector and the temporary vector Determine whether a plurality of said first distances are all less than a preset distance threshold; if a plurality of said first distances are not all less than a preset distance threshold, send according to the first distance-temporary vector-information The corresponding relationship of the strategies is obtained, and the designated information sending strategy corresponding to the first distance with the largest value is obtained, and the information is sent to the target mobile phone number according to the designated information sending strategy. This achieves targeted sending of information, and reduces the cost of information sending under the premise of ensuring the delivery rate.
附图说明Description of the drawings
图1为本申请一实施例的基于距离的信息发送方法的流程示意图;FIG. 1 is a schematic flowchart of a distance-based information sending method according to an embodiment of this application;
图2为本申请一实施例的基于距离的信息发送装置的结构示意框图;2 is a schematic block diagram of the structure of a distance-based information sending device according to an embodiment of the application;
图3为本申请一实施例的计算机设备的结构示意框图。FIG. 3 is a schematic block diagram of the structure of a computer device according to an embodiment of the application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics, and advantages of the purpose of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
本申请的最佳实施方式The best implementation of this application
参照图1,本申请实施例提供一种基于距离的信息发送方法,包括以下步骤:1, an embodiment of the present application provides a distance-based information sending method, including the following steps:
S1、获取目标手机号,以及获取所述目标手机号的使用者的特征信息,所述特征信息至少包括所述使用者的身份信息、所述使用者使用APP的时长和所述使用者点击的APP推送消息占接收到的所有APP推送消息的比例;S1. Obtain the target mobile phone number and the characteristic information of the user who acquired the target mobile phone number. The characteristic information includes at least the identity information of the user, the length of time the user uses the APP, and the user clicks The proportion of APP push messages to all APP push messages received;
S2、根据预设的高维向量映射算法,利用所述特征信息,将所述目标手机号映射为高维虚拟空间中的指定向量,其中所述高维虚拟空间中预先设置有多个标准高维向量,多个标准高维向量分别关联预设的多个信息发送策略;S2. According to a preset high-dimensional vector mapping algorithm, use the feature information to map the target mobile phone number to a designated vector in a high-dimensional virtual space, wherein a plurality of standard heights are preset in the high-dimensional virtual space. Dimensional vector, multiple standard high-dimensional vectors are respectively associated with multiple preset information sending strategies;
S3、根据预设的向量筛选方法,从多个标准高维向量中筛选出多个暂时向量;S3. Filter out multiple temporary vectors from multiple standard high-dimensional vectors according to a preset vector screening method;
S4、根据预设的距离计算方法,计算得到多个第一距离,其中所述第一距离为所述指定向量与所述暂时向量之间的距离;S4. Calculate multiple first distances according to a preset distance calculation method, where the first distances are the distances between the designated vector and the temporary vector;
S5、判断多个所述第一距离是否均小于预设的距离阈值;S5. Determine whether the plurality of first distances are all less than a preset distance threshold;
S6、若多个所述第一距离不均小于预设的距离阈值,则根据第一距离-暂时向量-信息发送策略的对应关系,获取数值最大的第一距离对应的指定信息发送策略,并根据所述指定信息发送策略向所述目标手机号发送信息。S6. If a plurality of the first distances are not uniformly smaller than a preset distance threshold, obtain the designated information sending strategy corresponding to the first distance with the largest value according to the correspondence relationship of the first distance-temporary vector-information sending strategy, and Sending information to the target mobile phone number according to the specified information sending strategy.
如上述步骤S1所述,获取目标手机号,以及获取所述目标手机号的使用者的特征信息,所述特征信息至少包括所述使用者的身份信息、所述使用者使用APP的时长和所述使用者点击的APP推送消息 占接收到的所有APP推送消息的比例。其中所述特征信息用于后续判断是否应该以APP推送消息的形式,还是以发送短信的形式向所述目标手机号发送信息。所述特征信息包括身份信息,其中所述身份信息例如包括职业、年龄、教育背景、工作背景等,由于不同身份的使用者在其他条件都相同的情况下,是否点击APP推送信息的可能性是不同的,因此可以利用包括所述使用者的身份信息、所述使用者使用APP的时长和所述使用者点击的APP推送消息占接收到的所有APP推送消息的比例的特征信息,确定所述使用者适用于何种信息发送策略。As described in step S1 above, the target mobile phone number is acquired, and the characteristic information of the user who acquires the target mobile phone number. The characteristic information includes at least the identity information of the user, the length of time the user uses the APP, and The proportion of APP push messages clicked by the user to all APP push messages received. The characteristic information is used to subsequently determine whether the information should be sent to the target mobile phone number in the form of APP push messages or in the form of short messages. The characteristic information includes identity information, where the identity information includes, for example, occupation, age, educational background, work background, etc. As users with different identities are under the same other conditions, the possibility of whether to click the APP to push information is Different, so you can use the characteristic information including the identity information of the user, the length of time the user uses the APP and the proportion of the APP push messages clicked by the user to all the received APP push messages to determine the What kind of information transmission strategy the user applies to.
如上述步骤S2所述,根据预设的高维向量映射算法,利用所述特征信息,将所述目标手机号映射为高维虚拟空间中的指定向量,其中所述高维虚拟空间中预先设置有多个标准高维向量,多个标准高维向量分别关联预设的多个信息发送策略。其中预设的高维向量映射算法,利用所述特征信息,将所述目标手机号映射为高维虚拟空间中的指定向量,例如为:将特征信息中的不同分信息进行赋值,将赋值得到的多个数值分别作为指定向量的各个分向量的数值,从而实现在高维虚拟空间中的映射。其中所述高维虚拟空间中预先设置有多个标准高维向量,多个标准高维向量分别关联预设的多个信息发送策略。因此只需获知与所述目标手机号最相近的所述标准高维向量,再采用对应的信息发送策略即可完成信息发送。As described in step S2 above, according to a preset high-dimensional vector mapping algorithm, using the feature information, the target mobile phone number is mapped to a designated vector in a high-dimensional virtual space, wherein the high-dimensional virtual space is preset There are multiple standard high-dimensional vectors, and multiple standard high-dimensional vectors are respectively associated with multiple preset information sending strategies. The preset high-dimensional vector mapping algorithm uses the feature information to map the target mobile phone number to a specified vector in the high-dimensional virtual space, for example: assign different sub-information in the feature information to obtain the value The multiple values of are respectively used as the values of the respective sub-vectors of the specified vector, so as to realize the mapping in the high-dimensional virtual space. Wherein, a plurality of standard high-dimensional vectors are preset in the high-dimensional virtual space, and the plurality of standard high-dimensional vectors are respectively associated with a plurality of preset information sending strategies. Therefore, it is only necessary to know the standard high-dimensional vector that is closest to the target mobile phone number, and then use the corresponding information transmission strategy to complete the information transmission.
如上述步骤S3所述,根据预设的向量筛选方法,从多个标准高维向量中筛选出多个暂时向量。其中预设的向量筛选方法例如为:根据公式:
Figure PCTCN2019117211-appb-000001
计算出指定向量的长度Lc,其中C为所述指定向量,Ci为所述指定向量C的第i个分向量,所述指定向量C共有m个分向量;根据公式:
Figure PCTCN2019117211-appb-000002
计算出所述标准高维向量的长度Lp,其中P为第p个标准高维向量,Pi为第p个标准高维向量的第i个分向量,所述第p个标准高维向量共有m个分向量;根据公式:长度差=|Lc-Lp|,分别计算得到所述指定向量与所述多个标准高维向量的多个长度差,并根据所述长度差小于预设的差值阈值的选择规则,从所述多个长度差中选出多个暂时向量。从而选出与指定向量较为相近的暂时向量。
As described in step S3 above, according to a preset vector screening method, multiple temporary vectors are filtered from multiple standard high-dimensional vectors. The preset vector filtering method is, for example, according to the formula:
Figure PCTCN2019117211-appb-000001
Calculate the length Lc of the designated vector, where C is the designated vector, Ci is the i-th component vector of the designated vector C, and the designated vector C has m component vectors; according to the formula:
Figure PCTCN2019117211-appb-000002
Calculate the length Lp of the standard high-dimensional vector, where P is the p-th standard high-dimensional vector, Pi is the i-th component vector of the p-th standard high-dimensional vector, and the p-th standard high-dimensional vector has a total of m Sub-vectors; according to the formula: length difference=|Lc-Lp|, multiple length differences between the specified vector and the multiple standard high-dimensional vectors are calculated separately, and the length difference is less than a preset difference value The threshold selection rule selects multiple temporary vectors from the multiple length differences. In this way, a temporary vector closer to the specified vector is selected.
如上述步骤S4所述,根据预设的距离计算方法,计算得到多个第一距离,其中所述第一距离为所述指定向量与所述暂时向量之间的距离。其中根据预设的距离计算方法,计算得到多个第一距离的方式,例如为:根据公式:
Figure PCTCN2019117211-appb-000003
计算得到多个第一距离DIS,其中所述第一距离DIS为所述指定向量与所述暂时向量之间的距离,其中C为所述指定向量,Ci为所述指定向量C的第i个分向量,所述指定向量C共有m个分向量,D为暂时向量,Di为所述暂时向量D的第i个分向量,所述暂时向量D共有m个分向量。其中,所述第一距离的最大值为1,所述第一距离的数值越靠近1,表明对应的暂时向量与所述指定向量越相似。
As described in step S4 above, a plurality of first distances are calculated according to a preset distance calculation method, where the first distance is the distance between the designated vector and the temporary vector. According to the preset distance calculation method, the way to calculate multiple first distances is, for example: according to the formula
Figure PCTCN2019117211-appb-000003
A plurality of first distances DIS are calculated, wherein the first distance DIS is the distance between the designated vector and the temporary vector, where C is the designated vector, and Ci is the i-th of the designated vector C Partial vector, the specified vector C has a total of m part vectors, D is a temporary vector, Di is the i-th part vector of the temporary vector D, and the temporary vector D has a total of m part vectors. Wherein, the maximum value of the first distance is 1, and the closer the value of the first distance is to 1, it indicates that the corresponding temporary vector is more similar to the specified vector.
如上述步骤S5所述,判断多个所述第一距离是否均小于预设的距离阈值。第一距离是反应指定向量与暂时向量之间的相似程度,但若是多个所述第一距离的数值均不大,那么纵使找出多个所述第一距离之中最大的距离,其对应的暂时向量与所述指定向量的相似度也还是较低。因此本申请采用预设的距离阈值的方式,以排除多个所述第一距离的数值均不大的情况时造成的误判。As described in step S5 above, it is determined whether a plurality of the first distances are all less than a preset distance threshold. The first distance reflects the degree of similarity between the designated vector and the temporary vector, but if the values of multiple first distances are not large, even if the largest distance among the multiple first distances is found, its corresponding The similarity between the temporary vector and the specified vector is still low. Therefore, this application adopts a preset distance threshold method to eliminate the misjudgment caused when multiple values of the first distance are not large.
如上述步骤S6所述,若多个所述第一距离不均小于预设的距离阈值,则根据第一距离-暂时向量-信息发送策略的对应关系,获取数值最大的第一距离对应的指定信息发送策略,并根据所述指定信息发送策略向所述目标手机号发送信息。其中,第一距离是与暂时向量(即标准高维向量)相关,标准高维向量与信息发送策略相关,因此能够根据数值最大的第一距离获取对应的指定信息发送策略。由于数值最大的第一距离对应的标准高维向量与所述指定向量最相似,也即表明所述指定信息发送策略最适用于所述使用者。据此,根据所述指定信息发送策略向所述目标手机号发送信息。其中所述指定信息发送策略例如为:是否采用APP推送消息的方式;是否采用短信发送的方式;何时发送信息等。As described in step S6 above, if a plurality of the first distances are not uniformly smaller than the preset distance threshold, then according to the corresponding relationship of the first distance-temporary vector-information sending strategy, the specified value corresponding to the first distance with the largest value is obtained Information sending strategy, and sending information to the target mobile phone number according to the specified information sending strategy. The first distance is related to the temporary vector (ie, the standard high-dimensional vector), and the standard high-dimensional vector is related to the information transmission strategy. Therefore, the corresponding designated information transmission strategy can be obtained according to the first distance with the largest value. Since the standard high-dimensional vector corresponding to the first distance with the largest value is most similar to the designated vector, it means that the designated information sending strategy is most suitable for the user. Accordingly, information is sent to the target mobile phone number according to the specified information sending strategy. The specified information sending strategy is, for example, whether to use APP push message mode; whether to use short message sending mode; when to send information, etc.
在一个实施方式中,所述根据预设的高维向量映射算法,利用所述特征信息,将所述目标手机号映射为高维虚拟空间中的指定向量的步骤S2,包括:In one embodiment, the step S2 of mapping the target mobile phone number to a designated vector in a high-dimensional virtual space by using the characteristic information according to a preset high-dimensional vector mapping algorithm includes:
S201、将所述特征信息划分为身份信息和除所述身份信息之外的其他信息;S201. Divide the characteristic information into identity information and other information except the identity information.
S202、根据预设的信息与向量的对应关系,将所述身份信息和所述其他信息分别映射为第一分向量组A和第二分向量组B;S202: Map the identity information and the other information into a first partial vector group A and a second partial vector group B, respectively, according to a preset correspondence between information and vectors;
S203、根据预设的第一向量组对第二向量组的影响关系,获取所述第一分向量组A对第二分向量组B的影响参数组k1-kn;S203: Obtain the influence parameter group k1-kn of the first partial vector group A on the second partial vector group B according to the preset influence relationship of the first vector group on the second vector group;
S204、根据公式:C=(A,k1b1,k2b2,…,knbn),计算得到指定向量C,其中所述第二分向量组B为(b1,b2,…,bn),n为大于0的整数。S204. According to the formula: C=(A,k1b1,k2b2,...,knbn), calculate the designated vector C, wherein the second sub-vector group B is (b1,b2,...,bn), and n is greater than 0 Integer.
如上所述,实现了根据预设的高维向量映射算法,利用所述特征信息,将所述目标手机号映射为高维虚拟空间中的指定向量。本申请将所述特征信息划分为身份信息和除所述身份信息之外的其他信息,其中由于人群的特异性,因此不同身份的人群对于APP推送信息的处理方式是不同的,例如A身份人群更热衷于点击APP推送信息,B身份人群厌恶APP推送信息等,因此身份信息会对除所述身份信息之外的其他信息有潜在影响。据此,本申请采用根据预设的第一向量组对第二向量组的影响关系,获取所述第一分向量组A对第二分向量组B的影响参数组k1-kn;根据公式:C=(A,k1b1,k2b2...knbn),计算得到指定向量C,其中所述第二向量组B由n个分向量b1、b2、…、bn构成的方式,使指定向量的生成更加准确。其中所述影响参数组k1-kn可通过任意方式预先生成,例如通过分析身份信息对除所述身份信息之外的其他信息的方式预先生成,并可采用基于机器学习模型,采用监督学习的方式以分析从而获取影响参数组。As described above, it is realized that the target mobile phone number is mapped to the designated vector in the high-dimensional virtual space by using the characteristic information according to the preset high-dimensional vector mapping algorithm. This application divides the characteristic information into identity information and other information other than the identity information. Due to the specificity of the population, different identities deal with APP push information in different ways, for example, the A-identity population They are more keen to click on the APP to push information, and the B-identity people hate APP push information, etc., so the identity information will have a potential impact on other information besides the identity information. Accordingly, this application adopts the preset influence relationship of the first vector group to the second vector group to obtain the influence parameter group k1-kn of the first sub-vector group A on the second sub-vector group B; according to the formula: C=(A,k1b1,k2b2...knbn), the specified vector C is obtained by calculation, wherein the second vector group B is composed of n component vectors b1, b2,..., bn, which makes the generation of the specified vector more accurate. The influencing parameter group k1-kn can be pre-generated in any manner, for example, pre-generated by analyzing identity information for information other than the identity information, and can be based on a machine learning model and adopt a supervised learning method. To analyze to obtain the influence parameter group.
在一个实施方式中,所述根据预设的向量筛选方法,从多个标准高维向量中筛选出多个暂时向量的 步骤S3,包括:In one embodiment, the step S3 of selecting multiple temporary vectors from multiple standard high-dimensional vectors according to a preset vector screening method includes:
S301、根据公式:S301. According to the formula:
Figure PCTCN2019117211-appb-000004
计算出指定向量的长度Lc,其中C为所述指定向量,Ci为所述指定向量C的第i个分向量,所述指定向量C共有m个分向量;
Figure PCTCN2019117211-appb-000004
Calculate the length Lc of the designated vector, where C is the designated vector, Ci is the i-th component vector of the designated vector C, and the designated vector C has a total of m component vectors;
S302、根据公式:S302. According to the formula:
Figure PCTCN2019117211-appb-000005
计算出所述标准高维向量的长度Lp,其中P为第p个标准高维向量,Pi为第p个标准高维向量的第i个分向量,所述第p个标准高维向量共有m个分向量;
Figure PCTCN2019117211-appb-000005
Calculate the length Lp of the standard high-dimensional vector, where P is the p-th standard high-dimensional vector, Pi is the i-th component vector of the p-th standard high-dimensional vector, and the p-th standard high-dimensional vector has a total of m Sub-vector
S303、根据公式:长度差=|Lc-Lp|,分别计算得到所述指定向量与所述多个标准高维向量的多个长度差,并根据所述长度差小于预设的差值阈值的选择规则,从所述多个长度差中选出多个暂时向量。S303. According to the formula: length difference=|Lc-Lp|, multiple length differences between the designated vector and the multiple standard high-dimensional vectors are calculated respectively, and the length difference is less than a preset difference threshold value. The selection rule is to select a plurality of temporary vectors from the plurality of length differences.
如上所述,实现了根据预设的向量筛选方法,从多个标准高维向量中筛选出多个暂时向量。其中指定向量的长度Lc是指在高维虚拟空间中所述指定向量的终点与起始点之间的距离。若存在一个标准高维向量与所述指定向量相似,那么这个标准高级向量的长度必然与所述指定向量的长度相同或相近,据此,根据公式:长度差=|Lc-Lp|,分别计算得到所述指定向量与所述多个标准高维向量的多个长度差,并根据所述长度差小于预设的差值阈值的选择规则,从所述多个长度差中选出多个暂时向量。从而初步筛选出暂时向量,以减轻总的计算负担。As described above, according to the preset vector screening method, multiple temporary vectors are filtered from multiple standard high-dimensional vectors. The length Lc of the designated vector refers to the distance between the end point and the start point of the designated vector in the high-dimensional virtual space. If there is a standard high-dimensional vector that is similar to the specified vector, then the length of this standard high-level vector must be the same or similar to the length of the specified vector. According to this, according to the formula: length difference = |Lc-Lp|, calculate separately Obtain multiple length differences between the designated vector and the multiple standard high-dimensional vectors, and select multiple temporary differences from the multiple length differences according to the selection rule that the length difference is less than a preset difference threshold. vector. Thus, the temporary vectors are initially selected to reduce the total computational burden.
在一个实施方式中,所述根据预设的距离计算方法,计算得到多个第一距离,其中所述第一距离为所述指定向量与所述暂时向量之间的距离的步骤S4,包括:In one embodiment, the step S4 of calculating a plurality of first distances according to a preset distance calculation method, wherein the first distance is the distance between the designated vector and the temporary vector includes:
S401、根据公式:S401. According to the formula:
Figure PCTCN2019117211-appb-000006
计算得到多个第一距离DIS,其中所述第一距离DIS为所述指定向量与所述暂时向量之间的距离,其中C为所述指定向量,Ci为所述指定向量C的第i个分向量,所述指定向量C共有m个分向量,D为暂时向量,Di为所述暂时向量D的第i个分向量,所述暂时向量D共有m个分向量。
Figure PCTCN2019117211-appb-000006
A plurality of first distances DIS are calculated, wherein the first distance DIS is the distance between the designated vector and the temporary vector, where C is the designated vector, and Ci is the i-th of the designated vector C Partial vector, the specified vector C has a total of m part vectors, D is a temporary vector, Di is the i-th part vector of the temporary vector D, and the temporary vector D has a total of m part vectors.
如上所述,实现了根据预设的距离计算方法,计算得到多个第一距离。第一距离DIS反应的是所述指定向量与所述暂时向量之间的相似程度。本申请采用根据公式:
Figure PCTCN2019117211-appb-000007
来计算第一距离的方式,能够准确获知所述指定向量与所述暂时向量之间的相似程度。更进一步地,在根据预设 的距离计算方法,计算得到多个第一距离之前,还采用根据公式:
Figure PCTCN2019117211-appb-000008
计算出指定向量的长度Lc,其中C为所述指定向量;根据公式:
Figure PCTCN2019117211-appb-000009
计算出所述标准高维向量的长度Lp;根据公式:长度差=|Lc-Lp|,分别计算得到所述指定向量与所述多个标准高维向量的多个长度差,并根据所述长度差小于预设的差值阈值的选择规则,从所述多个长度差中选出多个暂时向量的方式,以进行初步筛选出多个暂时向量。其中由于采用根据公式:
Figure PCTCN2019117211-appb-000010
来计算第一距离的方式,更注重的是向量之间的角度差异,而忽视了向量之间的数值区别,而采用初步筛选出多个暂时向量之时,实际上已经对向量之间的数值区别进行了筛选,得到的多个暂时向量与所述指定向量的数值相近。综上,本申请计算得到多个第一距离更加准确。
As described above, it is realized that multiple first distances are calculated according to the preset distance calculation method. The first distance DIS reflects the degree of similarity between the designated vector and the temporary vector. This application uses the formula:
Figure PCTCN2019117211-appb-000007
The method of calculating the first distance can accurately know the degree of similarity between the designated vector and the temporary vector. Furthermore, before the multiple first distances are calculated according to the preset distance calculation method, the following formula is also used:
Figure PCTCN2019117211-appb-000008
Calculate the length Lc of the designated vector, where C is the designated vector; according to the formula:
Figure PCTCN2019117211-appb-000009
The length Lp of the standard high-dimensional vector is calculated; according to the formula: length difference=|Lc-Lp|, the multiple length differences between the specified vector and the multiple standard high-dimensional vectors are calculated respectively, and according to the In the selection rule that the length difference is less than the preset difference threshold, a manner of selecting multiple temporary vectors from the multiple length differences to perform preliminary screening to select the multiple temporary vectors. Which is based on the formula:
Figure PCTCN2019117211-appb-000010
The way to calculate the first distance is to pay more attention to the angle difference between the vectors, while ignoring the numerical difference between the vectors. When multiple temporary vectors are initially filtered out, the values between the vectors are actually The difference is filtered, and the obtained multiple temporary vectors are similar in value to the specified vector. In summary, the multiple first distances calculated by this application are more accurate.
在一个实施方式中,所述多个暂时向量中包括占位向量和非占位向量,所述占位向量中的部分分向量由复制占位符占位,所述复制占位符用于复制且替换所述指定向量中相同维度的分向量的数值,所述根据预设的距离计算方法,计算得到多个第一距离,其中所述第一距离为所述指定向量与所述暂时向量之间的距离的步骤S4,包括:In one embodiment, the plurality of temporary vectors include placeholder vectors and non-placeholder vectors, and part of the component vectors in the placeholder vectors are occupied by copy placeholders, and the copy placeholders are used for copying. And replacing the values of the sub-vectors of the same dimension in the designated vector, the plurality of first distances are calculated according to a preset distance calculation method, wherein the first distance is the difference between the designated vector and the temporary vector The step S4 of the distance between, includes:
S411、对所述占位向量进行复制替换操作,从而得到进行替换操作后的占位向量,所述复制替换操作用于将所述占位向量中的复制占位符替换为所述指定向量中相同维度的分向量的数值;S411. Perform a copy replacement operation on the placeholder vector to obtain a placeholder vector after the replacement operation, where the copy replacement operation is used to replace the copy placeholder in the placeholder vector with the designated vector The value of the component vector of the same dimension;
S412、根据公式:S412. According to the formula:
Figure PCTCN2019117211-appb-000011
计算得到多个第一距离DIS,其中所述第一距离DIS为所述指定向量与所述非占位向量之间的距离,或者所述第一距离DIS为所述指定向量与所述进行替换操作后的占位向量之间的距离,其中C为所述指定向量,Ci为所述指定向量C的第i个分向量,所述指定向量C共有m个分向量,D为所述非占位向量或者所述进行替换操作后的占位向量,Di为向量D的第i个分向量,向量D共有m个分向量。
Figure PCTCN2019117211-appb-000011
A plurality of first distances DIS is calculated, wherein the first distance DIS is the distance between the designated vector and the non-occupied vector, or the first distance DIS is the designated vector and the replacement The distance between the occupied vectors after the operation, where C is the designated vector, Ci is the i-th component vector of the designated vector C, the designated vector C has m component vectors in total, and D is the non-occupied vector For the bit vector or the placeholder vector after the replacement operation, Di is the i-th component vector of the vector D, and the vector D has a total of m component vectors.
如上所述,实现了根据预设的距离计算方法,计算得到多个第一距离。其中所述多个暂时向量中包括占位向量和非占位向量,所述占位向量中的部分分向量由复制占位符占位,所述复制占位符用于复制且替换所述指定向量中相同维度的分向量的数值。从而所述标准高维向量可以被设置为特殊的占位向量,以适应于部分特征不予考虑的情境。例如对于家庭向量而言(即家庭成员互动频繁的使用者对应的向量)而言,采用复制占位符就可排除或者减少无关特征的影响,例如消费习惯等特征(这些特征对是 否家庭成员互动是否频繁没有影响或者没有太大影响),在家庭向量中即可用复制占位符进行占位,以排除或者减少影响。然后再计算得到多个第一距离DIS,从而提高第一距离计算的准确性。As described above, it is realized that multiple first distances are calculated according to the preset distance calculation method. Wherein the plurality of temporary vectors include placeholder vectors and non-placeholder vectors, part of the sub-vectors in the placeholder vectors are occupied by copy placeholders, and the copy placeholders are used to copy and replace the specified The value of the component vector of the same dimension in the vector. Therefore, the standard high-dimensional vector can be set as a special placeholder vector to adapt to a situation where some features are not considered. For example, for family vectors (that is, the vector corresponding to users with frequent interactions among family members), the use of copy placeholders can eliminate or reduce the impact of irrelevant features, such as consumption habits and other features (these features have an impact on whether family members interact with each other). Does it frequently have no impact or does not have much impact), you can use copy placeholders to placeholders in the family vector to eliminate or reduce the impact. Then, multiple first distances DIS are calculated, so as to improve the accuracy of the first distance calculation.
在一个实施方式中,所述占位向量为家庭向量,所述家庭向量对应的第一距离的数值是多个所述第一距离中最大的,所述根据第一距离-暂时向量-信息发送策略的对应关系,获取数值最大的第一距离对应的指定信息发送策略,并根据所述指定信息发送策略向所述目标手机号发送信息的步骤S6,包括:In one embodiment, the occupancy vector is a family vector, the value of the first distance corresponding to the family vector is the largest among the plurality of first distances, and the first distance-temporary vector-information is sent according to the first distance The corresponding relationship of the strategies, obtaining the designated information sending strategy corresponding to the first distance with the largest value, and sending information to the target mobile phone number according to the designated information sending strategy S6 includes:
S601、获取所述家庭向量对应的指定信息发送策略,所述指定信息发送策略为仅向所述目标手机号使用者的家庭成员之一发送完整短信或者推送完整APP消息;S601. Obtain a designated information sending strategy corresponding to the family vector, where the designated information sending strategy is to send a complete short message or push a complete APP message to only one of the family members of the target mobile phone number user;
S602、判断所述目标手机号使用者的家庭中的任一个成员是否接收过完整短信或者推送的完整APP消息;S602. Determine whether any member of the family of the target mobile phone number user has received a complete short message or a pushed complete APP message;
S603、若所述目标手机号使用者的家庭中的任一个成员接收过短信或者推送的APP消息,则向所述目标手机号发送简略短信或者推送简略APP消息,其中所述简略短信为所述完整短信中的一部分,所述简略APP消息是所述完整APP消息中的一部分。S603. If any member of the family of the user of the target mobile phone number has received a short message or a pushed APP message, send a short short message or push a short APP message to the target mobile number, where the short short message is the A part of the complete short message, and the abbreviated APP message is a part of the complete APP message.
如上所述,实现了根据第一距离-暂时向量-信息发送策略的对应关系,获取数值最大的第一距离对应的指定信息发送策略,并根据所述指定信息发送策略向所述目标手机号发送信息。其中家庭向量指家庭成员互动频繁的使用者对应的向量,因为家庭成员互动频繁的缘故,一般只需发送一条完整信息即可实现针对整个家庭的信息发送(这是因为互动频繁,因为A成员接到信息后很有可能会向B成员转达;或者A成员接到信息后,会考虑所有家庭成员是否需要此信息,从而相当于对整个家庭实现了信息发送),因此其对应的指定信息发送策略为仅向所述目标手机号使用者的家庭成员之一发送完整短信或者推送完整APP消息。并且由于家庭向量是标准高维向量中特殊的一类,因此被设置为占位向量,从而通过复制占位符的方式排除无关特征的影响。并且为了进一步保证信息的传达,本申请采用若所述目标手机号使用者的家庭中的任一个成员接收过短信或者推送的APP消息,则向所述目标手机号发送简略短信或者推送简略APP消息,其中所述简略短信为所述完整短信中的一部分,所述简略APP消息是所述完整APP消息中的一部分的方式,以简略信息的方式实现了信息的再次提醒。其中由于简略信息只为原信息的一部分,因此消耗的通信资源与成本均更少,但由于家庭成员的高互动频率,因此不会降低信息传达的质量。As described above, it is realized that according to the corresponding relationship of the first distance-temporary vector-information sending strategy, the designated information sending strategy corresponding to the first distance with the largest value is obtained, and the designated information sending strategy is sent to the target mobile phone number. information. The family vector refers to the vector corresponding to the user whose family members interact frequently. Because of the frequent interaction of family members, generally only one complete message can be sent to realize the information transmission for the whole family (this is because the interaction is frequent, because member A receives After receiving the information, it is likely to convey it to member B; or member A will consider whether all family members need the information after receiving the information, which is equivalent to the realization of information transmission for the entire family), so its corresponding designated information transmission strategy To send a complete short message or push a complete APP message to only one of the family members of the target mobile phone number user. And because the family vector is a special kind of standard high-dimensional vector, it is set as a placeholder vector, thereby eliminating the influence of irrelevant features by copying the placeholder. And in order to further ensure the transmission of information, this application adopts that if any member of the target mobile phone number user’s family has received a short message or a pushed APP message, then a short short message or push a short APP message will be sent to the target mobile number , Wherein the abbreviated short message is a part of the complete short message, and the abbreviated APP message is a part of the complete APP message, which realizes the reminder of the information in the form of abbreviated information. Among them, because the brief information is only a part of the original information, it consumes less communication resources and costs. However, due to the high interaction frequency of family members, the quality of information transmission will not be reduced.
在一个实施方式中,所述判断多个所述第一距离是否均小于预设的距离阈值的步骤S5之后,包括:In one embodiment, after the step S5 of judging whether the plurality of first distances are all less than a preset distance threshold, the method includes:
S51、若多个所述第一距离均小于预设的距离阈值,则获取所述使用者对应的终端的点击APP推送消息的历史数据,并根据所述历史数据将所述终端分为指定级别;S51. If a plurality of the first distances are all less than a preset distance threshold, obtain historical data of the APP push message of the terminal corresponding to the user, and classify the terminal into a specified level according to the historical data ;
S52、判断所述指定级别是否大于预设的级别阈值;S52: Determine whether the specified level is greater than a preset level threshold;
S53、若所述指定级别大于预设的级别阈值,则判断所述终端是否卸载了APP;S53: If the designated level is greater than a preset level threshold, determine whether the terminal has uninstalled the APP;
S54、若所述终端未卸载APP,则判断所述终端是否与APP对应的服务端保持长心跳连接;S54. If the terminal does not uninstall the APP, it is determined whether the terminal maintains a long heartbeat connection with the server corresponding to the APP;
S55、若所述终端与APP对应的服务端保持长心跳连接,则采用APP推送消息的方式向所述目标手机号发送信息。S55. If the terminal maintains a long heartbeat connection with the server corresponding to the APP, send information to the target mobile phone number by means of APP push messages.
如上所述,实现了若多个所述第一距离均小于预设的距离阈值,则采用多流程判断的方式在保证信息抵达率的前提下降低成本。其中,若多个所述第一距离均小于预设的距离阈值,表明所述使用者无法对应现有的信息发送策略,因此需要实时制定信息发送策略。其中点击APP推送消息的历史数据例如为点击APP推送消息的总次数、总天数、点击并阅读APP推送消息的时长等等,再据此将所述终端分为指定级别,其中所述级别越高,表明所述终端点击APP推送消息的可能性越高。再通过判断所述指定级别是否大于预设的级别阈值;若所述指定级别大于预设的级别阈值,则判断所述终端是否卸载了APP;若所述终端未卸载APP,则判断所述终端是否与APP对应的服务端保持长心跳连接;若所述终端与APP对应的服务端保持长心跳连接,则采用APP推送消息的方式向所述目标手机号发送信息,以实现了保证信息抵达率的前提下降低成本。进一步地,若所述指定级别不大于预设的级别阈值,或者若所述终端卸载了APP,或者若所述终端与APP对应的服务端未保持长心跳连接,则采用短信的方式发送信息。As described above, it is realized that if a plurality of the first distances are all less than a preset distance threshold, a multi-process judgment method is adopted to reduce the cost on the premise of ensuring the information arrival rate. Wherein, if a plurality of the first distances are all less than a preset distance threshold, it indicates that the user cannot correspond to the existing information transmission strategy, and therefore, it is necessary to formulate an information transmission strategy in real time. The historical data of clicking APP push messages is, for example, the total number of times of clicking APP push messages, the total number of days, the time length of clicking and reading APP push messages, etc., and then dividing the terminal into designated levels based on this, where the higher the level , Indicating that the terminal is more likely to click on the APP to push messages. Then determine whether the designated level is greater than the preset level threshold; if the designated level is greater than the preset level threshold, determine whether the terminal has uninstalled the APP; if the terminal has not uninstalled the APP, then determine the terminal Whether to maintain a long heartbeat connection with the server corresponding to the APP; if the terminal and the server corresponding to the APP maintain a long heartbeat connection, the APP push message is used to send information to the target mobile phone number, so as to achieve a guaranteed information arrival rate The premise of reducing costs. Further, if the designated level is not greater than a preset level threshold, or if the terminal has uninstalled the APP, or if the terminal and the server corresponding to the APP do not maintain a long heartbeat connection, the message is sent by means of short messages.
本申请的基于距离的信息发送方法,获取目标手机号,以及获取与所述目标手机号的使用者的特征信息;利用所述特征信息,将所述目标手机号映射为高维虚拟空间中的指定向量;从多个标准高维向量中筛选出多个暂时向量;计算得到多个第一距离,其中所述第一距离为所述指定向量与所述暂时向量之间的距离;判断多个所述第一距离是否均小于预设的距离阈值;若多个所述第一距离不均小于预设的距离阈值,则根据第一距离-暂时向量-信息发送策略的对应关系,获取数值最大的第一距离对应的指定信息发送策略,并根据所述指定信息发送策略向所述目标手机号发送信息。从而实现了针对性地发送信息,在保证送达率的前提下降低信息发送成本。The distance-based information sending method of the present application obtains a target mobile phone number, and obtains characteristic information of a user with the target mobile phone number; using the characteristic information, the target mobile phone number is mapped into a high-dimensional virtual space Designated vector; filter out a plurality of temporary vectors from a plurality of standard high-dimensional vectors; calculate a plurality of first distances, wherein the first distance is the distance between the designated vector and the temporary vector; determine a plurality of Whether the first distances are all less than a preset distance threshold; if a plurality of the first distances are not uniformly less than the preset distance threshold, the maximum value is obtained according to the correspondence relationship of the first distance-temporary vector-information sending strategy The designated information sending strategy corresponding to the first distance of, and sending information to the target mobile phone number according to the designated information sending strategy. This achieves targeted sending of information, and reduces the cost of information sending under the premise of ensuring the delivery rate.
参照图2,本申请实施例提供一种基于距离的信息发送装置,包括:2, an embodiment of the present application provides a distance-based information sending device, including:
目标手机号获取单元10,用于获取目标手机号,以及获取所述目标手机号的使用者的特征信息,所述特征信息至少包括所述使用者的身份信息、所述使用者使用APP的时长和所述使用者点击的APP推送消息占接收到的所有APP推送消息的比例;The target mobile phone number acquiring unit 10 is configured to acquire the target mobile phone number and the characteristic information of the user who acquires the target mobile phone number. The characteristic information includes at least the identity information of the user and the length of time the user uses the APP And the proportion of APP push messages clicked by the user to all APP push messages received;
指定向量映射单元20,用于根据预设的高维向量映射算法,利用所述特征信息,将所述目标手机号映射为高维虚拟空间中的指定向量,其中所述高维虚拟空间中预先设置有多个标准高维向量,多个标准高维向量分别关联预设的多个信息发送策略;The designated vector mapping unit 20 is configured to map the target mobile phone number to a designated vector in a high-dimensional virtual space according to a preset high-dimensional vector mapping algorithm and using the characteristic information, wherein the high-dimensional virtual space is preliminarily Multiple standard high-dimensional vectors are set, and multiple standard high-dimensional vectors are respectively associated with multiple preset information sending strategies;
暂时向量获取单元30,用于根据预设的向量筛选方法,从多个标准高维向量中筛选出多个暂时向量;The temporary vector obtaining unit 30 is configured to filter multiple temporary vectors from multiple standard high-dimensional vectors according to a preset vector screening method;
第一距离计算单元40,用于根据预设的距离计算方法,计算得到多个第一距离,其中所述第一距离为所述指定向量与所述暂时向量之间的距离;The first distance calculation unit 40 is configured to calculate a plurality of first distances according to a preset distance calculation method, where the first distance is the distance between the designated vector and the temporary vector;
第一距离判断单元50,用于判断多个所述第一距离是否均小于预设的距离阈值;The first distance judging unit 50 is configured to judge whether a plurality of the first distances are all less than a preset distance threshold;
信息发送单元60,用于若多个所述第一距离不均小于预设的距离阈值,则根据第一距离-暂时向量-信息发送策略的对应关系,获取数值最大的第一距离对应的指定信息发送策略,并根据所述指定信息发送策略向所述目标手机号发送信息。The information sending unit 60 is configured to, if a plurality of the first distances are not uniformly smaller than a preset distance threshold, obtain the specified value corresponding to the first distance with the largest value according to the correspondence relationship of the first distance-temporary vector-information sending strategy Information sending strategy, and sending information to the target mobile phone number according to the specified information sending strategy.
其中上述单元分别用于执行的操作与前述实施方式的基于距离的信息发送方法的步骤一一对应,在此不再赘述。The operations performed by the above-mentioned units respectively correspond to the steps of the distance-based information sending method in the foregoing embodiment, and are not repeated here.
在一个实施方式中,所述指定向量映射单元20,包括:In one embodiment, the designated vector mapping unit 20 includes:
信息划分子单元,用于将所述特征信息划分为身份信息和除所述身份信息之外的其他信息;The information division subunit is used to divide the characteristic information into identity information and other information except the identity information;
分向量组映射子单元,用于根据预设的信息与向量的对应关系,将所述身份信息和所述其他信息分别映射为第一分向量组A和第二分向量组B;The sub-vector group mapping subunit is configured to map the identity information and the other information into the first sub-vector group A and the second sub-vector group B according to the preset correspondence between the information and the vector;
影响参数组获取子单元,用于根据预设的第一向量组对第二向量组的影响关系,获取所述第一分向量组A对第二分向量组B的影响参数组k1-kn;The influence parameter group obtaining subunit is configured to obtain the influence parameter group k1-kn of the first partial vector group A on the second partial vector group B according to the preset influence relationship of the first vector group on the second vector group;
指定向量获取子单元,用于根据公式:C=(A,k1b1,k2b2,…,knbn),计算得到指定向量C,其中所述第二分向量组B为(b1,b2,…,bn),n为大于0的整数。The designated vector acquisition subunit is used to calculate the designated vector C according to the formula: C=(A,k1b1,k2b2,...,knbn), wherein the second sub-vector group B is (b1,b2,...,bn) , n is an integer greater than 0.
其中上述子单元分别用于执行的操作与前述实施方式的基于距离的信息发送方法的步骤一一对应,在此不再赘述。The operations performed by the foregoing subunits respectively correspond to the steps of the distance-based information sending method of the foregoing embodiment, and are not repeated here.
在一个实施方式中,所述暂时向量获取单元30,包括:In one embodiment, the temporary vector acquiring unit 30 includes:
长度Lc计算子单元,用于根据公式:The length Lc calculates the subunit, which is used according to formula
Figure PCTCN2019117211-appb-000012
计算出指定向量的长度Lc,其中C为所述指定向量,Ci为所述指定向量C的第i个分向量,所述指定向量C共有m个分向量;
Figure PCTCN2019117211-appb-000012
Calculate the length Lc of the designated vector, where C is the designated vector, Ci is the i-th component vector of the designated vector C, and the designated vector C has a total of m component vectors;
长度Lp计算子单元,用于根据公式:The length Lp calculation subunit is used according to the formula:
Figure PCTCN2019117211-appb-000013
计算出所述标准高维向量的长度Lp,其中P为第p个标准高维向量,Pi为第p个标准高维向量的第i个分向量,所述第p个标准高维向量共有m个分向量;
Figure PCTCN2019117211-appb-000013
Calculate the length Lp of the standard high-dimensional vector, where P is the p-th standard high-dimensional vector, Pi is the i-th component vector of the p-th standard high-dimensional vector, and the p-th standard high-dimensional vector has a total of m Sub-vector
暂时向量获取子单元,用于根据公式:长度差=|Lc-Lp|,分别计算得到所述指定向量与所述多个标准高维向量的多个长度差,并根据所述长度差小于预设的差值阈值的选择规则,从所述多个长度差中选出多个暂时向量。The temporary vector acquisition subunit is used to calculate the multiple length differences between the designated vector and the multiple standard high-dimensional vectors according to the formula: length difference=|Lc-Lp| The selection rule of the difference threshold is set to select a plurality of temporary vectors from the plurality of length differences.
其中上述子单元分别用于执行的操作与前述实施方式的基于距离的信息发送方法的步骤一一对应,在此不再赘述。The operations performed by the foregoing subunits respectively correspond to the steps of the distance-based information sending method of the foregoing embodiment, and are not repeated here.
在一个实施方式中,所述第一距离计算单元40,包括:In an embodiment, the first distance calculation unit 40 includes:
第一距离计算子单元,用于根据公式:The first distance calculation subunit is used according to the formula:
Figure PCTCN2019117211-appb-000014
计算得到多个第一距离DIS,其中所述第一距离DIS为所述指定向量与所述暂时向量之间的距离,其中C为所述指定向量,Ci为所述指定向量C的第i个分向量,所述指定向量C共有m个分向量,D为暂时向量,Di为所述暂时向量D的第i个分向量,所述暂时向量D共有m个分向量。
Figure PCTCN2019117211-appb-000014
A plurality of first distances DIS are calculated, wherein the first distance DIS is the distance between the designated vector and the temporary vector, where C is the designated vector, and Ci is the i-th of the designated vector C Partial vector, the specified vector C has a total of m part vectors, D is a temporary vector, Di is the i-th part vector of the temporary vector D, and the temporary vector D has a total of m part vectors.
其中上述子单元分别用于执行的操作与前述实施方式的基于距离的信息发送方法的步骤一一对应,在此不再赘述。The operations performed by the foregoing subunits respectively correspond to the steps of the distance-based information sending method of the foregoing embodiment, and are not repeated here.
在一个实施方式中,所述多个暂时向量中包括占位向量和非占位向量,所述占位向量中的部分分向量由复制占位符占位,所述复制占位符用于复制且替换所述指定向量中相同维度的分向量的数值,所述第一距离计算单元40,包括:In one embodiment, the plurality of temporary vectors include placeholder vectors and non-placeholder vectors, and part of the component vectors in the placeholder vectors are occupied by copy placeholders, and the copy placeholders are used for copying. And to replace the numerical value of the component vector of the same dimension in the specified vector, the first distance calculation unit 40 includes:
复制替换子单元,用于对所述占位向量进行复制替换操作,从而得到进行替换操作后的占位向量,所述复制替换操作用于将所述占位向量中的复制占位符替换为所述指定向量中相同维度的分向量的数值;The copy replacement subunit is used to perform a copy replacement operation on the placeholder vector to obtain a placeholder vector after the replacement operation, and the copy replacement operation is used to replace the copy placeholder in the placeholder vector with The numerical value of the component vector of the same dimension in the specified vector;
第一距离DIS计算子单元,用于根据公式:The first distance DIS calculation subunit is used according to the formula:
Figure PCTCN2019117211-appb-000015
计算得到多个第一距离DIS,其中所述第一距离DIS为所述指定向量与所述非占位向量之间的距离,或者所述第一距离DIS为所述指定向量与所述进行替换操作后的占位向量之间的距离,其中C为所述指定向量,Ci为所述指定向量C的第i个分向量,所述指定向量C共有m个分向量,D为所述非占位向量或者所述进行替换操作后的占位向量,Di为向量D的第i个分向量,向量D共有m个分向量。
Figure PCTCN2019117211-appb-000015
A plurality of first distances DIS is calculated, wherein the first distance DIS is the distance between the designated vector and the non-occupied vector, or the first distance DIS is the designated vector and the replacement The distance between the occupied vectors after the operation, where C is the designated vector, Ci is the i-th component vector of the designated vector C, the designated vector C has m component vectors in total, and D is the non-occupied vector For the bit vector or the placeholder vector after the replacement operation, Di is the i-th component vector of the vector D, and the vector D has a total of m component vectors.
其中上述子单元分别用于执行的操作与前述实施方式的基于距离的信息发送方法的步骤一一对应,在此不再赘述。The operations performed by the foregoing subunits respectively correspond to the steps of the distance-based information sending method of the foregoing embodiment, and are not repeated here.
在一个实施方式中,所述占位向量为家庭向量,所述家庭向量对应的第一距离的数值是多个所述第一距离中最大的,所述信息发送单元60,包括:In one embodiment, the occupancy vector is a family vector, the value of the first distance corresponding to the family vector is the largest among the plurality of first distances, and the information sending unit 60 includes:
指定信息发送策略获取子单元,用于获取所述家庭向量对应的指定信息发送策略,所述指定信息发送策略为仅向所述目标手机号使用者的家庭成员之一发送完整短信或者推送完整APP消息;The designated information sending strategy acquisition subunit is used to acquire the designated information sending strategy corresponding to the family vector, and the designated information sending strategy is to only send a complete short message or push a complete APP to one of the family members of the target mobile phone number user news;
接收判断子单元,用于判断所述目标手机号使用者的家庭中的任一个成员是否接收过完整短信或者推送的完整APP消息;The receiving judgment subunit is used to judge whether any member of the family of the target mobile phone number user has received a complete short message or a pushed complete APP message;
信息发送子单元,用于若所述目标手机号使用者的家庭中的任一个成员接收过短信或者推送的APP 消息,则向所述目标手机号发送简略短信或者推送简略APP消息,其中所述简略短信为所述完整短信中的一部分,所述简略APP消息是所述完整APP消息中的一部分。The information sending subunit is configured to send a short short message or push a short APP message to the target mobile phone number if any member in the family of the target mobile phone number user has received a short message or push a short APP message, wherein the The abbreviated short message is a part of the complete short message, and the abbreviated APP message is a part of the complete APP message.
其中上述子单元分别用于执行的操作与前述实施方式的基于距离的信息发送方法的步骤一一对应,在此不再赘述。The operations performed by the foregoing subunits respectively correspond to the steps of the distance-based information sending method of the foregoing embodiment, and are not repeated here.
在一个实施方式中,所述装置,包括:In one embodiment, the device includes:
历史数据获取单元,用于若多个所述第一距离均小于预设的距离阈值,则获取所述使用者对应的终端的点击APP推送消息的历史数据,并根据所述历史数据将所述终端分为指定级别;The historical data acquiring unit is configured to, if the plurality of the first distances are all less than a preset distance threshold, acquire the historical data of the click APP push message of the terminal corresponding to the user, and compare the historical data according to the historical data The terminal is divided into designated levels;
指定级别判断单元,用于判断所述指定级别是否大于预设的级别阈值;A designated level judging unit, configured to judge whether the designated level is greater than a preset level threshold;
卸载判断单元,用于若所述指定级别大于预设的级别阈值,则判断所述终端是否卸载了APP;An uninstallation judging unit, configured to judge whether the terminal has uninstalled the APP if the specified level is greater than a preset level threshold;
长心跳连接判断单元,用于若所述终端未卸载APP,则判断所述终端是否与APP对应的服务端保持长心跳连接;A long heartbeat connection judging unit, configured to judge whether the terminal maintains a long heartbeat connection with the server corresponding to the APP if the terminal has not uninstalled the APP;
推送消息单元,用于若所述终端与APP对应的服务端保持长心跳连接,则采用APP推送消息的方式向所述目标手机号发送信息。The message push unit is configured to send information to the target mobile phone number by means of APP push messages if the terminal maintains a long heartbeat connection with the server corresponding to the APP.
其中上述单元分别用于执行的操作与前述实施方式的基于距离的信息发送方法的步骤一一对应,在此不再赘述。The operations performed by the above-mentioned units respectively correspond to the steps of the distance-based information sending method in the foregoing embodiment, and are not repeated here.
参照图3,本申请实施例中还提供一种计算机设备,该计算机设备可以是服务器,其内部结构可以如图所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设计的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储基于距离的信息发送方法所用数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种基于距离的信息发送方法。3, an embodiment of the present application also provides a computer device. The computer device may be a server, and its internal structure may be as shown in the figure. The computer equipment includes a processor, a memory, a network interface, and a database connected through a system bus. Among them, the processor designed by the computer is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used to store the data used in the distance-based information transmission method. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program is executed by the processor to realize a distance-based information transmission method.
上述处理器执行上述基于距离的信息发送方法,其中所述方法包括的步骤分别与执行前述实施方式的基于距离的信息发送方法的步骤一一对应,在此不再赘述。The above-mentioned processor executes the above-mentioned distance-based information sending method, wherein the steps included in the method respectively correspond to the steps of executing the distance-based information sending method of the foregoing embodiment, and will not be repeated here.
本领域技术人员可以理解,图中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定。Those skilled in the art can understand that the structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied.
本申请一实施例还提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现基于距离的信息发送方法,其中所述方法包括的步骤分别与执行前述实施方式的基于距离的信息发送方法的步骤一一对应,在此不再赘述。所述计算机可读存储介质,例如为非易失性的计算机可读存储介质,或者为易失性的计算机可读存储介质。An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, a distance-based information transmission method is implemented, wherein the steps included in the method are respectively the same as those in the previous embodiments. The steps of the distance-based information sending method correspond to each other, so I won’t repeat them here. The computer-readable storage medium is, for example, a non-volatile computer-readable storage medium or a volatile computer-readable storage medium.

Claims (20)

  1. 一种基于距离的信息发送方法,其特征在于,包括:A distance-based information sending method, which is characterized in that it includes:
    获取目标手机号,以及获取所述目标手机号的使用者的特征信息,所述特征信息至少包括所述使用者的身份信息、所述使用者使用APP的时长和所述使用者点击的APP推送消息占接收到的所有APP推送消息的比例;Obtaining the target mobile phone number, and acquiring the characteristic information of the user of the target mobile phone number, the characteristic information including at least the identity information of the user, the length of time the user uses the APP, and the push of the APP clicked by the user The proportion of messages to all APP push messages received;
    根据预设的高维向量映射算法,利用所述特征信息,将所述目标手机号映射为高维虚拟空间中的指定向量,其中所述高维虚拟空间中预先设置有多个标准高维向量,多个标准高维向量分别关联预设的多个信息发送策略;According to a preset high-dimensional vector mapping algorithm, the target mobile phone number is mapped to a designated vector in a high-dimensional virtual space using the feature information, wherein a plurality of standard high-dimensional vectors are preset in the high-dimensional virtual space , Multiple standard high-dimensional vectors are respectively associated with multiple preset information sending strategies;
    根据预设的向量筛选方法,从多个标准高维向量中筛选出多个暂时向量;Filter out multiple temporary vectors from multiple standard high-dimensional vectors according to the preset vector screening method;
    根据预设的距离计算方法,计算得到多个第一距离,其中所述第一距离为所述指定向量与所述暂时向量之间的距离;According to a preset distance calculation method, multiple first distances are calculated, where the first distance is the distance between the designated vector and the temporary vector;
    判断多个所述第一距离是否均小于预设的距离阈值;Judging whether a plurality of the first distances are all less than a preset distance threshold;
    若多个所述第一距离不均小于预设的距离阈值,则根据第一距离-暂时向量-信息发送策略的对应关系,获取数值最大的第一距离对应的指定信息发送策略,并根据所述指定信息发送策略向所述目标手机号发送信息。If the plurality of the first distances are not uniformly smaller than the preset distance threshold, then according to the corresponding relationship of the first distance-temporary vector-information sending strategy, the designated information sending strategy corresponding to the first distance with the largest value is obtained, and according to all The specified information sending strategy sends information to the target mobile phone number.
  2. 根据权利要求1所述的基于距离的信息发送方法,其特征在于,所述根据预设的高维向量映射算法,利用所述特征信息,将所述目标手机号映射为高维虚拟空间中的指定向量的步骤,包括:The distance-based information sending method according to claim 1, wherein the target mobile phone number is mapped into a high-dimensional virtual space by using the characteristic information according to a preset high-dimensional vector mapping algorithm The steps to specify the vector include:
    将所述特征信息划分为身份信息和除所述身份信息之外的其他信息;Dividing the characteristic information into identity information and other information except the identity information;
    根据预设的信息与向量的对应关系,将所述身份信息和所述其他信息分别映射为第一分向量组A和第二分向量组B;Mapping the identity information and the other information into the first partial vector group A and the second partial vector group B according to the preset correspondence between the information and the vector;
    根据预设的第一向量组对第二向量组的影响关系,获取所述第一分向量组A对第二分向量组B的影响参数组k1-kn;Obtaining the influence parameter group k1-kn of the first partial vector group A on the second partial vector group B according to the preset influence relationship of the first vector group on the second vector group;
    根据公式:C=(A,k1b1,k2b2,…,knbn),计算得到指定向量C,其中所述第二分向量组B为(b1,b2,…,bn),n为大于0的整数。According to the formula: C=(A,k1b1,k2b2,...,knbn), the designated vector C is calculated, wherein the second sub-vector group B is (b1,b2,...,bn), and n is an integer greater than zero.
  3. 根据权利要求1所述的基于距离的信息发送方法,其特征在于,所述根据预设的向量筛选方法,从多个标准高维向量中筛选出多个暂时向量的步骤,包括:The distance-based information sending method according to claim 1, wherein the step of screening multiple temporary vectors from multiple standard high-dimensional vectors according to a preset vector screening method comprises:
    根据公式:According to the formula:
    Figure PCTCN2019117211-appb-100001
    计算出指定向量的长度Lc,其中C为所述指定向量,Ci为所述指定向量C的第i个分向量,所述指定向量C共有m个分向量;
    Figure PCTCN2019117211-appb-100001
    Calculate the length Lc of the designated vector, where C is the designated vector, Ci is the i-th component vector of the designated vector C, and the designated vector C has a total of m component vectors;
    根据公式:According to the formula:
    Figure PCTCN2019117211-appb-100002
    计算出所述标准高维向量的长度Lp,其中P为第p个标准高维向量,Pi为第p个标准高维向量的第i个分向量,所述第p个标准高维向量共有m个分向量;
    Figure PCTCN2019117211-appb-100002
    Calculate the length Lp of the standard high-dimensional vector, where P is the p-th standard high-dimensional vector, Pi is the i-th component vector of the p-th standard high-dimensional vector, and the p-th standard high-dimensional vector has a total of m Sub-vector
    根据公式:长度差=|Lc-Lp|,分别计算得到所述指定向量与所述多个标准高维向量的多个长度差,并根据所述长度差小于预设的差值阈值的选择规则,从所述多个长度差中选出多个暂时向量。According to the formula: length difference=|Lc-Lp|, multiple length differences between the designated vector and the multiple standard high-dimensional vectors are calculated respectively, and according to the selection rule that the length difference is less than a preset difference threshold , Selecting a plurality of temporary vectors from the plurality of length differences.
  4. 根据权利要求1所述的基于距离的信息发送方法,其特征在于,所述根据预设的距离计算方法,计算得到多个第一距离,其中所述第一距离为所述指定向量与所述暂时向量之间的距离的步骤,包括:The distance-based information sending method according to claim 1, wherein a plurality of first distances are calculated according to a preset distance calculation method, wherein the first distance is the distance between the designated vector and the The steps for the distance between temporary vectors include:
    根据公式:According to the formula:
    Figure PCTCN2019117211-appb-100003
    计算得到多个第一距离DIS,其中所述第一距离DIS为所述指定向量与所述暂时向量之间的距离,其中C为所述指定向量,Ci为所述指定向量C的第i个分向量,所述指定向量C共有m个分向量,D为暂时向量,Di为所述暂时向量D的第i个分向量,所述暂时向量D共有m个分向量。
    Figure PCTCN2019117211-appb-100003
    A plurality of first distances DIS are calculated, wherein the first distance DIS is the distance between the designated vector and the temporary vector, where C is the designated vector, and Ci is the i-th of the designated vector C Partial vector, the specified vector C has a total of m part vectors, D is a temporary vector, Di is the i-th part vector of the temporary vector D, and the temporary vector D has a total of m part vectors.
  5. 根据权利要求1所述的基于距离的信息发送方法,其特征在于,所述多个暂时向量中包括占位向量和非占位向量,所述占位向量中的部分分向量由复制占位符占位,所述复制占位符用于复制且替换所述指定向量中相同维度的分向量的数值,所述根据预设的距离计算方法,计算得到多个第一距离,其中所述第一距离为所述指定向量与所述暂时向量之间的距离的步骤,包括:The distance-based information sending method according to claim 1, wherein the plurality of temporary vectors includes a placeholder vector and a non-placeholder vector, and a part of the sub-vectors in the placeholder vector are copied from the placeholder. The copy placeholder is used to copy and replace the value of the component vector of the same dimension in the specified vector, and the multiple first distances are calculated according to a preset distance calculation method, wherein the first distance The step of the distance being the distance between the specified vector and the temporary vector includes:
    对所述占位向量进行复制替换操作,从而得到进行替换操作后的占位向量,所述复制替换操作用于将所述占位向量中的复制占位符替换为所述指定向量中相同维度的分向量的数值;A copy replacement operation is performed on the placeholder vector to obtain a placeholder vector after the replacement operation is performed, and the copy replacement operation is used to replace the copy placeholder in the placeholder vector with the same dimension in the specified vector The value of the component vector;
    根据公式:According to the formula:
    Figure PCTCN2019117211-appb-100004
    计算得到多个第一距离DIS,其中所述第一距离DIS为所述指定向量与所述非占位向量之间的距离,或者所述第一距离DIS为所述指定向量与所述进行替换操作后的占位向量之间的距离,其中C为所述指定向量,Ci为所述指定向量C的第i个分向量,所述指定向量C共有m个分向量,D为所述非占位向量或者所述进行替换操作后的占位向量,Di为向量D的第i个分向量,向量D共有m个分向量。
    Figure PCTCN2019117211-appb-100004
    A plurality of first distances DIS is calculated, wherein the first distance DIS is the distance between the designated vector and the non-occupied vector, or the first distance DIS is the designated vector and the replacement The distance between the occupied vectors after the operation, where C is the designated vector, Ci is the i-th component vector of the designated vector C, the designated vector C has m component vectors in total, and D is the non-occupied vector For the bit vector or the placeholder vector after the replacement operation, Di is the i-th component vector of the vector D, and the vector D has a total of m component vectors.
  6. 根据权利要求5所述的基于距离的信息发送方法,其特征在于,所述占位向量为家庭向量,所述家庭向量对应的第一距离的数值是多个所述第一距离中最大的,所述根据第一距离-暂时向量-信息发送策略的对应关系,获取数值最大的第一距离对应的指定信息发送策略,并根据所述指定信息发送策略 向所述目标手机号发送信息的步骤,包括:The distance-based information sending method according to claim 5, wherein the occupancy vector is a family vector, and the value of the first distance corresponding to the family vector is the largest among the plurality of first distances, The step of obtaining the designated information sending strategy corresponding to the first distance with the largest value according to the corresponding relationship of the first distance-temporary vector-information sending strategy, and sending information to the target mobile phone number according to the designated information sending strategy, include:
    获取所述家庭向量对应的指定信息发送策略,所述指定信息发送策略为仅向所述目标手机号使用者的家庭成员之一发送完整短信或者推送完整APP消息;Acquiring a designated information sending strategy corresponding to the family vector, where the designated information sending strategy is to only send a complete short message or push a complete APP message to one of the family members of the target mobile phone number user;
    判断所述目标手机号使用者的家庭中的任一个成员是否接收过完整短信或者推送的完整APP消息;Judging whether any member in the family of the target mobile phone number user has received a complete short message or a pushed complete APP message;
    若所述目标手机号使用者的家庭中的任一个成员接收过短信或者推送的APP消息,则向所述目标手机号发送简略短信或者推送简略APP消息,其中所述简略短信为所述完整短信中的一部分,所述简略APP消息是所述完整APP消息中的一部分。If any member of the family of the target mobile phone number user has received a short message or a pushed APP message, send a short short message or push a short APP message to the target mobile number, wherein the short short message is the complete short message The abbreviated APP message is a part of the complete APP message.
  7. 根据权利要求1所述的基于距离的信息发送方法,其特征在于,所述判断多个所述第一距离是否均小于预设的距离阈值的步骤之后,包括:The distance-based information sending method according to claim 1, wherein after the step of judging whether a plurality of the first distances are all less than a preset distance threshold, the method comprises:
    若多个所述第一距离均小于预设的距离阈值,则获取所述使用者对应的终端的点击APP推送消息的历史数据,并根据所述历史数据将所述终端分为指定级别;If the plurality of first distances are all less than a preset distance threshold, acquiring historical data of the APP push message of the terminal corresponding to the user, and classifying the terminal into a specified level according to the historical data;
    判断所述指定级别是否大于预设的级别阈值;Judging whether the specified level is greater than a preset level threshold;
    若所述指定级别大于预设的级别阈值,则判断所述终端是否卸载了APP;If the specified level is greater than the preset level threshold, determining whether the terminal has uninstalled the APP;
    若所述终端未卸载APP,则判断所述终端是否与APP对应的服务端保持长心跳连接;If the terminal does not uninstall the APP, determine whether the terminal maintains a long heartbeat connection with the server corresponding to the APP;
    若所述终端与APP对应的服务端保持长心跳连接,则采用APP推送消息的方式向所述目标手机号发送信息。If the terminal and the server corresponding to the APP maintain a long heartbeat connection, the message is sent to the target mobile phone number by means of APP push messages.
  8. 一种基于距离的信息发送装置,其特征在于,包括:A distance-based information sending device is characterized in that it comprises:
    目标手机号获取单元,用于获取目标手机号,以及获取所述目标手机号的使用者的特征信息,所述特征信息至少包括所述使用者的身份信息、所述使用者使用APP的时长和所述使用者点击的APP推送消息占接收到的所有APP推送消息的比例;The target mobile phone number acquiring unit is used to acquire the target mobile phone number and the characteristic information of the user of the target mobile phone number. The characteristic information includes at least the identity information of the user, the length of time the user uses the APP, and The proportion of APP push messages clicked by the user to all APP push messages received;
    指定向量映射单元,用于根据预设的高维向量映射算法,利用所述特征信息,将所述目标手机号映射为高维虚拟空间中的指定向量,其中所述高维虚拟空间中预先设置有多个标准高维向量,多个标准高维向量分别关联预设的多个信息发送策略;A designated vector mapping unit is used to map the target mobile phone number to a designated vector in a high-dimensional virtual space by using the feature information according to a preset high-dimensional vector mapping algorithm, wherein the high-dimensional virtual space is preset There are multiple standard high-dimensional vectors, and multiple standard high-dimensional vectors are respectively associated with multiple preset information sending strategies;
    暂时向量获取单元,用于根据预设的向量筛选方法,从多个标准高维向量中筛选出多个暂时向量;The temporary vector acquisition unit is used to filter multiple temporary vectors from multiple standard high-dimensional vectors according to a preset vector screening method;
    第一距离计算单元,用于根据预设的距离计算方法,计算得到多个第一距离,其中所述第一距离为所述指定向量与所述暂时向量之间的距离;A first distance calculation unit, configured to calculate a plurality of first distances according to a preset distance calculation method, wherein the first distance is the distance between the designated vector and the temporary vector;
    第一距离判断单元,用于判断多个所述第一距离是否均小于预设的距离阈值;A first distance judging unit, configured to judge whether a plurality of the first distances are all less than a preset distance threshold;
    信息发送单元,用于若多个所述第一距离不均小于预设的距离阈值,则根据第一距离-暂时向量-信息发送策略的对应关系,获取数值最大的第一距离对应的指定信息发送策略,并根据所述指定信息发送策略向所述目标手机号发送信息。An information sending unit, configured to obtain designated information corresponding to the first distance with the largest value according to the correspondence relationship of the first distance-temporary vector-information sending strategy if the plurality of the first distances are not all less than the preset distance threshold Sending a strategy, and sending information to the target mobile phone number according to the specified information sending strategy.
  9. 根据权利要求8所述的基于距离的信息发送装置,其特征在于,所述指定向量映射单元,包括:The distance-based information sending device according to claim 8, wherein the designated vector mapping unit comprises:
    信息划分子单元,用于将所述特征信息划分为身份信息和除所述身份信息之外的其他信息;The information division subunit is used to divide the characteristic information into identity information and other information except the identity information;
    分向量组映射子单元,用于根据预设的信息与向量的对应关系,将所述身份信息和所述其他信息分别映射为第一分向量组A和第二分向量组B;The sub-vector group mapping subunit is configured to map the identity information and the other information into the first sub-vector group A and the second sub-vector group B according to the preset correspondence between the information and the vector;
    影响参数组获取子单元,用于根据预设的第一向量组对第二向量组的影响关系,获取所述第一分向量组A对第二分向量组B的影响参数组k1-kn;The influence parameter group obtaining subunit is configured to obtain the influence parameter group k1-kn of the first partial vector group A on the second partial vector group B according to the preset influence relationship of the first vector group on the second vector group;
    指定向量获取子单元,用于根据公式:C=(A,k1b1,k2b2,…,knbn),计算得到指定向量C,其中所述第二分向量组B为(b1,b2,…,bn),n为大于0的整数。The designated vector acquisition subunit is used to calculate the designated vector C according to the formula: C=(A,k1b1,k2b2,...,knbn), wherein the second sub-vector group B is (b1,b2,...,bn) , n is an integer greater than 0.
  10. 根据权利要求8所述的基于距离的信息发送装置,其特征在于,所述暂时向量获取单元,包括:The distance-based information sending device according to claim 8, wherein the temporary vector acquiring unit comprises:
    长度Lc计算子单元,用于根据公式:The length Lc calculates the subunit, which is used according to formula
    Figure PCTCN2019117211-appb-100005
    计算出指定向量的长度Lc,其中C为所述指定向量,Ci为所述指定向量C的第i个分向量,所述指定向量C共有m个分向量;
    Figure PCTCN2019117211-appb-100005
    Calculate the length Lc of the designated vector, where C is the designated vector, Ci is the i-th component vector of the designated vector C, and the designated vector C has a total of m component vectors;
    长度Lp计算子单元,用于根据公式:The length Lp calculation subunit is used according to the formula:
    Figure PCTCN2019117211-appb-100006
    计算出所述标准高维向量的长度Lp,其中P为第p个标准高维向量,Pi为第p个标准高维向量的第i个分向量,所述第p个标准高维向量共有m个分向量;
    Figure PCTCN2019117211-appb-100006
    Calculate the length Lp of the standard high-dimensional vector, where P is the p-th standard high-dimensional vector, Pi is the i-th component vector of the p-th standard high-dimensional vector, and the p-th standard high-dimensional vector has a total of m Sub-vector
    暂时向量获取子单元,用于根据公式:长度差=|Lc-Lp|,分别计算得到所述指定向量与所述多个标准高维向量的多个长度差,并根据所述长度差小于预设的差值阈值的选择规则,从所述多个长度差中选出多个暂时向量。The temporary vector acquisition subunit is used to calculate the multiple length differences between the designated vector and the multiple standard high-dimensional vectors according to the formula: length difference=|Lc-Lp| The selection rule of the difference threshold is set to select a plurality of temporary vectors from the plurality of length differences.
  11. 根据权利要求8所述的基于距离的信息发送装置,其特征在于,所述第一距离计算单元,包括:The distance-based information sending device according to claim 8, wherein the first distance calculation unit comprises:
    第一距离计算子单元,用于根据公式:The first distance calculation subunit is used according to the formula:
    Figure PCTCN2019117211-appb-100007
    计算得到多个第一距离DIS,其中所述第一距离DIS为所述指定向量与所述暂时向量之间的距离,其中C为所述指定向量,Ci为所述指定向量C的第i个分向量,所述指定向量C共有m个分向量,D为暂时向量,Di为所述暂时向量D的第i个分向量,所述暂时向量D共有m个分向量。
    Figure PCTCN2019117211-appb-100007
    A plurality of first distances DIS are calculated, wherein the first distance DIS is the distance between the designated vector and the temporary vector, where C is the designated vector, and Ci is the i-th of the designated vector C Partial vector, the specified vector C has a total of m part vectors, D is a temporary vector, Di is the i-th part vector of the temporary vector D, and the temporary vector D has a total of m part vectors.
  12. 根据权利要求8所述的基于距离的信息发送装置,其特征在于,所述多个暂时向量中包括占位向量和非占位向量,所述占位向量中的部分分向量由复制占位符占位,所述复制占位符用于复制且替换所述指定向量中相同维度的分向量的数值,所述第一距离计算单元,包括:The distance-based information sending device according to claim 8, wherein the plurality of temporary vectors includes a placeholder vector and a non-placeholder vector, and a part of the sub-vectors in the placeholder vector are duplicated by the placeholder. A placeholder, the copy placeholder is used to copy and replace the value of the component vector of the same dimension in the specified vector, and the first distance calculation unit includes:
    复制替换子单元,用于对所述占位向量进行复制替换操作,从而得到进行替换操作后的占位向量,所述复制替换操作用于将所述占位向量中的复制占位符替换为所述指定向量中相同维度的分向量的数 值;The copy replacement subunit is used to perform a copy replacement operation on the placeholder vector to obtain a placeholder vector after the replacement operation, and the copy replacement operation is used to replace the copy placeholder in the placeholder vector with The numerical value of the component vector of the same dimension in the specified vector;
    第一距离DIS计算子单元,用于根据公式:The first distance DIS calculation subunit is used according to the formula:
    Figure PCTCN2019117211-appb-100008
    计算得到多个第一距离DIS,其中所述第一距离DIS为所述指定向量与所述非占位向量之间的距离,或者所述第一距离DIS为所述指定向量与所述进行替换操作后的占位向量之间的距离,其中C为所述指定向量,Ci为所述指定向量C的第i个分向量,所述指定向量C共有m个分向量,D为所述非占位向量或者所述进行替换操作后的占位向量,Di为向量D的第i个分向量,向量D共有m个分向量。
    Figure PCTCN2019117211-appb-100008
    A plurality of first distances DIS is calculated, wherein the first distance DIS is the distance between the designated vector and the non-occupied vector, or the first distance DIS is the designated vector and the replacement The distance between the occupied vectors after the operation, where C is the designated vector, Ci is the i-th component vector of the designated vector C, the designated vector C has m component vectors in total, and D is the non-occupied vector For the bit vector or the placeholder vector after the replacement operation, Di is the i-th component vector of the vector D, and the vector D has a total of m component vectors.
  13. 根据权利要求12所述的基于距离的信息发送装置,其特征在于,所述占位向量为家庭向量,所述家庭向量对应的第一距离的数值是多个所述第一距离中最大的,所述信息发送单元,包括:The distance-based information sending device according to claim 12, wherein the occupancy vector is a family vector, and the value of the first distance corresponding to the family vector is the largest among the plurality of first distances, The information sending unit includes:
    指定信息发送策略获取子单元,用于获取所述家庭向量对应的指定信息发送策略,所述指定信息发送策略为仅向所述目标手机号使用者的家庭成员之一发送完整短信或者推送完整APP消息;The designated information sending strategy acquisition subunit is used to acquire the designated information sending strategy corresponding to the family vector, and the designated information sending strategy is to only send a complete short message or push a complete APP to one of the family members of the target mobile phone number user news;
    接收判断子单元,用于判断所述目标手机号使用者的家庭中的任一个成员是否接收过完整短信或者推送的完整APP消息;The receiving judgment subunit is used to judge whether any member of the family of the target mobile phone number user has received a complete short message or a pushed complete APP message;
    信息发送子单元,用于若所述目标手机号使用者的家庭中的任一个成员接收过短信或者推送的APP消息,则向所述目标手机号发送简略短信或者推送简略APP消息,其中所述简略短信为所述完整短信中的一部分,所述简略APP消息是所述完整APP消息中的一部分。The information sending subunit is configured to send a short short message or push a short APP message to the target mobile phone number if any member of the family of the target mobile phone number user has received a short message or push a short APP message, wherein the The abbreviated short message is a part of the complete short message, and the abbreviated APP message is a part of the complete APP message.
  14. 根据权利要求8所述的基于距离的信息发送装置,其特征在于,所述装置,包括:The distance-based information sending device according to claim 8, wherein the device comprises:
    历史数据获取单元,用于若多个所述第一距离均小于预设的距离阈值,则获取所述使用者对应的终端的点击APP推送消息的历史数据,并根据所述历史数据将所述终端分为指定级别;The historical data acquiring unit is configured to, if the plurality of the first distances are all less than a preset distance threshold, acquire the historical data of the click APP push message of the terminal corresponding to the user, and compare the historical data according to the historical data The terminal is divided into designated levels;
    指定级别判断单元,用于判断所述指定级别是否大于预设的级别阈值;A designated level judging unit, configured to judge whether the designated level is greater than a preset level threshold;
    卸载判断单元,用于若所述指定级别大于预设的级别阈值,则判断所述终端是否卸载了APP;An uninstallation judging unit, configured to judge whether the terminal has uninstalled the APP if the specified level is greater than a preset level threshold;
    长心跳连接判断单元,用于若所述终端未卸载APP,则判断所述终端是否与APP对应的服务端保持长心跳连接;A long heartbeat connection judging unit, configured to judge whether the terminal maintains a long heartbeat connection with the server corresponding to the APP if the terminal has not uninstalled the APP;
    推送消息单元,用于若所述终端与APP对应的服务端保持长心跳连接,则采用APP推送消息的方式向所述目标手机号发送信息。The message push unit is configured to send information to the target mobile phone number by means of APP push messages if the terminal maintains a long heartbeat connection with the server corresponding to the APP.
  15. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现基于距离的信息发送方法,所述基于距离的信息发送方法,包括:A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements a distance-based information sending method when the processor executes the computer program, the distance-based information sending method, include:
    获取目标手机号,以及获取所述目标手机号的使用者的特征信息,所述特征信息至少包括所述使用者的身份信息、所述使用者使用APP的时长和所述使用者点击的APP推送消息占接收到的所有APP推 送消息的比例;Obtaining the target mobile phone number, and acquiring the characteristic information of the user of the target mobile phone number, the characteristic information including at least the identity information of the user, the length of time the user uses the APP, and the push of the APP clicked by the user The proportion of messages to all APP push messages received;
    根据预设的高维向量映射算法,利用所述特征信息,将所述目标手机号映射为高维虚拟空间中的指定向量,其中所述高维虚拟空间中预先设置有多个标准高维向量,多个标准高维向量分别关联预设的多个信息发送策略;According to a preset high-dimensional vector mapping algorithm, the target mobile phone number is mapped to a designated vector in a high-dimensional virtual space using the feature information, wherein a plurality of standard high-dimensional vectors are preset in the high-dimensional virtual space , Multiple standard high-dimensional vectors are respectively associated with multiple preset information sending strategies;
    根据预设的向量筛选方法,从多个标准高维向量中筛选出多个暂时向量;Filter out multiple temporary vectors from multiple standard high-dimensional vectors according to the preset vector screening method;
    根据预设的距离计算方法,计算得到多个第一距离,其中所述第一距离为所述指定向量与所述暂时向量之间的距离;According to a preset distance calculation method, multiple first distances are calculated, where the first distance is the distance between the designated vector and the temporary vector;
    判断多个所述第一距离是否均小于预设的距离阈值;Judging whether a plurality of the first distances are all less than a preset distance threshold;
    若多个所述第一距离不均小于预设的距离阈值,则根据第一距离-暂时向量-信息发送策略的对应关系,获取数值最大的第一距离对应的指定信息发送策略,并根据所述指定信息发送策略向所述目标手机号发送信息。If the plurality of the first distances are not uniformly smaller than the preset distance threshold, then according to the corresponding relationship of the first distance-temporary vector-information sending strategy, the designated information sending strategy corresponding to the first distance with the largest value is obtained, and according to all The specified information sending strategy sends information to the target mobile phone number.
  16. 根据权利要求15所述的计算机设备,其特征在于,所述根据预设的高维向量映射算法,利用所述特征信息,将所述目标手机号映射为高维虚拟空间中的指定向量的步骤,包括:The computer device according to claim 15, wherein the step of mapping the target mobile phone number to a designated vector in a high-dimensional virtual space using the characteristic information according to a preset high-dimensional vector mapping algorithm ,include:
    将所述特征信息划分为身份信息和除所述身份信息之外的其他信息;Dividing the characteristic information into identity information and other information except the identity information;
    根据预设的信息与向量的对应关系,将所述身份信息和所述其他信息分别映射为第一分向量组A和第二分向量组B;Mapping the identity information and the other information into the first partial vector group A and the second partial vector group B according to the preset correspondence between the information and the vector;
    根据预设的第一向量组对第二向量组的影响关系,获取所述第一分向量组A对第二分向量组B的影响参数组k1-kn;Obtaining the influence parameter group k1-kn of the first partial vector group A on the second partial vector group B according to the preset influence relationship of the first vector group on the second vector group;
    根据公式:C=(A,k1b1,k2b2,…,knbn),计算得到指定向量C,其中所述第二分向量组B为(b1,b2,…,bn),n为大于0的整数。According to the formula: C=(A,k1b1,k2b2,...,knbn), the designated vector C is calculated, wherein the second sub-vector group B is (b1,b2,...,bn), and n is an integer greater than zero.
  17. 根据权利要求15所述的计算机设备,其特征在于,所述根据预设的向量筛选方法,从多个标准高维向量中筛选出多个暂时向量的步骤,包括:15. The computer device according to claim 15, wherein the step of filtering a plurality of temporary vectors from a plurality of standard high-dimensional vectors according to a preset vector filtering method comprises:
    根据公式:According to the formula:
    Figure PCTCN2019117211-appb-100009
    计算出指定向量的长度Lc,其中C为所述指定向量,Ci为所述指定向量C的第i个分向量,所述指定向量C共有m个分向量;
    Figure PCTCN2019117211-appb-100009
    Calculate the length Lc of the designated vector, where C is the designated vector, Ci is the i-th component vector of the designated vector C, and the designated vector C has a total of m component vectors;
    根据公式:According to the formula:
    Figure PCTCN2019117211-appb-100010
    计算出所述标准高维向量的长度Lp,其中P为第p个标准高维向量,Pi为第p个标准高维向量的第i个分向量,所述第p个标准高维向量共有m个分向量;
    Figure PCTCN2019117211-appb-100010
    Calculate the length Lp of the standard high-dimensional vector, where P is the p-th standard high-dimensional vector, Pi is the i-th component vector of the p-th standard high-dimensional vector, and the p-th standard high-dimensional vector has a total of m Sub-vector
    根据公式:长度差=|Lc-Lp|,分别计算得到所述指定向量与所述多个标准高维向量的多个长度差,并根据所述长度差小于预设的差值阈值的选择规则,从所述多个长度差中选出多个暂时向量。According to the formula: length difference=|Lc-Lp|, multiple length differences between the designated vector and the multiple standard high-dimensional vectors are calculated respectively, and according to the selection rule that the length difference is less than a preset difference threshold , Selecting a plurality of temporary vectors from the plurality of length differences.
  18. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现基于距离的信息发送方法,所述基于距离的信息发送方法,包括:A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements a distance-based information sending method when the computer program is executed by a processor, and the distance-based information sending method includes:
    获取目标手机号,以及获取所述目标手机号的使用者的特征信息,所述特征信息至少包括所述使用者的身份信息、所述使用者使用APP的时长和所述使用者点击的APP推送消息占接收到的所有APP推送消息的比例;Obtaining the target mobile phone number, and acquiring the characteristic information of the user of the target mobile phone number, the characteristic information including at least the identity information of the user, the length of time the user uses the APP, and the push of the APP clicked by the user The proportion of messages to all APP push messages received;
    根据预设的高维向量映射算法,利用所述特征信息,将所述目标手机号映射为高维虚拟空间中的指定向量,其中所述高维虚拟空间中预先设置有多个标准高维向量,多个标准高维向量分别关联预设的多个信息发送策略;According to a preset high-dimensional vector mapping algorithm, the target mobile phone number is mapped to a designated vector in a high-dimensional virtual space using the feature information, wherein a plurality of standard high-dimensional vectors are preset in the high-dimensional virtual space , Multiple standard high-dimensional vectors are respectively associated with multiple preset information sending strategies;
    根据预设的向量筛选方法,从多个标准高维向量中筛选出多个暂时向量;Filter out multiple temporary vectors from multiple standard high-dimensional vectors according to the preset vector screening method;
    根据预设的距离计算方法,计算得到多个第一距离,其中所述第一距离为所述指定向量与所述暂时向量之间的距离;According to a preset distance calculation method, multiple first distances are calculated, where the first distance is the distance between the designated vector and the temporary vector;
    判断多个所述第一距离是否均小于预设的距离阈值;Judging whether a plurality of the first distances are all less than a preset distance threshold;
    若多个所述第一距离不均小于预设的距离阈值,则根据第一距离-暂时向量-信息发送策略的对应关系,获取数值最大的第一距离对应的指定信息发送策略,并根据所述指定信息发送策略向所述目标手机号发送信息。If the plurality of the first distances are not uniformly smaller than the preset distance threshold, then according to the corresponding relationship of the first distance-temporary vector-information sending strategy, the designated information sending strategy corresponding to the first distance with the largest value is obtained, and according to all The specified information sending strategy sends information to the target mobile phone number.
  19. 根据权利要求18所述的计算机可读存储介质,其特征在于,所述根据预设的高维向量映射算法,利用所述特征信息,将所述目标手机号映射为高维虚拟空间中的指定向量的步骤,包括:The computer-readable storage medium according to claim 18, wherein the target mobile phone number is mapped to a specified value in a high-dimensional virtual space by using the characteristic information according to a preset high-dimensional vector mapping algorithm The steps of the vector include:
    将所述特征信息划分为身份信息和除所述身份信息之外的其他信息;Dividing the characteristic information into identity information and other information except the identity information;
    根据预设的信息与向量的对应关系,将所述身份信息和所述其他信息分别映射为第一分向量组A和第二分向量组B;Mapping the identity information and the other information into the first partial vector group A and the second partial vector group B according to the preset correspondence between the information and the vector;
    根据预设的第一向量组对第二向量组的影响关系,获取所述第一分向量组A对第二分向量组B的影响参数组k1-kn;Obtaining the influence parameter group k1-kn of the first partial vector group A on the second partial vector group B according to the preset influence relationship of the first vector group on the second vector group;
    根据公式:C=(A,k1b1,k2b2,…,knbn),计算得到指定向量C,其中所述第二分向量组B为(b1,b2,…,bn),n为大于0的整数。According to the formula: C=(A,k1b1,k2b2,...,knbn), the designated vector C is calculated, wherein the second sub-vector group B is (b1,b2,...,bn), and n is an integer greater than zero.
  20. 根据权利要求18所述的计算机可读存储介质,其特征在于,所述根据预设的向量筛选方法,从多个标准高维向量中筛选出多个暂时向量的步骤,包括:18. The computer-readable storage medium according to claim 18, wherein the step of filtering a plurality of temporary vectors from a plurality of standard high-dimensional vectors according to a preset vector filtering method comprises:
    根据公式:According to the formula:
    Figure PCTCN2019117211-appb-100011
    计算出指定向量的长度Lc,其中C为所述指定向量,Ci为所述指定向量C的第i个分向量,所述指定向量C共有m个分向量;
    Figure PCTCN2019117211-appb-100011
    Calculate the length Lc of the designated vector, where C is the designated vector, Ci is the i-th component vector of the designated vector C, and the designated vector C has a total of m component vectors;
    根据公式:According to the formula:
    Figure PCTCN2019117211-appb-100012
    计算出所述标准高维向量的长度Lp,其中P为第p个标准高维向量,Pi为第p个标准高维向量的第i个分向量,所述第p个标准高维向量共有m个分向量;
    Figure PCTCN2019117211-appb-100012
    Calculate the length Lp of the standard high-dimensional vector, where P is the p-th standard high-dimensional vector, Pi is the i-th component vector of the p-th standard high-dimensional vector, and the p-th standard high-dimensional vector has a total of m Sub-vector
    根据公式:长度差=|Lc-Lp|,分别计算得到所述指定向量与所述多个标准高维向量的多个长度差,并根据所述长度差小于预设的差值阈值的选择规则,从所述多个长度差中选出多个暂时向量。According to the formula: length difference=|Lc-Lp|, multiple length differences between the designated vector and the multiple standard high-dimensional vectors are calculated respectively, and according to the selection rule that the length difference is less than a preset difference threshold , Selecting a plurality of temporary vectors from the plurality of length differences.
PCT/CN2019/117211 2019-09-19 2019-11-11 Distance-based information sending method and apparatus, and computer device and storage medium WO2021051540A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910887133.8A CN110740166B (en) 2019-09-19 2019-09-19 Distance-based information sending method and device, computer equipment and storage medium
CN201910887133.8 2019-09-19

Publications (1)

Publication Number Publication Date
WO2021051540A1 true WO2021051540A1 (en) 2021-03-25

Family

ID=69268177

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/117211 WO2021051540A1 (en) 2019-09-19 2019-11-11 Distance-based information sending method and apparatus, and computer device and storage medium

Country Status (2)

Country Link
CN (1) CN110740166B (en)
WO (1) WO2021051540A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391801A (en) * 2015-12-14 2016-03-09 新华瑞德(北京)网络科技有限公司 Information pushing method and device for application program
CN107688984A (en) * 2017-07-27 2018-02-13 上海壹账通金融科技有限公司 Product information method for pushing, device, storage medium and computer equipment
WO2018183570A1 (en) * 2017-03-29 2018-10-04 Alibaba Group Holding Limited Method and apparatus for generating push notifications
CN109379410A (en) * 2018-09-21 2019-02-22 北京达佳互联信息技术有限公司 Information-pushing method, device, server and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658434A (en) * 2015-10-30 2017-05-10 中兴通讯股份有限公司 Business package recommending method and device
CN106355449B (en) * 2016-08-31 2021-09-07 腾讯科技(深圳)有限公司 User selection method and device
CN107944481B (en) * 2017-11-16 2022-02-18 百度在线网络技术(北京)有限公司 Method and apparatus for generating information
CN110135888B (en) * 2019-04-12 2023-08-08 平安科技(深圳)有限公司 Product information pushing method, device, computer equipment and storage medium
CN110110901A (en) * 2019-04-15 2019-08-09 平安科技(深圳)有限公司 Data predication method, device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391801A (en) * 2015-12-14 2016-03-09 新华瑞德(北京)网络科技有限公司 Information pushing method and device for application program
WO2018183570A1 (en) * 2017-03-29 2018-10-04 Alibaba Group Holding Limited Method and apparatus for generating push notifications
CN107688984A (en) * 2017-07-27 2018-02-13 上海壹账通金融科技有限公司 Product information method for pushing, device, storage medium and computer equipment
CN109379410A (en) * 2018-09-21 2019-02-22 北京达佳互联信息技术有限公司 Information-pushing method, device, server and storage medium

Also Published As

Publication number Publication date
CN110740166A (en) 2020-01-31
CN110740166B (en) 2022-06-17

Similar Documents

Publication Publication Date Title
CN111695697B (en) Multiparty joint decision tree construction method, equipment and readable storage medium
WO2019242331A1 (en) User behavior prediction method and apparatus, and behavior prediction model training method and apparatus
US20190080019A1 (en) Predicting Non-Observable Parameters for Digital Components
US8965145B2 (en) Mixed media reality recognition using multiple specialized indexes
WO2019184111A1 (en) Push message processing method and apparatus, readable storage medium, and terminal device
US20150139540A1 (en) Mixed Media Reality Recognition Using Multiple Specialized Indexes
US20090080800A1 (en) Multiple Index Mixed Media Reality Recognition Using Unequal Priority Indexes
WO2021068563A1 (en) Sample date processing method, device and computer equipment, and storage medium
CN109509010B (en) Multimedia information processing method, terminal and storage medium
CN109756368B (en) Method and device for detecting abnormal change of equipment, computer readable storage medium and terminal
CN110750658B (en) Recommendation method of media resource, server and computer readable storage medium
CN105894028B (en) User identification method and device
CN113256345B (en) Self-defining method and device of advertisement putting strategy and computer equipment
US20210398026A1 (en) Federated learning for improving matching efficiency
WO2019056496A1 (en) Method for generating picture review probability interval and method for picture review determination
CN116108393A (en) Power sensitive data classification and classification method and device, storage medium and electronic equipment
JP2014215685A (en) Recommendation server and recommendation content determination method
CN110222046B (en) List data processing method, device, server and storage medium
JP6570978B2 (en) Cluster selection device
CN104573127B (en) Assess the method and system of data variance
CN114329028A (en) Data processing method, data processing equipment and computer readable storage medium
WO2019062404A1 (en) Application program processing method and apparatus, storage medium, and electronic device
CN115280314A (en) Pattern-based classification
WO2023115974A1 (en) Multimedia resource recommendation method and apparatus and object representation network generation method and apparatus
WO2021051540A1 (en) Distance-based information sending method and apparatus, and computer device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19945886

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19945886

Country of ref document: EP

Kind code of ref document: A1