CN112104989B - Short message sending method and device, electronic equipment and computer readable storage medium - Google Patents

Short message sending method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN112104989B
CN112104989B CN202011275625.0A CN202011275625A CN112104989B CN 112104989 B CN112104989 B CN 112104989B CN 202011275625 A CN202011275625 A CN 202011275625A CN 112104989 B CN112104989 B CN 112104989B
Authority
CN
China
Prior art keywords
short message
channel
target
message channel
weight
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011275625.0A
Other languages
Chinese (zh)
Other versions
CN112104989A (en
Inventor
林聪�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Aiteyun Information Technology Co ltd
Original Assignee
Shenzhen Zhenaiyun Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhenaiyun Information Technology Co ltd filed Critical Shenzhen Zhenaiyun Information Technology Co ltd
Priority to CN202011275625.0A priority Critical patent/CN112104989B/en
Publication of CN112104989A publication Critical patent/CN112104989A/en
Application granted granted Critical
Publication of CN112104989B publication Critical patent/CN112104989B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Probability & Statistics with Applications (AREA)
  • Software Systems (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Algebra (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Databases & Information Systems (AREA)
  • Operations Research (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to a short message sending method, a short message sending device, electronic equipment and a computer readable storage medium, which are applied to the electronic equipment, wherein the method comprises the following steps: acquiring a short message set to be sent and a short message channel set, and classifying the short message set to be sent based on preset short message categories to obtain a plurality of short message subsets to be sent; calculating a short message channel weight set corresponding to the short message channel set; determining a plurality of target short message channel sets in the short message channel set based on the short message subsets to be sent, and performing channel probability calculation on the target short message channel sets based on the short message channel weight sets to obtain a plurality of channel probability matrixes; and sending the plurality of short message subsets to be sent based on the plurality of channel probability matrixes and the plurality of target short message channel sets. The embodiment of the application has the advantage of high user experience.

Description

Short message sending method and device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of electronic communications technologies, and in particular, to a short message sending method, an apparatus, an electronic device, and a computer-readable storage medium.
Background
Short Message Service (SMS) is a text or digital Message that a user directly sends or receives through a mobile phone or other electronic devices, and a Short Message group sending platform is generated along with the rapid development of the electronic devices.
The conventional short message platform is mainly used for selecting one short message channel from a plurality of short message channels provided by an external short message gateway to realize a short message group sending function, but under the condition of a single short message channel, when an unstable event occurs in the short message channel, the short message channel cannot work or the short message cannot reach the unstable event, so that the short message platform is low in efficiency and the user experience degree is low.
Disclosure of Invention
The embodiment of the application provides a short message sending method, a short message sending device, electronic equipment and a computer readable storage medium, and aims to improve the working efficiency and the user experience of a short message platform.
In a first aspect, an embodiment of the present application provides a short message sending method, which is applied to an electronic device, and the method includes:
acquiring a short message set to be sent and a short message channel set, and classifying the short message set to be sent based on preset short message categories to obtain a plurality of short message subsets to be sent;
calculating a short message channel weight set corresponding to the short message channel set;
determining a plurality of target short message channel sets in the short message channel set based on the short message subsets to be sent, and performing channel probability calculation on the target short message channel sets based on the short message channel weight sets to obtain a plurality of channel probability matrixes;
and sending the plurality of short message subsets to be sent based on the plurality of channel probability matrixes and the plurality of target short message channel sets.
In a possible example, the calculating a short message channel weight set corresponding to the short message channel set includes: acquiring a plurality of manual weights and a plurality of statistical weights corresponding to a plurality of short message channels in the short message channel set; executing channel health weight calculation operation aiming at the short message channels to obtain a plurality of channel health weights; substituting the artificial weights, the statistical weights and the channel health weights into a preset channel weight calculation formula to obtain a plurality of channel weights corresponding to the short message channels; and generating the short message channel weight set based on the plurality of channel weights.
In a possible example, the performing channel health weight calculation operations for the plurality of short message channels includes: acquiring a touch window value of the short message channel aiming at each short message channel in the short message channel set; determining a historical touch window period corresponding to the short message channel based on the current time and the touch window value; extracting a plurality of sampling periods contained in the historical touch window period and a plurality of groups of historical short message data corresponding to the sampling periods; receiving a plurality of actual reach rates and a plurality of expected reach rates of the plurality of groups of historical short message data; performing difference calculation based on the actual reach rates and the expected reach rates to obtain a plurality of reach rate deviations, and combining the reach rate deviations to obtain a window deviation vector WD; obtaining a preset influence coefficient vector WRP aiming at the multiple sampling periods, and substituting a preset artificial weight threshold LIMIT, the WRP and the WD into a preset channel health weight calculation formula to obtain a channel health weight WH of the short message channel, wherein the channel health weight calculation formula comprises:
Figure 668286DEST_PATH_IMAGE001
In a possible example, the determining, in the short message channel set, a plurality of target channel sets based on the plurality of short message subsets to be sent includes: determining a plurality of short message types corresponding to the plurality of short message subsets to be sent; and performing a screening operation for each of the plurality of short message types to obtain the plurality of target short message channel sets, wherein the screening operation comprises: aiming at any one of the short message types, a plurality of short message channels to be selected corresponding to the any one short message type are selected from the short message channel set; and acquiring at least one target short message channel in an idle state in the plurality of short message channels to be selected to generate a target short message channel set corresponding to any one short message type.
In a possible example, the performing a channel probability calculation on the plurality of target short message channel sets based on the short message channel weight set includes: acquiring a target short message channel weight set corresponding to the target short message channel set from the short message channel weight set aiming at each target short message channel set in the plurality of target short message channel sets, wherein the target short message channel set comprises k target short message channels, the target short message channel weight set comprises k target short message channel weights, and k is greater than 0; generating a target short message channel weight vector based on the k target short message channel weights, and performing normalization operation aiming at the target short message channel weight vector to obtain a target weight vector NW, wherein,
Figure 585426DEST_PATH_IMAGE002
substituting the target weight vector NW into a cumulative distribution function formula to obtain the target distribution cumulative function vector CDF,
Figure 427480DEST_PATH_IMAGE003
(ii) a Computing a channel probability matrix based on the CDFCDFR, wherein,
Figure 822689DEST_PATH_IMAGE004
in a possible example, after obtaining the target weight vector NW, the method further includes: acquiring a comprehensive calculation vector R of the target short message channel set at the current moment; substituting the comprehensive calculation vector R and the target weight vector NW into a preset comprehensive calculation formula to obtain a target comprehensive value RO corresponding to the target short message channel set, wherein the comprehensive calculation formula is as follows:
Figure 699378DEST_PATH_IMAGE005
(ii) a Judging whether the target comprehensive value RO is larger than a preset comprehensive value threshold value or not
Figure 521841DEST_PATH_IMAGE006
If the sum of the obtained target short message channel set and the obtained target short message channel set is greater than the preset threshold, obtaining an optimized vector corresponding to the target short message channel set, calculating a channel mathematical expectation CE based on the optimized vector and the target weight vector NW, adjusting the target weight vector NW to enable the mathematical expectation CE to reach the minimum value
Figure 851191DEST_PATH_IMAGE007
Determining the minimum value
Figure 50091DEST_PATH_IMAGE007
Corresponding weight vector
Figure 781287DEST_PATH_IMAGE008
Based on the weight vector
Figure 774651DEST_PATH_IMAGE008
The target weight vector NW is updated.
In a possible example, the sending the multiple subsets of short messages to be sent based on the multiple channel probability matrices and the multiple target short message channel sets includes: determining a target short message channel set and a channel probability matrix corresponding to any short message in the plurality of short message subsets to be sent; acquiring a random number of the any short message; substituting the channel probability matrix and the random number into a preset judgment range function to obtain a selection vector of any one short message; and controlling a target short message channel corresponding to the component with the component value of 1 in the selection vector to send the arbitrary short message.
In a second aspect, an embodiment of the present application provides a short message sending apparatus, where the apparatus includes:
the device comprises an acquisition unit, a sending unit and a receiving unit, wherein the acquisition unit is used for acquiring a short message set to be sent and a short message channel set, and classifying the short message set to be sent based on a preset short message category to obtain a plurality of short message subsets to be sent;
the calculation unit is used for calculating a short message channel weight set corresponding to the short message channel set;
a determining unit, configured to determine multiple target short message channel sets in the short message channel set based on the multiple short message subsets to be sent, and perform channel probability calculation on the multiple target short message channel sets based on the short message channel weight sets to obtain multiple channel probability matrices;
and the sending unit is used for sending the plurality of short message subsets to be sent based on the plurality of channel probability matrixes and the plurality of target short message channel sets.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, a communication interface, and one or more programs, stored in the memory and configured to be executed by the processor, the programs including instructions for performing some or all of the steps described in the method according to the first aspect of the embodiments of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, where the computer program is executed by a processor to implement part or all of the steps described in the method according to the first aspect of the present application.
It can be seen that, in the embodiment of the application, the electronic device acquires a short message set to be sent and a short message channel set, and classifies the short message set to be sent based on a preset short message category to obtain a plurality of short message subsets to be sent; calculating a short message channel weight set corresponding to the short message channel set; determining a plurality of target short message channel sets in the short message channel set based on the short message subsets to be sent, and performing channel probability calculation on the target short message channel sets based on the short message channel weight sets to obtain a plurality of channel probability matrixes; and sending the plurality of short message subsets to be sent based on the plurality of channel probability matrixes and the plurality of target short message channel sets. Therefore, a target short message channel set can be screened out through the short message categories, a channel probability matrix is calculated based on the target short message channel, namely, the optimal solution of channel combination is realized by calculating the channel probability matrix of the target short message channel set, the short message set is sent through the channel probability matrix, the multi-short message channel work is realized, the short message channel stability is improved, and the channel probability matrix is recalculated for each batch of short messages to be sent, so that the short message channel fault can be found in time, the working efficiency of a short message platform is improved, and the user experience is favorably improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is an application environment diagram of a short message sending method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a short message sending method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a window offset calculation according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of another short message sending method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device 500 according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a short message sending apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of the invention and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, result, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Hereinafter, some terms in the present application are explained to facilitate understanding by those skilled in the art.
Electronic devices may include a variety of handheld devices, vehicle-mounted devices, wearable devices (e.g., smartwatches, smartbands, pedometers, etc.), computing devices or other processing devices communicatively connected to wireless modems, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal Equipment (terminal device), and so forth having wireless communication capabilities. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
Referring to fig. 1, fig. 1 is an application environment diagram of a short message sending method according to an embodiment of the present application, in which a terminal 120 receives a short message to be sent from a short message sending device (e.g., a short message sending device 111 and a short message sending device 112), an electronic device 120 divides the short message to be sent into a plurality of short message subsets to be sent according to short message categories, a plurality of target short message channel sets corresponding to the plurality of short message subsets to be sent are determined in short message channels provided by preset gateway devices (e.g., a gateway 131 and a gateway 132), the gateway devices send short messages in the short message subsets to be sent to operator devices (e.g., an operator device 141, an operator device 142, and an operator device 143) through corresponding short message channel sets after receiving the short message subsets to be sent, the operator devices send the short messages in the short message subsets to be sent to user devices (e.g., user equipment 161, user equipment 162, and user equipment 163).
The short message sending device 111, the short message sending device 112, the electronic device 120, the operator device 141, the operator device 142, the operator device 143, the user device 161, the user device 162, and the user device 163 may be, but are not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the gateways 131 and 132 may be implemented by independent servers or a server cluster formed by a plurality of servers.
Referring to fig. 2, an embodiment of the present application provides a short message sending method, which is described by taking the application of the method to the terminal in fig. 1 as an example, and includes the following steps:
step 201, acquiring a short message set to be sent and a short message channel set, and classifying the short message set to be sent based on a preset short message category to obtain a plurality of short message subsets to be sent.
Optionally, a short message set to be sent is obtained, where the short message set to be sent includes at least one short message to be sent, and a short message channel set is obtained, where the short message channel set includes at least one short message channel.
Step 202, calculating a short message channel weight set corresponding to the short message channel set.
Optionally, a preset short message channel weight calculation rule is obtained, each short message channel in the short message channel weight set is calculated based on the short message channel weight calculation rule, and the short message channel weights corresponding to each short message channel are combined to obtain a short message channel weight set.
Step 203, determining a plurality of target short message channel sets in the short message channel set based on the plurality of short message subsets to be sent, and performing channel probability calculation on the plurality of target short message channel sets based on the short message channel weight sets to obtain a plurality of channel probability matrices.
And step 204, sending the plurality of short message subsets to be sent based on the plurality of channel probability matrixes and the plurality of target short message channel sets.
The channel probability matrixes correspond to the target short message channel sets one by one, and the target short message channel sets correspond to the short message subsets to be sent one by one.
Optionally, for each short message subset to be sent in the multiple short message subsets to be sent, a random number matrix corresponding to each short message subset to be sent and a channel probability vector of the target short message channel set are obtained, and a channel selection matrix is calculated based on the random number matrix and the channel probability vector, wherein a column vector in the channel selection matrix is a channel selection vector of each short message to be sent in the short message subsets to be sent.
In a possible example, the calculating a short message channel weight set corresponding to the short message channel set includes: acquiring a plurality of manual weights and a plurality of statistical weights corresponding to a plurality of short message channels in the short message channel set; executing channel health weight calculation operation aiming at the short message channels to obtain a plurality of channel health weights; substituting the artificial weights, the statistical weights and the channel health weights into a preset channel weight calculation formula to obtain a plurality of channel weights corresponding to the short message channels; and generating the short message channel weight set based on the plurality of channel weights.
Optionally, a preset artificial weight vector is obtained, where the artificial weight vector includes a plurality of artificial weight components, and the artificial weight components are in one-to-one correspondence with the plurality of short message channels, where the artificial weight vector has an artificial weight threshold LIMIT, that is, a value range of any one of the plurality of components is (-LIMIT, LIMIT); acquiring a preset statistical weight vector, where the statistical weight vector includes a plurality of statistical weight components corresponding to the plurality of short message channels one to one, where the statistical weight has a statistical weight range, for example, the statistical weight range may include (-1000, 1000), which is not limited herein, and in a possible case, the statistical weight range is default to a constant value of 0.
Optionally, when obtaining the statistical weight of any one short message channel, first obtaining m quantity statistics devices of the short message channel
Figure 528980DEST_PATH_IMAGE009
Obtaining the m number statistics device
Figure 331239DEST_PATH_IMAGE009
Determining the calculation mode of statistical weight according to the current statistical value and m data statistics devices
Figure 854624DEST_PATH_IMAGE009
The statistical weight of any one short message channel is determined, it should be noted that any one short message channel can be provided with any number of quantity statistics devices, and the quantity of the quantity statistics devices corresponding to different short message channels can be different.
In the specific implementation process, it is assumed that the calculation mode of the statistical weight is a minimum weight, that is, for any short message channel j, at a certain time t, the statistical value component of the short message channel j is the minimum weight of the m number of corresponding statistical devices, and it is assumed that the statistical weight range is (-1000, 1000), that is, the statistical weight range is (-1000, 1000)
Figure 346785DEST_PATH_IMAGE010
The statistical weight is a group of weights which impose limitation according to the time interval statistical value, and the influence of the overload degree of the current load of the short message channel is reflected.
In a possible example, the performing channel health weight calculation operations for the plurality of short message channels includes: acquiring a touch window value of the short message channel aiming at each short message channel in the short message channel set; determining a historical touch window period corresponding to the short message channel based on the current time and the touch window value; extracting a plurality of sampling periods contained in the historical touch window period and a plurality of groups of historical short message data corresponding to the sampling periods; receiving a plurality of actual reach rates and a plurality of expected reach rates of the plurality of groups of historical short message data; performing difference calculation based on the actual reach rates and the expected reach rates to obtain a plurality of reach rate deviations, and combining the reach rate deviations to obtain a window deviation vector WD; acquiring a preset influence coefficient vector WRP aiming at the multiple sampling periods, and substituting a preset artificial weight threshold LIMIT, the WRP and the WD into a preset channel health weight calculation formula to obtain a channel health weight WH of the short message channel, wherein the channel health weight calculation formula comprises:
Figure 588410DEST_PATH_IMAGE001
the channel health weight is used for reflecting the health state of the short message channel at the current moment, the health state is calculated according to the channel operation feedback condition, the health state of the short message channel is related to the short message touch condition of the channel, namely, if a short message can be sent within the preset time, the short message channel is considered to be in the health state, and if a short message is not sent within the preset time, the short message channel is considered to be in the non-health state.
The touch window is the maximum time length that a certain type of short message can touch and tolerate under normal conditions, and for any type of short message, if the short message is not touched within the touch window time of the corresponding short message channel, the short message channel is determined to be in a fault state, and the touch windows of the different types of short message channels are not all the same.
In the specific implementation process, the historical touch window period corresponding to the short message channel is determined based on the current time and the touch window value, namely, the current time is assumed to be t, and the touch window value is assumed to be t
Figure 925851DEST_PATH_IMAGE011
Then determine the historical touchdown window period as
Figure 569322DEST_PATH_IMAGE012
(ii) a The history window period comprises a plurality of sampling periods s, i.e.
Figure 966805DEST_PATH_IMAGE013
Wherein, in the step (A),
Figure 695727DEST_PATH_IMAGE014
extracting multiple groups of historical short message data corresponding to multiple sampling periods for the length of a short message sending window, wherein each group of historical short message data comprises: an actual reach rate and a desired reach rate; or, assuming that win batches of short messages are sent in the historical reach window period, extracting the expected reach rate vector corresponding to the historical reach window period
Figure 774541DEST_PATH_IMAGE015
And the actual reach rate vector
Figure 334835DEST_PATH_IMAGE016
The components in the actual reach rate vector correspond to the components in the expected reach rate vector one to one; calculating a reach rate deviation based on an actual reach rate and an expected reach rate
Figure 106482DEST_PATH_IMAGE017
Merging multiple reach rate biasesDifferencing to obtain a window deviation vector
Figure 119438DEST_PATH_IMAGE018
As shown in fig. 3, fig. 3 is a schematic diagram of window deviation calculation according to an embodiment of the present application, and it can be known from the diagram that the calculation is performed
Figure 1943DEST_PATH_IMAGE019
Window offset vector of time, selecting
Figure 416744DEST_PATH_IMAGE019
Within the past SRW time of the touch window value at the moment, win batches of short messages are sent out, and the first batch of short messages sent out initially
Figure 359292DEST_PATH_IMAGE020
Corresponding time is
Figure 859544DEST_PATH_IMAGE021
And at the present time
Figure 280161DEST_PATH_IMAGE021
The first batch of short messages can be known to have the deviation of the touch rate of the first batch of short messages at any moment
Figure 752730DEST_PATH_IMAGE022
(ii) a Similarly, the second batch of short messages
Figure 925567DEST_PATH_IMAGE023
Corresponding time is
Figure 850798DEST_PATH_IMAGE024
And at the present time
Figure 137423DEST_PATH_IMAGE024
The touch rate deviation of the second batch of short messages can be known at any moment
Figure 198919DEST_PATH_IMAGE025
And so on until the last batch
Figure 545587DEST_PATH_IMAGE026
Corresponding time is
Figure 958114DEST_PATH_IMAGE027
And is at present
Figure 48430DEST_PATH_IMAGE027
The deviation of the touch rate of the last batch of short messages can be known at the moment
Figure 230012DEST_PATH_IMAGE028
Thus, combining the multiple reach rate deviations to obtain a window deviation vector
Figure 419685DEST_PATH_IMAGE029
Optionally, a weight coefficient vector WRP is obtained, where each component in the weight coefficient vector WRP corresponds to a time point, and is used to reflect an influence weight of sending a short message at the time point, that is, the weight coefficient vector WRP is obtained
Figure 381825DEST_PATH_IMAGE030
For the above embodiment, an example is described below, and it is assumed that for a certain sampling period s =3, a certain type of short message of the short message batch win =5 is sent through the short message channel j, and the expected reach proportion distribution thereof
Figure 947936DEST_PATH_IMAGE031
That is, on the short message channel k, 5% of the short messages are received within the first 3 seconds, 90% of the short messages are received within the second 3 seconds, 95% of the short messages are received within the third 3 seconds, 98% of the short messages are received within the fourth 3 seconds, and 100% of the short messages are received within the fifth 3 seconds; at the current moment
Figure 311921DEST_PATH_IMAGE032
In the last 15 seconds, 5 batches of short messages are sent, and for each batch of short messages, the true gas touch rate is as follows:
the first batch of short messages are sent for the time of
Figure 672495DEST_PATH_IMAGE033
At a
Figure 121931DEST_PATH_IMAGE033
Figure 491732DEST_PATH_IMAGE034
) At the moment, the real touch rate of the first batch of short messages is
Figure 382328DEST_PATH_IMAGE035
The second batch of short messages are sent for time
Figure 241700DEST_PATH_IMAGE036
At a
Figure 850535DEST_PATH_IMAGE036
Figure 89274DEST_PATH_IMAGE034
) At the moment, the real touch rate of the first batch of short messages is
Figure 99956DEST_PATH_IMAGE037
The third batch of short messages are sent for time
Figure 130229DEST_PATH_IMAGE038
At a
Figure 226361DEST_PATH_IMAGE038
Figure 937965DEST_PATH_IMAGE034
) At the moment, the real touch rate of the first batch of short messages is
Figure 865469DEST_PATH_IMAGE039
The fourth batch of short messages are sent for time
Figure 4327DEST_PATH_IMAGE040
At a
Figure 650072DEST_PATH_IMAGE040
Figure 899787DEST_PATH_IMAGE034
) At the moment, the real touch rate of the first batch of short messages is
Figure 947378DEST_PATH_IMAGE041
The fifth batch of short messages are sent for time
Figure 257136DEST_PATH_IMAGE042
At a
Figure 390178DEST_PATH_IMAGE042
Figure 443584DEST_PATH_IMAGE034
) At the moment, the real touch rate of the first batch of short messages is
Figure 283364DEST_PATH_IMAGE043
Therefore, the formula is calculated according to the deviation of the touch rate
Figure 826341DEST_PATH_IMAGE044
The window deviation vector can be calculated
Figure 118782DEST_PATH_IMAGE045
Then, then
Figure 38197DEST_PATH_IMAGE046
I.e. by
Figure 732483DEST_PATH_IMAGE047
Obtaining a weight coefficient vector WRP, assuming
Figure 443431DEST_PATH_IMAGE048
Calculating the current deviation
Figure 488748DEST_PATH_IMAGE049
I.e. by
Figure 946274DEST_PATH_IMAGE050
Thereby, the reliability of the current channel is obtained
Figure 495067DEST_PATH_IMAGE051
Comprises the following steps: when CD<At the time of 0, the number of the first,
Figure 645426DEST_PATH_IMAGE052
(ii) a When CD>At the time of 0, the number of the first,
Figure 974776DEST_PATH_IMAGE052
(ii) a When 0 is present<CD<When the pressure of the mixture is 1, the pressure is lower,
Figure 235993DEST_PATH_IMAGE053
(ii) a Substituting a preset artificial weight threshold LIMIT =1000, WRP and WD into a preset channel health weight calculation formula to obtain a channel health weight WH, namely
Figure 701609DEST_PATH_IMAGE054
That is, the health weight of channel k is-121.
In a possible example, the determining, in the short message channel set, a plurality of target channel sets based on the plurality of short message subsets to be sent includes: determining a plurality of short message types corresponding to the plurality of short message subsets to be sent; and performing a screening operation for each of the plurality of short message types to obtain the plurality of target short message channel sets, wherein the screening operation comprises: aiming at any one of the short message types, a plurality of short message channels to be selected corresponding to the any one short message type are selected from the short message channel set; and acquiring at least one target short message channel in an idle state in the plurality of short message channels to be selected to generate a target short message channel set corresponding to any one short message type.
In a specific implementation process, a target subset is determined in a plurality of short message subsets to be sent, a short message type corresponding to the target subset is obtained, the short message type is screened in a target channel set, wherein each short message channel in the target channel set corresponds to one short message type, a plurality of short message channels matched with the short message type are extracted in the target channel set, a set formed by the plurality of short message channels is determined as a channel set to be selected, and whether the short message channel to be selected is in an idle state, namely a non-use state, is judged for each short message channel to be selected in the channel set to be selected, wherein the judgment of whether the short message channel is in the idle state may include: acquiring the utilization rate of a short message channel at the current moment, if the utilization rate is greater than a preset utilization rate threshold value, determining that the short message channel is in a non-idle state, and if the utilization rate is less than the utilization rate threshold value, determining that the short message channel is in an idle state; and extracting the short message channels in the idle state in the channel set to be selected to generate a target short message channel set.
In a possible example, the performing a channel probability calculation on the plurality of target short message channel sets based on the short message channel weight set includes: acquiring a target short message channel weight set corresponding to the target short message channel set from the short message channel weight set aiming at each target short message channel set in the plurality of target short message channel sets, wherein the target short message channel set comprises k target short message channels, the target short message channel weight set comprises k target short message channel weights, and k is greater than 0; generating a target short message channel weight vector based on the k target short message channel weights, and performing normalization operation aiming at the target short message channel weight vector to obtain a target weight vector NW, wherein,
Figure 22869DEST_PATH_IMAGE055
(ii) a Substituting the target weight vector NW into a cumulative distribution function formula to obtain the target distribution cumulative function vector CDF,
Figure 777199DEST_PATH_IMAGE056
(ii) a Computing a channel probability matrix, CDFR, based on the CDF, wherein,
Figure 576527DEST_PATH_IMAGE057
optionally, generating a target short message channel weight vector based on the k target short message channel weights, and performing a normalization operation on the target short message channel weight vector, including: determining k target short message channel weights
Figure 99913DEST_PATH_IMAGE058
Wherein, 0<i<k, generating a target short message channel weight vector
Figure 595003DEST_PATH_IMAGE059
For the target short message channel weight vector
Figure 633367DEST_PATH_IMAGE060
Performing normalization operation to obtain target weight vector
Figure 174069DEST_PATH_IMAGE061
Namely:
Figure 879857DEST_PATH_IMAGE062
Figure 215024DEST_PATH_IMAGE064
optionally, the selection range vector CDFR cuts the length between [0,1] into k segments according to the probability density of k short message channels, and for any short message, there is a random number with a size between [0,1], and the random number falls in an area corresponding to any one of the k short message channels, that is, it indicates that the short message channel is selected, and sends the short message.
In a possible example, after obtaining the target weight vector NW, the method further includes: acquiring the current target short message channel setComprehensively calculating a vector R of the moment; substituting the comprehensive calculation vector R and the target weight vector NW into a preset comprehensive calculation formula to obtain a target comprehensive value RO corresponding to the target short message channel set, wherein the comprehensive calculation formula is as follows:
Figure 6262DEST_PATH_IMAGE005
(ii) a Judging whether the target comprehensive value RO is larger than a preset comprehensive value threshold value or not
Figure 85077DEST_PATH_IMAGE065
If the sum of the obtained target short message channel set and the obtained target short message channel set is greater than the preset threshold, obtaining an optimized vector corresponding to the target short message channel set, calculating a channel mathematical expectation CE based on the optimized vector and the target weight vector NW, adjusting the target weight vector NW to enable the mathematical expectation CE to reach the minimum value
Figure 645371DEST_PATH_IMAGE066
Determining the minimum value
Figure 151439DEST_PATH_IMAGE066
Corresponding weight vector
Figure 429973DEST_PATH_IMAGE067
Based on the weight vector
Figure 312479DEST_PATH_IMAGE067
The target weight vector NW is updated.
Optionally, a comprehensive calculation vector R of the target short message channel set at the current time is obtained, where the comprehensive calculation vector R includes the reliability of each short message channel at the current time, that is, the comprehensive calculation vector at time t is:
Figure 727279DEST_PATH_IMAGE069
wherein the content of the first and second substances,
Figure 669828DEST_PATH_IMAGE070
the reliability of the first channel at time t.
Optionally, the comprehensive calculation vector R and the target weight vector NW are substituted into a preset comprehensive calculation formula to obtain a target comprehensive value RO corresponding to the target short message channel set, for example, at time t, the target comprehensive value RO is calculated
Figure 170079DEST_PATH_IMAGE071
Optionally, before obtaining the optimized vector corresponding to the target short message channel set, the method further includes: acquiring unit cost of k short message channels in a target short message channel set at the current moment, and generating the optimized vector based on the k unit cost, wherein the optimized vector is as follows:
Figure 590696DEST_PATH_IMAGE072
optionally based on an optimisation vector
Figure 63266DEST_PATH_IMAGE073
And the target weight vector NW calculates the channel mathematical expectation CE, i.e. at time t the mathematical expectation is:
Figure 970523DEST_PATH_IMAGE074
the mathematical expectation CE represents the unit cost for sending the short message based on the target short message channel set at the current moment; adjusting the target weight vector NW minimizes the mathematical expectation CE
Figure 895754DEST_PATH_IMAGE075
When the mathematical expectation CE reaches a minimum value
Figure 182379DEST_PATH_IMAGE076
When the minimum value is determined
Figure 509455DEST_PATH_IMAGE076
Corresponding weight vector
Figure 856123DEST_PATH_IMAGE077
Based on weight vectors
Figure 268649DEST_PATH_IMAGE077
The target weight vector NW is updated.
In a possible example, the sending the multiple subsets of short messages to be sent based on the multiple channel probability matrices and the multiple target short message channel sets includes: determining a target short message channel set and a channel probability matrix corresponding to any short message in the plurality of short message subsets to be sent; acquiring a random number of the any short message; substituting the channel probability matrix and the random number into a preset judgment range function to obtain a selection vector of any one short message; and controlling a target short message channel corresponding to the component with the component value of 1 in the selection vector to send the arbitrary short message.
Optionally, any short message subset to be sent is selected from the multiple short message subsets to be sent as a target subset, a channel probability matrix CDFR of a target short message channel set corresponding to the target subset is determined, a random number corresponding to each short message in the target subset is obtained, and a preset judgment range function is obtained, where the judgment range function may include:
Figure 93386DEST_PATH_IMAGE079
substituting the channel probability matrix CDFR and the random number into a judgment range function, and assuming that a target short message channel set has k short message channels, obtaining a selection vector of the short message
Figure 274969DEST_PATH_IMAGE080
Wherein:
Figure 730221DEST_PATH_IMAGE081
namely, the selection vector CSV is a vector composed of components with k dimensions and values of (0,1), and at least one component has a value of 1, and the other components are 0, and the target short message channel corresponding to the component with the value of 1 in the selection vector is controlled to send the short message.
In the specific implementation process, a random number vector exists for a batch of short messages in a short message subset to be sent
Figure 692360DEST_PATH_IMAGE082
Substituting the random number vector and the channel probability matrix CDFR into a judgment range function to obtain a matrix with a matrix column vector as a selection vector, namely:
Figure 258471DEST_PATH_IMAGE084
the matrix is a channel selection matrix of the subset to be transmitted.
It can be seen that, in the embodiment of the application, the electronic device acquires a short message set to be sent and a short message channel set, and classifies the short message set to be sent based on a preset short message category to obtain a plurality of short message subsets to be sent; calculating a short message channel weight set corresponding to the short message channel set; determining a plurality of target short message channel sets in the short message channel set based on the short message subsets to be sent, and performing channel probability calculation on the target short message channel sets based on the short message channel weight sets to obtain a plurality of channel probability matrixes; and sending the plurality of short message subsets to be sent based on the plurality of channel probability matrixes and the plurality of target short message channel sets. Therefore, a target short message channel set can be screened out through the short message categories, a channel probability matrix is calculated based on the target short message channel, namely, the optimal solution of channel combination is realized by calculating the channel probability matrix of the target short message channel set, the short message set is sent through the channel probability matrix, the multi-short message channel work is realized, the short message channel stability is improved, and the channel probability matrix is recalculated for each batch of short messages to be sent, so that the short message channel fault can be found in time, the working efficiency of a short message platform is improved, and the user experience is favorably improved.
Referring to fig. 4, fig. 4 is a schematic flow chart of another short message sending method according to an embodiment of the present application, and as shown in the figure, the method includes the following steps:
step 401, acquiring a short message set to be sent and a short message channel set, and classifying the short message set to be sent based on a preset short message category to obtain a plurality of short message subsets to be sent;
step 402, acquiring a plurality of manual weights and a plurality of statistical weights corresponding to a plurality of short message channels in the short message channel set;
step 403, substituting the artificial weights, the statistical weights and the channel health weights into a preset channel weight calculation formula to obtain channel weights corresponding to the short message channels, and generating a short message channel weight set based on the channel weights;
step 404, determining a plurality of target short message channel sets in the short message channel set based on the plurality of short message subsets to be sent;
step 405, for each target short message channel set in the plurality of target short message channel sets, obtaining a target short message channel weight set corresponding to the target short message channel set from the short message channel weight set, wherein the target short message channel set comprises k target short message channels, and the target short message channel weight set comprises target short message channel weights;
step 406, generating a target short message channel weight vector based on the target short message channel weights, and performing normalization operation aiming at the target short message channel weight vector to obtain a target weight vector;
step 407, substituting the target weight vector into a cumulative distribution function formula to obtain the target distribution cumulative function vector;
step 408, calculating a channel probability matrix based on the target distribution cumulative function vector to obtain a plurality of channel probability matrices;
step 409, sending the plurality of short message subsets to be sent based on the plurality of channel probability matrixes and the plurality of target short message channel sets.
The detailed description of the steps 401 to 409 may refer to the corresponding steps of the short message sending method described in fig. 2, and are not repeated herein.
It should be understood that, although the steps in the flowchart of fig. 4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device 500 according to an embodiment of the present application, and as shown in the figure, the server 500 includes an application processor 510, a memory 520, a communication interface 530, and one or more programs 521, where the one or more programs 521 are stored in the memory 520 and configured to be executed by the application processor 510, and the one or more programs 521 include instructions for:
acquiring a short message set to be sent and a short message channel set, and classifying the short message set to be sent based on preset short message categories to obtain a plurality of short message subsets to be sent;
calculating a short message channel weight set corresponding to the short message channel set;
determining a plurality of target short message channel sets in the short message channel set based on the short message subsets to be sent, and performing channel probability calculation on the target short message channel sets based on the short message channel weight sets to obtain a plurality of channel probability matrixes;
and sending the plurality of short message subsets to be sent based on the plurality of channel probability matrixes and the plurality of target short message channel sets.
It can be seen that, in the embodiment of the application, the electronic device acquires a short message set to be sent and a short message channel set, and classifies the short message set to be sent based on a preset short message category to obtain a plurality of short message subsets to be sent; calculating a short message channel weight set corresponding to the short message channel set; determining a plurality of target short message channel sets in the short message channel set based on the short message subsets to be sent, and performing channel probability calculation on the target short message channel sets based on the short message channel weight sets to obtain a plurality of channel probability matrixes; and sending the plurality of short message subsets to be sent based on the plurality of channel probability matrixes and the plurality of target short message channel sets. Therefore, a target short message channel set can be screened out through the short message categories, a channel probability matrix is calculated based on the target short message channel, namely, the optimal solution of channel combination is realized by calculating the channel probability matrix of the target short message channel set, the short message set is sent through the channel probability matrix, the multi-short message channel work is realized, the short message channel stability is improved, and the channel probability matrix is recalculated for each batch of short messages to be sent, so that the short message channel fault can be found in time, the working efficiency of a short message platform is improved, and the user experience is favorably improved.
In a possible example, in the aspect of calculating the short message channel weight set corresponding to the short message channel set, the instructions in the program are specifically configured to perform the following operations: acquiring a plurality of manual weights and a plurality of statistical weights corresponding to a plurality of short message channels in the short message channel set; executing channel health weight calculation operation aiming at the short message channels to obtain a plurality of channel health weights; substituting the artificial weights, the statistical weights and the channel health weights into a preset channel weight calculation formula to obtain a plurality of channel weights corresponding to the short message channels; and generating the short message channel weight set based on the plurality of channel weights.
In one possible example, in the performing channel health weight calculation operations for the plurality of short message channels, the instructions in the program are specifically configured to perform the following operations: acquiring a touch window value of the short message channel aiming at each short message channel in the short message channel set; determining a calendar corresponding to the short message channel based on the current time and the reach window valueStandad window period; extracting a plurality of sampling periods contained in the historical touch window period and a plurality of groups of historical short message data corresponding to the sampling periods; receiving a plurality of actual reach rates and a plurality of expected reach rates of the plurality of groups of historical short message data; performing difference calculation based on the actual reach rates and the expected reach rates to obtain a plurality of reach rate deviations, and combining the reach rate deviations to obtain a window deviation vector WD; acquiring a preset influence coefficient vector WRP aiming at the multiple sampling periods, and substituting a preset artificial weight threshold LIMIT, the WRP and the WD into a preset channel health weight calculation formula to obtain a channel health weight WH of the short message channel, wherein the channel health weight calculation formula comprises:
Figure 356877DEST_PATH_IMAGE085
in a possible example, in the aspect that a plurality of target channel sets are determined in the short message channel set based on the plurality of short message subsets to be sent, the instructions in the program are specifically configured to perform the following operations: determining a plurality of short message types corresponding to the plurality of short message subsets to be sent; and performing a screening operation for each of the plurality of short message types to obtain the plurality of target short message channel sets, wherein the screening operation comprises: aiming at any one of the short message types, a plurality of short message channels to be selected corresponding to the any one short message type are selected from the short message channel set; and acquiring at least one target short message channel in an idle state in the plurality of short message channels to be selected to generate a target short message channel set corresponding to any one short message type.
In a possible example, in terms of performing channel probability calculation on the plurality of target short message channel sets based on the short message channel weight set, the instructions in the program are specifically configured to perform the following operations: aiming at each target short message channel set in the plurality of target short message channel sets, acquiring a target short message channel weight set corresponding to the target short message channel set from the short message channel weight set, wherein the target short message channel set comprises k targetsThe target short message channel weight set comprises k target short message channel weights, and k is greater than 0; generating a target short message channel weight vector based on the k target short message channel weights, and performing normalization operation aiming at the target short message channel weight vector to obtain a target weight vector NW, wherein,
Figure 983030DEST_PATH_IMAGE086
(ii) a Substituting the target weight vector NW into a cumulative distribution function formula to obtain the target distribution cumulative function vector CDF,
Figure 432466DEST_PATH_IMAGE088
computing a channel probability matrix, CDFR, based on the CDF, wherein,
Figure 536689DEST_PATH_IMAGE089
in a possible example, in terms of after said deriving the target weight vector NW, the instructions in the program are further configured to: acquiring a comprehensive calculation vector R of the target short message channel set at the current moment; substituting the comprehensive calculation vector R and the target weight vector NW into a preset comprehensive calculation formula to obtain a target comprehensive value RO corresponding to the target short message channel set, wherein the comprehensive calculation formula is as follows:
Figure 755180DEST_PATH_IMAGE005
(ii) a Judging whether the target comprehensive value RO is larger than a preset comprehensive value threshold value or not
Figure 552235DEST_PATH_IMAGE065
If the sum of the obtained target short message channel set and the obtained target short message channel set is greater than the preset threshold, obtaining an optimized vector corresponding to the target short message channel set, calculating a channel mathematical expectation CE based on the optimized vector and the target weight vector NW, adjusting the target weight vector NW to enable the mathematical expectation CE to reach the minimum value
Figure 161071DEST_PATH_IMAGE090
Determining the minimum value
Figure 399810DEST_PATH_IMAGE090
Corresponding weight vector
Figure 410491DEST_PATH_IMAGE091
Based on the weight vector
Figure 440764DEST_PATH_IMAGE091
The target weight vector NW is updated.
In a possible example, in the aspect of sending the multiple to-be-sent short message subsets based on the multiple channel probability matrices and the multiple target short message channel sets, the instructions in the program are specifically configured to perform the following operations: determining a target short message channel set and a channel probability matrix corresponding to any short message in the plurality of short message subsets to be sent; acquiring a random number of the any short message; substituting the channel probability matrix and the random number into a preset judgment range function to obtain a selection vector of any one short message; and controlling a target short message channel corresponding to the component with the component value of 1 in the selection vector to send the arbitrary short message.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one control unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a short message sending apparatus according to an embodiment of the present application, including: an acquisition unit 601, a calculation unit 602, a determination unit 603, and a transmission unit 604, wherein:
an obtaining unit 601, configured to obtain a short message set to be sent and a short message channel set, and classify the short message set to be sent based on a preset short message category to obtain a plurality of short message subsets to be sent;
a calculating unit 602, configured to calculate a short message channel weight set corresponding to the short message channel set;
a determining unit 603, configured to determine multiple target short message channel sets in the short message channel set based on the multiple short message subsets to be sent, and perform channel probability calculation on the multiple target short message channel sets based on the short message channel weight sets to obtain multiple channel probability matrices;
a sending unit 604, configured to send the multiple to-be-sent short message subsets based on the multiple channel probability matrices and the multiple target short message channel sets.
It can be seen that, in the embodiment of the application, the electronic device acquires a short message set to be sent and a short message channel set, and classifies the short message set to be sent based on a preset short message category to obtain a plurality of short message subsets to be sent; calculating a short message channel weight set corresponding to the short message channel set; determining a plurality of target short message channel sets in the short message channel set based on the short message subsets to be sent, and performing channel probability calculation on the target short message channel sets based on the short message channel weight sets to obtain a plurality of channel probability matrixes; and sending the plurality of short message subsets to be sent based on the plurality of channel probability matrixes and the plurality of target short message channel sets. Therefore, a target short message channel set can be screened out through the short message categories, a channel probability matrix is calculated based on the target short message channel, namely, the optimal solution of channel combination is realized by calculating the channel probability matrix of the target short message channel set, the short message set is sent through the channel probability matrix, the multi-short message channel work is realized, the short message channel stability is improved, and the channel probability matrix is recalculated for each batch of short messages to be sent, so that the short message channel fault can be found in time, the working efficiency of a short message platform is improved, and the user experience is favorably improved.
In a possible example, in the aspect of calculating the short message channel weight set corresponding to the short message channel set, the calculating unit 602 is specifically configured to: acquiring a plurality of manual weights and a plurality of statistical weights corresponding to a plurality of short message channels in the short message channel set; executing channel health weight calculation operation aiming at the short message channels to obtain a plurality of channel health weights; substituting the artificial weights, the statistical weights and the channel health weights into a preset channel weight calculation formula to obtain a plurality of channel weights corresponding to the short message channels; and generating the short message channel weight set based on the plurality of channel weights.
In a possible example, in terms of performing a channel health weight calculation operation on the plurality of short message channels, the calculating unit 602 is specifically configured to: acquiring a touch window value of the short message channel aiming at each short message channel in the short message channel set; determining a historical touch window period corresponding to the short message channel based on the current time and the touch window value; extracting a plurality of sampling periods contained in the historical touch window period and a plurality of groups of historical short message data corresponding to the sampling periods; receiving a plurality of actual reach rates and a plurality of expected reach rates of the plurality of groups of historical short message data; performing difference calculation based on the actual reach rates and the expected reach rates to obtain a plurality of reach rate deviations, and combining the reach rate deviations to obtain a window deviation vector WD; obtaining a preset needleSubstituting a preset artificial weight threshold LIMIT, the WRP and the WD into a preset channel health weight calculation formula to obtain a channel health weight WH of the short message channel for the influence coefficient vector WRP of the plurality of sampling periods, wherein the channel health weight calculation formula comprises:
Figure 536896DEST_PATH_IMAGE092
in a possible example, in the aspect of determining multiple target channel sets in the short message channel set based on the multiple short message subsets to be sent, the determining unit 603 is specifically configured to: determining a plurality of short message types corresponding to the plurality of short message subsets to be sent; and performing a screening operation for each of the plurality of short message types to obtain the plurality of target short message channel sets, wherein the screening operation comprises: aiming at any one of the short message types, a plurality of short message channels to be selected corresponding to the any one short message type are selected from the short message channel set; and acquiring at least one target short message channel in an idle state in the plurality of short message channels to be selected to generate a target short message channel set corresponding to any one short message type.
In a possible example, in terms of performing channel probability calculation on the multiple target short message channel sets based on the short message channel weight set, the determining unit 603 is specifically configured to: acquiring a target short message channel weight set corresponding to the target short message channel set from the short message channel weight set aiming at each target short message channel set in the plurality of target short message channel sets, wherein the target short message channel set comprises k target short message channels, the target short message channel weight set comprises k target short message channel weights, and k is greater than 0; generating a target short message channel weight vector based on the k target short message channel weights, and performing normalization operation aiming at the target short message channel weight vector to obtain a target weight vector NW, wherein,
Figure 45238DEST_PATH_IMAGE093
(ii) a Substituting the target weight vector NW into an accumulation scoreA function distribution formula is used for obtaining the target distribution cumulative function vector CDF, wherein,
Figure 176005DEST_PATH_IMAGE094
computing a channel probability matrix, CDFR, based on the CDF, wherein,
Figure 314862DEST_PATH_IMAGE095
in a possible example, after obtaining the target weight vector NW, the determining unit 603 is specifically configured to: acquiring a comprehensive calculation vector R of the target short message channel set at the current moment; substituting the comprehensive calculation vector R and the target weight vector NW into a preset comprehensive calculation formula to obtain a target comprehensive value RO corresponding to the target short message channel set, wherein the comprehensive calculation formula is as follows:
Figure 960607DEST_PATH_IMAGE005
(ii) a Judging whether the target comprehensive value RO is larger than a preset comprehensive value threshold value or not
Figure 210323DEST_PATH_IMAGE065
If the sum of the obtained target short message channel set and the obtained target short message channel set is greater than the preset threshold, obtaining an optimized vector corresponding to the target short message channel set, calculating a channel mathematical expectation CE based on the optimized vector and the target weight vector NW, adjusting the target weight vector NW to enable the mathematical expectation CE to reach the minimum value
Figure 257913DEST_PATH_IMAGE096
Determining the minimum value
Figure 567672DEST_PATH_IMAGE096
Corresponding weight vector
Figure 700713DEST_PATH_IMAGE097
Based on the weight vector
Figure 754120DEST_PATH_IMAGE097
The target weight vector NW is updated.
In a possible example, in the aspect of sending the multiple to-be-sent short message subsets based on the multiple channel probability matrices and the multiple target short message channel sets, the sending unit 604 is specifically configured to: determining a target short message channel set and a channel probability matrix corresponding to any short message in the plurality of short message subsets to be sent; acquiring a random number of the any short message; substituting the channel probability matrix and the random number into a preset judgment range function to obtain a selection vector of any one short message; and controlling a target short message channel corresponding to the component with the component value of 1 in the selection vector to send the arbitrary short message.
For specific limitations of the short message sending apparatus, reference may be made to the above limitations on the short message sending method, which is not described herein again. All modules in the short message sending device can be completely or partially realized through software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. A short message sending method is applied to electronic equipment, and comprises the following steps:
acquiring a short message set to be sent and a short message channel set, and classifying the short message set to be sent based on preset short message categories to obtain a plurality of short message subsets to be sent;
calculating a short message channel weight set corresponding to the short message channel set;
determining a plurality of target short message channel sets in the short message channel set based on the short message subsets to be sent, and performing channel probability calculation on the target short message channel sets based on the short message channel weight sets to obtain a plurality of channel probability matrixes;
sending the plurality of short message subsets to be sent based on the plurality of channel probability matrixes and the plurality of target short message channel sets;
the performing channel probability calculation on the plurality of target short message channel sets based on the short message channel weight set comprises:
acquiring a target short message channel weight set corresponding to the target short message channel set from the short message channel weight set aiming at each target short message channel set in the plurality of target short message channel sets, wherein the target short message channel set comprises k target short message channels, the target short message channel weight set comprises k target short message channel weights, and k is greater than 0;
generating a target short message channel weight vector based on the k target short message channel weights, and performing normalization operation aiming at the target short message channel weight vector to obtain a target weight vector NW, wherein,
Figure 510662DEST_PATH_IMAGE001
substituting the target weight vector NW into a cumulative distribution function formula to obtain the target distribution cumulative function vector CDF,
Figure 427803DEST_PATH_IMAGE002
computing a channel probability matrix, CDFR, based on the CDF, wherein,
Figure 207540DEST_PATH_IMAGE003
2. the method for sending short messages according to claim 1, wherein the calculating of the short message channel weight set corresponding to the short message channel set includes:
acquiring a plurality of manual weights and a plurality of statistical weights corresponding to a plurality of short message channels in the short message channel set;
executing channel health weight calculation operation aiming at the short message channels to obtain a plurality of channel health weights;
substituting the artificial weights, the statistical weights and the channel health weights into a preset channel weight calculation formula to obtain a plurality of channel weights corresponding to the short message channels;
and generating the short message channel weight set based on the plurality of channel weights.
3. The method of claim 2, wherein the performing channel health weight calculation operations for the plurality of short message channels comprises:
acquiring a touch window value of the short message channel aiming at each short message channel in the short message channel set;
determining a historical touch window period corresponding to the short message channel based on the current time and the touch window value;
extracting a plurality of sampling periods contained in the historical touch window period and a plurality of groups of historical short message data corresponding to the sampling periods;
receiving a plurality of actual reach rates and a plurality of expected reach rates of the plurality of groups of historical short message data;
performing difference calculation based on the actual reach rates and the expected reach rates to obtain a plurality of reach rate deviations, and combining the reach rate deviations to obtain a window deviation vector WD;
obtaining a preset influence coefficient vector WRP aiming at the multiple sampling periods, and substituting a preset artificial weight threshold LIMIT, the WRP and the WD into a preset channel health weight calculation formula to obtain the influence coefficient vector WRPThe channel health weight WH of the short message channel comprises the following calculation formula:
Figure 133908DEST_PATH_IMAGE004
4. the method for sending short messages according to claim 1, wherein the determining a plurality of target channel sets in the short message channel set based on the plurality of short message subsets to be sent comprises:
determining a plurality of short message types corresponding to the plurality of short message subsets to be sent;
and performing a screening operation for each of the plurality of short message types to obtain the plurality of target short message channel sets, wherein the screening operation comprises: aiming at any one of the short message types, a plurality of short message channels to be selected corresponding to the any one short message type are selected from the short message channel set; and acquiring at least one target short message channel in an idle state in the plurality of short message channels to be selected to generate a target short message channel set corresponding to any one short message type.
5. The short message sending method of claim 1, wherein after obtaining the target weight vector NW, the method further comprises:
acquiring a comprehensive calculation vector R of the target short message channel set at the current moment;
substituting the comprehensive calculation vector R and the target weight vector NW into a preset comprehensive calculation formula to obtain a target comprehensive value RO corresponding to the target short message channel set, wherein the comprehensive calculation formula is as follows:
Figure 948280DEST_PATH_IMAGE005
judging whether the target comprehensive value RO is larger than a preset comprehensive value threshold value or not
Figure 177267DEST_PATH_IMAGE006
If the sum of the obtained target short message channel set and the obtained target short message channel set is greater than the preset threshold, obtaining an optimized vector corresponding to the target short message channel set, calculating a channel mathematical expectation CE based on the optimized vector and the target weight vector NW, adjusting the target weight vector NW to enable the mathematical expectation CE to reach the minimum value
Figure 444300DEST_PATH_IMAGE007
Determining the minimum value
Figure 174359DEST_PATH_IMAGE008
Corresponding weight vector
Figure 843238DEST_PATH_IMAGE009
Based on the weight vector
Figure 492394DEST_PATH_IMAGE010
The target weight vector NW is updated.
6. The method of claim 1, wherein the sending the plurality of subsets of short messages to be sent based on the plurality of channel probability matrices and the plurality of target short message channel sets comprises:
determining a target short message channel set and a channel probability matrix corresponding to any short message in the plurality of short message subsets to be sent;
acquiring a random number of the any short message;
substituting the channel probability matrix and the random number into a preset judgment range function to obtain a selection vector of any one short message;
and controlling a target short message channel corresponding to the component with the component value of 1 in the selection vector to send the arbitrary short message.
7. A short message sending device, characterized in that the device comprises:
the device comprises an acquisition unit, a sending unit and a receiving unit, wherein the acquisition unit is used for acquiring a short message set to be sent and a short message channel set, and classifying the short message set to be sent based on a preset short message category to obtain a plurality of short message subsets to be sent;
the calculation unit is used for calculating a short message channel weight set corresponding to the short message channel set;
a determining unit, configured to determine multiple target short message channel sets in the short message channel set based on the multiple short message subsets to be sent, and perform channel probability calculation on the multiple target short message channel sets based on the short message channel weight sets to obtain multiple channel probability matrices;
a sending unit, configured to send the multiple to-be-sent short message subsets based on the multiple channel probability matrices and the multiple target short message channel sets;
in the aspect that the channel probability calculation is performed on the plurality of target short message channel sets based on the short message channel weight set, the determining unit is specifically configured to: acquiring a target short message channel weight set corresponding to the target short message channel set from the short message channel weight set aiming at each target short message channel set in the plurality of target short message channel sets, wherein the target short message channel set comprises k target short message channels, the target short message channel weight set comprises k target short message channel weights, and k is greater than 0; generating a target short message channel weight vector based on the k target short message channel weights, and performing normalization operation aiming at the target short message channel weight vector to obtain a target weight vector NW, wherein,
Figure 246723DEST_PATH_IMAGE011
(ii) a Substituting the target weight vector NW into a cumulative distribution function formula to obtain the target distribution cumulative function vector CDF,
Figure 514893DEST_PATH_IMAGE012
computing a channel probability matrix, CDFR, based on the CDF, wherein,
Figure 38279DEST_PATH_IMAGE014
8. an electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps in the method of sending short messages according to any one of claims 1-6.
9. A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the short message sending method according to any one of claims 1 to 6.
CN202011275625.0A 2020-11-16 2020-11-16 Short message sending method and device, electronic equipment and computer readable storage medium Active CN112104989B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011275625.0A CN112104989B (en) 2020-11-16 2020-11-16 Short message sending method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011275625.0A CN112104989B (en) 2020-11-16 2020-11-16 Short message sending method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112104989A CN112104989A (en) 2020-12-18
CN112104989B true CN112104989B (en) 2021-02-19

