Short message sending method and device
By matching SMS channels and optimizing allocation, the problem of increasing reception time caused by excessive SMS sending load in the medical industry is solved, and efficient matching and efficiency improvement of SMS sending is achieved.
Patent Information
- Application Number
- CN202411417933.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-11
- Publication Date
- 2024-12-31
AI Technical Summary
In the medical industry, excessive load when sending SMS in batches results in an increase in reception time, and a more reasonable way to send SMS to reduce reception time is needed.
By obtaining the SMS to be sent and matching the SMS channel with the characteristic data based on the capacity of each SMS channel, the target channel is determined to send the SMS. If the number of SMS channels is large, a decision matrix is constructed based on the characteristic data, a positive and negative ideal solutions are determined, and the target proximity of the channel is calculated to optimize SMS allocation.
It realizes efficient matching and optimization of SMS sending, reduces reception time and improves the efficiency of SMS sending.
Smart Images

Figure CN119233215A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of message sending, and in particular to a method and device for sending short messages. Background Art
[0002] SMS is widely used in daily life notifications. It is not only used to receive verification codes to verify identity, receive promotional SMS from manufacturers, but also can be used in many scenarios such as necessary reminders for patients' rehabilitation and follow-up visits. As a service organization and service provider in the medical industry, SMS will be sent in batches and on a large scale when carrying medical services. If the load is too heavy, it will increase the time it takes to receive SMS.
[0003] Therefore, reducing the time of receiving short messages and sending short messages in a more reasonable manner are technical problems to be solved by the present invention. Summary of the invention
[0004] The main purpose of the present invention is to provide a method and device for sending short messages to solve the technical problems existing in the related art.
[0005] In order to achieve the above-mentioned purpose, according to a first aspect of the present invention, a method for sending short messages is provided, comprising obtaining short messages to be sent; matching short messages to short messages to be sent channels based on the capacity of each short message channel and the number of short messages to be sent, so as to send the short messages through the short message channels, wherein, if there are multiple short message channels and the number of short messages to be sent is greater than the capacity of any short message channel, then determining a target short message channel from the multiple short message channels, so as to send the short messages to be sent through the target short message channel; wherein, when determining the target short message channel, the target short message channel is determined based on characteristic data of each short message channel.
[0006] Optionally, if the number of SMS channels is one, when the number of SMS messages to be sent is greater than the capacity of the one SMS channel, the SMS messages are sent in batches at preset time intervals.
[0007] Optionally, if there are multiple SMS channels, and the number of SMS messages to be sent is less than or equal to the capacity of a certain SMS channel, all SMS messages are sent through the certain SMS channel.
[0008] Optionally, when determining the target SMS channel, the method includes: constructing a decision matrix R=[r ij ], and standardize the decision matrix, where r ij is the jth feature data of the i-th channel, i is the number of channels, i=1,2,3...m; weight values ω are assigned to different feature data jOn this basis, a weighted standardized decision matrix is determined based on the standardized decision matrix; a positive ideal solution and a negative ideal solution are determined based on the weighted standardized decision matrix; the distance between each SMS channel and the positive ideal solution and the negative ideal solution is determined; and the target closeness of each SMS channel is determined based on the distance, wherein the greater the target closeness, the higher the priority of the SMS channel, and the SMS are allocated in the order of the SMS channel priority.
[0009] Optionally, the standardization of the decision matrix includes: setting R'=[r i ' j ], wherein said Where m is the number of channels and n is the number of eigenvalues; determine the weighted normalization decision matrix C = [ci], where c i is the weighted normalized decision matrix for the current channel.
[0010] Optionally, determining a positive ideal solution and a negative ideal solution based on the weighted normalized decision matrix includes: positive ideal solution: A * =max(c i )|j∈J,min(c i )|j∈J'; Negative ideal solution: A - =min(c i )|j∈J,min(c i )|j∈J', where J represents a benefit-type characteristic value and J' represents a cost-type characteristic value; determining the distances of each SMS channel from the positive ideal solution and the negative ideal solution respectively includes:
[0011] The weighted normalized decision matrix is a positive ideal solution, that is, each item in the matrix is the maximum item among all eigenvalues
[0012] The decision matrix is a weighted normalized decision matrix for the negative ideal solution, that is, each item in the matrix is the minimum item among all eigenvalues.
[0013] Optionally, determining the target proximity of each SMS channel based on the distance includes:
[0014] According to a second aspect of the present invention, there is provided a text message sending device, comprising: a text message acquisition unit, for acquiring text messages to be sent; a channel matching unit, for matching text messages to be sent channels based on the capacity of each text message channel and the number of text messages to be sent, so as to send text messages through the text message channels, wherein, if there are multiple text message channels and the number of text messages to be sent is greater than the capacity of any text message channel, a target text message channel is determined from the multiple text message channels, so as to send the text messages to be sent through the target text message channel; wherein, when determining the target text message channel, the target text message channel is determined based on characteristic data of each text message channel.
[0015] According to a third aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method described in any one of the implementations of the first aspect.
[0016] According to a fourth aspect of the present invention, there is provided an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor executes the method described in any one implementation of the first aspect.
[0017] The SMS sending method and device of this embodiment include: obtaining SMS to be sent; matching SMS channels for SMS to be sent based on the capacity of each SMS channel and the number of SMS to be sent, so as to send SMS through the SMS channel, wherein if there are multiple SMS channels and the number of SMS to be sent is greater than the capacity of any SMS channel, then determining a target SMS channel from the multiple SMS channels, so as to send the SMS to be sent through the target SMS channel; wherein, when determining the target SMS channel, the target SMS channel is determined based on the characteristic data of each SMS channel. By matching the channel for the SMS to be sent based on the characteristics of the SMS channel, the SMS can be efficiently sent. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 is a flow chart of a method for sending a text message according to an embodiment of the present invention;
[0020] Figure 2 is a schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to describe the embodiments of the present invention described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0023] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0024] According to an embodiment of the present invention, a method for exchanging enterprise data based on email is provided. Figure 1 As shown, it includes the following steps 101 to 102:
[0025] Step 101: Get the SMS to be sent;
[0026] Step 102: Matching the short message channels with the short message channels based on the capacity of each short message channel and the number of short messages to be sent, so as to send the short messages through the short message channels; wherein, if there are multiple short message channels and the number of short messages to be sent is greater than the capacity of any short message channel, determining a target short message channel from the multiple short message channels, so as to send the short messages to be sent through the target short message channel; wherein, when determining the target short message channel, determining the target short message channel based on the characteristic data of each short message channel.
[0027] As an optional implementation of this embodiment, if the number of SMS channels is one, and the number of SMS messages to be sent is greater than the capacity of the one SMS channel, the SMS messages are sent in batches at preset time intervals.
[0028] As an optional implementation of this embodiment, if there are multiple SMS channels and the number of SMS messages to be sent is less than or equal to the capacity of a certain SMS channel, all SMS messages are sent through the certain SMS channel.
[0029] As an optional implementation of this embodiment, when determining the target SMS channel, the method includes: constructing a decision matrix R=[r ij ], and standardize the decision matrix, where r ij is the jth feature data of the i-th channel, i is the number of channels, i=1,2,3...m; weight values ω are assigned to different feature data j On this basis, a weighted standardized decision matrix is determined based on the standardized decision matrix; a positive ideal solution and a negative ideal solution are determined based on the weighted standardized decision matrix; the distance between each SMS channel and the positive ideal solution and the negative ideal solution is determined; and the target closeness of each SMS channel is determined based on the distance, wherein the greater the target closeness, the higher the priority of the SMS channel, and the SMS are allocated in the order of the SMS channel priority.
[0030] As an optional implementation of this embodiment, the standardization of the decision matrix includes: setting R'=[r' ij ], wherein said Determine the weighted standardized decision matrix C = [c j ],in,
[0031] As an optional implementation of this embodiment, determining the positive ideal solution and the negative ideal solution based on the weighted normalized decision matrix includes: Positive ideal solution: A * =max(c i )|j∈J,min(c i )|j∈J'; Negative ideal solution: A - =min(c i )|j∈J,min(c i )|j∈J', where J represents a benefit-type characteristic value and J' represents a cost-type characteristic value; determining the distances of each SMS channel from the positive ideal solution and the negative ideal solution respectively includes:
[0032] In this optional implementation, the benefit-type characteristic values are delivery rate, coverage, and concurrent processing capability; the cost-type characteristic values are speed, cost-effectiveness, and error rate.
[0033] As an optional implementation of this embodiment, determining the target proximity of each SMS channel based on the distance includes:
[0034] In the above optional implementation, the characteristic value data of each SMS channel is first collected to construct a decision matrix R = [r ij Then the decision matrix is standardized to obtain the relative influence matrix R'=[r i ' j ]. Then determine the eigenvalue weight vector ω j , the sum of weights is 1, and a set of initial values ω=[ω1,ω2,...,ω n ].
[0035] In calculating the weighted normalized decision matrix C = [c i ], Then, the ideal solution is determined, the distance between each SMS channel and the ideal solution, and the target closeness is determined based on the distance.
[0036] Channels are sorted according to their proximity to the target, and channels with greater proximity have higher priority.
[0037] Furthermore, the weight vector can be fine-tuned, and then the priorities of different channels under the influence of different factors can be obtained by recalculating.
[0038] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0039] According to an embodiment of the present invention, there is also provided a text message sending device, comprising a text message acquisition unit, for acquiring text messages to be sent; and a channel matching unit, for matching a short message channel with the text messages to be sent based on the capacity of each text message channel and the number of text messages to be sent, so as to send the text messages through the text message channel, wherein, if there are multiple text message channels and the number of text messages to be sent is greater than the capacity of any text message channel, a target text message channel is determined from the multiple text message channels, so as to send the text messages to be sent through the target text message channel; wherein, when determining the target text message channel, the target text message channel is determined based on the characteristic data of each text message channel.
[0040] As an optional implementation of this embodiment, if the number of SMS channels is one, and the number of SMS messages to be sent is greater than the capacity of the one SMS channel, the SMS messages are sent in batches at preset time intervals.
[0041] As an optional implementation of this embodiment, if there are multiple SMS channels and the number of SMS messages to be sent is less than or equal to the capacity of a certain SMS channel, all SMS messages are sent through the certain SMS channel.
[0042] As an optional implementation of this embodiment, when determining the target SMS channel, the method includes: constructing a decision matrix R=[r ij ], and standardize the decision matrix, where r ij is the jth feature data of the i-th channel, i is the number of channels, i=1,2,3...m; weight values ω are assigned to different feature data j On this basis, a weighted standardized decision matrix is determined based on the standardized decision matrix; a positive ideal solution and a negative ideal solution are determined based on the weighted standardized decision matrix; the distance between each SMS channel and the positive ideal solution and the negative ideal solution is determined; and the target closeness of each SMS channel is determined based on the distance, wherein the greater the target closeness, the higher the priority of the SMS channel, and the SMS are allocated in the order of the SMS channel priority.
[0043] As an optional implementation of this embodiment, the standardization of the decision matrix includes: setting R'=[r i ' j ], wherein said Determine the weighted standardized decision matrix C = [c j ],in,
[0044] As an optional implementation of this embodiment, determining the positive ideal solution and the negative ideal solution based on the weighted normalized decision matrix includes: positive ideal solution: A * =max(c i )|j∈J,min(c i )|j∈J'; Negative ideal solution: A - =min(c i )|j∈J,min(c i )|j∈J', where J represents a benefit-type characteristic value and J' represents a cost-type characteristic value; determining the distances of each SMS channel from the positive ideal solution and the negative ideal solution respectively includes:
[0045] As an optional implementation of this embodiment, determining the target proximity of each SMS channel based on the distance includes:
[0046] According to an embodiment of the present invention, the present invention also provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can implement the method described in any of the above embodiments when executing.
[0047] According to an embodiment of the present invention, the present invention further provides a readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to implement the method described in any of the above embodiments when executed.
[0048] According to an embodiment of the present invention, the present invention further provides a computer program product, which can implement the method described in any of the above embodiments when executed by a processor.
[0049] Figure 2 A schematic block diagram of an example electronic device 300 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices.
[0050] like Figure 2 As shown, the electronic device 300 includes a computing unit 301, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 302 or a computer program loaded from a storage unit 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 can also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0051] A number of components in the electronic device 300 are connected to the I / O interface 305, including: an input unit 306, such as a keyboard, a mouse, etc.; an output unit 307, such as various types of displays, speakers, etc.; a storage unit 308, such as a disk, an optical disk, etc.; and a communication unit 309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 309 allows the electronic device 300 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0052] The computing unit 301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 301 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 301 performs the various methods and processes described above, such as the object matching method. For example, in some embodiments, the object matching method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 308. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 300 via the ROM 302 and / or the communication unit 309. When the computer program is loaded into the RAM 303 and executed by the computing unit 301, one or more steps of the method described above may be performed.
[0053] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0054] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0055] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Claims
1. A method for sending a text message, characterized in that: include: Get the SMS to be sent; Matching the short messages to be sent with the short message channels based on the capacity of each short message channel and the number of short messages to be sent, so as to send the short messages through the short message channels; wherein, if there are multiple short message channels and the number of short messages to be sent is greater than the capacity of any short message channel, determining a target short message channel from the multiple short message channels, so as to send the short messages to be sent through the target short message channel; When determining the target SMS channel, the target SMS channel is determined based on characteristic data of each SMS channel.
2. The method for sending a short message according to claim 1, characterized in that: If the number of SMS channels is one, and the number of SMS messages to be sent is greater than the capacity of the one SMS channel, the SMS messages are sent in batches according to preset time intervals.
3. The method for sending a short message according to claim 1, characterized in that: If there are multiple SMS channels, and the number of SMS messages to be sent is less than or equal to the capacity of a certain SMS channel, all SMS messages are sent through the certain SMS channel.
4. The method for sending a short message according to claim 1, characterized in that: Methods for determining the target SMS channel include: Based on the characteristic data of each SMS channel, a decision matrix R = [r ij ], and standardize the decision matrix, where r ij is the jth feature data of the i-th channel, i is the number of channels, i=1,2,3...m; Assign weight values ω to different feature data j , on this basis, determining a weighted standardized decision matrix based on the standardized decision matrix; Determining a positive ideal solution and a negative ideal solution based on the weighted normalized decision matrix; Determine the distances of each short message channel from the positive ideal solution and the negative ideal solution respectively; The target closeness of each SMS channel is determined based on the distance, wherein the greater the target closeness, the higher the priority of the SMS channel, and the SMS are allocated in the order of the SMS channel priority.
5. The method for sending a short message according to claim 4, characterized in that: The standardization of the decision matrix includes: setting R′=[r′ ij ], wherein said Among them, m is the number of channels and n is the number of eigenvalues; Determine the weighted standardized decision matrix C = [ci], where c i is the weighted normalized decision matrix for the current channel.
6. The method for sending a short message according to claim 4, characterized in that: Determining a positive ideal solution and a negative ideal solution based on the weighted normalized decision matrix includes: Positive ideal solution: A * =max(c i )|j∈J,min(c i )|j∈J'; Negative ideal solution: A - =min(c i )|j∈J,max(c i )|j∈J', where J represents the benefit-type characteristic value and J' represents the cost-type characteristic value; Determining the distances between each short message channel and the positive ideal solution and the negative ideal solution includes: The decision matrix is a weighted normalized decision matrix for the positive ideal solution, that is, each item in the matrix is the largest item among all eigenvalues; The decision matrix is a weighted normalized decision matrix for the negative ideal solution, that is, each item in the matrix is the minimum item among all eigenvalues.
7. The method for sending a short message according to claim 4, characterized in that: Determining the target proximity of each SMS channel based on the distance includes:
8. A device for sending short messages, characterized in that: include: A short message acquisition unit, used to acquire short messages to be sent; a channel matching unit, configured to match a short message channel with the short message to be sent based on the capacity of each short message channel and the number of short messages to be sent, so as to send the short message through the short message channel; wherein, if there are multiple short message channels and the number of short messages to be sent is greater than the capacity of any short message channel, a target short message channel is determined from the multiple short message channels, so as to send the short message to be sent through the target short message channel; When determining the target SMS channel, the target SMS channel is determined based on characteristic data of each SMS channel.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: include: at least one processor; And a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor executes the SMS sending method described in any one of claims 1-7.