Family

ID=73785623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011275625.0A Active CN112104989B (en) 2020-11-16 2020-11-16 Short message sending method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112104989B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887919B (en) * 2021-01-18 2022-07-05 浙江百应科技有限公司 Short message sending method and system for multi-channel short message cluster scheduling and electronic equipment
CN113645579B (en) * 2021-09-26 2022-09-23 杭州有赞科技有限公司 Short message channel distribution method, device and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106028299A (en) * 2016-06-30 2016-10-12 上海斐讯数据通信技术有限公司 Method and system for selecting short message transmitting channel
CN109168135A (en) * 2018-11-09 2019-01-08 上海银赛计算机科技有限公司 Selection method, device, SMS platform and the storage medium of short message sendaisle

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10582347B2 (en) * 2016-04-14 2020-03-03 Mueller International, Llc SMS communication for cellular node
CN107371146A (en) * 2017-06-05 2017-11-21 深圳市金立通信设备有限公司 A kind of method and terminal for selecting short message channel

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106028299A (en) * 2016-06-30 2016-10-12 上海斐讯数据通信技术有限公司 Method and system for selecting short message transmitting channel
CN109168135A (en) * 2018-11-09 2019-01-08 上海银赛计算机科技有限公司 Selection method, device, SMS platform and the storage medium of short message sendaisle

Also Published As

Publication number Publication date
CN112104989A (en) 2020-12-18

Similar Documents

Publication Publication Date Title
CN112104989B (en) Short message sending method and device, electronic equipment and computer readable storage medium
EP1532790B1 (en) Method and arrangement for obtaining an electronic mail service
CN102710838A (en) Volume regulation method and device as well as electronic equipment
CN103249014B (en) Method for encrypting short message of mobile communication
CN112654003A (en) Method, device, storage medium and electronic equipment for sending message
CN113328505B (en) Charging demand adaptation method, electronic equipment and related product
CN113163008B (en) Connection intelligent management method and device of network service system and related equipment thereof
CN103067465A (en) File sharing method and system
CN112422604B (en) File uploading method, device and system and computer equipment
CN112307477A (en) Code detection method, device, storage medium and terminal
CN116506953A (en) Multi-channel switching method, system and medium applied to intelligent communication system
CN115200178B (en) Building terminal equipment control method and device, electronic equipment and storage medium
CN114422438A (en) Link adjusting method and device of power communication network
US20070192511A1 (en) Device and method for transmitting data
WO2019174164A1 (en) Advertisement short message recognition method, electronic apparatus, terminal device and storage medium
CN107547724B (en) Adaptation method and device applied to dual-card smart phone
CN111818219B (en) Electronic equipment and prompt information control method of electronic equipment
US20180152382A1 (en) Managing traffic at a node within a wireless communication network upon the node entering service
CN114448987B (en) Load decentralized management method, device, equipment and medium based on cloud service
CN115987685B (en) Cloud service data sharing method and system
CN112824999B (en) Temperature control method and related product
CN112261091A (en) Signaling routing method, device, server and computer readable storage medium based on bypass service cluster
CN115843071A (en) OTA (over the air) downloading flow control method, device, server and storage medium
CN114443980A (en) Method and device for determining daily cutting time interval and identifying data error of service system
CN118019005A (en) Directional ambiguity test method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 518000 3506, phase II, Qianhai Shimao financial center, No. 3040, Xinghai Avenue, Nanshan street, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong

Patentee after: Shenzhen aiteyun Information Technology Co.,Ltd.

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee before: SHENZHEN ZHENAIYUN INFORMATION TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address